{"type": "func", "start": 671756, "end": 671824, "name": "sub_A400C", "pseudocode": "// \n// sub_A400C from 0xa400c to 0xa4050 (68 bytes)\n// \n// 2 xrefs:\n// > sub_A3C1E @ 0xa3cca\n// > sub_A4376 @ 0xa43fa\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_A400C(int a1, int a2)\n{\n  float v2; // s0\n  int v3; // s2\n\n  v2 = *(float *)(a2 + 12);\n  v3 = dword_125A28;\n  if ( v2 < *(float *)&dword_125A28 || (v3 = dword_125A2C, v2 > *(float *)&dword_125A2C) )\n  {\n    v2 = *(float *)&v3;\n    *(_DWORD *)(a2 + 12) = v3;\n  }\n  *(float *)(a1 + 1796) = v2;\n  sub_A3DF8(a1, a1 + 1784);\n  return 0;\n}", "assembly": "; \n; sub_A400C from 0xa400c to 0xa4050 (68 bytes)\n; \n; 2 xrefs:\n; > sub_A3C1E @ 0xa3cca\n; > sub_A4376 @ 0xa43fa\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            {R7,LR}                                                ; +0x0, 0xa400c\nMOV             R7, SP                                                 ; +0x2, 0xa400e\nLDR             R2, =(unk_125A00 - 0xA401A)                            ; +0x4, 0xa4010\nVLDR            S0, [R1,#0xC]                                          ; +0x6, 0xa4012\nADD             R2, PC; unk_125A00                                     ; +0xa, 0xa4016\nVLDR            S2, [R2,#(dword_125A28 - 0x125A00)]                    ; +0xc, 0xa4018\nVCMPE.F32       S0, S2                                                 ; +0x10, 0xa401c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x14, 0xa4020\nBLT             loc_A4034                                              ; +0x18, 0xa4024\nVLDR            S2, [R2,#(dword_125A2C - 0x125A00)]                    ; +0x1a, 0xa4026\nVCMPE.F32       S0, S2                                                 ; +0x1e, 0xa402a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x22, 0xa402e\nBLE             loc_A403C                                              ; +0x26, 0xa4032\nVMOV.F32        S0, S2                                                 ; +0x28, 0xa4034\nVSTR            S2, [R1,#0xC]                                          ; +0x2c, 0xa4038\nADDW            R1, R0, #0x704                                         ; +0x30, 0xa403c\nVSTR            S0, [R1]                                               ; +0x34, 0xa4040\nADD.W           R1, R0, #0x6F8                                         ; +0x38, 0xa4044\nBL              sub_A3DF8                                              ; +0x3c, 0xa4048\nMOVS            R0, #0                                                 ; +0x40, 0xa404c\nPOP             {R7,PC}                                                ; +0x42, 0xa404e", "xrefs": ["sub_A3C1E @ 0xa3cca", "sub_A4376 @ 0xa43fa"], "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"}