{"type": "func", "start": 798612, "end": 798664, "name": "sub_C2F94", "pseudocode": "// \n// sub_C2F94 from 0xc2f94 to 0xc2fc8 (52 bytes)\n// \n// 1 xrefs:\n// > sub_C2F4C @ 0xc2f70\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_C2F94(__int64 a1, int a2)\n{\n  int v2; // w8\n  int v3; // w8\n\n  v2 = *(_DWORD *)(a1 + 12);\n  if ( v2 < 0 )\n    v2 = -v2;\n  v3 = (int)(float)((float)v2 * 1.5);\n  if ( v3 < a2 )\n    v3 = a2;\n  if ( v3 <= 4 )\n    return 4;\n  else\n    return (unsigned int)v3;\n}", "assembly": "; \n; sub_C2F94 from 0xc2f94 to 0xc2fc8 (52 bytes)\n; \n; 1 xrefs:\n; > sub_C2F4C @ 0xc2f70\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\nLDR             W8, [X0,#0xC]                                          ; +0x0, 0xc2f94\nFMOV            S0, #1.5                                               ; +0x4, 0xc2f98\nMOV             W9, #4                                                 ; +0x8, 0xc2f9c\nCMP             W8, #0                                                 ; +0xc, 0xc2fa0\nCNEG            W8, W8, MI                                             ; +0x10, 0xc2fa4\nSCVTF           S1, W8                                                 ; +0x14, 0xc2fa8\nFMUL            S0, S1, S0                                             ; +0x18, 0xc2fac\nFCVTZS          W8, S0                                                 ; +0x1c, 0xc2fb0\nCMP             W8, W1                                                 ; +0x20, 0xc2fb4\nCSEL            W8, W1, W8, LT                                         ; +0x24, 0xc2fb8\nCMP             W8, #4                                                 ; +0x28, 0xc2fbc\nCSEL            W0, W8, W9, GT                                         ; +0x2c, 0xc2fc0\nRET                                                                    ; +0x30, 0xc2fc4", "xrefs": ["sub_C2F4C @ 0xc2f70"], "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"}