{"type": "func", "start": 671504, "end": 671618, "name": "sub_A3F10", "pseudocode": "// \n// sub_A3F10 from 0xa3f10 to 0xa3f82 (114 bytes)\n// \n// 2 xrefs:\n// > sub_A3C1E @ 0xa3cba\n// > sub_A4376 @ 0xa43be\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_A3F10(int a1, int a2)\n{\n  float v2; // s0\n  int v3; // s2\n  float v4; // s0\n  int v5; // r1\n\n  v2 = *(float *)(a2 + 4);\n  v3 = dword_125998;\n  if ( v2 < *(float *)&dword_125998 || (v3 = dword_12599C, v2 > *(float *)&dword_12599C) )\n  {\n    v2 = *(float *)&v3;\n    *(_DWORD *)(a2 + 4) = v3;\n  }\n  *(float *)(a1 + 1788) = v2;\n  v4 = v2 * 0.001;\n  *(float *)(a1 + 1432) = v4;\n  v5 = (int)(float)(v4 * (float)*(int *)(a1 + 1832));\n  if ( !v5 )\n    v5 = 1;\n  *(_DWORD *)(a1 + 1468) = v5;\n  sub_A3F8C(a1, a1 + 1784);\n  return 0;\n}", "assembly": "; \n; sub_A3F10 from 0xa3f10 to 0xa3f82 (114 bytes)\n; \n; 2 xrefs:\n; > sub_A3C1E @ 0xa3cba\n; > sub_A4376 @ 0xa43be\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, 0xa3f10\nMOV             R7, SP                                                 ; +0x2, 0xa3f12\nLDR             R3, =(unk_125970 - 0xA3F22)                            ; +0x4, 0xa3f14\nADD.W           R2, R0, #0x598                                         ; +0x6, 0xa3f16\nVLDR            S0, [R1,#4]                                            ; +0xa, 0xa3f1a\nADD             R3, PC; unk_125970                                     ; +0xe, 0xa3f1e\nVLDR            S2, [R3,#(dword_125998 - 0x125970)]                    ; +0x10, 0xa3f20\nVCMPE.F32       S0, S2                                                 ; +0x14, 0xa3f24\nVMRS            APSR_nzcv, FPSCR                                       ; +0x18, 0xa3f28\nBLT             loc_A3F3C                                              ; +0x1c, 0xa3f2c\nVLDR            S2, [R3,#(dword_12599C - 0x125970)]                    ; +0x1e, 0xa3f2e\nVCMPE.F32       S0, S2                                                 ; +0x22, 0xa3f32\nVMRS            APSR_nzcv, FPSCR                                       ; +0x26, 0xa3f36\nBLE             loc_A3F44                                              ; +0x2a, 0xa3f3a\nVMOV.F32        S0, S2                                                 ; +0x2c, 0xa3f3c\nVSTR            S2, [R1,#4]                                            ; +0x30, 0xa3f40\nVLDR            S2, =0.001                                             ; +0x34, 0xa3f44\nADD.W           R1, R0, #0x728                                         ; +0x38, 0xa3f48\nVSTR            S0, [R2,#0x164]                                        ; +0x3c, 0xa3f4c\nVMUL.F32        S0, S0, S2                                             ; +0x40, 0xa3f50\nVSTR            S0, [R2]                                               ; +0x44, 0xa3f54\nVLDR            S2, [R1]                                               ; +0x48, 0xa3f58\nVCVT.F32.S32    S2, S2                                                 ; +0x4c, 0xa3f5c\nVMUL.F32        S0, S0, S2                                             ; +0x50, 0xa3f60\nVCVT.S32.F32    S0, S0                                                 ; +0x54, 0xa3f64\nVMOV            R1, S0                                                 ; +0x58, 0xa3f68\nCMP             R1, #0                                                 ; +0x5c, 0xa3f6c\nIT EQ                                                                  ; +0x5e, 0xa3f6e\nMOVEQ           R1, #1                                                 ; +0x60, 0xa3f70\nSTR.W           R1, [R0,#0x5BC]                                        ; +0x62, 0xa3f72\nADD.W           R1, R0, #0x6F8                                         ; +0x66, 0xa3f76\nBL              sub_A3F8C                                              ; +0x6a, 0xa3f7a\nMOVS            R0, #0                                                 ; +0x6e, 0xa3f7e\nPOP             {R7,PC}                                                ; +0x70, 0xa3f80", "xrefs": ["sub_A3C1E @ 0xa3cba", "sub_A4376 @ 0xa43be"], "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"}