{"type": "func", "start": 672084, "end": 672148, "name": "sub_A4154", "pseudocode": "// \n// sub_A4154 from 0xa4154 to 0xa4194 (64 bytes)\n// \n// 2 xrefs:\n// > sub_A3C1E @ 0xa3cea\n// > sub_A4376 @ 0xa4472\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_A4154(int a1, int a2)\n{\n  float v2; // s0\n  int v3; // s2\n\n  v2 = *(float *)(a2 + 28);\n  v3 = dword_125B48;\n  if ( v2 < *(float *)&dword_125B48 || (v3 = dword_125B4C, v2 > *(float *)&dword_125B4C) )\n  {\n    v2 = *(float *)&v3;\n    *(_DWORD *)(a2 + 28) = v3;\n  }\n  *(float *)(a1 + 1812) = v2;\n  sub_A44F4();\n  return 0;\n}", "assembly": "; \n; sub_A4154 from 0xa4154 to 0xa4194 (64 bytes)\n; \n; 2 xrefs:\n; > sub_A3C1E @ 0xa3cea\n; > sub_A4376 @ 0xa4472\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, 0xa4154\nMOV             R7, SP                                                 ; +0x2, 0xa4156\nLDR             R2, =(unk_125B20 - 0xA4162)                            ; +0x4, 0xa4158\nVLDR            S0, [R1,#0x1C]                                         ; +0x6, 0xa415a\nADD             R2, PC; unk_125B20                                     ; +0xa, 0xa415e\nVLDR            S2, [R2,#(dword_125B48 - 0x125B20)]                    ; +0xc, 0xa4160\nVCMPE.F32       S0, S2                                                 ; +0x10, 0xa4164\nVMRS            APSR_nzcv, FPSCR                                       ; +0x14, 0xa4168\nBLT             loc_A417C                                              ; +0x18, 0xa416c\nVLDR            S2, [R2,#(dword_125B4C - 0x125B20)]                    ; +0x1a, 0xa416e\nVCMPE.F32       S0, S2                                                 ; +0x1e, 0xa4172\nVMRS            APSR_nzcv, FPSCR                                       ; +0x22, 0xa4176\nBLE             loc_A4184                                              ; +0x26, 0xa417a\nVMOV.F32        S0, S2                                                 ; +0x28, 0xa417c\nVSTR            S2, [R1,#0x1C]                                         ; +0x2c, 0xa4180\nADDW            R2, R0, #0x714                                         ; +0x30, 0xa4184\nVSTR            S0, [R2]                                               ; +0x34, 0xa4188\nBL              sub_A44F4                                              ; +0x38, 0xa418c\nMOVS            R0, #0                                                 ; +0x3c, 0xa4190\nPOP             {R7,PC}                                                ; +0x3e, 0xa4192", "xrefs": ["sub_A3C1E @ 0xa3cea", "sub_A4376 @ 0xa4472"], "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"}