{"type": "func", "start": 805216, "end": 805456, "name": "sub_C4960", "pseudocode": "// \n// sub_C4960 from 0xc4960 to 0xc4a50 (240 bytes)\n// \n// 1 xrefs:\n// > sub_C457C @ 0xc45d4\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\n__int64 __fastcall sub_C4960(\n        float a1,\n        float a2,\n        float a3,\n        __int64 a4,\n        float *a5,\n        float *a6,\n        float *a7,\n        float *a8,\n        float *a9)\n{\n  float v15; // s9\n  float v16; // s0\n  float v17; // s2\n\n  v15 = tanf((float)(a2 * 3.1416) / a3);\n  v16 = v15 / expf(a1 * 0.057565);\n  v17 = 1.0 / (float)((float)((float)(v16 + 1.4142) * v16) + 1.0);\n  *a5 = v17 + (float)((float)((float)(v15 + 1.4142) * v15) * v17);\n  *a6 = (float)((float)((float)(v15 * v15) * 2.0) + -2.0) * v17;\n  *a7 = v17 + (float)((float)((float)(v15 + -1.4142) * v15) * v17);\n  *a8 = v17 * (float)(2.0 - (float)((float)(v16 * v16) * 2.0));\n  *a9 = -(float)(v17 + (float)((float)((float)(v16 + -1.4142) * v16) * v17));\n  return 0;\n}", "assembly": "; \n; sub_C4960 from 0xc4960 to 0xc4a50 (240 bytes)\n; \n; 1 xrefs:\n; > sub_C457C @ 0xc45d4\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\nSTP             D9, D8, [SP,#-0x10+var_40]!                            ; +0x0, 0xc4960\nADRP            X8, #dword_2EEF8@PAGE                                  ; +0x4, 0xc4964\nMOV             V8.16B, V0.16B                                         ; +0x8, 0xc4968\nLDR             S0, [X8,#dword_2EEF8@PAGEOFF]                          ; +0xc, 0xc496c\nSTR             X23, [SP,#0x40+var_30]                                 ; +0x10, 0xc4970\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x14, 0xc4974\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x18, 0xc4978\nFMUL            S0, S1, S0                                             ; +0x1c, 0xc497c\nFDIV            S0, S0, S2; x                                          ; +0x20, 0xc4980\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x24, 0xc4984\nADD             X29, SP, #0x40                                         ; +0x28, 0xc4988\nMOV             X19, X5                                                ; +0x2c, 0xc498c\nMOV             X20, X4                                                ; +0x30, 0xc4990\nMOV             X21, X3                                                ; +0x34, 0xc4994\nMOV             X22, X2                                                ; +0x38, 0xc4998\nMOV             X23, X1                                                ; +0x3c, 0xc499c\nBL              .tanf                                                  ; +0x40, 0xc49a0\nADRP            X8, #dword_2EF30@PAGE                                  ; +0x44, 0xc49a4\nMOV             V9.16B, V0.16B                                         ; +0x48, 0xc49a8\nLDR             S0, [X8,#dword_2EF30@PAGEOFF]                          ; +0x4c, 0xc49ac\nFMUL            S0, S8, S0; x                                          ; +0x50, 0xc49b0\nBL              .expf                                                  ; +0x54, 0xc49b4\nADRP            X8, #dword_2F070@PAGE                                  ; +0x58, 0xc49b8\nFMUL            S1, S9, S9                                             ; +0x5c, 0xc49bc\nFMOV            S2, #-2.0                                              ; +0x60, 0xc49c0\nFMOV            S3, #2.0                                               ; +0x64, 0xc49c4\nLDR             S4, [X8,#dword_2F070@PAGEOFF]                          ; +0x68, 0xc49c8\nADRP            X8, #dword_2F074@PAGE                                  ; +0x6c, 0xc49cc\nFMADD           S1, S1, S3, S2                                         ; +0x70, 0xc49d0\nLDR             S2, [X8,#dword_2F074@PAGEOFF]                          ; +0x74, 0xc49d4\nFDIV            S0, S9, S0                                             ; +0x78, 0xc49d8\nFMUL            S5, S0, S0                                             ; +0x7c, 0xc49dc\nFMSUB           S3, S5, S3, S3                                         ; +0x80, 0xc49e0\nFADD            S5, S9, S4                                             ; +0x84, 0xc49e4\nFMOV            S7, #1.0                                               ; +0x88, 0xc49e8\nFADD            S4, S0, S4                                             ; +0x8c, 0xc49ec\nFADD            S6, S9, S2                                             ; +0x90, 0xc49f0\nFADD            S2, S0, S2                                             ; +0x94, 0xc49f4\nFMADD           S4, S4, S0, S7                                         ; +0x98, 0xc49f8\nFMUL            S5, S5, S9                                             ; +0x9c, 0xc49fc\nFMUL            S6, S6, S9                                             ; +0xa0, 0xc4a00\nFMUL            S0, S2, S0                                             ; +0xa4, 0xc4a04\nFDIV            S2, S7, S4                                             ; +0xa8, 0xc4a08\nFMADD           S4, S5, S2, S2                                         ; +0xac, 0xc4a0c\nFMUL            S1, S1, S2                                             ; +0xb0, 0xc4a10\nFMADD           S5, S6, S2, S2                                         ; +0xb4, 0xc4a14\nFMUL            S3, S2, S3                                             ; +0xb8, 0xc4a18\nFNMADD          S0, S0, S2, S2                                         ; +0xbc, 0xc4a1c\nSTR             S4, [X23]                                              ; +0xc0, 0xc4a20\nSTR             S1, [X22]                                              ; +0xc4, 0xc4a24\nSTR             S5, [X21]                                              ; +0xc8, 0xc4a28\nSTR             S3, [X20]                                              ; +0xcc, 0xc4a2c\nSTR             S0, [X19]                                              ; +0xd0, 0xc4a30\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xd4, 0xc4a34\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xd8, 0xc4a38\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xdc, 0xc4a3c\nLDR             X23, [SP,#0x40+var_30]                                 ; +0xe0, 0xc4a40\nMOV             W0, WZR                                                ; +0xe4, 0xc4a44\nLDP             D9, D8, [SP+0x40+var_40],#0x50                         ; +0xe8, 0xc4a48\nRET                                                                    ; +0xec, 0xc4a4c", "xrefs": ["sub_C457C @ 0xc45d4"], "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"}