{"type": "func", "start": 837396, "end": 837572, "name": "sub_CC714", "pseudocode": "// \n// sub_CC714 from 0xcc714 to 0xcc7c4 (176 bytes)\n// \n// 7 xrefs:\n// > sub_57B24 @ 0x57bdc\n// > sub_57B24 @ 0x57c08\n// > sub_587C0 @ 0x58810\n// > sub_5B7B0 @ 0x5b7f8\n// > sub_5BFFC @ 0x5c0b0\n// > sub_5BFFC @ 0x5c0f4\n// > sub_7755C @ 0x778e4\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:49 +0000\n// \n\n__int64 __fastcall sub_CC714(__int64 a1, char a2, float a3)\n{\n  __int64 result; // x0\n  __int16 v4; // w8\n  float v6; // s8\n  __int64 v7; // x0\n  __int64 v8; // x1\n  int v9; // w8\n  unsigned int v10; // w9\n  __int64 v11; // [xsp+8h] [xbp-18h] BYREF\n\n  if ( a3 < 0.0 )\n    return 31;\n  v4 = atomic_load((unsigned int *)(a1 + 100));\n  v6 = fminf(a3, 256.0);\n  if ( (v4 & 0x100) != 0 || (a2 & 1) == 0 )\n  {\n    v9 = *(_DWORD *)(a1 + 40);\n    v10 = vcvts_n_u32_f32(v6, 0x14u);\n    result = 0;\n    *(_DWORD *)(a1 + 40) = v10;\n    if ( (v10 == 0) != (v9 == 0) )\n      return sub_CD198(0);\n  }\n  else\n  {\n    result = sub_CD294(*(_QWORD *)(a1 + 168), &v11, 16);\n    if ( !(_DWORD)result )\n    {\n      v7 = sub_CD2F8();\n      *(float *)(v8 + 4) = v6;\n      return sub_CD2F0(v7);\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_CC714 from 0xcc714 to 0xcc7c4 (176 bytes)\n; \n; 7 xrefs:\n; > sub_57B24 @ 0x57bdc\n; > sub_57B24 @ 0x57c08\n; > sub_587C0 @ 0x58810\n; > sub_5B7B0 @ 0x5b7f8\n; > sub_5BFFC @ 0x5c0b0\n; > sub_5BFFC @ 0x5c0f4\n; > sub_7755C @ 0x778e4\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:49 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0xcc714\nFCMP            S0, #0.0                                               ; +0x4, 0xcc718\nSTR             D8, [SP,#0x20+var_10]                                  ; +0x8, 0xcc71c\nSTR             X19, [SP,#0x20+var_8]                                  ; +0xc, 0xcc720\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x10, 0xcc724\nADD             X29, SP, #0x20                                         ; +0x14, 0xcc728\nB.GE            loc_CC738                                              ; +0x18, 0xcc72c\nMOV             W0, #0x1F                                              ; +0x1c, 0xcc730\nB               loc_CC7B4                                              ; +0x20, 0xcc734\nADD             X8, X0, #0x64 ; 'd'                                    ; +0x24, 0xcc738\nLDAR            W8, [X8]                                               ; +0x28, 0xcc73c\nMOV             W9, #0x43800000                                        ; +0x2c, 0xcc740\nFMOV            S1, W9                                                 ; +0x30, 0xcc744\nMOV             X19, X0                                                ; +0x34, 0xcc748\nFMINNM          S8, S0, S1                                             ; +0x38, 0xcc74c\nTBNZ            W8, #8, loc_CC784                                      ; +0x3c, 0xcc750\nTBZ             W1, #0, loc_CC784                                      ; +0x40, 0xcc754\nLDR             X0, [X19,#0xA8]                                        ; +0x44, 0xcc758\nADD             X1, SP, #0x20+var_18                                   ; +0x48, 0xcc75c\nMOV             W2, #0x10                                              ; +0x4c, 0xcc760\nBL              sub_CD294                                              ; +0x50, 0xcc764\nCBNZ            W0, loc_CC7B4                                          ; +0x54, 0xcc768\nLDR             X8, [SP,#0x20+var_18]                                  ; +0x58, 0xcc76c\nMOV             W9, #0x13                                              ; +0x5c, 0xcc770\nBL              sub_CD2F8                                              ; +0x60, 0xcc774\nSTR             S8, [X1,#4]                                            ; +0x64, 0xcc778\nBL              sub_CD2F0                                              ; +0x68, 0xcc77c\nB               loc_CC7B4                                              ; +0x6c, 0xcc780\nLDR             W8, [X19,#0x28]                                        ; +0x70, 0xcc784\nFCVTZU          W9, S8, #0x14                                          ; +0x74, 0xcc788\nMOV             W0, WZR                                                ; +0x78, 0xcc78c\nSTR             W9, [X19,#0x28]                                        ; +0x7c, 0xcc790\nCMP             W8, #0                                                 ; +0x80, 0xcc794\nCSET            W8, EQ                                                 ; +0x84, 0xcc798\nCMP             W9, #0                                                 ; +0x88, 0xcc79c\nCSET            W10, EQ                                                ; +0x8c, 0xcc7a0\nCMP             W10, W8                                                ; +0x90, 0xcc7a4\nB.EQ            loc_CC7B4                                              ; +0x94, 0xcc7a8\nLDR             X8, [X19,#0xA8]                                        ; +0x98, 0xcc7ac\nBL              sub_CD198                                              ; +0x9c, 0xcc7b0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa0, 0xcc7b4\nLDR             X19, [SP,#0x20+var_8]                                  ; +0xa4, 0xcc7b8\nLDR             D8, [SP,#0x20+var_10]                                  ; +0xa8, 0xcc7bc\nB               loc_CD374                                              ; +0xac, 0xcc7c0", "xrefs": ["sub_57B24 @ 0x57bdc", "sub_57B24 @ 0x57c08", "sub_587C0 @ 0x58810", "sub_5B7B0 @ 0x5b7f8", "sub_5BFFC @ 0x5c0b0", "sub_5BFFC @ 0x5c0f4", "sub_7755C @ 0x778e4"], "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"}