{"type": "func", "start": 6443056880, "end": 6443057052, "name": "cocos2d::ccpIntersectPoint", "pseudocode": "// \n// cocos2d::ccpIntersectPoint from 0x180093ef0 to 0x180093f9c (172 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b666c\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\nstruct cocos2d::CCPoint __fastcall cocos2d::ccpIntersectPoint(\n        struct cocos2d::CCPoint *a1,\n        struct cocos2d::CCPoint *a2,\n        const struct cocos2d::CCPoint *a3,\n        const struct cocos2d::CCPoint *a4,\n        struct cocos2d::CCPoint *a5)\n{\n  cocos2d::CCSize *v8; // rdx\n  float *v10; // [rsp+30h] [rbp-18h] BYREF\n  cocos2d::CCSize v11[2]; // [rsp+38h] [rbp-10h] BYREF\n\n  if ( cocos2d::ccpLineIntersect((cocos2d *)a2, a3, a4, a5, (const struct cocos2d::CCPoint *)&v10, (float *)v11, v10) )\n  {\n    cocos2d::CCSize::CCSize(v11);\n    v8 = v11;\n    v11[0].width = (float)((float)(a3->x - a2->x) * *(float *)&v10) + a2->x;\n    v11[0].height = (float)((float)(a3->y - a2->y) * *(float *)&v10) + a2->y;\n  }\n  else\n  {\n    v8 = (cocos2d::CCSize *)&unk_1801A8A08;\n  }\n  cocos2d::cc_timeval::operator=(a1, v8);\n  return (struct cocos2d::CCPoint)a1;\n}", "assembly": "; \n; cocos2d::ccpIntersectPoint from 0x180093ef0 to 0x180093f9c (172 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b666c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180093ef0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180093ef5\npush    rdi                                                            ; +0xa, 0x180093efa\nsub     rsp, 40h                                                       ; +0xb, 0x180093efb\nmov     rbx, rcx                                                       ; +0xf, 0x180093eff\nmov     rax, r9                                                        ; +0x12, 0x180093f02\nmov     r9, [rsp+48h+arg_20]; struct cocos2d::CCPoint *                ; +0x15, 0x180093f05\nlea     rcx, [rsp+48h+var_10]                                          ; +0x1a, 0x180093f0a\nmov     [rsp+48h+var_20], rcx; float *                                 ; +0x1f, 0x180093f0f\nmov     rdi, r8                                                        ; +0x24, 0x180093f14\nmov     rsi, rdx                                                       ; +0x27, 0x180093f17\nlea     rcx, [rsp+48h+var_18]                                          ; +0x2a, 0x180093f1a\nmov     [rsp+48h+var_28], rcx; struct cocos2d::CCPoint *               ; +0x2f, 0x180093f1f\nmov     r8, rax; struct cocos2d::CCPoint *                             ; +0x34, 0x180093f24\nmov     rcx, rsi; this                                                 ; +0x37, 0x180093f27\nmov     rdx, rdi; struct cocos2d::CCPoint *                            ; +0x3a, 0x180093f2a\ncall    ?ccpLineIntersect@cocos2d@@YA_NAEBVCCPoint@1@000PEAM1@Z; cocos2d::ccpLineIntersect(cocos2d::CCPoint const &,cocos2d::CCPoint const &,cocos2d::CCPoint const &,cocos2d::CCPoint const &,float *,float *) ; +0x3d, 0x180093f2d\ntest    al, al                                                         ; +0x42, 0x180093f32\njz      short loc_180093F7A                                            ; +0x44, 0x180093f34\nlea     rcx, [rsp+48h+var_10]; this                                    ; +0x46, 0x180093f36\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x4b, 0x180093f3b\nmovss   xmm1, dword ptr [rdi]                                          ; +0x50, 0x180093f40\nlea     rdx, [rsp+48h+var_10]                                          ; +0x54, 0x180093f44\nsubss   xmm1, dword ptr [rsi]                                          ; +0x59, 0x180093f49\nmulss   xmm1, dword ptr [rsp+48h+var_18]                               ; +0x5d, 0x180093f4d\naddss   xmm1, dword ptr [rsi]                                          ; +0x63, 0x180093f53\nmovss   [rsp+48h+var_10], xmm1                                         ; +0x67, 0x180093f57\nmovss   xmm1, dword ptr [rdi+4]                                        ; +0x6d, 0x180093f5d\nsubss   xmm1, dword ptr [rsi+4]                                        ; +0x72, 0x180093f62\nmulss   xmm1, dword ptr [rsp+48h+var_18]                               ; +0x77, 0x180093f67\naddss   xmm1, dword ptr [rsi+4]                                        ; +0x7d, 0x180093f6d\nmovss   [rsp+48h+var_C], xmm1                                          ; +0x82, 0x180093f72\njmp     short loc_180093F81                                            ; +0x88, 0x180093f78\nlea     rdx, unk_1801A8A08                                             ; +0x8a, 0x180093f7a\nmov     rcx, rbx                                                       ; +0x91, 0x180093f81\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x94, 0x180093f84\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x99, 0x180093f89\nmov     rax, rbx                                                       ; +0x9e, 0x180093f8e\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xa1, 0x180093f91\nadd     rsp, 40h                                                       ; +0xa6, 0x180093f96\npop     rdi                                                            ; +0xaa, 0x180093f9a\nretn                                                                   ; +0xab, 0x180093f9b", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b666c"], "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"}