{"type": "func", "start": 352476, "end": 352584, "name": "sub_560DC", "pseudocode": "// \n// sub_560DC from 0x560dc to 0x56148 (108 bytes)\n// \n// 3 xrefs:\n// > sub_928C4 @ 0x928ec\n// > <???> @ 0x10c4a8\n// > <???> @ 0x10c6d0\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_560DC(__int64 a1, float a2)\n{\n  float v2; // s1\n\n  if ( (~LODWORD(a2) & 0x7F800000) == 0 )\n    return 29;\n  v2 = 0.0;\n  if ( a2 >= -1.0 )\n  {\n    v2 = 1.0;\n    if ( a2 <= 1.0 )\n      v2 = (float)(a2 * 0.5) + 0.5;\n  }\n  return (*(__int64 (__fastcall **)(__int64, float, float, float, float, float, float, float, float))(*(_QWORD *)a1 + 184LL))(\n           a1,\n           sqrtf(1.0 - v2),\n           sqrtf(v2),\n           0.0,\n           0.0,\n           0.0,\n           0.0,\n           0.0,\n           0.0);\n}", "assembly": "; \n; sub_560DC from 0x560dc to 0x56148 (108 bytes)\n; \n; 3 xrefs:\n; > sub_928C4 @ 0x928ec\n; > <???> @ 0x10c4a8\n; > <???> @ 0x10c6d0\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\nFMOV            W8, S0                                                 ; +0x0, 0x560dc\nMVN             W8, W8                                                 ; +0x4, 0x560e0\nTST             W8, #0x7F800000                                        ; +0x8, 0x560e4\nB.NE            loc_560F0                                              ; +0xc, 0x560e8\nB               loc_5795C                                              ; +0x10, 0x560ec\nFMOV            S2, #-1.0                                              ; +0x14, 0x560f0\nFMOV            S1, WZR                                                ; +0x18, 0x560f4\nFCMP            S0, S2                                                 ; +0x1c, 0x560f8\nFMOV            S2, #1.0                                               ; +0x20, 0x560fc\nB.LT            loc_56118                                              ; +0x24, 0x56100\nFCMP            S0, S2                                                 ; +0x28, 0x56104\nMOV             V1.16B, V2.16B                                         ; +0x2c, 0x56108\nB.GT            loc_56118                                              ; +0x30, 0x5610c\nFMOV            S1, #0.5                                               ; +0x34, 0x56110\nFMADD           S1, S0, S1, S1                                         ; +0x38, 0x56114\nLDR             X8, [X0]                                               ; +0x3c, 0x56118\nFSUB            S0, S2, S1                                             ; +0x40, 0x5611c\nFSQRT           S1, S1                                                 ; +0x44, 0x56120\nFMOV            S2, WZR                                                ; +0x48, 0x56124\nLDR             X1, [X8,#0xB8]                                         ; +0x4c, 0x56128\nFMOV            S3, WZR                                                ; +0x50, 0x5612c\nFSQRT           S0, S0                                                 ; +0x54, 0x56130\nFMOV            S4, WZR                                                ; +0x58, 0x56134\nFMOV            S5, WZR                                                ; +0x5c, 0x56138\nFMOV            S6, WZR                                                ; +0x60, 0x5613c\nFMOV            S7, WZR                                                ; +0x64, 0x56140\nBR              X1                                                     ; +0x68, 0x56144", "xrefs": ["sub_928C4 @ 0x928ec", "<???> @ 0x10c4a8", "<???> @ 0x10c6d0"], "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"}