{"type": "func", "start": 802816, "end": 802932, "name": "sub_C4000", "pseudocode": "// \n// sub_C4000 from 0xc4000 to 0xc4074 (116 bytes)\n// \n// 3 xrefs:\n// > sub_C3BD4 @ 0xc3cb4\n// > sub_C3F8C @ 0xc3ff0\n// > sub_C4404 @ 0xc4470\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:45 +0000\n// \n\n__int64 __fastcall sub_C4000(__int64 a1, __int64 a2)\n{\n  __int64 v2; // x0\n  __int64 v3; // x1\n  float v4; // s0\n  float v5; // s1\n  char v6; // nf\n  char v7; // vf\n  float v8; // s1\n\n  v2 = sub_C4B8C(*(float *)(a2 + 8), *(float *)&xmmword_1554D0);\n  if ( v6 != v7 || (v5 = *((float *)&xmmword_1554D0 + 1), v4 > *((float *)&xmmword_1554D0 + 1)) )\n  {\n    v4 = v5;\n    *(float *)(v3 + 8) = v5;\n  }\n  v8 = *(float *)(v2 + 2036);\n  *(float *)(v2 + 2040) = v4;\n  sub_CD9B4(v2 + 544, (float)(v8 + v4) * 0.001, 0.0187, 1.29, (float)*(int *)(v2 + 2080));\n  return 0;\n}", "assembly": "; \n; sub_C4000 from 0xc4000 to 0xc4074 (116 bytes)\n; \n; 3 xrefs:\n; > sub_C3BD4 @ 0xc3cb4\n; > sub_C3F8C @ 0xc3ff0\n; > sub_C4404 @ 0xc4470\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:45 +0000\n; \nSTP             X29, X30, [SP,#var_10]!                                ; +0x0, 0xc4000\nADRP            X8, #xmmword_1554D0@PAGE                               ; +0x4, 0xc4004\nLDR             S0, [X1,#8]                                            ; +0x8, 0xc4008\nLDR             S1, [X8,#xmmword_1554D0@PAGEOFF]                       ; +0xc, 0xc400c\nBL              sub_C4B8C                                              ; +0x10, 0xc4010\nB.LT            loc_C4028                                              ; +0x14, 0xc4014\nADRP            X8, #(xmmword_1554D0+4)@PAGE                           ; +0x18, 0xc4018\nLDR             S1, [X8,#(xmmword_1554D0+4)@PAGEOFF]                   ; +0x1c, 0xc401c\nFCMP            S0, S1                                                 ; +0x20, 0xc4020\nB.LE            loc_C4030                                              ; +0x24, 0xc4024\nMOV             V0.16B, V1.16B                                         ; +0x28, 0xc4028\nSTR             S1, [X1,#8]                                            ; +0x2c, 0xc402c\nLDR             S1, [X0,#0x7F4]                                        ; +0x30, 0xc4030\nADRP            X8, #dword_2F10C@PAGE                                  ; +0x34, 0xc4034\nLDR             S2, [X8,#dword_2F10C@PAGEOFF]                          ; +0x38, 0xc4038\nSTR             S0, [X0,#0x7F8]                                        ; +0x3c, 0xc403c\nLDR             S3, [X0,#0x820]                                        ; +0x40, 0xc4040\nFADD            S0, S1, S0                                             ; +0x44, 0xc4044\nADRP            X8, #dword_2EF6C@PAGE                                  ; +0x48, 0xc4048\nADRP            X9, #dword_2F0A8@PAGE                                  ; +0x4c, 0xc404c\nFMUL            S0, S0, S2                                             ; +0x50, 0xc4050\nLDR             S1, [X8,#dword_2EF6C@PAGEOFF]                          ; +0x54, 0xc4054\nLDR             S2, [X9,#dword_2F0A8@PAGEOFF]                          ; +0x58, 0xc4058\nADD             X0, X0, #0x220                                         ; +0x5c, 0xc405c\nSCVTF           S3, S3                                                 ; +0x60, 0xc4060\nBL              sub_CD9B4                                              ; +0x64, 0xc4064\nMOV             W0, WZR                                                ; +0x68, 0xc4068\nLDP             X29, X30, [SP+0x10+var_10],#0x10                       ; +0x6c, 0xc406c\nRET                                                                    ; +0x70, 0xc4070", "xrefs": ["sub_C3BD4 @ 0xc3cb4", "sub_C3F8C @ 0xc3ff0", "sub_C4404 @ 0xc4470"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}