{"type": "func", "start": 6442538128, "end": 6442538329, "name": "cocos2d::CCDrawNode::is_segment_on_screen", "pseudocode": "// \n// cocos2d::CCDrawNode::is_segment_on_screen from 0x180015490 to 0x180015559 (201 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDrawNode::drawSegmentEx @ 0x180014502\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae4ac\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::CCDrawNode::is_segment_on_screen(\n        cocos2d::CCDrawNode *this,\n        const struct cocos2d::CCRect *a2,\n        const struct cocos2d::CCPoint *a3,\n        const struct cocos2d::CCPoint *a4)\n{\n  float x; // xmm3_4\n  float y; // xmm4_4\n  float v6; // xmm5_4\n  float v7; // xmm6_4\n  float m_fMaxAreaY; // xmm0_4\n  float m_fMinAreaY; // xmm0_4\n  float m_fMaxAreaX; // xmm0_4\n  float m_fMinAreaX; // xmm0_4\n\n  x = a3->x;\n  y = a3->y;\n  v6 = a4->x;\n  v7 = a4->y;\n  if ( fabs(y - v7) <= fabs(a3->x - a4->x) )\n  {\n    if ( this->m_fMinAreaY <= y && y <= this->m_fMaxAreaY )\n    {\n      m_fMaxAreaX = this->m_fMaxAreaX;\n      if ( x <= m_fMaxAreaX || v6 <= m_fMaxAreaX )\n      {\n        m_fMinAreaX = this->m_fMinAreaX;\n        if ( m_fMinAreaX <= x || m_fMinAreaX <= v6 )\n          return 1;\n      }\n    }\n  }\n  else if ( this->m_fMinAreaX <= x && x <= this->m_fMaxAreaX )\n  {\n    m_fMaxAreaY = this->m_fMaxAreaY;\n    if ( y <= m_fMaxAreaY || v7 <= m_fMaxAreaY )\n    {\n      m_fMinAreaY = this->m_fMinAreaY;\n      if ( m_fMinAreaY <= y || m_fMinAreaY <= v7 )\n        return 1;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; cocos2d::CCDrawNode::is_segment_on_screen from 0x180015490 to 0x180015559 (201 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDrawNode::drawSegmentEx @ 0x180014502\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae4ac\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, 18h                                                       ; +0x0, 0x180015490\nmovss   xmm3, dword ptr [r8]                                           ; +0x4, 0x180015494\nmovss   xmm4, dword ptr [r8+4]                                         ; +0x9, 0x180015499\nmovaps  xmm2, xmm3                                                     ; +0xf, 0x18001549f\nmovss   xmm5, dword ptr [r9]                                           ; +0x12, 0x1800154a2\nmovaps  xmm0, xmm4                                                     ; +0x17, 0x1800154a7\nmovaps  [rsp+18h+var_18], xmm6                                         ; +0x1a, 0x1800154aa\nsubss   xmm2, xmm5                                                     ; +0x1e, 0x1800154ae\nmovss   xmm6, dword ptr [r9+4]                                         ; +0x22, 0x1800154b2\nsubss   xmm0, xmm6                                                     ; +0x28, 0x1800154b8\nandps   xmm2, cs:xmmword_1800E6560                                     ; +0x2c, 0x1800154bc\nandps   xmm0, cs:xmmword_1800E6560                                     ; +0x33, 0x1800154c3\ncomiss  xmm0, xmm2                                                     ; +0x3a, 0x1800154ca\njbe     short loc_180015514                                            ; +0x3d, 0x1800154cd\nmovss   xmm0, dword ptr [rcx+18Ch]                                     ; +0x3f, 0x1800154cf\ncomiss  xmm0, xmm3                                                     ; +0x47, 0x1800154d7\nja      short loc_18001554E                                            ; +0x4a, 0x1800154da\ncomiss  xmm3, dword ptr [rcx+190h]                                     ; +0x4c, 0x1800154dc\nja      short loc_18001554E                                            ; +0x53, 0x1800154e3\nmovss   xmm0, dword ptr [rcx+194h]                                     ; +0x55, 0x1800154e5\ncomiss  xmm4, xmm0                                                     ; +0x5d, 0x1800154ed\njbe     short loc_1800154F7                                            ; +0x60, 0x1800154f0\ncomiss  xmm6, xmm0                                                     ; +0x62, 0x1800154f2\nja      short loc_18001554E                                            ; +0x65, 0x1800154f5\nmovss   xmm0, dword ptr [rcx+198h]                                     ; +0x67, 0x1800154f7\ncomiss  xmm0, xmm4                                                     ; +0x6f, 0x1800154ff\njbe     short loc_180015509                                            ; +0x72, 0x180015502\ncomiss  xmm0, xmm6                                                     ; +0x74, 0x180015504\nja      short loc_18001554E                                            ; +0x77, 0x180015507\nmov     al, 1                                                          ; +0x79, 0x180015509\nmovaps  xmm6, [rsp+18h+var_18]                                         ; +0x7b, 0x18001550b\nadd     rsp, 18h                                                       ; +0x7f, 0x18001550f\nretn                                                                   ; +0x83, 0x180015513\nmovss   xmm0, dword ptr [rcx+198h]                                     ; +0x84, 0x180015514\ncomiss  xmm0, xmm4                                                     ; +0x8c, 0x18001551c\nja      short loc_18001554E                                            ; +0x8f, 0x18001551f\ncomiss  xmm4, dword ptr [rcx+194h]                                     ; +0x91, 0x180015521\nja      short loc_18001554E                                            ; +0x98, 0x180015528\nmovss   xmm0, dword ptr [rcx+190h]                                     ; +0x9a, 0x18001552a\ncomiss  xmm3, xmm0                                                     ; +0xa2, 0x180015532\njbe     short loc_18001553C                                            ; +0xa5, 0x180015535\ncomiss  xmm5, xmm0                                                     ; +0xa7, 0x180015537\nja      short loc_18001554E                                            ; +0xaa, 0x18001553a\nmovss   xmm0, dword ptr [rcx+18Ch]                                     ; +0xac, 0x18001553c\ncomiss  xmm0, xmm3                                                     ; +0xb4, 0x180015544\njbe     short loc_180015509                                            ; +0xb7, 0x180015547\ncomiss  xmm0, xmm5                                                     ; +0xb9, 0x180015549\njbe     short loc_180015509                                            ; +0xbc, 0x18001554c\nmovaps  xmm6, [rsp+18h+var_18]                                         ; +0xbe, 0x18001554e\nxor     al, al                                                         ; +0xc2, 0x180015552\nadd     rsp, 18h                                                       ; +0xc4, 0x180015554\nretn                                                                   ; +0xc8, 0x180015558", "xrefs": ["cocos2d::CCDrawNode::drawSegmentEx @ 0x180014502", "<???> @ 0x1801438a8", "<???> @ 0x1801ae4ac"], "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"}