{"type": "func", "start": 788056, "end": 788072, "name": "sub_C0658", "pseudocode": "// \n// sub_C0658 from 0xc0658 to 0xc0668 (16 bytes)\n// \n// 8 xrefs:\n// > sub_6AC9C @ 0x6ad34\n// > sub_6ADD0 @ 0x6ae7a\n// > sub_6BFE0 @ 0x6c0e8\n// > sub_6C2E0 @ 0x6c360\n// > sub_BD328 @ 0xbd37c\n// > sub_BE560 @ 0xbe5d4\n// > sub_BE65C @ 0xbe718\n// > sub_BE788 @ 0xbe7b0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall sub_C0658(sem_t *a1)\n{\n  int result; // r0\n\n  result = sem_wait(a1);\n  if ( result )\n    return 28;\n  return result;\n}", "assembly": "; \n; sub_C0658 from 0xc0658 to 0xc0668 (16 bytes)\n; \n; 8 xrefs:\n; > sub_6AC9C @ 0x6ad34\n; > sub_6ADD0 @ 0x6ae7a\n; > sub_6BFE0 @ 0x6c0e8\n; > sub_6C2E0 @ 0x6c360\n; > sub_BD328 @ 0xbd37c\n; > sub_BE560 @ 0xbe5d4\n; > sub_BE65C @ 0xbe718\n; > sub_BE788 @ 0xbe7b0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R7,LR}                                                ; +0x0, 0xc0658\nMOV             R7, SP                                                 ; +0x2, 0xc065a\nBLX             sem_wait                                               ; +0x4, 0xc065c\nCMP             R0, #0                                                 ; +0x8, 0xc0660\nIT NE                                                                  ; +0xa, 0xc0662\nMOVNE           R0, #0x1C                                              ; +0xc, 0xc0664\nPOP             {R7,PC}                                                ; +0xe, 0xc0666", "xrefs": ["sub_6AC9C @ 0x6ad34", "sub_6ADD0 @ 0x6ae7a", "sub_6BFE0 @ 0x6c0e8", "sub_6C2E0 @ 0x6c360", "sub_BD328 @ 0xbd37c", "sub_BE560 @ 0xbe5d4", "sub_BE65C @ 0xbe718", "sub_BE788 @ 0xbe7b0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}