{"type": "func", "start": 337574, "end": 337644, "name": "sub_526A6", "pseudocode": "// \n// sub_526A6 from 0x526a6 to 0x526ec (70 bytes)\n// \n// 1 xrefs:\n// > sub_6B444 @ 0x6b4b2\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\n_DWORD *__fastcall sub_526A6(int a1, int a2)\n{\n  _DWORD *v2; // r6\n  _DWORD *v4; // r5\n  _DWORD *v5; // r4\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 = v4;\n    if ( v4 )\n      v5 = v4 - 1;\n    if ( (*(int (__fastcall **)(_DWORD *))*v5)(v5) == *(unsigned __int8 *)(a2 + 8)\n      && (*(int (__fastcall **)(_DWORD *))(*v5 + 4))(v5) )\n    {\n      return v5;\n    }\n  }\n  return nullptr;\n}", "assembly": "; \n; sub_526A6 from 0x526a6 to 0x526ec (70 bytes)\n; \n; 1 xrefs:\n; > sub_6B444 @ 0x6b4b2\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, 0x526a6\nADD             R7, SP, #0xC                                           ; +0x2, 0x526a8\nPUSH.W          {R8}                                                   ; +0x4, 0x526aa\nADD.W           R6, R0, #0x14                                          ; +0x8, 0x526ae\nMOV             R8, R1                                                 ; +0xc, 0x526b2\nMOV             R5, R6                                                 ; +0xe, 0x526b4\nLDR             R5, [R5]                                               ; +0x10, 0x526b6\nCMP             R5, R6                                                 ; +0x12, 0x526b8\nBEQ             loc_526E2                                              ; +0x14, 0x526ba\nMOV             R4, R5                                                 ; +0x16, 0x526bc\nCMP             R5, #0                                                 ; +0x18, 0x526be\nIT NE                                                                  ; +0x1a, 0x526c0\nSUBNE           R4, #4                                                 ; +0x1c, 0x526c2\nLDR             R0, [R4]                                               ; +0x1e, 0x526c4\nLDR             R1, [R0]                                               ; +0x20, 0x526c6\nMOV             R0, R4                                                 ; +0x22, 0x526c8\nBLX             R1                                                     ; +0x24, 0x526ca\nLDRB.W          R1, [R8,#8]                                            ; +0x26, 0x526cc\nCMP             R0, R1                                                 ; +0x2a, 0x526d0\nBNE             loc_526B6                                              ; +0x2c, 0x526d2\nLDR             R0, [R4]                                               ; +0x2e, 0x526d4\nLDR             R1, [R0,#4]                                            ; +0x30, 0x526d6\nMOV             R0, R4                                                 ; +0x32, 0x526d8\nBLX             R1                                                     ; +0x34, 0x526da\nCMP             R0, #0                                                 ; +0x36, 0x526dc\nBEQ             loc_526B6                                              ; +0x38, 0x526de\nB               loc_526E4                                              ; +0x3a, 0x526e0\nMOVS            R4, #0                                                 ; +0x3c, 0x526e2\nMOV             R0, R4                                                 ; +0x3e, 0x526e4\nPOP.W           {R8}                                                   ; +0x40, 0x526e6\nPOP             {R4-R7,PC}                                             ; +0x44, 0x526ea", "xrefs": ["sub_6B444 @ 0x6b4b2"], "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"}