{"type": "func", "start": 5369188992, "end": 5369189417, "name": "TableView::ccTouchBegan", "pseudocode": "// \n// TableView::ccTouchBegan from 0x140075280 to 0x140075429 (425 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140537680\n// > <???> @ 0x140667234\n// > <???> @ 0x140667244\n// > <???> @ 0x1406c63c0\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\nbool TableView::ccTouchBegan(TableView *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  struct cocos2d::CCPoint v7; // rax\n  __int64 v8; // rax\n  struct cocos2d::CCPoint v9; // rax\n  __int64 v10; // rax\n  bool v11; // zf\n  __int64 v12; // rcx\n  cocos2d::CCDirector *v13; // rax\n  struct cocos2d::CCPoint v14; // rax\n  __int64 v15; // rax\n  struct cocos2d::CCPoint v17; // [rsp+20h] [rbp-38h] BYREF\n  cocos2d::CCRect v18[3]; // [rsp+28h] [rbp-30h] BYREF\n  struct cocos2d::CCPoint v19; // [rsp+60h] [rbp+8h] BYREF\n\n  if ( BYTE1(a1->m_sInverse.a) )\n    return 0;\n  *(_QWORD *)&a1->m_fSkewY = a2;\n  cocos2d::CCTouch::getLocationInView(a2);\n  v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n  v7 = cocos2d::CCDirector::convertToGL(v6, &v17);\n  ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&a1->m_obAnchorPointInPoints.y, v7);\n  cocos2d::CCPoint::operator=(&a1->m_obAnchorPoint.y, v8);\n  v9 = cocos2d::CCNode::convertToNodeSpace((TableView *)((char *)a1 - 320), &v17);\n  ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v19, v9);\n  cocos2d::CCRect::CCRect(v18);\n  cocos2d::CCPoint::operator=(v18, &stru_1406C13A8);\n  v10 = ((__int64 (__fastcall *)(cocos2d::CCAccelerometerDelegate *))a1[-1].CCScrollLayerExt::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable[38].didAccelerate)(&a1[-1].cocos2d::CCAccelerometerDelegate);\n  cocos2d::CCSize::operator=(&v18[0].size, v10);\n  if ( !cocos2d::CCRect::containsPoint(v18, &v19) )\n    return 0;\n  cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)&a1->m_sTransform.d);\n  cocos2d::CCTime::gettimeofdayCocos2d((struct cocos2d::cc_timeval *)&a1->m_obContentSize.height, nullptr);\n  v11 = BYTE1(a1->m_sInverse.a) == 0;\n  LOBYTE(a1->m_sAdditionalTransform.b) = 1;\n  if ( !v11 )\n    return 0;\n  a1->m_pGrid = (cocos2d::CCGridBase *)a2;\n  cocos2d::CCTouch::getLocationInView(a2);\n  v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12);\n  v14 = cocos2d::CCDirector::convertToGL(v13, &v19);\n  ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&a1->m_pUserData, v14);\n  cocos2d::CCPoint::operator=(&a1->m_pChildren, v15);\n  if ( !LOBYTE(a1->m_pCamera) )\n  {\n    cocos2d::CCNode::schedule(&a1[-1].cocos2d::CCAccelerometerDelegate, TableView::checkBoundaryOfContent);\n    LOBYTE(a1->m_pCamera) = 1;\n  }\n  *(_DWORD *)(&a1->m_bUnkBool2 + 3) = HIDWORD(a1->m_pChildren);\n  return 1;\n}", "assembly": "; \n; TableView::ccTouchBegan from 0x140075280 to 0x140075429 (425 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140537680\n; > <???> @ 0x140667234\n; > <???> @ 0x140667244\n; > <???> @ 0x1406c63c0\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\npush    rsi                                                            ; +0x0, 0x140075280\npush    rdi                                                            ; +0x2, 0x140075282\npush    r14                                                            ; +0x3, 0x140075283\nsub     rsp, 40h                                                       ; +0x5, 0x140075285\ncmp     byte ptr [rcx+0A5h], 0                                         ; +0x9, 0x140075289\nmov     rsi, rdx                                                       ; +0x10, 0x140075290\nmov     rdi, rcx                                                       ; +0x13, 0x140075293\njnz     loc_14007541E                                                  ; +0x16, 0x140075296\nmov     [rcx+58h], rdx                                                 ; +0x1c, 0x14007529c\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x20, 0x1400752a0\nmov     rcx, rsi                                                       ; +0x25, 0x1400752a5\nmov     [rsp+58h+arg_8], rbx                                           ; +0x28, 0x1400752a8\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x2d, 0x1400752ad\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x33, 0x1400752b3\nmov     rcx, rax                                                       ; +0x39, 0x1400752b9\nlea     r8, [rsp+58h+arg_0]                                            ; +0x3c, 0x1400752bc\nlea     rdx, [rsp+58h+var_38]                                          ; +0x41, 0x1400752c1\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x46, 0x1400752c6\nmov     rdx, rax                                                       ; +0x4c, 0x1400752cc\nlea     rcx, [rdi+60h]                                                 ; +0x4f, 0x1400752cf\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x53, 0x1400752d3\nmov     rdx, rax                                                       ; +0x59, 0x1400752d9\nlea     rcx, [rdi+68h]                                                 ; +0x5c, 0x1400752dc\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x60, 0x1400752e0\nlea     r8, [rdi+60h]                                                  ; +0x66, 0x1400752e6\nlea     rdx, [rsp+58h+var_38]                                          ; +0x6a, 0x1400752ea\nlea     rcx, [rdi-140h]                                                ; +0x6f, 0x1400752ef\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x76, 0x1400752f6\nmov     rdx, rax                                                       ; +0x7c, 0x1400752fc\nlea     rcx, [rsp+58h+arg_0]                                           ; +0x7f, 0x1400752ff\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x84, 0x140075304\nlea     rcx, [rsp+58h+var_30]                                          ; +0x8a, 0x14007530a\ncall    cs:??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void)   ; +0x8f, 0x14007530f\nlea     rdx, stru_1406C13A8                                            ; +0x95, 0x140075315\nlea     rcx, [rsp+58h+var_30]                                          ; +0x9c, 0x14007531c\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xa1, 0x140075321\nmov     rax, [rdi-140h]                                                ; +0xa7, 0x140075327\nlea     rcx, [rdi-140h]                                                ; +0xae, 0x14007532e\ncall    qword ptr [rax+130h]                                           ; +0xb5, 0x140075335\nmov     rdx, rax                                                       ; +0xbb, 0x14007533b\nlea     rcx, [rsp+58h+var_28]                                          ; +0xbe, 0x14007533e\ncall    cs:??4CCSize@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCSize::operator=(cocos2d::CCSize const &) ; +0xc3, 0x140075343\nlea     rdx, [rsp+58h+arg_0]                                           ; +0xc9, 0x140075349\nlea     rcx, [rsp+58h+var_30]                                          ; +0xce, 0x14007534e\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0xd3, 0x140075353\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xd9, 0x140075359\ntest    al, al                                                         ; +0xde, 0x14007535e\njz      loc_14007541E                                                  ; +0xe0, 0x140075360\nmov     rcx, [rdi+98h]                                                 ; +0xe6, 0x140075366\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xed, 0x14007536d\nlea     rcx, [rdi+70h]                                                 ; +0xf3, 0x140075373\nxor     edx, edx                                                       ; +0xf7, 0x140075377\ncall    cs:?gettimeofdayCocos2d@CCTime@cocos2d@@SAHPEAUcc_timeval@2@PEAX@Z; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0xf9, 0x140075379\ncmp     byte ptr [rdi+0A5h], 0                                         ; +0xff, 0x14007537f\nmov     byte ptr [rdi+78h], 1                                          ; +0x106, 0x140075386\nsetz    al                                                             ; +0x10a, 0x14007538a\ntest    al, al                                                         ; +0x10d, 0x14007538d\njz      loc_14007541E                                                  ; +0x10f, 0x14007538f\nlea     rdx, [rsp+58h+arg_18]                                          ; +0x115, 0x140075395\nmov     [rdi+0C8h], rsi                                                ; +0x11a, 0x14007539a\nmov     rcx, rsi                                                       ; +0x121, 0x1400753a1\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x124, 0x1400753a4\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x12a, 0x1400753aa\nmov     rcx, rax                                                       ; +0x130, 0x1400753b0\nlea     r8, [rsp+58h+arg_18]                                           ; +0x133, 0x1400753b3\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x138, 0x1400753b8\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x13d, 0x1400753bd\nmov     rdx, rax                                                       ; +0x143, 0x1400753c3\nlea     rcx, [rdi+0E0h]                                                ; +0x146, 0x1400753c6\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x14d, 0x1400753cd\nmov     rdx, rax                                                       ; +0x153, 0x1400753d3\nlea     rcx, [rdi+0D0h]                                                ; +0x156, 0x1400753d6\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x15d, 0x1400753dd\ncmp     byte ptr [rdi+0C0h], 0                                         ; +0x163, 0x1400753e3\njnz     short loc_140075407                                            ; +0x16a, 0x1400753ea\nlea     rdx, TableView__checkBoundaryOfContent                         ; +0x16c, 0x1400753ec\nlea     rcx, [rdi-140h]                                                ; +0x173, 0x1400753f3\ncall    cs:?schedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::schedule(void (cocos2d::CCObject::*)(float)) ; +0x17a, 0x1400753fa\nmov     byte ptr [rdi+0C0h], 1                                         ; +0x180, 0x140075400\nmov     eax, [rdi+0D4h]                                                ; +0x187, 0x140075407\nmov     [rdi+13Ch], eax                                                ; +0x18d, 0x14007540d\nmov     al, 1                                                          ; +0x193, 0x140075413\nadd     rsp, 40h                                                       ; +0x195, 0x140075415\npop     r14                                                            ; +0x199, 0x140075419\npop     rdi                                                            ; +0x19b, 0x14007541b\npop     rsi                                                            ; +0x19c, 0x14007541c\nretn                                                                   ; +0x19d, 0x14007541d\nxor     al, al                                                         ; +0x19e, 0x14007541e\nadd     rsp, 40h                                                       ; +0x1a0, 0x140075420\npop     r14                                                            ; +0x1a4, 0x140075424\npop     rdi                                                            ; +0x1a6, 0x140075426\npop     rsi                                                            ; +0x1a7, 0x140075427\nretn                                                                   ; +0x1a8, 0x140075428", "xrefs": ["<???> @ 0x140537680", "<???> @ 0x140667234", "<???> @ 0x140667244", "<???> @ 0x1406c63c0"], "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"}