{"type": "func", "start": 671828, "end": 671892, "name": "sub_A4054", "pseudocode": "// \n// sub_A4054 from 0xa4054 to 0xa4094 (64 bytes)\n// \n// 2 xrefs:\n// > sub_A3C1E @ 0xa3cd2\n// > sub_A4376 @ 0xa4418\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:41:34 +0000\n// \n\nint __fastcall sub_A4054(int a1, int a2)\n{\n  float v2; // s0\n  int v3; // s2\n\n  v2 = *(float *)(a2 + 16);\n  v3 = dword_125A70;\n  if ( v2 < *(float *)&dword_125A70 || (v3 = LODWORD(flt_125A74), v2 > flt_125A74) )\n  {\n    v2 = *(float *)&v3;\n    *(_DWORD *)(a2 + 16) = v3;\n  }\n  *(float *)(a1 + 1800) = v2;\n  sub_A3DF8(a1, a2);\n  return 0;\n}", "assembly": "; \n; sub_A4054 from 0xa4054 to 0xa4094 (64 bytes)\n; \n; 2 xrefs:\n; > sub_A3C1E @ 0xa3cd2\n; > sub_A4376 @ 0xa4418\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:41:34 +0000\n; \nPUSH            {R7,LR}                                                ; +0x0, 0xa4054\nMOV             R7, SP                                                 ; +0x2, 0xa4056\nLDR             R2, =(unk_125A48 - 0xA4062)                            ; +0x4, 0xa4058\nVLDR            S0, [R1,#0x10]                                         ; +0x6, 0xa405a\nADD             R2, PC; unk_125A48                                     ; +0xa, 0xa405e\nVLDR            S2, [R2,#(dword_125A70 - 0x125A48)]                    ; +0xc, 0xa4060\nVCMPE.F32       S0, S2                                                 ; +0x10, 0xa4064\nVMRS            APSR_nzcv, FPSCR                                       ; +0x14, 0xa4068\nBLT             loc_A407C                                              ; +0x18, 0xa406c\nVLDR            S2, [R2,#(flt_125A74 - 0x125A48)]                      ; +0x1a, 0xa406e\nVCMPE.F32       S0, S2                                                 ; +0x1e, 0xa4072\nVMRS            APSR_nzcv, FPSCR                                       ; +0x22, 0xa4076\nBLE             loc_A4084                                              ; +0x26, 0xa407a\nVMOV.F32        S0, S2                                                 ; +0x28, 0xa407c\nVSTR            S2, [R1,#0x10]                                         ; +0x2c, 0xa4080\nADD.W           R2, R0, #0x708                                         ; +0x30, 0xa4084\nVSTR            S0, [R2]                                               ; +0x34, 0xa4088\nBL              sub_A3DF8                                              ; +0x38, 0xa408c\nMOVS            R0, #0                                                 ; +0x3c, 0xa4090\nPOP             {R7,PC}                                                ; +0x3e, 0xa4092", "xrefs": ["sub_A3C1E @ 0xa3cd2", "sub_A4376 @ 0xa4418"], "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"}