{"type": "func", "start": 401388, "end": 401418, "name": "sub_61FEC", "pseudocode": "// \n// sub_61FEC from 0x61fec to 0x6200a (30 bytes)\n// \n// 5 xrefs:\n// > sub_45018 @ 0x45196\n// > sub_60B04 @ 0x60be0\n// > sub_65494 @ 0x65630\n// > sub_65494 @ 0x657cc\n// > sub_66E98 @ 0x66eb2\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_61FEC(int a1, unsigned int a2, _DWORD *a3)\n{\n  int result; // r0\n  int v5; // r1\n\n  result = 31;\n  if ( a2 <= 8 && a3 )\n  {\n    v5 = *(_DWORD *)(a1 + 4 * a2 + 67176);\n    result = 0;\n    *a3 = v5;\n    if ( !v5 )\n      return 9;\n  }\n  return result;\n}", "assembly": "; \n; sub_61FEC from 0x61fec to 0x6200a (30 bytes)\n; \n; 5 xrefs:\n; > sub_45018 @ 0x45196\n; > sub_60B04 @ 0x60be0\n; > sub_65494 @ 0x65630\n; > sub_65494 @ 0x657cc\n; > sub_66E98 @ 0x66eb2\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\nMOV             R3, R0                                                 ; +0x0, 0x61fec\nMOVS            R0, #0x1F                                              ; +0x2, 0x61fee\nCMP             R1, #8                                                 ; +0x4, 0x61ff0\nBHI             locret_62008                                           ; +0x6, 0x61ff2\nCBZ             R2, locret_62008                                       ; +0x8, 0x61ff4\nADD.W           R0, R3, R1,LSL#2                                       ; +0xa, 0x61ff6\nLDR             R1, =0x10668                                           ; +0xe, 0x61ffa\nLDR             R1, [R0,R1]                                            ; +0x10, 0x61ffc\nMOVS            R0, #0                                                 ; +0x12, 0x61ffe\nSTR             R1, [R2]                                               ; +0x14, 0x62000\nCMP             R1, #0                                                 ; +0x16, 0x62002\nIT EQ                                                                  ; +0x18, 0x62004\nMOVEQ           R0, #9                                                 ; +0x1a, 0x62006\nBX              LR                                                     ; +0x1c, 0x62008", "xrefs": ["sub_45018 @ 0x45196", "sub_60B04 @ 0x60be0", "sub_65494 @ 0x65630", "sub_65494 @ 0x657cc", "sub_66E98 @ 0x66eb2"], "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"}