{"type": "func", "start": 337698, "end": 337772, "name": "sub_52722", "pseudocode": "// \n// sub_52722 from 0x52722 to 0x5276c (74 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_52722(int a1, int a2, int a3, int a4)\n{\n  _DWORD *v4; // r10\n  _DWORD *v8; // r4\n  _DWORD *v9; // r6\n  int result; // r0\n\n  v4 = (_DWORD *)(a1 + 20);\n  v8 = (_DWORD *)(a1 + 20);\n  while ( 1 )\n  {\n    v8 = (_DWORD *)*v8;\n    if ( v8 == v4 )\n      break;\n    v9 = v8;\n    if ( v8 )\n      v9 = v8 - 1;\n    if ( (*(int (__fastcall **)(_DWORD *))*v9)(v9) == a3 )\n    {\n      result = (*(int (__fastcall **)(_DWORD *, int, int, int))(*v9 + 40))(v9, a2, a3, a4);\n      if ( result )\n        return result;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_52722 from 0x52722 to 0x5276c (74 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-R7,LR}                                             ; +0x0, 0x52722\nADD             R7, SP, #0xC                                           ; +0x2, 0x52724\nPUSH.W          {R7-R11}                                               ; +0x4, 0x52726\nADD.W           R10, R0, #0x14                                         ; +0x8, 0x5272a\nMOV             R8, R3                                                 ; +0xc, 0x5272e\nMOV             R11, R2                                                ; +0xe, 0x52730\nMOV             R9, R1                                                 ; +0x10, 0x52732\nMOV             R4, R10                                                ; +0x12, 0x52734\nLDR             R4, [R4]                                               ; +0x14, 0x52736\nCMP             R4, R10                                                ; +0x16, 0x52738\nBEQ             loc_52764                                              ; +0x18, 0x5273a\nMOV             R6, R4                                                 ; +0x1a, 0x5273c\nCMP             R4, #0                                                 ; +0x1c, 0x5273e\nIT NE                                                                  ; +0x1e, 0x52740\nSUBNE           R6, #4                                                 ; +0x20, 0x52742\nLDR             R0, [R6]                                               ; +0x22, 0x52744\nLDR             R1, [R0]                                               ; +0x24, 0x52746\nMOV             R0, R6                                                 ; +0x26, 0x52748\nBLX             R1                                                     ; +0x28, 0x5274a\nCMP             R0, R11                                                ; +0x2a, 0x5274c\nBNE             loc_52736                                              ; +0x2c, 0x5274e\nLDR             R0, [R6]                                               ; +0x2e, 0x52750\nMOV             R1, R9                                                 ; +0x30, 0x52752\nMOV             R2, R11                                                ; +0x32, 0x52754\nMOV             R3, R8                                                 ; +0x34, 0x52756\nLDR             R5, [R0,#0x28]                                         ; +0x36, 0x52758\nMOV             R0, R6                                                 ; +0x38, 0x5275a\nBLX             R5                                                     ; +0x3a, 0x5275c\nCMP             R0, #0                                                 ; +0x3c, 0x5275e\nBEQ             loc_52736                                              ; +0x3e, 0x52760\nB               loc_52766                                              ; +0x40, 0x52762\nMOVS            R0, #0                                                 ; +0x42, 0x52764\nPOP.W           {R3,R8-R11}                                            ; +0x44, 0x52766\nPOP             {R4-R7,PC}                                             ; +0x48, 0x5276a", "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"}