{"type": "func", "start": 673132, "end": 673410, "name": "sub_A456C", "pseudocode": "// \n// sub_A456C from 0xa456c to 0xa4682 (278 bytes)\n// \n// 3 xrefs:\n// > sub_A3DF8 @ 0xa3ee8\n// > sub_A420C @ 0xa4244\n// > sub_A4376 @ 0xa44cc\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_A456C(int a1, int a2)\n{\n  float v3; // s2\n  float *v4; // r5\n  int v5; // s0\n  float v6; // s16\n  float v7; // s20\n  float v8; // s18\n  float v9; // s22\n  float v10; // s24\n  float v11; // r0\n  float v12; // s2\n  float *v13; // r1\n  int v14; // r2\n  float v15; // s4\n  float v16; // s4\n  int v17; // r0\n  float v18; // s6\n  float v19; // s4\n  float v20; // s2\n\n  v3 = *(float *)(a2 + 40);\n  v4 = (float *)(a1 + 1032);\n  v5 = dword_125C20;\n  if ( v3 < *(float *)&dword_125C20 || (v5 = dword_125C24, v3 > *(float *)&dword_125C24) )\n  {\n    v3 = *(float *)&v5;\n    *(_DWORD *)(a2 + 40) = v5;\n  }\n  *(float *)(a1 + 1824) = v3;\n  v6 = 1.0;\n  v7 = *(float *)(a2 + 44);\n  v8 = *(float *)(a2 + 40) * 0.01;\n  v9 = 1.0 - v8;\n  v10 = sqrtf(2.0 / (float)((float)(v8 * v8) + (float)(v9 * v9)));\n  v11 = powf(10.0, v7 * 0.05);\n  v12 = 0.0;\n  v13 = (float *)(a1 + 884);\n  v14 = 0;\n  v15 = 0.0;\n  if ( v7 > -80.0 )\n    v15 = v11;\n  v16 = v10 * v15;\n  *v4 = (float)(v16 * 0.35355) * v9;\n  v17 = *(_DWORD *)(a1 + 1096);\n  while ( v14 < v17 )\n  {\n    v18 = *v13++;\n    ++v14;\n    v12 = v12 + (float)(v18 * v18);\n  }\n  v19 = v16 * v8;\n  v20 = v12 / (float)v17;\n  if ( v20 == 1.0 || (v6 = (float)(v20 / (float)(1.0 - v20)) + 1.0, v6 > 0.0) )\n    v19 = v19 / sqrtf(v6);\n  v4[1] = v19 * 0.35355;\n  return 0;\n}", "assembly": "; \n; sub_A456C from 0xa456c to 0xa4682 (278 bytes)\n; \n; 3 xrefs:\n; > sub_A3DF8 @ 0xa3ee8\n; > sub_A420C @ 0xa4244\n; > sub_A4376 @ 0xa44cc\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            {R4,R5,R7,LR}                                          ; +0x0, 0xa456c\nADD             R7, SP, #8                                             ; +0x2, 0xa456e\nVPUSH           {D8-D12}                                               ; +0x4, 0xa4570\nMOV             R4, R0                                                 ; +0x8, 0xa4574\nLDR             R0, =(unk_125BF8 - 0xA4584)                            ; +0xa, 0xa4576\nVLDR            S2, [R1,#0x28]                                         ; +0xc, 0xa4578\nADD.W           R5, R4, #0x408                                         ; +0x10, 0xa457c\nADD             R0, PC; unk_125BF8                                     ; +0x14, 0xa4580\nVLDR            S0, [R0,#(dword_125C20 - 0x125BF8)]                    ; +0x16, 0xa4582\nVCMPE.F32       S2, S0                                                 ; +0x1a, 0xa4586\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1e, 0xa458a\nBLT             loc_A459E                                              ; +0x22, 0xa458e\nVLDR            S0, [R0,#(dword_125C24 - 0x125BF8)]                    ; +0x24, 0xa4590\nVCMPE.F32       S2, S0                                                 ; +0x28, 0xa4594\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2c, 0xa4598\nBLE             loc_A45A6                                              ; +0x30, 0xa459c\nVMOV.F32        S2, S0                                                 ; +0x32, 0xa459e\nVSTR            S0, [R1,#0x28]                                         ; +0x36, 0xa45a2\nVSTR            S2, [R5,#0x318]                                        ; +0x3a, 0xa45a6\nVMOV.F32        S16, #1.0                                              ; +0x3e, 0xa45aa\nVLDR            S0, [R1,#0x28]                                         ; +0x42, 0xa45ae\nVLDR            S2, =0.01                                              ; +0x46, 0xa45b2\nVLDR            S20, [R1,#0x2C]                                        ; +0x4a, 0xa45b6\nVMUL.F32        S18, S0, S2                                            ; +0x4e, 0xa45ba\nLDR             R0, flt_A468C; x                                       ; +0x52, 0xa45be\nVMOV.F32        S2, #2.0                                               ; +0x54, 0xa45c0\nVSUB.F32        S22, S16, S18                                          ; +0x58, 0xa45c4\nVMUL.F32        S0, S18, S18                                           ; +0x5c, 0xa45c8\nVMLA.F32        S0, S22, S22                                           ; +0x60, 0xa45cc\nVDIV.F32        S0, S2, S0                                             ; +0x64, 0xa45d0\nVSQRT.F32       S24, S0                                                ; +0x68, 0xa45d4\nVLDR            S0, =0.05                                              ; +0x6c, 0xa45d8\nVMUL.F32        S0, S20, S0                                            ; +0x70, 0xa45dc\nVMOV            R1, S0; y                                              ; +0x74, 0xa45e0\nBLX             powf                                                   ; +0x78, 0xa45e4\nVLDR            S4, =-80.0                                             ; +0x7c, 0xa45e8\nVMOV            S0, R0                                                 ; +0x80, 0xa45ec\nVLDR            S2, =0.0                                               ; +0x84, 0xa45f0\nADD.W           R1, R4, #0x374                                         ; +0x88, 0xa45f4\nVCMPE.F32       S20, S4                                                ; +0x8c, 0xa45f8\nMOVS            R2, #0                                                 ; +0x90, 0xa45fc\nVMOV.F32        S4, S2                                                 ; +0x92, 0xa45fe\nVMRS            APSR_nzcv, FPSCR                                       ; +0x96, 0xa4602\nIT GT                                                                  ; +0x9a, 0xa4606\nVMOVGT.F32      S4, S0                                                 ; +0x9c, 0xa4608\nVLDR            S0, =0.35355                                           ; +0xa0, 0xa460c\nVMUL.F32        S4, S24, S4                                            ; +0xa4, 0xa4610\nVMUL.F32        S6, S4, S0                                             ; +0xa8, 0xa4614\nVMUL.F32        S6, S6, S22                                            ; +0xac, 0xa4618\nVSTR            S6, [R5]                                               ; +0xb0, 0xa461c\nLDR.W           R0, [R4,#0x448]                                        ; +0xb4, 0xa4620\nCMP             R2, R0                                                 ; +0xb8, 0xa4624\nBGE             loc_A4636                                              ; +0xba, 0xa4626\nVLDR            S6, [R1]                                               ; +0xbc, 0xa4628\nADDS            R1, #4                                                 ; +0xc0, 0xa462c\nADDS            R2, #1                                                 ; +0xc2, 0xa462e\nVMLA.F32        S2, S6, S6                                             ; +0xc4, 0xa4630\nB               loc_A4624                                              ; +0xc8, 0xa4634\nVMOV            S6, R0                                                 ; +0xca, 0xa4636\nVMUL.F32        S4, S4, S18                                            ; +0xce, 0xa463a\nVCVT.F32.S32    S6, S6                                                 ; +0xd2, 0xa463e\nVDIV.F32        S2, S2, S6                                             ; +0xd6, 0xa4642\nVCMP.F32        S2, S16                                                ; +0xda, 0xa4646\nVMRS            APSR_nzcv, FPSCR                                       ; +0xde, 0xa464a\nBEQ             loc_A466A                                              ; +0xe2, 0xa464e\nVMOV.F32        S6, #1.0                                               ; +0xe4, 0xa4650\nVSUB.F32        S8, S6, S2                                             ; +0xe8, 0xa4654\nVDIV.F32        S2, S2, S8                                             ; +0xec, 0xa4658\nVADD.F32        S16, S2, S6                                            ; +0xf0, 0xa465c\nVCMPE.F32       S16, #0.0                                              ; +0xf4, 0xa4660\nVMRS            APSR_nzcv, FPSCR                                       ; +0xf8, 0xa4664\nBLE             loc_A4672                                              ; +0xfc, 0xa4668\nVSQRT.F32       S2, S16                                                ; +0xfe, 0xa466a\nVDIV.F32        S4, S4, S2                                             ; +0x102, 0xa466e\nVMUL.F32        S0, S4, S0                                             ; +0x106, 0xa4672\nMOVS            R0, #0                                                 ; +0x10a, 0xa4676\nVSTR            S0, [R5,#4]                                            ; +0x10c, 0xa4678\nVPOP            {D8-D12}                                               ; +0x110, 0xa467c\nPOP             {R4,R5,R7,PC}                                          ; +0x114, 0xa4680", "xrefs": ["sub_A3DF8 @ 0xa3ee8", "sub_A420C @ 0xa4244", "sub_A4376 @ 0xa44cc"], "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"}