{"type": "func", "start": 6443071088, "end": 6443071260, "name": "cocos2d::ccpIntersectPoint", "pseudocode": "// \n// cocos2d::ccpIntersectPoint from 0x180097670 to 0x18009771c (172 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c090c\n// \n// This function is hookable on this platform (idp: pc, 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 11:22:10 +0000\n// \n\n_DWORD *__fastcall cocos2d::ccpIntersectPoint(\n        _DWORD *a1,\n        float *a2,\n        float *a3,\n        const struct cocos2d::CCPoint *a4,\n        struct cocos2d::CCPoint *a5)\n{\n  float *v8; // rdx\n  float *v10; // [rsp+30h] [rbp-18h] BYREF\n  float v11[4]; // [rsp+38h] [rbp-10h] BYREF\n\n  if ( cocos2d::ccpLineIntersect(\n         (cocos2d *)a2,\n         (const struct cocos2d::CCPoint *)a3,\n         a4,\n         a5,\n         (const struct cocos2d::CCPoint *)&v10,\n         v11,\n         v10) )\n  {\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v11);\n    v8 = v11;\n    v11[0] = (float)((float)(*a3 - *a2) * *(float *)&v10) + *a2;\n    v11[1] = (float)((float)(a3[1] - a2[1]) * *(float *)&v10) + a2[1];\n  }\n  else\n  {\n    v8 = (float *)&unk_1801B2A68;\n  }\n  cocos2d::cc_timeval::operator=(a1, v8);\n  return a1;\n}", "assembly": "; \n; cocos2d::ccpIntersectPoint from 0x180097670 to 0x18009771c (172 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c090c\n; \n; This function is hookable on this platform (idp: pc, 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 11:22:10 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180097670\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180097675\npush    rdi                                                            ; +0xa, 0x18009767a\nsub     rsp, 40h                                                       ; +0xb, 0x18009767b\nmov     rbx, rcx                                                       ; +0xf, 0x18009767f\nmov     rax, r9                                                        ; +0x12, 0x180097682\nmov     r9, [rsp+48h+arg_20]; struct cocos2d::CCPoint *                ; +0x15, 0x180097685\nlea     rcx, [rsp+48h+var_10]                                          ; +0x1a, 0x18009768a\nmov     [rsp+48h+var_20], rcx; float *                                 ; +0x1f, 0x18009768f\nmov     rdi, r8                                                        ; +0x24, 0x180097694\nmov     rsi, rdx                                                       ; +0x27, 0x180097697\nlea     rcx, [rsp+48h+var_18]                                          ; +0x2a, 0x18009769a\nmov     [rsp+48h+var_28], rcx; struct cocos2d::CCPoint *               ; +0x2f, 0x18009769f\nmov     r8, rax; struct cocos2d::CCPoint *                             ; +0x34, 0x1800976a4\nmov     rcx, rsi; this                                                 ; +0x37, 0x1800976a7\nmov     rdx, rdi; struct cocos2d::CCPoint *                            ; +0x3a, 0x1800976aa\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, 0x1800976ad\ntest    al, al                                                         ; +0x42, 0x1800976b2\njz      short loc_1800976FA                                            ; +0x44, 0x1800976b4\nlea     rcx, [rsp+48h+var_10]; this                                    ; +0x46, 0x1800976b6\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x4b, 0x1800976bb\nmovss   xmm1, dword ptr [rdi]                                          ; +0x50, 0x1800976c0\nlea     rdx, [rsp+48h+var_10]                                          ; +0x54, 0x1800976c4\nsubss   xmm1, dword ptr [rsi]                                          ; +0x59, 0x1800976c9\nmulss   xmm1, dword ptr [rsp+48h+var_18]                               ; +0x5d, 0x1800976cd\naddss   xmm1, dword ptr [rsi]                                          ; +0x63, 0x1800976d3\nmovss   [rsp+48h+var_10], xmm1                                         ; +0x67, 0x1800976d7\nmovss   xmm1, dword ptr [rdi+4]                                        ; +0x6d, 0x1800976dd\nsubss   xmm1, dword ptr [rsi+4]                                        ; +0x72, 0x1800976e2\nmulss   xmm1, dword ptr [rsp+48h+var_18]                               ; +0x77, 0x1800976e7\naddss   xmm1, dword ptr [rsi+4]                                        ; +0x7d, 0x1800976ed\nmovss   [rsp+48h+var_C], xmm1                                          ; +0x82, 0x1800976f2\njmp     short loc_180097701                                            ; +0x88, 0x1800976f8\nlea     rdx, unk_1801B2A68                                             ; +0x8a, 0x1800976fa\nmov     rcx, rbx                                                       ; +0x91, 0x180097701\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x94, 0x180097704\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x99, 0x180097709\nmov     rax, rbx                                                       ; +0x9e, 0x18009770e\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xa1, 0x180097711\nadd     rsp, 40h                                                       ; +0xa6, 0x180097716\npop     rdi                                                            ; +0xaa, 0x18009771a\nretn                                                                   ; +0xab, 0x18009771b", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c090c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}