{"type": "func", "start": 337644, "end": 337698, "name": "sub_526EC", "pseudocode": "// \n// sub_526EC from 0x526ec to 0x52722 (54 bytes)\n// \n// 3 xrefs:\n// > sub_6B828 @ 0x6b84c\n// > sub_6B878 @ 0x6b88e\n// > sub_6B8B0 @ 0x6b8d2\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 ***__fastcall sub_526EC(int a1, int a2))(_DWORD)\n{\n  _DWORD *v2; // r4\n  _DWORD *v4; // r6\n  int (__fastcall ***v5)(_DWORD); // r5\n\n  v2 = (_DWORD *)(a1 + 20);\n  v4 = (_DWORD *)(a1 + 20);\n  while ( 1 )\n  {\n    v4 = (_DWORD *)*v4;\n    if ( v4 == v2 )\n      break;\n    v5 = (int (__fastcall ***)(_DWORD))v4;\n    if ( v4 )\n      v5 = (int (__fastcall ***)(_DWORD))(v4 - 1);\n    if ( (**v5)(v5) == a2 )\n      return v5;\n  }\n  return nullptr;\n}", "assembly": "; \n; sub_526EC from 0x526ec to 0x52722 (54 bytes)\n; \n; 3 xrefs:\n; > sub_6B828 @ 0x6b84c\n; > sub_6B878 @ 0x6b88e\n; > sub_6B8B0 @ 0x6b8d2\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-R7,LR}                                             ; +0x0, 0x526ec\nADD             R7, SP, #0xC                                           ; +0x2, 0x526ee\nPUSH.W          {R8}                                                   ; +0x4, 0x526f0\nADD.W           R4, R0, #0x14                                          ; +0x8, 0x526f4\nMOV             R8, R1                                                 ; +0xc, 0x526f8\nMOV             R6, R4                                                 ; +0xe, 0x526fa\nLDR             R6, [R6]                                               ; +0x10, 0x526fc\nCMP             R6, R4                                                 ; +0x12, 0x526fe\nBEQ             loc_52718                                              ; +0x14, 0x52700\nMOV             R5, R6                                                 ; +0x16, 0x52702\nCMP             R6, #0                                                 ; +0x18, 0x52704\nIT NE                                                                  ; +0x1a, 0x52706\nSUBNE           R5, #4                                                 ; +0x1c, 0x52708\nLDR             R0, [R5]                                               ; +0x1e, 0x5270a\nLDR             R1, [R0]                                               ; +0x20, 0x5270c\nMOV             R0, R5                                                 ; +0x22, 0x5270e\nBLX             R1                                                     ; +0x24, 0x52710\nCMP             R0, R8                                                 ; +0x26, 0x52712\nBNE             loc_526FC                                              ; +0x28, 0x52714\nB               loc_5271A                                              ; +0x2a, 0x52716\nMOVS            R5, #0                                                 ; +0x2c, 0x52718\nMOV             R0, R5                                                 ; +0x2e, 0x5271a\nPOP.W           {R8}                                                   ; +0x30, 0x5271c\nPOP             {R4-R7,PC}                                             ; +0x34, 0x52720", "xrefs": ["sub_6B828 @ 0x6b84c", "sub_6B878 @ 0x6b88e", "sub_6B8B0 @ 0x6b8d2"], "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"}