{"type": "func", "start": 285784, "end": 285864, "name": "sub_45C58", "pseudocode": "// \n// sub_45C58 from 0x45c58 to 0x45ca8 (80 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x45c56\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:37 +0000\n// \n\nint __fastcall sub_45C58(int a1, float a2)\n{\n  int result; // r0\n  int v5; // r3\n  int v6; // r1\n  int v7; // r6\n\n  if ( (*(_BYTE *)(a1 + 32) & 0x80) == 0 )\n  {\n    result = sub_45A6C((_DWORD *)a1, a2);\n    if ( result )\n      return result;\n    if ( *(_DWORD *)(a1 + 536) )\n    {\n      v6 = 0;\n      while ( 1 )\n      {\n        v7 = v6 + 12;\n        if ( v6 == 48 )\n          break;\n        result = sub_45984((_DWORD *)a1, *(_DWORD *)(a1 + 4) + v6 + 71688, a2, v5);\n        v6 = v7;\n        if ( result )\n          return result;\n      }\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_45C58 from 0x45c58 to 0x45ca8 (80 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x45c56\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:37 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x45c58\nADD             R7, SP, #0xC                                           ; +0x2, 0x45c5a\nPUSH.W          {R8}                                                   ; +0x4, 0x45c5c\nMOV             R5, R0                                                 ; +0x8, 0x45c60\nLDRB.W          R0, [R0,#0x20]                                         ; +0xa, 0x45c62\nLSLS            R0, R0, #0x18                                          ; +0xe, 0x45c66\nBMI             loc_45CA0                                              ; +0x10, 0x45c68\nMOV             R0, R5                                                 ; +0x12, 0x45c6a\nMOV             R4, R1                                                 ; +0x14, 0x45c6c\nBL              sub_45A6C                                              ; +0x16, 0x45c6e\nCBNZ            R0, loc_45CA2                                          ; +0x1a, 0x45c72\nLDR.W           R0, [R5,#0x218]                                        ; +0x1c, 0x45c74\nCBZ             R0, loc_45CA0                                          ; +0x20, 0x45c78\nLDR             R0, =0x11808                                           ; +0x22, 0x45c7a\nMOVS            R1, #0                                                 ; +0x24, 0x45c7c\nMOV             R8, R0                                                 ; +0x26, 0x45c7e\nADD.W           R6, R1, #0xC                                           ; +0x28, 0x45c80\nCMP             R6, #0x3C ; '<'                                        ; +0x2c, 0x45c84\nBEQ             loc_45CA0                                              ; +0x2e, 0x45c86\nLDR             R0, [R5,#4]                                            ; +0x30, 0x45c88\nMOV             R2, R4                                                 ; +0x32, 0x45c8a\nADD             R0, R1                                                 ; +0x34, 0x45c8c\nADD.W           R1, R0, R8                                             ; +0x36, 0x45c8e\nMOV             R0, R5                                                 ; +0x3a, 0x45c92\nBL              sub_45984                                              ; +0x3c, 0x45c94\nCMP             R0, #0                                                 ; +0x40, 0x45c98\nMOV             R1, R6                                                 ; +0x42, 0x45c9a\nBEQ             loc_45C80                                              ; +0x44, 0x45c9c\nB               loc_45CA2                                              ; +0x46, 0x45c9e\nMOVS            R0, #0                                                 ; +0x48, 0x45ca0\nPOP.W           {R8}                                                   ; +0x4a, 0x45ca2\nPOP             {R4-R7,PC}                                             ; +0x4e, 0x45ca6", "xrefs": ["<???> @ 0x45c56"], "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"}