{"type": "func", "start": 5375476080, "end": 5375476340, "name": "GJUINode::touchTest", "pseudocode": "// \n// GJUINode::touchTest from 0x140674170 to 0x140674274 (260 bytes)\n// \n// 2 xrefs:\n// > UILayer::processUINodeTouch @ 0x14067368d\n// > <???> @ 0x140932444\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:35:55 +0000\n// \n\n__int64 __fastcall GJUINode::touchTest(__int64 a1, const struct cocos2d::CCPoint *a2)\n{\n  __int64 v5; // rax\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  __int64 v8; // rdx\n  __int64 v9; // rax\n  char v10; // [rsp+30h] [rbp+8h] BYREF\n  char v11; // [rsp+40h] [rbp+18h] BYREF\n  char v12; // [rsp+48h] [rbp+20h] BYREF\n\n  if ( !cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 336), a2) )\n    return 0;\n  if ( *(_BYTE *)(a1 + 386) )\n    return 1;\n  if ( *(_BYTE *)(a1 + 381) && (*(_BYTE *)(a1 + 382) || !*(_BYTE *)(a1 + 383)) )\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, a2);\n    v6 = v5;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, 0.0, 40.0);\n    cocos2d::CCPoint::operator+(v6, &v10, v7);\n    (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 320) + 184LL))(*(_QWORD *)(a1 + 320), &v10);\n    LOBYTE(v8) = 1;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 320) + 336LL))(*(_QWORD *)(a1 + 320), v8);\n    *(_BYTE *)(a1 + 383) = 1;\n    return 5;\n  }\n  else\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, a2);\n    return GJUINode::activeTouchTest(a1, v9);\n  }\n}", "assembly": "; \n; GJUINode::touchTest from 0x140674170 to 0x140674274 (260 bytes)\n; \n; 2 xrefs:\n; > UILayer::processUINodeTouch @ 0x14067368d\n; > <???> @ 0x140932444\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:35:55 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140674170\npush    rdi                                                            ; +0x5, 0x140674175\nsub     rsp, 20h                                                       ; +0x6, 0x140674176\nmov     rdi, rcx                                                       ; +0xa, 0x14067417a\nmov     rbx, rdx                                                       ; +0xd, 0x14067417d\nadd     rcx, 150h                                                      ; +0x10, 0x140674180\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x17, 0x140674187\ntest    al, al                                                         ; +0x1d, 0x14067418d\njz      loc_140674267                                                  ; +0x1f, 0x14067418f\ncmp     byte ptr [rdi+182h], 0                                         ; +0x25, 0x140674195\njz      short loc_1406741AE                                            ; +0x2c, 0x14067419c\nmov     eax, 1                                                         ; +0x2e, 0x14067419e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x33, 0x1406741a3\nadd     rsp, 20h                                                       ; +0x38, 0x1406741a8\npop     rdi                                                            ; +0x3c, 0x1406741ac\nretn                                                                   ; +0x3d, 0x1406741ad\ncmp     byte ptr [rdi+17Dh], 0                                         ; +0x3e, 0x1406741ae\njz      loc_140674243                                                  ; +0x45, 0x1406741b5\ncmp     byte ptr [rdi+17Eh], 0                                         ; +0x4b, 0x1406741bb\njnz     short loc_1406741CD                                            ; +0x52, 0x1406741c2\ncmp     byte ptr [rdi+17Fh], 0                                         ; +0x54, 0x1406741c4\njnz     short loc_140674243                                            ; +0x5b, 0x1406741cb\nmov     rdx, rbx                                                       ; +0x5d, 0x1406741cd\nlea     rcx, [rsp+28h+arg_10]                                          ; +0x60, 0x1406741d0\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x65, 0x1406741d5\nmovss   xmm2, cs:dword_140835674                                       ; +0x6b, 0x1406741db\nlea     rcx, [rsp+28h+arg_18]                                          ; +0x73, 0x1406741e3\nxorps   xmm1, xmm1                                                     ; +0x78, 0x1406741e8\nmov     rbx, rax                                                       ; +0x7b, 0x1406741eb\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x7e, 0x1406741ee\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x84, 0x1406741f4\nmov     rcx, rbx                                                       ; +0x89, 0x1406741f9\nmov     r8, rax                                                        ; +0x8c, 0x1406741fc\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x8f, 0x1406741ff\nmov     rcx, [rdi+140h]                                                ; +0x95, 0x140674205\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x9c, 0x14067420c\nmov     rax, [rcx]                                                     ; +0xa1, 0x140674211\ncall    qword ptr [rax+0B8h]                                           ; +0xa4, 0x140674214\nmov     rcx, [rdi+140h]                                                ; +0xaa, 0x14067421a\nmov     dl, 1                                                          ; +0xb1, 0x140674221\nmov     rax, [rcx]                                                     ; +0xb3, 0x140674223\ncall    qword ptr [rax+150h]                                           ; +0xb6, 0x140674226\nmov     eax, 5                                                         ; +0xbc, 0x14067422c\nmov     byte ptr [rdi+17Fh], 1                                         ; +0xc1, 0x140674231\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc8, 0x140674238\nadd     rsp, 20h                                                       ; +0xcd, 0x14067423d\npop     rdi                                                            ; +0xd1, 0x140674241\nretn                                                                   ; +0xd2, 0x140674242\nmov     rdx, rbx                                                       ; +0xd3, 0x140674243\nlea     rcx, [rsp+28h+arg_0]                                           ; +0xd6, 0x140674246\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xdb, 0x14067424b\nmov     rdx, rax                                                       ; +0xe1, 0x140674251\nmov     rcx, rdi                                                       ; +0xe4, 0x140674254\ncall    GJUINode__activeTouchTest                                      ; +0xe7, 0x140674257\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xec, 0x14067425c\nadd     rsp, 20h                                                       ; +0xf1, 0x140674261\npop     rdi                                                            ; +0xf5, 0x140674265\nretn                                                                   ; +0xf6, 0x140674266\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf7, 0x140674267\nxor     eax, eax                                                       ; +0xfc, 0x14067426c\nadd     rsp, 20h                                                       ; +0xfe, 0x14067426e\npop     rdi                                                            ; +0x102, 0x140674272\nretn                                                                   ; +0x103, 0x140674273", "xrefs": ["UILayer::processUINodeTouch @ 0x14067368d", "<???> @ 0x140932444"], "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"}