{"type": "func", "start": 803072, "end": 803208, "name": "sub_C4100", "pseudocode": "// \n// sub_C4100 from 0xc4100 to 0xc4188 (136 bytes)\n// \n// 2 xrefs:\n// > sub_C3BD4 @ 0xc3ccc\n// > sub_C4404 @ 0xc44c4\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_C4100(__int64 a1, __int64 a2)\n{\n  float v2; // s0\n  float v3; // s1\n  float v5; // s8\n  float v6; // s0\n\n  v2 = *(float *)(a2 + 20);\n  v3 = *(float *)&xmmword_1555F0;\n  if ( v2 < *(float *)&xmmword_1555F0 || (v3 = *((float *)&xmmword_1555F0 + 1), v2 > *((float *)&xmmword_1555F0 + 1)) )\n  {\n    v2 = v3;\n    *(float *)(a2 + 20) = v3;\n  }\n  *(float *)(a1 + 2052) = v2;\n  v5 = *(float *)(a2 + 20) * 0.007854;\n  *(float *)(a1 + 1208) = tanf(v5);\n  v6 = cosf(v5);\n  *(float *)(a1 + 1268) = __powisf2(*(unsigned int *)(a1 + 2028), v6);\n  return 0;\n}", "assembly": "; \n; sub_C4100 from 0xc4100 to 0xc4188 (136 bytes)\n; \n; 2 xrefs:\n; > sub_C3BD4 @ 0xc3ccc\n; > sub_C4404 @ 0xc44c4\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\nSTR             D8, [SP,#-0x10+var_10]!                                ; +0x0, 0xc4100\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0xc4104\nADRP            X8, #xmmword_1555F0@PAGE                               ; +0x8, 0xc4108\nLDR             S0, [X1,#0x14]                                         ; +0xc, 0xc410c\nLDR             S1, [X8,#xmmword_1555F0@PAGEOFF]                       ; +0x10, 0xc4110\nSTR             X19, [SP,#0x10+var_8]                                  ; +0x14, 0xc4114\nMOV             X19, X0                                                ; +0x18, 0xc4118\nADD             X29, SP, #0x10                                         ; +0x1c, 0xc411c\nFCMP            S0, S1                                                 ; +0x20, 0xc4120\nB.LT            loc_C4138                                              ; +0x24, 0xc4124\nADRP            X8, #(xmmword_1555F0+4)@PAGE                           ; +0x28, 0xc4128\nLDR             S1, [X8,#(xmmword_1555F0+4)@PAGEOFF]                   ; +0x2c, 0xc412c\nFCMP            S0, S1                                                 ; +0x30, 0xc4130\nB.LE            loc_C4140                                              ; +0x34, 0xc4134\nMOV             V0.16B, V1.16B                                         ; +0x38, 0xc4138\nSTR             S1, [X1,#0x14]                                         ; +0x3c, 0xc413c\nSTR             S0, [X19,#0x804]                                       ; +0x40, 0xc4140\nADRP            X8, #dword_2F128@PAGE                                  ; +0x44, 0xc4144\nLDR             S0, [X1,#0x14]                                         ; +0x48, 0xc4148\nLDR             S1, [X8,#dword_2F128@PAGEOFF]                          ; +0x4c, 0xc414c\nFMUL            S8, S0, S1                                             ; +0x50, 0xc4150\nMOV             V0.16B, V8.16B; x                                      ; +0x54, 0xc4154\nBL              .tanf                                                  ; +0x58, 0xc4158\nSTR             S0, [X19,#0x4B8]                                       ; +0x5c, 0xc415c\nMOV             V0.16B, V8.16B; x                                      ; +0x60, 0xc4160\nBL              .cosf                                                  ; +0x64, 0xc4164\nLDR             W0, [X19,#0x7EC]                                       ; +0x68, 0xc4168\nBL              .__powisf2                                             ; +0x6c, 0xc416c\nSTR             S0, [X19,#0x4F4]                                       ; +0x70, 0xc4170\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0xc4174\nLDR             X19, [SP,#0x10+var_8]                                  ; +0x78, 0xc4178\nMOV             W0, WZR                                                ; +0x7c, 0xc417c\nLDR             D8, [SP+0x10+var_10],#0x20                             ; +0x80, 0xc4180\nRET                                                                    ; +0x84, 0xc4184", "xrefs": ["sub_C3BD4 @ 0xc3ccc", "sub_C4404 @ 0xc44c4"], "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"}