{"type": "func", "start": 565532, "end": 565624, "name": "sub_8A11C", "pseudocode": "// \n// sub_8A11C from 0x8a11c to 0x8a178 (92 bytes)\n// \n// 1 xrefs:\n// > sub_8A7B0 @ 0x8a7b6\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:23 +0000\n// \n\nint __fastcall sub_8A11C(int a1)\n{\n  int i; // r5\n  int v3; // r0\n  _DWORD *v4; // r0\n\n  for ( i = 0; ; ++i )\n  {\n    v3 = *(_DWORD *)(a1 + 164);\n    if ( i >= *(_DWORD *)(v3 + 72) )\n      break;\n    v4 = *(_DWORD **)(*(_DWORD *)(v3 + 76) + 4 * i);\n    if ( *v4 == 2 )\n    {\n      sub_AB2D2(a1, i, v4[10] != 0);\n    }\n    else if ( !*v4 )\n    {\n      sub_AB218(a1, i, v4[12]);\n    }\n  }\n  *(_DWORD *)(a1 + 688) = 0;\n  *(_DWORD *)(a1 + 692) = 0;\n  memset((void *)(a1 + 396), 0, 0x100u);\n  *(_BYTE *)(a1 + 676) = 1;\n  return 0;\n}", "assembly": "; \n; sub_8A11C from 0x8a11c to 0x8a178 (92 bytes)\n; \n; 1 xrefs:\n; > sub_8A7B0 @ 0x8a7b6\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:23 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x8a11c\nADD             R7, SP, #8                                             ; +0x2, 0x8a11e\nMOV             R4, R0                                                 ; +0x4, 0x8a120\nMOVS            R5, #0                                                 ; +0x6, 0x8a122\nLDR.W           R0, [R4,#0xA4]                                         ; +0x8, 0x8a124\nLDR             R1, [R0,#0x48]                                         ; +0xc, 0x8a128\nCMP             R5, R1                                                 ; +0xe, 0x8a12a\nBGE             loc_8A15C                                              ; +0x10, 0x8a12c\nLDR             R0, [R0,#0x4C]                                         ; +0x12, 0x8a12e\nLDR.W           R0, [R0,R5,LSL#2]                                      ; +0x14, 0x8a130\nLDR             R1, [R0]                                               ; +0x18, 0x8a134\nCMP             R1, #2                                                 ; +0x1a, 0x8a136\nBEQ             loc_8A148                                              ; +0x1c, 0x8a138\nCBNZ            R1, loc_8A158                                          ; +0x1e, 0x8a13a\nLDR             R2, [R0,#0x30]                                         ; +0x20, 0x8a13c\nMOV             R0, R4                                                 ; +0x22, 0x8a13e\nMOV             R1, R5                                                 ; +0x24, 0x8a140\nBL              sub_AB218                                              ; +0x26, 0x8a142\nB               loc_8A158                                              ; +0x2a, 0x8a146\nLDR             R2, [R0,#0x28]                                         ; +0x2c, 0x8a148\nMOV             R0, R4                                                 ; +0x2e, 0x8a14a\nMOV             R1, R5                                                 ; +0x30, 0x8a14c\nCMP             R2, #0                                                 ; +0x32, 0x8a14e\nIT NE                                                                  ; +0x34, 0x8a150\nMOVNE           R2, #1                                                 ; +0x36, 0x8a152\nBL              sub_AB2D2                                              ; +0x38, 0x8a154\nADDS            R5, #1                                                 ; +0x3c, 0x8a158\nB               loc_8A124                                              ; +0x3e, 0x8a15a\nMOVS            R0, #0                                                 ; +0x40, 0x8a15c\nMOV.W           R1, #0x100                                             ; +0x42, 0x8a15e\nSTRD.W          R0, R0, [R4,#0x2B0]                                    ; +0x46, 0x8a162\nADD.W           R0, R4, #0x18C                                         ; +0x4a, 0x8a166\nBLX             __aeabi_memclr4                                        ; +0x4e, 0x8a16a\nMOVS            R0, #1                                                 ; +0x52, 0x8a16e\nSTRB.W          R0, [R4,#0x2A4]                                        ; +0x54, 0x8a170\nMOVS            R0, #0                                                 ; +0x58, 0x8a174\nPOP             {R4,R5,R7,PC}                                          ; +0x5a, 0x8a176", "xrefs": ["sub_8A7B0 @ 0x8a7b6"], "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"}