{"type": "func", "start": 563098, "end": 563162, "name": "sub_8979A", "pseudocode": "// \n// sub_8979A from 0x8979a to 0x897da (64 bytes)\n// \n// 0 xrefs:\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_8979A(int a1)\n{\n  int v2; // r0\n  void (__fastcall *v3)(int, _DWORD); // r2\n  int (*v4)(void); // r1\n  int result; // r0\n\n  v2 = *(_DWORD *)(a1 + 584);\n  if ( !v2 )\n    return sub_AA2E0(a1);\n  v3 = *(void (__fastcall **)(int, _DWORD))(v2 + 148);\n  if ( v3 && (*(_BYTE *)(v2 + 25) & 2) != 0 )\n  {\n    v3(v2, *(_DWORD *)(*(_DWORD *)(a1 + 412) + 104));\n    v2 = *(_DWORD *)(a1 + 584);\n    *(_DWORD *)(v2 + 24) &= ~0x200u;\n  }\n  v4 = *(int (**)(void))(v2 + 52);\n  if ( !v4 )\n    return sub_AA2E0(a1);\n  result = v4();\n  if ( !result )\n    return sub_AA2E0(a1);\n  return result;\n}", "assembly": "; \n; sub_8979A from 0x8979a to 0x897da (64 bytes)\n; \n; 0 xrefs:\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            {R4,R6,R7,LR}                                          ; +0x0, 0x8979a\nADD             R7, SP, #8                                             ; +0x2, 0x8979c\nMOV             R4, R0                                                 ; +0x4, 0x8979e\nLDR.W           R0, [R0,#0x248]                                        ; +0x6, 0x897a0\nCBZ             R0, loc_897D0                                          ; +0xa, 0x897a4\nLDR.W           R2, [R0,#0x94]                                         ; +0xc, 0x897a6\nCBZ             R2, loc_897C6                                          ; +0x10, 0x897aa\nLDRB            R1, [R0,#0x19]                                         ; +0x12, 0x897ac\nLSLS            R1, R1, #0x1E                                          ; +0x14, 0x897ae\nBPL             loc_897C6                                              ; +0x16, 0x897b0\nLDR.W           R1, [R4,#0x19C]                                        ; +0x18, 0x897b2\nLDR             R1, [R1,#0x68]                                         ; +0x1c, 0x897b6\nBLX             R2                                                     ; +0x1e, 0x897b8\nLDR.W           R0, [R4,#0x248]                                        ; +0x20, 0x897ba\nLDR             R1, [R0,#0x18]                                         ; +0x24, 0x897be\nBIC.W           R1, R1, #0x200                                         ; +0x26, 0x897c0\nSTR             R1, [R0,#0x18]                                         ; +0x2a, 0x897c4\nLDR             R1, [R0,#0x34]                                         ; +0x2c, 0x897c6\nCBZ             R1, loc_897D0                                          ; +0x2e, 0x897c8\nBLX             R1                                                     ; +0x30, 0x897ca\nCBZ             R0, loc_897D0                                          ; +0x32, 0x897cc\nPOP             {R4,R6,R7,PC}                                          ; +0x34, 0x897ce\nMOV             R0, R4                                                 ; +0x36, 0x897d0\nPOP.W           {R4,R6,R7,LR}                                          ; +0x38, 0x897d2\nB.W             sub_AA2E0                                              ; +0x3c, 0x897d6", "xrefs": [], "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"}