{"type": "func", "start": 341988, "end": 342032, "name": "sub_537E4", "pseudocode": "// \n// sub_537E4 from 0x537e4 to 0x53810 (44 bytes)\n// \n// 2 xrefs:\n// > sub_57338 @ 0x5754c\n// > sub_62010 @ 0x62048\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_537E4(int a1)\n{\n  int v2; // r0\n  int result; // r0\n\n  v2 = *(_DWORD *)(a1 + 4);\n  if ( !v2 )\n    return 0;\n  result = sub_AAEE0(v2, 0, 0, 4);\n  if ( !result )\n  {\n    result = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 4) + 8))(*(_DWORD *)(a1 + 4));\n    if ( !result )\n    {\n      *(_DWORD *)(a1 + 4) = 0;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_537E4 from 0x537e4 to 0x53810 (44 bytes)\n; \n; 2 xrefs:\n; > sub_57338 @ 0x5754c\n; > sub_62010 @ 0x62048\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,R6,R7,LR}                                          ; +0x0, 0x537e4\nADD             R7, SP, #8                                             ; +0x2, 0x537e6\nMOV             R4, R0                                                 ; +0x4, 0x537e8\nLDR             R0, [R0,#4]                                            ; +0x6, 0x537ea\nCBZ             R0, loc_53806                                          ; +0x8, 0x537ec\nMOVS            R1, #0                                                 ; +0xa, 0x537ee\nMOVS            R2, #0                                                 ; +0xc, 0x537f0\nMOVS            R3, #4                                                 ; +0xe, 0x537f2\nBL              sub_AAEE0                                              ; +0x10, 0x537f4\nCBNZ            R0, locret_53804                                       ; +0x14, 0x537f8\nLDR             R0, [R4,#4]                                            ; +0x16, 0x537fa\nLDR             R1, [R0]                                               ; +0x18, 0x537fc\nLDR             R1, [R1,#8]                                            ; +0x1a, 0x537fe\nBLX             R1                                                     ; +0x1c, 0x53800\nCBZ             R0, loc_5380A                                          ; +0x1e, 0x53802\nPOP             {R4,R6,R7,PC}                                          ; +0x20, 0x53804\nMOVS            R0, #0                                                 ; +0x22, 0x53806\nPOP             {R4,R6,R7,PC}                                          ; +0x24, 0x53808\nMOVS            R0, #0                                                 ; +0x26, 0x5380a\nSTR             R0, [R4,#4]                                            ; +0x28, 0x5380c\nPOP             {R4,R6,R7,PC}                                          ; +0x2a, 0x5380e", "xrefs": ["sub_57338 @ 0x5754c", "sub_62010 @ 0x62048"], "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"}