{"type": "func", "start": 805456, "end": 805624, "name": "sub_C4A50", "pseudocode": "// \n// sub_C4A50 from 0xc4a50 to 0xc4af8 (168 bytes)\n// \n// 1 xrefs:\n// > sub_C4188 @ 0xc41bc\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_C4A50(__int64 a1, float *a2)\n{\n  float v2; // s0\n  float v3; // s1\n\n  v2 = 0.1;\n  v3 = (float)((float)((float)(a2[6] * 0.01) * (float)(a2[6] * 0.01)) * (float)(a2[6] * 0.009)) + 0.1;\n  if ( v3 >= 0.1 )\n  {\n    v2 = (float)((float)((float)(a2[6] * 0.01) * (float)(a2[6] * 0.01)) * (float)(a2[6] * 0.009)) + 0.1;\n    if ( v3 > 1.0 )\n      v2 = 1.0;\n  }\n  sub_CDA78(a1 + 544, v2 * 0.061, 1.32, 0.0015, 1.47, (float)*(int *)(a1 + 2080));\n  sub_C3E48(a1, a2);\n  return 0;\n}", "assembly": "; \n; sub_C4A50 from 0xc4a50 to 0xc4af8 (168 bytes)\n; \n; 1 xrefs:\n; > sub_C4188 @ 0xc41bc\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0xc4a50\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0xc4a54\nADRP            X8, #dword_2F0BC@PAGE                                  ; +0x8, 0xc4a58\nLDR             S1, [X1,#0x18]                                         ; +0xc, 0xc4a5c\nADRP            X9, #dword_2EF50@PAGE                                  ; +0x10, 0xc4a60\nLDR             S2, [X8,#dword_2F0BC@PAGEOFF]                          ; +0x14, 0xc4a64\nLDR             S3, [X9,#dword_2EF50@PAGEOFF]                          ; +0x18, 0xc4a68\nADRP            X8, #dword_2EF94@PAGE                                  ; +0x1c, 0xc4a6c\nLDR             S0, [X8,#dword_2EF94@PAGEOFF]                          ; +0x20, 0xc4a70\nFMUL            S2, S1, S2                                             ; +0x24, 0xc4a74\nFMUL            S1, S1, S3                                             ; +0x28, 0xc4a78\nFMUL            S2, S2, S2                                             ; +0x2c, 0xc4a7c\nFMADD           S1, S2, S1, S0                                         ; +0x30, 0xc4a80\nMOV             X19, X1                                                ; +0x34, 0xc4a84\nFCMP            S1, S0                                                 ; +0x38, 0xc4a88\nMOV             X20, X0                                                ; +0x3c, 0xc4a8c\nADD             X29, SP, #0x10                                         ; +0x40, 0xc4a90\nB.LT            loc_C4AAC                                              ; +0x44, 0xc4a94\nFMOV            S2, #1.0                                               ; +0x48, 0xc4a98\nFCMP            S1, S2                                                 ; +0x4c, 0xc4a9c\nMOV             V0.16B, V1.16B                                         ; +0x50, 0xc4aa0\nB.LE            loc_C4AAC                                              ; +0x54, 0xc4aa4\nMOV             V0.16B, V2.16B                                         ; +0x58, 0xc4aa8\nADRP            X8, #dword_2F0F0@PAGE                                  ; +0x5c, 0xc4aac\nLDR             S1, [X8,#dword_2F0F0@PAGEOFF]                          ; +0x60, 0xc4ab0\nLDR             S2, [X20,#0x820]                                       ; +0x64, 0xc4ab4\nADRP            X8, #dword_2F0DC@PAGE                                  ; +0x68, 0xc4ab8\nADRP            X9, #dword_2F028@PAGE                                  ; +0x6c, 0xc4abc\nADRP            X10, #dword_2F078@PAGE                                 ; +0x70, 0xc4ac0\nFMUL            S0, S0, S1                                             ; +0x74, 0xc4ac4\nSCVTF           S4, S2                                                 ; +0x78, 0xc4ac8\nLDR             S1, [X8,#dword_2F0DC@PAGEOFF]                          ; +0x7c, 0xc4acc\nLDR             S2, [X9,#dword_2F028@PAGEOFF]                          ; +0x80, 0xc4ad0\nLDR             S3, [X10,#dword_2F078@PAGEOFF]                         ; +0x84, 0xc4ad4\nADD             X0, X20, #0x220                                        ; +0x88, 0xc4ad8\nBL              sub_CDA78                                              ; +0x8c, 0xc4adc\nMOV             X0, X20                                                ; +0x90, 0xc4ae0\nMOV             X1, X19                                                ; +0x94, 0xc4ae4\nBL              sub_C3E48                                              ; +0x98, 0xc4ae8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x9c, 0xc4aec\nMOV             W0, WZR                                                ; +0xa0, 0xc4af0\nB               loc_C4BBC                                              ; +0xa4, 0xc4af4", "xrefs": ["sub_C4188 @ 0xc41bc"], "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"}