{"type": "func", "start": 673960, "end": 674174, "name": "sub_A48A8", "pseudocode": "// \n// sub_A48A8 from 0xa48a8 to 0xa497e (214 bytes)\n// \n// 1 xrefs:\n// > sub_A44F4 @ 0xa455e\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_A48A8(int a1, float a2, float a3, float a4, float *a5, float *a6, float *a7, float *a8, float *a9)\n{\n  float v10; // r5\n  float v11; // r0\n  float v12; // s6\n\n  v10 = tanf((float)(a3 * 3.1416) / a4);\n  v11 = expf(a2 * 0.057565);\n  v12 = 1.0 / (float)((float)((float)((float)(v10 / v11) + 1.4142) * (float)(v10 / v11)) + 1.0);\n  *a5 = v12 * (float)((float)((float)(v10 + 1.4142) * v10) + 1.0);\n  *a6 = (float)((float)((float)(v10 * v10) + (float)(v10 * v10)) + -2.0) * v12;\n  *a7 = v12 * (float)((float)((float)(v10 + -1.4142) * v10) + 1.0);\n  *a8 = v12\n      * (float)(2.0\n              - (float)((float)((float)(v10 / v11) * (float)(v10 / v11))\n                      + (float)((float)(v10 / v11) * (float)(v10 / v11))));\n  *a9 = -(float)((float)((float)((float)((float)(v10 / v11) + -1.4142) * (float)(v10 / v11)) + 1.0) * v12);\n  return 0;\n}", "assembly": "; \n; sub_A48A8 from 0xa48a8 to 0xa497e (214 bytes)\n; \n; 1 xrefs:\n; > sub_A44F4 @ 0xa455e\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            {R4,R5,R7,LR}                                          ; +0x0, 0xa48a8\nADD             R7, SP, #8                                             ; +0x2, 0xa48aa\nVMOV            S0, R2                                                 ; +0x4, 0xa48ac\nVLDR            S2, =3.1416                                            ; +0x8, 0xa48b0\nMOV             R4, R1                                                 ; +0xc, 0xa48b4\nVMUL.F32        S0, S0, S2                                             ; +0xe, 0xa48b6\nVMOV            S2, R3                                                 ; +0x12, 0xa48ba\nVDIV.F32        S0, S0, S2                                             ; +0x16, 0xa48be\nVMOV            R0, S0; x                                              ; +0x1a, 0xa48c2\nBLX             tanf                                                   ; +0x1e, 0xa48c6\nVMOV            S0, R4                                                 ; +0x22, 0xa48ca\nVLDR            S2, =0.057565                                          ; +0x26, 0xa48ce\nMOV             R5, R0                                                 ; +0x2a, 0xa48d2\nVMUL.F32        S0, S0, S2                                             ; +0x2c, 0xa48d4\nVMOV            R0, S0; x                                              ; +0x30, 0xa48d8\nBLX             expf                                                   ; +0x34, 0xa48dc\nVMOV            S0, R0                                                 ; +0x38, 0xa48e0\nVLDR            S4, =1.4142                                            ; +0x3c, 0xa48e4\nVMOV            S2, R5                                                 ; +0x40, 0xa48e8\nLDR             R0, [R7,#-8+arg_0]                                     ; +0x44, 0xa48ec\nVMOV.F32        S8, #1.0                                               ; +0x46, 0xa48ee\nVDIV.F32        S0, S2, S0                                             ; +0x4a, 0xa48f2\nVADD.F32        S6, S0, S4                                             ; +0x4e, 0xa48f6\nVMOV.F32        S10, S8                                                ; +0x52, 0xa48fa\nVADD.F32        S4, S2, S4                                             ; +0x56, 0xa48fe\nVMOV.F32        S12, S8                                                ; +0x5a, 0xa4902\nVMLA.F32        S10, S6, S0                                            ; +0x5e, 0xa4906\nVDIV.F32        S6, S8, S10                                            ; +0x62, 0xa490a\nVMOV.F32        S10, S8                                                ; +0x66, 0xa490e\nVMLA.F32        S10, S4, S2                                            ; +0x6a, 0xa4912\nVMUL.F32        S4, S6, S10                                            ; +0x6e, 0xa4916\nVMOV.F32        S10, #-2.0                                             ; +0x72, 0xa491a\nVSTR            S4, [R0]                                               ; +0x76, 0xa491e\nVMUL.F32        S4, S2, S2                                             ; +0x7a, 0xa4922\nLDR             R0, [R7,#-8+arg_4]                                     ; +0x7e, 0xa4926\nVADD.F32        S4, S4, S4                                             ; +0x80, 0xa4928\nVADD.F32        S4, S4, S10                                            ; +0x84, 0xa492c\nVMUL.F32        S4, S4, S6                                             ; +0x88, 0xa4930\nVSTR            S4, [R0]                                               ; +0x8c, 0xa4934\nVLDR            S4, =-1.4142                                           ; +0x90, 0xa4938\nLDR             R0, [R7,#-8+arg_8]                                     ; +0x94, 0xa493c\nVADD.F32        S10, S2, S4                                            ; +0x96, 0xa493e\nVMLA.F32        S12, S10, S2                                           ; +0x9a, 0xa4942\nVMOV.F32        S10, #2.0                                              ; +0x9e, 0xa4946\nVMUL.F32        S2, S6, S12                                            ; +0xa2, 0xa494a\nVSTR            S2, [R0]                                               ; +0xa6, 0xa494e\nVMUL.F32        S2, S0, S0                                             ; +0xaa, 0xa4952\nLDR             R0, [R7,#-8+arg_C]                                     ; +0xae, 0xa4956\nVADD.F32        S2, S2, S2                                             ; +0xb0, 0xa4958\nVSUB.F32        S2, S10, S2                                            ; +0xb4, 0xa495c\nVMUL.F32        S2, S6, S2                                             ; +0xb8, 0xa4960\nVSTR            S2, [R0]                                               ; +0xbc, 0xa4964\nVADD.F32        S2, S0, S4                                             ; +0xc0, 0xa4968\nLDR             R0, [R7,#-8+arg_10]                                    ; +0xc4, 0xa496c\nVMLA.F32        S8, S2, S0                                             ; +0xc6, 0xa496e\nVNMUL.F32       S0, S8, S6                                             ; +0xca, 0xa4972\nVSTR            S0, [R0]                                               ; +0xce, 0xa4976\nMOVS            R0, #0                                                 ; +0xd2, 0xa497a\nPOP             {R4,R5,R7,PC}                                          ; +0xd4, 0xa497c", "xrefs": ["sub_A44F4 @ 0xa455e"], "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"}