{"type": "func", "start": 302420, "end": 302476, "name": "sub_49D54", "pseudocode": "// \n// sub_49D54 from 0x49d54 to 0x49d8c (56 bytes)\n// \n// 2 xrefs:\n// > sub_49D54 @ 0x49d7a\n// > sub_62108 @ 0x62158\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:40 +0000\n// \n\nint __fastcall sub_49D54(_DWORD *a1, int a2)\n{\n  int result; // r0\n  _DWORD *v5; // r5\n  _DWORD *v6; // r6\n\n  result = (*(int (__fastcall **)(_DWORD *))(*a1 + 60))(a1);\n  if ( !result )\n  {\n    v5 = a1 + 73;\n    v6 = v5;\n    while ( 1 )\n    {\n      v6 = (_DWORD *)*v6;\n      if ( v6 == v5 )\n        break;\n      result = sub_49D54(v6[2], a2);\n      if ( result )\n        return result;\n    }\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_49D54 from 0x49d54 to 0x49d8c (56 bytes)\n; \n; 2 xrefs:\n; > sub_49D54 @ 0x49d7a\n; > sub_62108 @ 0x62158\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:40 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x49d54\nADD             R7, SP, #0xC                                           ; +0x2, 0x49d56\nPUSH.W          {R11}                                                  ; +0x4, 0x49d58\nMOV             R5, R0                                                 ; +0x8, 0x49d5c\nLDR             R0, [R0]                                               ; +0xa, 0x49d5e\nMOV             R4, R1                                                 ; +0xc, 0x49d60\nLDR             R2, [R0,#0x3C]                                         ; +0xe, 0x49d62\nMOV             R0, R5                                                 ; +0x10, 0x49d64\nBLX             R2                                                     ; +0x12, 0x49d66\nCBNZ            R0, loc_49D86                                          ; +0x14, 0x49d68\nADD.W           R5, R5, #0x124                                         ; +0x16, 0x49d6a\nMOV             R6, R5                                                 ; +0x1a, 0x49d6e\nLDR             R6, [R6]                                               ; +0x1c, 0x49d70\nCMP             R6, R5                                                 ; +0x1e, 0x49d72\nBEQ             loc_49D84                                              ; +0x20, 0x49d74\nLDR             R0, [R6,#8]                                            ; +0x22, 0x49d76\nMOV             R1, R4                                                 ; +0x24, 0x49d78\nBL              sub_49D54                                              ; +0x26, 0x49d7a\nCMP             R0, #0                                                 ; +0x2a, 0x49d7e\nBEQ             loc_49D70                                              ; +0x2c, 0x49d80\nB               loc_49D86                                              ; +0x2e, 0x49d82\nMOVS            R0, #0                                                 ; +0x30, 0x49d84\nPOP.W           {R11}                                                  ; +0x32, 0x49d86\nPOP             {R4-R7,PC}                                             ; +0x36, 0x49d8a", "xrefs": ["sub_49D54 @ 0x49d7a", "sub_62108 @ 0x62158"], "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"}