{"type": "func", "start": 310904, "end": 310960, "name": "sub_4BE78", "pseudocode": "// \n// sub_4BE78 from 0x4be78 to 0x4beb0 (56 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_4BE78(float *a1, float a2, int a3, int a4)\n{\n  int result; // r0\n  int v7; // r3\n  int v9; // [sp+4h] [bp-Ch] BYREF\n  _DWORD savedregs[4]; // [sp+8h] [bp-8h]\n\n  v9 = a4;\n  result = sub_47C6C((int)a1, a2);\n  if ( !result )\n  {\n    result = (*(int (__fastcall **)(float *, _DWORD, int *))(*(_DWORD *)a1 + 144))(a1, 0, &v9);\n    if ( !result )\n    {\n      result = sub_ABA38(v9, LODWORD(a2), 1, v7, a3, v9, savedregs[0]);\n      if ( !result )\n        return sub_4A40A((int)a1, a1[97]);\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_4BE78 from 0x4be78 to 0x4beb0 (56 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            {R2-R5,R7,LR}                                          ; +0x0, 0x4be78\nADD             R7, SP, #0x10                                          ; +0x2, 0x4be7a\nMOV             R5, R1                                                 ; +0x4, 0x4be7c\nMOV             R4, R0                                                 ; +0x6, 0x4be7e\nBL              sub_47C6C                                              ; +0x8, 0x4be80\nCBNZ            R0, loc_4BEAC                                          ; +0xc, 0x4be84\nLDR             R0, [R4]                                               ; +0xe, 0x4be86\nADD             R2, SP, #8+var_4                                       ; +0x10, 0x4be88\nMOVS            R1, #0                                                 ; +0x12, 0x4be8a\nLDR.W           R3, [R0,#0x90]                                         ; +0x14, 0x4be8c\nMOV             R0, R4                                                 ; +0x18, 0x4be90\nBLX             R3                                                     ; +0x1a, 0x4be92\nCBNZ            R0, loc_4BEAC                                          ; +0x1c, 0x4be94\nLDR             R0, [SP,#8+var_4]                                      ; +0x1e, 0x4be96\nMOV             R1, R5                                                 ; +0x20, 0x4be98\nMOVS            R2, #1                                                 ; +0x22, 0x4be9a\nBL              sub_ABA38                                              ; +0x24, 0x4be9c\nCBNZ            R0, loc_4BEAC                                          ; +0x28, 0x4bea0\nLDR.W           R1, [R4,#0x184]                                        ; +0x2a, 0x4bea2\nMOV             R0, R4                                                 ; +0x2e, 0x4bea6\nBL              sub_4A40A                                              ; +0x30, 0x4bea8\nADD             SP, SP, #8                                             ; +0x34, 0x4beac\nPOP             {R4,R5,R7,PC}                                          ; +0x36, 0x4beae", "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"}