{"type": "func", "start": 717620, "end": 717628, "name": "sub_AF334", "pseudocode": "// \n// sub_AF334 from 0xaf334 to 0xaf33c (8 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x118e88\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_AF334(__int64 *a1, int a2, unsigned int a3)\n{\n  float v3; // s0\n  unsigned int v4; // w8\n  unsigned int v5; // w9\n  bool v6; // cf\n  unsigned int v7; // w9\n  __int64 v9; // x0\n\n  v9 = *a1;\n  v3 = *(float *)(v9 + 636);\n  if ( v3 >= 0.0 )\n  {\n    if ( a2 )\n    {\n      v5 = *(_DWORD *)(v9 + 632);\n      if ( !v5 )\n        return 11;\n    }\n    else\n    {\n      v5 = (unsigned int)(float)(v3 * (float)*(int *)(*(_QWORD *)(v9 + 168) + 1744LL));\n      *(_DWORD *)(v9 + 632) = v5;\n    }\n    v6 = v5 >= a3;\n    v7 = v5 - a3;\n    if ( !v6 )\n      v7 = 0;\n    v4 = 0;\n    *(_DWORD *)(v9 + 632) = v7;\n  }\n  else\n  {\n    return 0;\n  }\n  return v4;\n}", "assembly": "; \n; sub_AF334 from 0xaf334 to 0xaf33c (8 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x118e88\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             X0, [X0]                                               ; +0x0, 0xaf334\nB               loc_AEA2C                                              ; +0x4, 0xaf338", "xrefs": ["<???> @ 0x118e88"], "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"}