{"type": "func", "start": 5373751728, "end": 5373751988, "name": "GJUINode::touchTest", "pseudocode": "// \n// GJUINode::touchTest from 0x1404cf1b0 to 0x1404cf2b4 (260 bytes)\n// \n// 3 xrefs:\n// > UIOptionsLayer::ccTouchBegan @ 0x1402a3db3\n// > UILayer::processUINodeTouch @ 0x1404ce639\n// > <???> @ 0x1406dd5bc\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\nint GJUINode::touchTest(GJUINode *a1, cocos2d::CCPoint a2)\n{\n  double v4; // xmm0_8\n  __int64 v5; // rax\n  __int64 v6; // rbx\n  _BOOL8 v7; // rdx\n  cocos2d::CCPoint v8; // rax\n  cocos2d::CCPoint v9; // [rsp+30h] [rbp+8h] BYREF\n  cocos2d::CCPoint v10; // [rsp+40h] [rbp+18h] BYREF\n\n  if ( !cocos2d::CCRect::containsPoint(&a1->m_rect, *(const struct cocos2d::CCPoint **)&a2) )\n    return 0;\n  if ( a1->m_oneButton )\n    return 1;\n  if ( a1->m_modeB && (a1->m_snap || !a1->m_swiping) )\n  {\n    v4 = cocos2d::CCPoint::CCPoint(&v10);\n    v6 = v5;\n    cocos2d::CCPoint::CCPoint(*(float *)&v4, 0.0);\n    cocos2d::CCPoint::operator+(v6, &v9);\n    a1->m_firstSprite->setPosition_0(a1->m_firstSprite, &v9);\n    LOBYTE(v7) = 1;\n    a1->m_firstSprite->setVisible(a1->m_firstSprite, v7);\n    a1->m_swiping = 1;\n    return 5;\n  }\n  else\n  {\n    cocos2d::CCPoint::CCPoint(&v9);\n    return GJUINode::activeTouchTest(a1, v8);\n  }\n}", "assembly": "; \n; GJUINode::touchTest from 0x1404cf1b0 to 0x1404cf2b4 (260 bytes)\n; \n; 3 xrefs:\n; > UIOptionsLayer::ccTouchBegan @ 0x1402a3db3\n; > UILayer::processUINodeTouch @ 0x1404ce639\n; > <???> @ 0x1406dd5bc\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_8], rbx                                               ; +0x0, 0x1404cf1b0\npush    rdi                                                            ; +0x5, 0x1404cf1b5\nsub     rsp, 20h                                                       ; +0x6, 0x1404cf1b6\nmov     rdi, rcx                                                       ; +0xa, 0x1404cf1ba\nmov     rbx, rdx                                                       ; +0xd, 0x1404cf1bd\nadd     rcx, 150h                                                      ; +0x10, 0x1404cf1c0\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x17, 0x1404cf1c7\ntest    al, al                                                         ; +0x1d, 0x1404cf1cd\njz      loc_1404CF2A7                                                  ; +0x1f, 0x1404cf1cf\ncmp     byte ptr [rdi+182h], 0                                         ; +0x25, 0x1404cf1d5\njz      short loc_1404CF1EE                                            ; +0x2c, 0x1404cf1dc\nmov     eax, 1                                                         ; +0x2e, 0x1404cf1de\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x33, 0x1404cf1e3\nadd     rsp, 20h                                                       ; +0x38, 0x1404cf1e8\npop     rdi                                                            ; +0x3c, 0x1404cf1ec\nretn                                                                   ; +0x3d, 0x1404cf1ed\ncmp     byte ptr [rdi+17Dh], 0                                         ; +0x3e, 0x1404cf1ee\njz      loc_1404CF283                                                  ; +0x45, 0x1404cf1f5\ncmp     byte ptr [rdi+17Eh], 0                                         ; +0x4b, 0x1404cf1fb\njnz     short loc_1404CF20D                                            ; +0x52, 0x1404cf202\ncmp     byte ptr [rdi+17Fh], 0                                         ; +0x54, 0x1404cf204\njnz     short loc_1404CF283                                            ; +0x5b, 0x1404cf20b\nmov     rdx, rbx                                                       ; +0x5d, 0x1404cf20d\nlea     rcx, [rsp+28h+arg_10]                                          ; +0x60, 0x1404cf210\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x65, 0x1404cf215\nmovss   xmm2, cs:dword_1406231B0                                       ; +0x6b, 0x1404cf21b\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x73, 0x1404cf223\nxorps   xmm1, xmm1                                                     ; +0x78, 0x1404cf228\nmov     rbx, rax                                                       ; +0x7b, 0x1404cf22b\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x7e, 0x1404cf22e\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x84, 0x1404cf234\nmov     rcx, rbx                                                       ; +0x89, 0x1404cf239\nmov     r8, rax                                                        ; +0x8c, 0x1404cf23c\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x8f, 0x1404cf23f\nmov     rcx, [rdi+140h]                                                ; +0x95, 0x1404cf245\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x9c, 0x1404cf24c\nmov     rax, [rcx]                                                     ; +0xa1, 0x1404cf251\ncall    qword ptr [rax+0B8h]                                           ; +0xa4, 0x1404cf254\nmov     rcx, [rdi+140h]                                                ; +0xaa, 0x1404cf25a\nmov     dl, 1                                                          ; +0xb1, 0x1404cf261\nmov     rax, [rcx]                                                     ; +0xb3, 0x1404cf263\ncall    qword ptr [rax+140h]                                           ; +0xb6, 0x1404cf266\nmov     eax, 5                                                         ; +0xbc, 0x1404cf26c\nmov     byte ptr [rdi+17Fh], 1                                         ; +0xc1, 0x1404cf271\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc8, 0x1404cf278\nadd     rsp, 20h                                                       ; +0xcd, 0x1404cf27d\npop     rdi                                                            ; +0xd1, 0x1404cf281\nretn                                                                   ; +0xd2, 0x1404cf282\nmov     rdx, rbx                                                       ; +0xd3, 0x1404cf283\nlea     rcx, [rsp+28h+arg_0]                                           ; +0xd6, 0x1404cf286\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xdb, 0x1404cf28b\nmov     rdx, rax                                                       ; +0xe1, 0x1404cf291\nmov     rcx, rdi                                                       ; +0xe4, 0x1404cf294\ncall    GJUINode__activeTouchTest                                      ; +0xe7, 0x1404cf297\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xec, 0x1404cf29c\nadd     rsp, 20h                                                       ; +0xf1, 0x1404cf2a1\npop     rdi                                                            ; +0xf5, 0x1404cf2a5\nretn                                                                   ; +0xf6, 0x1404cf2a6\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf7, 0x1404cf2a7\nxor     eax, eax                                                       ; +0xfc, 0x1404cf2ac\nadd     rsp, 20h                                                       ; +0xfe, 0x1404cf2ae\npop     rdi                                                            ; +0x102, 0x1404cf2b2\nretn                                                                   ; +0x103, 0x1404cf2b3", "xrefs": ["UIOptionsLayer::ccTouchBegan @ 0x1402a3db3", "UILayer::processUINodeTouch @ 0x1404ce639", "<???> @ 0x1406dd5bc"], "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"}