{"type": "func", "start": 5369190352, "end": 5369191102, "name": "TableView::touchFinish", "pseudocode": "// \n// TableView::touchFinish from 0x1400757d0 to 0x140075abe (750 bytes)\n// \n// 6 xrefs:\n// > TableView::ccTouchEnded @ 0x140075454\n// > TableView::ccTouchCancelled @ 0x1400754d7\n// > <???> @ 0x1406672d8\n// > <???> @ 0x1406672e8\n// > <???> @ 0x140667318\n// > <???> @ 0x1406c6420\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\nvoid TableView::touchFinish(TableView *a1, cocos2d::CCTouch *a2)\n{\n  __int64 v4; // rcx\n  cocos2d::CCDirector *v5; // rax\n  struct cocos2d::CCPoint v6; // rax\n  __int64 v7; // rcx\n  cocos2d::CCDirector *v8; // rax\n  struct cocos2d::CCPoint v9; // rax\n  cocos2d::CCArray *m_cellArray; // rcx\n  unsigned int v11; // ebp\n  cocos2d::CCNode *v12; // rax\n  TableViewCell *v13; // r14\n  float height; // xmm10_4\n  float width; // xmm9_4\n  __int64 v16; // rdi\n  __int64 v17; // rbx\n  __int64 v18; // rax\n  float v19; // xmm6_4\n  float v20; // xmm8_4\n  float v21; // xmm7_4\n  float *v22; // rdi\n  float *v23; // rbx\n  float *v24; // rax\n  __int64 v25; // rax\n  TableViewDelegate *m_tableDelegate; // rcx\n  cocos2d::CCRect v27; // [rsp+30h] [rbp-88h] BYREF\n  struct cocos2d::CCPoint v28; // [rsp+C0h] [rbp+8h] BYREF\n  char v29; // [rsp+C8h] [rbp+10h] BYREF\n  struct cocos2d::CCPoint v30; // [rsp+D0h] [rbp+18h] BYREF\n  struct cocos2d::CCPoint v31; // [rsp+D8h] [rbp+20h] BYREF\n\n  cocos2d::CCTouch::getLocationInView(a2);\n  v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);\n  v6 = cocos2d::CCDirector::convertToGL(v5, &v28);\n  ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v29, v6);\n  if ( a2 == a1->m_beginTouch )\n  {\n    cocos2d::CCTouch::getLocationInView(a2);\n    v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);\n    v9 = cocos2d::CCDirector::convertToGL(v8, &v31);\n    ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v28, v9);\n    m_cellArray = a1->m_cellArray;\n    if ( m_cellArray && cocos2d::CCArray::count(m_cellArray) && (v11 = 0, cocos2d::CCArray::count(a1->m_cellArray)) )\n    {\n      while ( 1 )\n      {\n        v12 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a1->m_cellArray, v11);\n        v13 = (TableViewCell *)v12;\n        if ( v12 )\n        {\n          cocos2d::CCNode::convertToNodeSpace(v12, &v30);\n          height = v13->getContentSize(v13)->height;\n          width = v13->getContentSize(v13)->width;\n          v16 = (__int64)v13->getPosition_0(v13);\n          v17 = (__int64)v13->getContentSize(v13);\n          v18 = (__int64)v13->getAnchorPoint(v13);\n          v19 = *(float *)(v17 + 4);\n          v20 = *(float *)(v16 + 4);\n          v21 = *(float *)(v18 + 4);\n          v22 = (float *)v13->getPosition_0(v13);\n          v23 = (float *)v13->getContentSize(v13);\n          v24 = (float *)v13->getAnchorPoint(v13);\n          cocos2d::CCRect::CCRect(&v27, *v22 - (float)(*v24 * *v23), v20 - (float)(v21 * v19), width, height);\n          cocos2d::CCPoint::operator=(&v27, &stru_1406C1648);\n          if ( cocos2d::CCRect::containsPoint(&v27, &v30) )\n            break;\n        }\n        if ( ++v11 >= cocos2d::CCArray::count(a1->m_cellArray) )\n          goto LABEL_8;\n      }\n      m_tableDelegate = a1->m_tableDelegate;\n      a1->m_touchedCell = v13;\n      if ( m_tableDelegate && !a1->m_notAtEndOfScroll )\n        m_tableDelegate->didSelectRowAtIndexPath(m_tableDelegate, &v13->m_indexPath, a1);\n    }\n    else\n    {\nLABEL_8:\n      a1->m_touchedCell = nullptr;\n    }\n  }\n  cocos2d::CCPoint::operator=(&a1->m_checkLocation, &stru_1406C1648);\n  cocos2d::CCPoint::operator=(&a1->m_beginLocation, v25);\n  a1->m_touchMoved = 0;\n}", "assembly": "; \n; TableView::touchFinish from 0x1400757d0 to 0x140075abe (750 bytes)\n; \n; 6 xrefs:\n; > TableView::ccTouchEnded @ 0x140075454\n; > TableView::ccTouchCancelled @ 0x1400754d7\n; > <???> @ 0x1406672d8\n; > <???> @ 0x1406672e8\n; > <???> @ 0x140667318\n; > <???> @ 0x1406c6420\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    rbx                                                            ; +0x0, 0x1400757d0\npush    rsi                                                            ; +0x2, 0x1400757d2\nsub     rsp, 0A8h                                                      ; +0x3, 0x1400757d3\nmov     rbx, rdx                                                       ; +0xa, 0x1400757da\nmov     rsi, rcx                                                       ; +0xd, 0x1400757dd\nmov     rcx, rbx                                                       ; +0x10, 0x1400757e0\nlea     rdx, [rsp+0B8h+arg_8]                                          ; +0x13, 0x1400757e3\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x1b, 0x1400757eb\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x21, 0x1400757f1\nmov     rcx, rax                                                       ; +0x27, 0x1400757f7\nlea     r8, [rsp+0B8h+arg_8]                                           ; +0x2a, 0x1400757fa\nlea     rdx, [rsp+0B8h+arg_0]                                          ; +0x32, 0x140075802\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x3a, 0x14007580a\nmov     rdx, rax                                                       ; +0x40, 0x140075810\nlea     rcx, [rsp+0B8h+arg_8]                                          ; +0x43, 0x140075813\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x4b, 0x14007581b\ncmp     rbx, [rsi+208h]                                                ; +0x51, 0x140075821\njnz     loc_140075A54                                                  ; +0x58, 0x140075828\nmov     [rsp+0B8h+var_18], rbp                                         ; +0x5e, 0x14007582e\nlea     rdx, [rsp+0B8h+arg_0]                                          ; +0x66, 0x140075836\nmov     [rsp+0B8h+var_20], rdi                                         ; +0x6e, 0x14007583e\nmov     rcx, rbx                                                       ; +0x76, 0x140075846\nmov     [rsp+0B8h+var_28], r14                                         ; +0x79, 0x140075849\nmovaps  [rsp+0B8h+var_38], xmm6                                        ; +0x81, 0x140075851\nmovaps  [rsp+0B8h+var_48], xmm7                                        ; +0x89, 0x140075859\nmovaps  [rsp+0B8h+var_58], xmm8                                        ; +0x8e, 0x14007585e\nmovaps  [rsp+0B8h+var_68], xmm9                                        ; +0x94, 0x140075864\nmovaps  [rsp+0B8h+var_78], xmm10                                       ; +0x9a, 0x14007586a\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0xa0, 0x140075870\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xa6, 0x140075876\nmov     rcx, rax                                                       ; +0xac, 0x14007587c\nlea     r8, [rsp+0B8h+arg_0]                                           ; +0xaf, 0x14007587f\nlea     rdx, [rsp+0B8h+arg_18]                                         ; +0xb7, 0x140075887\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0xbf, 0x14007588f\nmov     rdx, rax                                                       ; +0xc5, 0x140075895\nlea     rcx, [rsp+0B8h+arg_0]                                          ; +0xc8, 0x140075898\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xd0, 0x1400758a0\nmov     rcx, [rsi+238h]                                                ; +0xd6, 0x1400758a6\ntest    rcx, rcx                                                       ; +0xdd, 0x1400758ad\njz      loc_140075A12                                                  ; +0xe0, 0x1400758b0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xe6, 0x1400758b6\ntest    eax, eax                                                       ; +0xec, 0x1400758bc\njz      loc_140075A12                                                  ; +0xee, 0x1400758be\nmov     rcx, [rsi+238h]                                                ; +0xf4, 0x1400758c4\nxor     ebp, ebp                                                       ; +0xfb, 0x1400758cb\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xfd, 0x1400758cd\ntest    eax, eax                                                       ; +0x103, 0x1400758d3\njz      loc_140075A12                                                  ; +0x105, 0x1400758d5\nnop     dword ptr [rax+rax+00h]                                        ; +0x10b, 0x1400758db\nmov     rcx, [rsi+238h]                                                ; +0x110, 0x1400758e0\nmov     edx, ebp                                                       ; +0x117, 0x1400758e7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x119, 0x1400758e9\nmov     r14, rax                                                       ; +0x11f, 0x1400758ef\ntest    rax, rax                                                       ; +0x122, 0x1400758f2\njz      loc_1400759FB                                                  ; +0x125, 0x1400758f5\nlea     r8, [rsp+0B8h+arg_0]                                           ; +0x12b, 0x1400758fb\nmov     rcx, rax                                                       ; +0x133, 0x140075903\nlea     rdx, [rsp+0B8h+arg_10]                                         ; +0x136, 0x140075906\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x13e, 0x14007590e\nmov     rdx, [r14]                                                     ; +0x144, 0x140075914\nmov     rcx, r14                                                       ; +0x147, 0x140075917\ncall    qword ptr [rdx+130h]                                           ; +0x14a, 0x14007591a\nmov     rdx, [r14]                                                     ; +0x150, 0x140075920\nmov     rcx, r14                                                       ; +0x153, 0x140075923\nmovss   xmm10, dword ptr [rax+4]                                       ; +0x156, 0x140075926\ncall    qword ptr [rdx+130h]                                           ; +0x15c, 0x14007592c\nmov     rcx, r14                                                       ; +0x162, 0x140075932\nmovss   xmm9, dword ptr [rax]                                          ; +0x165, 0x140075935\nmov     rax, [r14]                                                     ; +0x16a, 0x14007593a\ncall    qword ptr [rax+0C8h]                                           ; +0x16d, 0x14007593d\nmov     rdx, [r14]                                                     ; +0x173, 0x140075943\nmov     rcx, r14                                                       ; +0x176, 0x140075946\nmov     rdi, rax                                                       ; +0x179, 0x140075949\ncall    qword ptr [rdx+130h]                                           ; +0x17c, 0x14007594c\nmov     rdx, [r14]                                                     ; +0x182, 0x140075952\nmov     rcx, r14                                                       ; +0x185, 0x140075955\nmov     rbx, rax                                                       ; +0x188, 0x140075958\ncall    qword ptr [rdx+118h]                                           ; +0x18b, 0x14007595b\nmovss   xmm6, dword ptr [rbx+4]                                        ; +0x191, 0x140075961\nmov     rcx, r14                                                       ; +0x196, 0x140075966\nmovss   xmm8, dword ptr [rdi+4]                                        ; +0x199, 0x140075969\nmovss   xmm7, dword ptr [rax+4]                                        ; +0x19f, 0x14007596f\nmov     rax, [r14]                                                     ; +0x1a4, 0x140075974\ncall    qword ptr [rax+0C8h]                                           ; +0x1a7, 0x140075977\nmov     rdx, [r14]                                                     ; +0x1ad, 0x14007597d\nmov     rcx, r14                                                       ; +0x1b0, 0x140075980\nmov     rdi, rax                                                       ; +0x1b3, 0x140075983\ncall    qword ptr [rdx+130h]                                           ; +0x1b6, 0x140075986\nmov     rdx, [r14]                                                     ; +0x1bc, 0x14007598c\nmov     rcx, r14                                                       ; +0x1bf, 0x14007598f\nmov     rbx, rax                                                       ; +0x1c2, 0x140075992\ncall    qword ptr [rdx+118h]                                           ; +0x1c5, 0x140075995\nmovss   xmm1, dword ptr [rdi]                                          ; +0x1cb, 0x14007599b\nlea     rcx, [rsp+0B8h+var_88]                                         ; +0x1cf, 0x14007599f\nmulss   xmm7, xmm6                                                     ; +0x1d4, 0x1400759a4\nmovaps  xmm3, xmm9                                                     ; +0x1d8, 0x1400759a8\nmovss   xmm0, dword ptr [rax]                                          ; +0x1dc, 0x1400759ac\nmulss   xmm0, dword ptr [rbx]                                          ; +0x1e0, 0x1400759b0\nsubss   xmm8, xmm7                                                     ; +0x1e4, 0x1400759b4\nmovss   [rsp+0B8h+var_98], xmm10                                       ; +0x1e9, 0x1400759b9\nsubss   xmm1, xmm0                                                     ; +0x1f0, 0x1400759c0\nmovaps  xmm2, xmm8                                                     ; +0x1f4, 0x1400759c4\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x1f8, 0x1400759c8\nlea     rdx, stru_1406C1648                                            ; +0x1fe, 0x1400759ce\nlea     rcx, [rsp+0B8h+var_88]                                         ; +0x205, 0x1400759d5\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x20a, 0x1400759da\nlea     rdx, [rsp+0B8h+arg_10]                                         ; +0x210, 0x1400759e0\nlea     rcx, [rsp+0B8h+var_88]                                         ; +0x218, 0x1400759e8\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x21d, 0x1400759ed\ntest    al, al                                                         ; +0x223, 0x1400759f3\njnz     loc_140075A89                                                  ; +0x225, 0x1400759f5\nmov     rcx, [rsi+238h]                                                ; +0x22b, 0x1400759fb\ninc     ebp                                                            ; +0x232, 0x140075a02\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x234, 0x140075a04\ncmp     ebp, eax                                                       ; +0x23a, 0x140075a0a\njb      loc_1400758E0                                                  ; +0x23c, 0x140075a0c\nmov     qword ptr [rsi+228h], 0                                        ; +0x242, 0x140075a12\nmovaps  xmm9, [rsp+0B8h+var_68]                                        ; +0x24d, 0x140075a1d\nmovaps  xmm8, [rsp+0B8h+var_58]                                        ; +0x253, 0x140075a23\nmovaps  xmm7, [rsp+0B8h+var_48]                                        ; +0x259, 0x140075a29\nmovaps  xmm6, [rsp+0B8h+var_38]                                        ; +0x25e, 0x140075a2e\nmov     r14, [rsp+0B8h+var_28]                                         ; +0x266, 0x140075a36\nmov     rdi, [rsp+0B8h+var_20]                                         ; +0x26e, 0x140075a3e\nmov     rbp, [rsp+0B8h+var_18]                                         ; +0x276, 0x140075a46\nmovaps  xmm10, [rsp+0B8h+var_78]                                       ; +0x27e, 0x140075a4e\nlea     rcx, [rsi+220h]                                                ; +0x284, 0x140075a54\nlea     rdx, stru_1406C1648                                            ; +0x28b, 0x140075a5b\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x292, 0x140075a62\nmov     rdx, rax                                                       ; +0x298, 0x140075a68\nlea     rcx, [rsi+210h]                                                ; +0x29b, 0x140075a6b\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x2a2, 0x140075a72\nmov     byte ptr [rsi+230h], 0                                         ; +0x2a8, 0x140075a78\nadd     rsp, 0A8h                                                      ; +0x2af, 0x140075a7f\npop     rsi                                                            ; +0x2b6, 0x140075a86\npop     rbx                                                            ; +0x2b7, 0x140075a87\nretn                                                                   ; +0x2b8, 0x140075a88\nmov     rcx, [rsi+250h]                                                ; +0x2b9, 0x140075a89\nmov     [rsi+228h], r14                                                ; +0x2c0, 0x140075a90\ntest    rcx, rcx                                                       ; +0x2c7, 0x140075a97\njz      short loc_140075A1D                                            ; +0x2ca, 0x140075a9a\ncmp     byte ptr [rsi+1B9h], 0                                         ; +0x2cc, 0x140075a9c\njnz     loc_140075A1D                                                  ; +0x2d3, 0x140075aa3\nmov     rax, [rcx]                                                     ; +0x2d9, 0x140075aa9\nlea     rdx, [r14+1A8h]                                                ; +0x2dc, 0x140075aac\nmov     r8, rsi                                                        ; +0x2e3, 0x140075ab3\ncall    qword ptr [rax+30h]                                            ; +0x2e6, 0x140075ab6\njmp     loc_140075A1D                                                  ; +0x2e9, 0x140075ab9", "xrefs": ["TableView::ccTouchEnded @ 0x140075454", "TableView::ccTouchCancelled @ 0x1400754d7", "<???> @ 0x1406672d8", "<???> @ 0x1406672e8", "<???> @ 0x140667318", "<???> @ 0x1406c6420"], "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"}