{"type": "func", "start": 701138, "end": 701194, "name": "sub_AB2D2", "pseudocode": "// \n// sub_AB2D2 from 0xab2d2 to 0xab30a (56 bytes)\n// \n// 6 xrefs:\n// > sub_5C160 @ 0x5c19c\n// > sub_687EA @ 0x6886a\n// > sub_8A11C @ 0x8a154\n// > sub_95264 @ 0x952bc\n// > sub_99830 @ 0x998e0\n// > FMOD::DSP::setParameterBool @ 0xb1902\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_AB2D2(int a1, int a2)\n{\n  _DWORD *v2; // r4\n  int (__fastcall *v3)(int); // r3\n\n  if ( a2 < 0 )\n    return 31;\n  v2 = *(_DWORD **)(a1 + 164);\n  if ( !v2 || v2[18] <= a2 )\n    return 31;\n  v3 = (int (__fastcall *)(int))v2[22];\n  if ( v3 )\n  {\n    if ( **(_DWORD **)(v2[19] + 4 * a2) == 2 )\n    {\n      *(_DWORD *)(a1 + 132) = a1;\n      return v3(a1 + 132);\n    }\n    return 31;\n  }\n  return 68;\n}", "assembly": "; \n; sub_AB2D2 from 0xab2d2 to 0xab30a (56 bytes)\n; \n; 6 xrefs:\n; > sub_5C160 @ 0x5c19c\n; > sub_687EA @ 0x6886a\n; > sub_8A11C @ 0x8a154\n; > sub_95264 @ 0x952bc\n; > sub_99830 @ 0x998e0\n; > FMOD::DSP::setParameterBool @ 0xb1902\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, 0xab2d2\nADD             R7, SP, #8                                             ; +0x2, 0xab2d4\nCMP             R1, #0                                                 ; +0x4, 0xab2d6\nBMI             loc_AB302                                              ; +0x6, 0xab2d8\nLDR.W           R4, [R0,#0xA4]                                         ; +0x8, 0xab2da\nCBZ             R4, loc_AB302                                          ; +0xc, 0xab2de\nLDR             R3, [R4,#0x48]                                         ; +0xe, 0xab2e0\nCMP             R3, R1                                                 ; +0x10, 0xab2e2\nBLE             loc_AB302                                              ; +0x12, 0xab2e4\nLDR             R3, [R4,#0x58]                                         ; +0x14, 0xab2e6\nCBZ             R3, loc_AB306                                          ; +0x16, 0xab2e8\nLDR             R4, [R4,#0x4C]                                         ; +0x18, 0xab2ea\nLDR.W           R4, [R4,R1,LSL#2]                                      ; +0x1a, 0xab2ec\nLDR             R4, [R4]                                               ; +0x1e, 0xab2f0\nCMP             R4, #2                                                 ; +0x20, 0xab2f2\nBNE             loc_AB302                                              ; +0x22, 0xab2f4\nSTR.W           R0, [R0,#0x84]                                         ; +0x24, 0xab2f6\nADDS            R0, #0x84                                              ; +0x28, 0xab2fa\nPOP.W           {R4,R6,R7,LR}                                          ; +0x2a, 0xab2fc\nBX              R3                                                     ; +0x2e, 0xab300\nMOVS            R0, #0x1F                                              ; +0x30, 0xab302\nPOP             {R4,R6,R7,PC}                                          ; +0x32, 0xab304\nMOVS            R0, #0x44 ; 'D'                                        ; +0x34, 0xab306\nPOP             {R4,R6,R7,PC}                                          ; +0x36, 0xab308", "xrefs": ["sub_5C160 @ 0x5c19c", "sub_687EA @ 0x6886a", "sub_8A11C @ 0x8a154", "sub_95264 @ 0x952bc", "sub_99830 @ 0x998e0", "FMOD::DSP::setParameterBool @ 0xb1902"], "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"}