{"type": "func", "start": 6443063712, "end": 6443064084, "name": "cocos2d::ccVertexLineIntersect", "pseudocode": "// \n// cocos2d::ccVertexLineIntersect from 0x1800959a0 to 0x180095b14 (372 bytes)\n// \n// 3 xrefs:\n// > cocos2d::ccVertexLineToPolygon @ 0x180095ed1\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6840\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\nchar __fastcall cocos2d::ccVertexLineIntersect(\n        cocos2d *this,\n        float a2,\n        float a3,\n        float a4,\n        float a5,\n        float a6,\n        float a7,\n        float a8,\n        float *a9)\n{\n  float v9; // xmm0_4\n  float v10; // xmm6_4\n  float v11; // xmm7_4\n  float v12; // xmm10_4\n  float v13; // xmm9_4\n  float v14; // xmm11_4\n  float v15; // xmm8_4\n  float v16; // xmm1_4\n  float v17; // xmm3_4\n  float v18; // xmm6_4\n  float v19; // xmm7_4\n  float v20; // xmm2_4\n  float v21; // xmm1_4\n  float v22; // xmm4_4\n  float v23; // xmm6_4\n  float v24; // xmm1_4\n\n  if ( v9 == a3 && a2 == a4 )\n    return 0;\n  if ( a5 == a7 && a6 == a8 )\n    return 0;\n  v10 = a3 - v9;\n  v11 = a4 - a2;\n  v12 = a5 - v9;\n  v13 = a6 - a2;\n  v14 = a7 - v9;\n  v15 = a8 - a2;\n  v16 = (float)(v10 * v10) + (float)(v11 * v11);\n  v17 = v16 < 0.0 ? sqrtf(v16) : fsqrt(v16);\n  v18 = v10 / v17;\n  v19 = v11 / v17;\n  v20 = (float)(v18 * v12) + (float)(v19 * v13);\n  v21 = v18;\n  v22 = (float)(v18 * v13) - (float)(v19 * v12);\n  v23 = (float)(v18 * v15) - (float)(v19 * v14);\n  v24 = (float)(v21 * v14) + (float)(v19 * v15);\n  if ( v22 == v23 )\n    return 0;\n  *a9 = (float)((float)((float)((float)(v20 - v24) * v23) / (float)(v23 - v22)) + v24) / v17;\n  return 1;\n}", "assembly": "; \n; cocos2d::ccVertexLineIntersect from 0x1800959a0 to 0x180095b14 (372 bytes)\n; \n; 3 xrefs:\n; > cocos2d::ccVertexLineToPolygon @ 0x180095ed1\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6840\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\nsub     rsp, 88h                                                       ; +0x0, 0x1800959a0\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0x7, 0x1800959a7\nmovaps  xmm6, xmm2                                                     ; +0xc, 0x1800959ac\nucomiss xmm0, xmm6                                                     ; +0xf, 0x1800959af\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x12, 0x1800959b2\nmovaps  xmm7, xmm3                                                     ; +0x17, 0x1800959b7\nmovaps  [rsp+88h+var_38], xmm8                                         ; +0x1a, 0x1800959ba\nmovaps  [rsp+88h+var_48], xmm9                                         ; +0x20, 0x1800959c0\nmovaps  [rsp+88h+var_58], xmm10                                        ; +0x26, 0x1800959c6\nmovaps  [rsp+88h+var_68], xmm11                                        ; +0x2c, 0x1800959cc\njp      short loc_1800959E1                                            ; +0x32, 0x1800959d2\njnz     short loc_1800959E1                                            ; +0x34, 0x1800959d4\nucomiss xmm1, xmm7                                                     ; +0x36, 0x1800959d6\njp      short loc_1800959E1                                            ; +0x39, 0x1800959d9\njz      loc_180095AC0                                                  ; +0x3b, 0x1800959db\nmovss   xmm10, [rsp+88h+arg_20]                                        ; +0x41, 0x1800959e1\nmovss   xmm11, [rsp+88h+arg_30]                                        ; +0x4b, 0x1800959eb\nucomiss xmm10, xmm11                                                   ; +0x55, 0x1800959f5\nmovss   xmm8, [rsp+88h+arg_38]                                         ; +0x59, 0x1800959f9\nmovss   xmm9, [rsp+88h+arg_28]                                         ; +0x63, 0x180095a03\njp      short loc_180095A1D                                            ; +0x6d, 0x180095a0d\njnz     short loc_180095A1D                                            ; +0x6f, 0x180095a0f\nucomiss xmm9, xmm8                                                     ; +0x71, 0x180095a11\njp      short loc_180095A1D                                            ; +0x75, 0x180095a15\njz      loc_180095AC0                                                  ; +0x77, 0x180095a17\nsubss   xmm6, xmm0                                                     ; +0x7d, 0x180095a1d\nsubss   xmm7, xmm1                                                     ; +0x81, 0x180095a21\nsubss   xmm10, xmm0                                                    ; +0x85, 0x180095a25\nsubss   xmm9, xmm1                                                     ; +0x8a, 0x180095a2a\nsubss   xmm11, xmm0                                                    ; +0x8f, 0x180095a2f\nsubss   xmm8, xmm1                                                     ; +0x94, 0x180095a34\nmovaps  xmm1, xmm6                                                     ; +0x99, 0x180095a39\nmovaps  xmm0, xmm7                                                     ; +0x9c, 0x180095a3c\nmulss   xmm1, xmm6                                                     ; +0x9f, 0x180095a3f\nmulss   xmm0, xmm7                                                     ; +0xa3, 0x180095a43\naddss   xmm1, xmm0                                                     ; +0xa7, 0x180095a47\nxorps   xmm0, xmm0                                                     ; +0xab, 0x180095a4b\nucomiss xmm0, xmm1                                                     ; +0xae, 0x180095a4e\nja      short loc_180095A5C                                            ; +0xb1, 0x180095a51\nxorps   xmm3, xmm3                                                     ; +0xb3, 0x180095a53\nsqrtss  xmm3, xmm1                                                     ; +0xb6, 0x180095a56\njmp     short loc_180095A67                                            ; +0xba, 0x180095a5a\nmovaps  xmm0, xmm1; X                                                  ; +0xbc, 0x180095a5c\ncall    sqrtf                                                          ; +0xbf, 0x180095a5f\nmovaps  xmm3, xmm0                                                     ; +0xc4, 0x180095a64\ndivss   xmm6, xmm3                                                     ; +0xc7, 0x180095a67\ndivss   xmm7, xmm3                                                     ; +0xcb, 0x180095a6b\nmovaps  xmm2, xmm6                                                     ; +0xcf, 0x180095a6f\nmovaps  xmm4, xmm6                                                     ; +0xd2, 0x180095a72\nmovaps  xmm1, xmm7                                                     ; +0xd5, 0x180095a75\nmulss   xmm2, xmm10                                                    ; +0xd8, 0x180095a78\nmulss   xmm1, xmm9                                                     ; +0xdd, 0x180095a7d\nmovaps  xmm0, xmm7                                                     ; +0xe2, 0x180095a82\nmulss   xmm0, xmm10                                                    ; +0xe5, 0x180095a85\naddss   xmm2, xmm1                                                     ; +0xea, 0x180095a8a\nmulss   xmm4, xmm9                                                     ; +0xee, 0x180095a8e\nmovaps  xmm1, xmm6                                                     ; +0xf3, 0x180095a93\nmulss   xmm6, xmm8                                                     ; +0xf6, 0x180095a96\nsubss   xmm4, xmm0                                                     ; +0xfb, 0x180095a9b\nmulss   xmm1, xmm11                                                    ; +0xff, 0x180095a9f\nmovaps  xmm0, xmm7                                                     ; +0x104, 0x180095aa4\nmulss   xmm7, xmm11                                                    ; +0x107, 0x180095aa7\nmulss   xmm0, xmm8                                                     ; +0x10c, 0x180095aac\nsubss   xmm6, xmm7                                                     ; +0x111, 0x180095ab1\naddss   xmm1, xmm0                                                     ; +0x115, 0x180095ab5\nucomiss xmm4, xmm6                                                     ; +0x119, 0x180095ab9\njp      short loc_180095AC4                                            ; +0x11c, 0x180095abc\njnz     short loc_180095AC4                                            ; +0x11e, 0x180095abe\nxor     al, al                                                         ; +0x120, 0x180095ac0\njmp     short loc_180095AEA                                            ; +0x122, 0x180095ac2\nmov     rax, qword ptr [rsp+88h+arg_40]                                ; +0x124, 0x180095ac4\nsubss   xmm2, xmm1                                                     ; +0x12c, 0x180095acc\nmulss   xmm2, xmm6                                                     ; +0x130, 0x180095ad0\nsubss   xmm6, xmm4                                                     ; +0x134, 0x180095ad4\ndivss   xmm2, xmm6                                                     ; +0x138, 0x180095ad8\naddss   xmm2, xmm1                                                     ; +0x13c, 0x180095adc\ndivss   xmm2, xmm3                                                     ; +0x140, 0x180095ae0\nmovss   dword ptr [rax], xmm2                                          ; +0x144, 0x180095ae4\nmov     al, 1                                                          ; +0x148, 0x180095ae8\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x14a, 0x180095aea\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x14f, 0x180095aef\nmovaps  xmm8, [rsp+88h+var_38]                                         ; +0x154, 0x180095af4\nmovaps  xmm9, [rsp+88h+var_48]                                         ; +0x15a, 0x180095afa\nmovaps  xmm10, [rsp+88h+var_58]                                        ; +0x160, 0x180095b00\nmovaps  xmm11, [rsp+88h+var_68]                                        ; +0x166, 0x180095b06\nadd     rsp, 88h                                                       ; +0x16c, 0x180095b0c\nretn                                                                   ; +0x173, 0x180095b13", "xrefs": ["cocos2d::ccVertexLineToPolygon @ 0x180095ed1", "<???> @ 0x1801438a8", "<???> @ 0x1801b6840"], "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"}