{"type": "func", "start": 6442537936, "end": 6442538137, "name": "cocos2d::CCDrawNode::is_segment_on_screen", "pseudocode": "// \n// cocos2d::CCDrawNode::is_segment_on_screen from 0x1800153d0 to 0x180015499 (201 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDrawNode::drawSegmentEx @ 0x180014516\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8560\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:21:23 +0000\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 v4; // xmm3_4\n  float v5; // xmm4_4\n  float v6; // xmm5_4\n  float v7; // xmm6_4\n  float v8; // xmm0_4\n  float v9; // xmm0_4\n  float v11; // xmm0_4\n  float v12; // xmm0_4\n\n  v4 = *((float *)a3 + 1);\n  v5 = *(float *)a3;\n  v6 = *((float *)a4 + 1);\n  v7 = *(float *)a4;\n  if ( fabs(v4 - v6) <= fabs(*(float *)a3 - *(float *)a4) )\n  {\n    if ( *((float *)this + 102) <= v4 && v4 <= *((float *)this + 101) )\n    {\n      v11 = *((float *)this + 100);\n      if ( v5 <= v11 || v7 <= v11 )\n      {\n        v12 = *((float *)this + 99);\n        if ( v12 <= v5 || v12 <= v7 )\n          return 1;\n      }\n    }\n  }\n  else if ( *((float *)this + 99) <= v5 && v5 <= *((float *)this + 100) )\n  {\n    v8 = *((float *)this + 101);\n    if ( v4 <= v8 || v6 <= v8 )\n    {\n      v9 = *((float *)this + 102);\n      if ( v9 <= v4 || v9 <= v6 )\n        return 1;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; cocos2d::CCDrawNode::is_segment_on_screen from 0x1800153d0 to 0x180015499 (201 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDrawNode::drawSegmentEx @ 0x180014516\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8560\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:21:23 +0000\n; \nsub     rsp, 18h                                                       ; +0x0, 0x1800153d0\nmovss   xmm3, dword ptr [r8+4]                                         ; +0x4, 0x1800153d4\nmovss   xmm4, dword ptr [r8]                                           ; +0xa, 0x1800153da\nmovaps  xmm0, xmm3                                                     ; +0xf, 0x1800153df\nmovss   xmm5, dword ptr [r9+4]                                         ; +0x12, 0x1800153e2\nmovaps  xmm2, xmm4                                                     ; +0x18, 0x1800153e8\nmovaps  [rsp+18h+var_18], xmm6                                         ; +0x1b, 0x1800153eb\nsubss   xmm0, xmm5                                                     ; +0x1f, 0x1800153ef\nmovss   xmm6, dword ptr [r9]                                           ; +0x23, 0x1800153f3\nsubss   xmm2, xmm6                                                     ; +0x28, 0x1800153f8\nandps   xmm0, cs:xmmword_1800EC5C0                                     ; +0x2c, 0x1800153fc\nandps   xmm2, cs:xmmword_1800EC5C0                                     ; +0x33, 0x180015403\ncomiss  xmm0, xmm2                                                     ; +0x3a, 0x18001540a\njbe     short loc_180015454                                            ; +0x3d, 0x18001540d\nmovss   xmm0, dword ptr [rcx+18Ch]                                     ; +0x3f, 0x18001540f\ncomiss  xmm0, xmm4                                                     ; +0x47, 0x180015417\nja      short loc_18001548E                                            ; +0x4a, 0x18001541a\ncomiss  xmm4, dword ptr [rcx+190h]                                     ; +0x4c, 0x18001541c\nja      short loc_18001548E                                            ; +0x53, 0x180015423\nmovss   xmm0, dword ptr [rcx+194h]                                     ; +0x55, 0x180015425\ncomiss  xmm3, xmm0                                                     ; +0x5d, 0x18001542d\njbe     short loc_180015437                                            ; +0x60, 0x180015430\ncomiss  xmm5, xmm0                                                     ; +0x62, 0x180015432\nja      short loc_18001548E                                            ; +0x65, 0x180015435\nmovss   xmm0, dword ptr [rcx+198h]                                     ; +0x67, 0x180015437\ncomiss  xmm0, xmm3                                                     ; +0x6f, 0x18001543f\njbe     short loc_180015449                                            ; +0x72, 0x180015442\ncomiss  xmm0, xmm5                                                     ; +0x74, 0x180015444\nja      short loc_18001548E                                            ; +0x77, 0x180015447\nmov     al, 1                                                          ; +0x79, 0x180015449\nmovaps  xmm6, [rsp+18h+var_18]                                         ; +0x7b, 0x18001544b\nadd     rsp, 18h                                                       ; +0x7f, 0x18001544f\nretn                                                                   ; +0x83, 0x180015453\nmovss   xmm0, dword ptr [rcx+198h]                                     ; +0x84, 0x180015454\ncomiss  xmm0, xmm3                                                     ; +0x8c, 0x18001545c\nja      short loc_18001548E                                            ; +0x8f, 0x18001545f\ncomiss  xmm3, dword ptr [rcx+194h]                                     ; +0x91, 0x180015461\nja      short loc_18001548E                                            ; +0x98, 0x180015468\nmovss   xmm0, dword ptr [rcx+190h]                                     ; +0x9a, 0x18001546a\ncomiss  xmm4, xmm0                                                     ; +0xa2, 0x180015472\njbe     short loc_18001547C                                            ; +0xa5, 0x180015475\ncomiss  xmm6, xmm0                                                     ; +0xa7, 0x180015477\nja      short loc_18001548E                                            ; +0xaa, 0x18001547a\nmovss   xmm0, dword ptr [rcx+18Ch]                                     ; +0xac, 0x18001547c\ncomiss  xmm0, xmm4                                                     ; +0xb4, 0x180015484\njbe     short loc_180015449                                            ; +0xb7, 0x180015487\ncomiss  xmm0, xmm6                                                     ; +0xb9, 0x180015489\njbe     short loc_180015449                                            ; +0xbc, 0x18001548c\nmovaps  xmm6, [rsp+18h+var_18]                                         ; +0xbe, 0x18001548e\nxor     al, al                                                         ; +0xc2, 0x180015492\nadd     rsp, 18h                                                       ; +0xc4, 0x180015494\nretn                                                                   ; +0xc8, 0x180015498", "xrefs": ["cocos2d::CCDrawNode::drawSegmentEx @ 0x180014516", "<???> @ 0x18014cf68", "<???> @ 0x1801b8560"], "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"}