{"type": "func", "start": 347832, "end": 347876, "name": "sub_54EB8", "pseudocode": "// \n// sub_54EB8 from 0x54eb8 to 0x54ee4 (44 bytes)\n// \n// 2 xrefs:\n// > sub_54E84 @ 0x54ea2\n// > sub_62B54 @ 0x6368c\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_54EB8(_DWORD *a1, int a2)\n{\n  int result; // r0\n\n  if ( !a2 || (*(_BYTE *)(a2 + 62) & 0x10) != 0 )\n    return 0;\n  if ( *a1 )\n    return 28;\n  result = sub_64EC0(a2, 13);\n  if ( !result )\n  {\n    *a1 = a2;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_54EB8 from 0x54eb8 to 0x54ee4 (44 bytes)\n; \n; 2 xrefs:\n; > sub_54E84 @ 0x54ea2\n; > sub_62B54 @ 0x6368c\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,R5,R7,LR}                                          ; +0x0, 0x54eb8\nADD             R7, SP, #8                                             ; +0x2, 0x54eba\nCBZ             R1, loc_54EE0                                          ; +0x4, 0x54ebc\nMOV             R5, R0                                                 ; +0x6, 0x54ebe\nLDRB.W          R0, [R1,#0x3E]                                         ; +0x8, 0x54ec0\nMOV             R4, R1                                                 ; +0xc, 0x54ec4\nLSLS            R0, R0, #0x1B                                          ; +0xe, 0x54ec6\nBMI             loc_54EE0                                              ; +0x10, 0x54ec8\nLDR             R0, [R5]                                               ; +0x12, 0x54eca\nCBZ             R0, loc_54ED2                                          ; +0x14, 0x54ecc\nMOVS            R0, #0x1C                                              ; +0x16, 0x54ece\nPOP             {R4,R5,R7,PC}                                          ; +0x18, 0x54ed0\nMOV             R0, R4                                                 ; +0x1a, 0x54ed2\nMOVS            R1, #0xD                                               ; +0x1c, 0x54ed4\nBL              sub_64EC0                                              ; +0x1e, 0x54ed6\nCBZ             R0, loc_54EDE                                          ; +0x22, 0x54eda\nPOP             {R4,R5,R7,PC}                                          ; +0x24, 0x54edc\nSTR             R4, [R5]                                               ; +0x26, 0x54ede\nMOVS            R0, #0                                                 ; +0x28, 0x54ee0\nPOP             {R4,R5,R7,PC}                                          ; +0x2a, 0x54ee2", "xrefs": ["sub_54E84 @ 0x54ea2", "sub_62B54 @ 0x6368c"], "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"}