It seems the decompiler failed or terminated prematurely inside of func_993's scope and did not finish adding the curly braces. I checked the YSC at 0x2E8E6 with IDA, and I did not see anything weird or out of place the decompiler would trip up on here.
https://github.com/root-cause/v-decompiled-scripts/blob/master/am_contact_requests.c#L43147-L43226
It seems the decompiler failed or terminated prematurely inside of func_993's scope and did not finish adding the curly braces. I checked the YSC at 0x2E8E6 with IDA, and I did not see anything weird or out of place the decompiler would trip up on here.