{"type": "func", "start": 337772, "end": 337846, "name": "sub_5276C", "pseudocode": "// \n// sub_5276C from 0x5276c to 0x527b6 (74 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:44 +0000\n// \n\nint __fastcall sub_5276C(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 + 44))(v9, a2, a3, a4);\n      if ( result )\n        return result;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_5276C from 0x5276c to 0x527b6 (74 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:44 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5276c\nADD             R7, SP, #0xC                                           ; +0x2, 0x5276e\nPUSH.W          {R7-R11}                                               ; +0x4, 0x52770\nADD.W           R10, R0, #0x14                                         ; +0x8, 0x52774\nMOV             R8, R3                                                 ; +0xc, 0x52778\nMOV             R11, R2                                                ; +0xe, 0x5277a\nMOV             R9, R1                                                 ; +0x10, 0x5277c\nMOV             R4, R10                                                ; +0x12, 0x5277e\nLDR             R4, [R4]                                               ; +0x14, 0x52780\nCMP             R4, R10                                                ; +0x16, 0x52782\nBEQ             loc_527AE                                              ; +0x18, 0x52784\nMOV             R6, R4                                                 ; +0x1a, 0x52786\nCMP             R4, #0                                                 ; +0x1c, 0x52788\nIT NE                                                                  ; +0x1e, 0x5278a\nSUBNE           R6, #4                                                 ; +0x20, 0x5278c\nLDR             R0, [R6]                                               ; +0x22, 0x5278e\nLDR             R1, [R0]                                               ; +0x24, 0x52790\nMOV             R0, R6                                                 ; +0x26, 0x52792\nBLX             R1                                                     ; +0x28, 0x52794\nCMP             R0, R11                                                ; +0x2a, 0x52796\nBNE             loc_52780                                              ; +0x2c, 0x52798\nLDR             R0, [R6]                                               ; +0x2e, 0x5279a\nMOV             R1, R9                                                 ; +0x30, 0x5279c\nMOV             R2, R11                                                ; +0x32, 0x5279e\nMOV             R3, R8                                                 ; +0x34, 0x527a0\nLDR             R5, [R0,#0x2C]                                         ; +0x36, 0x527a2\nMOV             R0, R6                                                 ; +0x38, 0x527a4\nBLX             R5                                                     ; +0x3a, 0x527a6\nCMP             R0, #0                                                 ; +0x3c, 0x527a8\nBEQ             loc_52780                                              ; +0x3e, 0x527aa\nB               loc_527B0                                              ; +0x40, 0x527ac\nMOVS            R0, #0                                                 ; +0x42, 0x527ae\nPOP.W           {R3,R8-R11}                                            ; +0x44, 0x527b0\nPOP             {R4-R7,PC}                                             ; +0x48, 0x527b4", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}