{"type": "func", "start": 632008, "end": 632042, "name": "sub_9A4C8", "pseudocode": "// \n// sub_9A4C8 from 0x9a4c8 to 0x9a4ea (34 bytes)\n// \n// 2 xrefs:\n// > sub_99B7C @ 0x99d10\n// > sub_9A50C @ 0x9a596\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:41:30 +0000\n// \n\nint __fastcall sub_9A4C8(int a1, _DWORD *a2)\n{\n  int result; // r0\n\n  if ( !*a2 )\n    return 2;\n  if ( *a2 == 1 )\n    return 3;\n  result = a2[1];\n  if ( !result )\n    return *(_DWORD *)(*(_DWORD *)(a1 + 128) + 69188);\n  return result;\n}", "assembly": "; \n; sub_9A4C8 from 0x9a4c8 to 0x9a4ea (34 bytes)\n; \n; 2 xrefs:\n; > sub_99B7C @ 0x99d10\n; > sub_9A50C @ 0x9a596\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:41:30 +0000\n; \nMOV             R2, R0                                                 ; +0x0, 0x9a4c8\nLDR             R0, [R1]                                               ; +0x2, 0x9a4ca\nCBZ             R0, loc_9A4DC                                          ; +0x4, 0x9a4cc\nCMP             R0, #1                                                 ; +0x6, 0x9a4ce\nITT EQ                                                                 ; +0x8, 0x9a4d0\nMOVEQ           R0, #3                                                 ; +0xa, 0x9a4d2\nBXEQ            LR                                                     ; +0xc, 0x9a4d4\nLDR             R0, [R1,#4]                                            ; +0xe, 0x9a4d6\nCBZ             R0, loc_9A4E0                                          ; +0x10, 0x9a4d8\nBX              LR                                                     ; +0x12, 0x9a4da\nMOVS            R0, #2                                                 ; +0x14, 0x9a4dc\nBX              LR                                                     ; +0x16, 0x9a4de\nLDR.W           R0, [R2,#0x80]                                         ; +0x18, 0x9a4e0\nLDR             R1, =0x10E44                                           ; +0x1c, 0x9a4e4\nLDR             R0, [R0,R1]                                            ; +0x1e, 0x9a4e6\nBX              LR                                                     ; +0x20, 0x9a4e8", "xrefs": ["sub_99B7C @ 0x99d10", "sub_9A50C @ 0x9a596"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}