{"type": "func", "start": 5369193344, "end": 5369194021, "name": "TableView::checkFirstCell", "pseudocode": "// \n// TableView::checkFirstCell from 0x140076380 to 0x140076625 (677 bytes)\n// \n// 3 xrefs:\n// > TableView::checkBoundaryOfContent @ 0x140075ebf\n// > TableView::checkBoundaryOfContent @ 0x140075ee5\n// > <???> @ 0x1406c64a4\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\n// Hidden C++ exception states: #wind=1\nvoid TableView::checkFirstCell(TableView *a1, TableViewCell *a2)\n{\n  const struct cocos2d::CCPoint *v4; // rax\n  const cocos2d::CCSize *v5; // rax\n  float v6; // xmm6_4\n  float v7; // xmm6_4\n  float v8; // xmm6_4\n  int v9; // edi\n  int m_section; // ebx\n  CCIndexPath *v11; // r14\n  int v12; // eax\n  int m_row; // ecx\n  __int64 v14; // rax\n  double v15; // xmm0_8\n  float v16; // xmm6_4\n  TableViewCell *v17; // rax\n  TableViewCell *v18; // rbp\n  TableViewCell_vtbl *v19; // rbx\n  const cocos2d::CCPoint *v20; // rax\n  TableViewCell_vtbl *v21; // rbx\n  const cocos2d::CCSize *v22; // rax\n  const cocos2d::CCSize *v23; // rax\n  TableViewCell_vtbl *v24; // rdi\n  const cocos2d::CCSize *v25; // rbx\n  const cocos2d::CCPoint *v26; // rax\n  const cocos2d::CCPoint *v27; // rax\n  TableViewDelegate *m_tableDelegate; // rcx\n  TableViewDelegate *v29; // rcx\n  cocos2d::CCPoint v30; // [rsp+70h] [rbp+18h] BYREF\n  CCIndexPath *v31; // [rsp+78h] [rbp+20h] BYREF\n\n  if ( TableView::checkBoundaryOfCell_1(a1, a2) != 1 )\n  {\n    v4 = a2->getPosition_0(a2);\n    cocos2d::CCPoint::CCPoint(&v30, v4);\n    v5 = a2->getContentSize(a2);\n    v6 = v30.y + v5->height;\n    v7 = v6 - a1->m_contentLayer->getContentSize(a1->m_contentLayer)->height;\n    v8 = v7 + a1->m_contentLayer->getPosition_0(a1->m_contentLayer)->y;\n    if ( a1->getContentSize(a1)->height > v8 )\n    {\n      v9 = a2->m_indexPath.m_row - 1;\n      m_section = a2->m_indexPath.m_section;\n      v11 = (CCIndexPath *)operator new(0x40u);\n      v31 = v11;\n      cocos2d::CCObject::CCObject(v11);\n      v11->__vftable = (CCIndexPath_vtbl *)&CCIndexPath::`vftable';\n      v11->m_row = v9;\n      v11->m_section = m_section;\n      cocos2d::CCObject::autorelease(v11);\n      v12 = a1->m_dataSource->numberOfRowsInSection(a1->m_dataSource, a2->m_indexPath.m_section, a1);\n      m_row = v11->m_row;\n      if ( m_row >= 0 && m_row < v12 )\n      {\n        LOBYTE(v14) = TableView::isDuplicateInVisibleCellArray(a1, v11);\n        if ( !v14 )\n        {\n          v15 = ((double (__fastcall *)(TableViewDelegate *, CCIndexPath *, TableView *))a1->m_tableDelegate->cellHeightForRowAtIndexPath)(\n                  a1->m_tableDelegate,\n                  v11,\n                  a1);\n          v16 = *(float *)&v15;\n          v17 = a1->m_dataSource->cellForRowAtIndexPath(a1->m_dataSource, v11, a1);\n          v18 = v17;\n          if ( v17 )\n          {\n            v19 = v17->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n            cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 0.0, 1.0);\n            v19->setAnchorPoint(v18, v20);\n            v21 = v18->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n            v22 = a1->getContentSize(a1);\n            cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v31, v22->width, v16);\n            v21->setContentSize(v18, v23);\n            v24 = v18->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n            v25 = a2->getContentSize(a2);\n            v26 = a2->getPosition_0(a2);\n            cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 0.0, v25->height + v26->y);\n            v24->setPosition_0(v18, v27);\n            cocos2d::CCObject::operator=(&v18->m_indexPath, v11);\n            v18->m_indexPath.m_row = v11->m_row;\n            v18->m_indexPath.m_section = v11->m_section;\n            cocos2d::CCArray::insertObject(a1->m_cellArray, v18, 0);\n            if ( !TableView::isDuplicateIndexPath(a1, v11) )\n              cocos2d::CCArray::insertObject(a1->m_indexPathArray, v11, 0);\n            m_tableDelegate = a1->m_tableDelegate;\n            if ( m_tableDelegate )\n              m_tableDelegate->TableViewWillDisplayCellForRowAtIndexPath(m_tableDelegate, v11, v18, a1);\n            a1->m_contentLayer->addChild_1(a1->m_contentLayer, v18);\n            v29 = a1->m_tableDelegate;\n            if ( v29 )\n              v29->TableViewDidDisplayCellForRowAtIndexPath(v29, v11, v18, a1);\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; TableView::checkFirstCell from 0x140076380 to 0x140076625 (677 bytes)\n; \n; 3 xrefs:\n; > TableView::checkBoundaryOfContent @ 0x140075ebf\n; > TableView::checkBoundaryOfContent @ 0x140075ee5\n; > <???> @ 0x1406c64a4\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_0], rbx                                               ; +0x0, 0x140076380\npush    rbp                                                            ; +0x5, 0x140076385\npush    rsi                                                            ; +0x6, 0x140076386\npush    rdi                                                            ; +0x7, 0x140076387\npush    r14                                                            ; +0x8, 0x140076388\npush    r15                                                            ; +0xa, 0x14007638a\nsub     rsp, 30h                                                       ; +0xc, 0x14007638c\nmovaps  [rsp+58h+var_38], xmm6                                         ; +0x10, 0x140076390\nmov     r15, rdx                                                       ; +0x15, 0x140076395\nmov     rsi, rcx                                                       ; +0x18, 0x140076398\ncall    TableView__checkBoundaryOfCell_1                               ; +0x1b, 0x14007639b\ncmp     eax, 1                                                         ; +0x20, 0x1400763a0\njz      loc_14007660F                                                  ; +0x23, 0x1400763a3\nmov     rax, [r15]                                                     ; +0x29, 0x1400763a9\nmov     rcx, r15                                                       ; +0x2c, 0x1400763ac\ncall    qword ptr [rax+0C8h]                                           ; +0x2f, 0x1400763af\nmov     rdx, rax                                                       ; +0x35, 0x1400763b5\nlea     rcx, [rsp+58h+arg_10]                                          ; +0x38, 0x1400763b8\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x3d, 0x1400763bd\nmov     rax, [r15]                                                     ; +0x43, 0x1400763c3\nmov     rcx, r15                                                       ; +0x46, 0x1400763c6\ncall    qword ptr [rax+130h]                                           ; +0x49, 0x1400763c9\nmovss   xmm6, [rsp+58h+arg_14]                                         ; +0x4f, 0x1400763cf\naddss   xmm6, dword ptr [rax+4]                                        ; +0x55, 0x1400763d5\nmov     rcx, [rsi+1D8h]                                                ; +0x5a, 0x1400763da\nmov     rax, [rcx]                                                     ; +0x61, 0x1400763e1\ncall    qword ptr [rax+130h]                                           ; +0x64, 0x1400763e4\nsubss   xmm6, dword ptr [rax+4]                                        ; +0x6a, 0x1400763ea\nmov     rcx, [rsi+1D8h]                                                ; +0x6f, 0x1400763ef\nmov     rax, [rcx]                                                     ; +0x76, 0x1400763f6\ncall    qword ptr [rax+0C8h]                                           ; +0x79, 0x1400763f9\naddss   xmm6, dword ptr [rax+4]                                        ; +0x7f, 0x1400763ff\nmov     rax, [rsi]                                                     ; +0x84, 0x140076404\nmov     rcx, rsi                                                       ; +0x87, 0x140076407\ncall    qword ptr [rax+130h]                                           ; +0x8a, 0x14007640a\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x90, 0x140076410\ncomiss  xmm0, xmm6                                                     ; +0x95, 0x140076415\njbe     loc_14007660F                                                  ; +0x98, 0x140076418\nmov     edi, [r15+1E0h]                                                ; +0x9e, 0x14007641e\ndec     edi                                                            ; +0xa5, 0x140076425\nmov     ebx, [r15+1E4h]                                                ; +0xa7, 0x140076427\nmov     ecx, 40h ; '@'; Size                                           ; +0xae, 0x14007642e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb3, 0x140076433\nmov     r14, rax                                                       ; +0xb8, 0x140076438\nmov     [rsp+58h+arg_18], rax                                          ; +0xbb, 0x14007643b\nmov     rcx, rax                                                       ; +0xc0, 0x140076440\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0xc3, 0x140076443\nlea     rax, ??_7CCIndexPath@@6B@; const CCIndexPath::`vftable'        ; +0xc9, 0x140076449\nmov     [r14], rax                                                     ; +0xd0, 0x140076450\nmov     [r14+38h], edi                                                 ; +0xd3, 0x140076453\nmov     [r14+3Ch], ebx                                                 ; +0xd7, 0x140076457\nmov     rcx, r14                                                       ; +0xdb, 0x14007645b\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xde, 0x14007645e\nmov     rcx, [rsi+258h]                                                ; +0xe4, 0x140076464\nmov     rax, [rcx]                                                     ; +0xeb, 0x14007646b\nmov     r8, rsi                                                        ; +0xee, 0x14007646e\nmov     edx, [r15+1E4h]                                                ; +0xf1, 0x140076471\ncall    qword ptr [rax]                                                ; +0xf8, 0x140076478\nmov     ecx, [r14+38h]                                                 ; +0xfa, 0x14007647a\ntest    ecx, ecx                                                       ; +0xfe, 0x14007647e\njs      loc_14007660F                                                  ; +0x100, 0x140076480\ncmp     ecx, eax                                                       ; +0x106, 0x140076486\njge     loc_14007660F                                                  ; +0x108, 0x140076488\nmov     rdx, r14                                                       ; +0x10e, 0x14007648e\nmov     rcx, rsi                                                       ; +0x111, 0x140076491\ncall    TableView__isDuplicateInVisibleCellArray                       ; +0x114, 0x140076494\ntest    rax, rax                                                       ; +0x119, 0x140076499\njnz     loc_14007660F                                                  ; +0x11c, 0x14007649c\nmov     rcx, [rsi+250h]                                                ; +0x122, 0x1400764a2\nmov     rax, [rcx]                                                     ; +0x129, 0x1400764a9\nmov     r8, rsi                                                        ; +0x12c, 0x1400764ac\nmov     rdx, r14                                                       ; +0x12f, 0x1400764af\ncall    qword ptr [rax+28h]                                            ; +0x132, 0x1400764b2\nmovaps  xmm6, xmm0                                                     ; +0x135, 0x1400764b5\nmov     rcx, [rsi+258h]                                                ; +0x138, 0x1400764b8\nmov     rax, [rcx]                                                     ; +0x13f, 0x1400764bf\nmov     r8, rsi                                                        ; +0x142, 0x1400764c2\nmov     rdx, r14                                                       ; +0x145, 0x1400764c5\ncall    qword ptr [rax+18h]                                            ; +0x148, 0x1400764c8\nmov     rbp, rax                                                       ; +0x14b, 0x1400764cb\ntest    rax, rax                                                       ; +0x14e, 0x1400764ce\njz      loc_14007660F                                                  ; +0x151, 0x1400764d1\nmov     rbx, [rax]                                                     ; +0x157, 0x1400764d7\nmovss   xmm2, cs:flt_140622C24                                         ; +0x15a, 0x1400764da\nxorps   xmm1, xmm1                                                     ; +0x162, 0x1400764e2\nlea     rcx, [rsp+58h+arg_18]                                          ; +0x165, 0x1400764e5\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x16a, 0x1400764ea\nmov     rdx, rax                                                       ; +0x170, 0x1400764f0\nmov     rcx, rbp                                                       ; +0x173, 0x1400764f3\ncall    qword ptr [rbx+110h]                                           ; +0x176, 0x1400764f6\nmov     rbx, [rbp+0]                                                   ; +0x17c, 0x1400764fc\nmov     rax, [rsi]                                                     ; +0x180, 0x140076500\nmov     rcx, rsi                                                       ; +0x183, 0x140076503\ncall    qword ptr [rax+130h]                                           ; +0x186, 0x140076506\nmovaps  xmm2, xmm6                                                     ; +0x18c, 0x14007650c\nmovss   xmm1, dword ptr [rax]                                          ; +0x18f, 0x14007650f\nlea     rcx, [rsp+58h+arg_18]                                          ; +0x193, 0x140076513\ncall    cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x198, 0x140076518\nmov     rdx, rax                                                       ; +0x19e, 0x14007651e\nmov     rcx, rbp                                                       ; +0x1a1, 0x140076521\ncall    qword ptr [rbx+128h]                                           ; +0x1a4, 0x140076524\nmov     rdi, [rbp+0]                                                   ; +0x1aa, 0x14007652a\nmov     rax, [r15]                                                     ; +0x1ae, 0x14007652e\nmov     rcx, r15                                                       ; +0x1b1, 0x140076531\ncall    qword ptr [rax+130h]                                           ; +0x1b4, 0x140076534\nmov     rbx, rax                                                       ; +0x1ba, 0x14007653a\nmov     rdx, [r15]                                                     ; +0x1bd, 0x14007653d\nmov     rcx, r15                                                       ; +0x1c0, 0x140076540\ncall    qword ptr [rdx+0C8h]                                           ; +0x1c3, 0x140076543\nmovss   xmm2, dword ptr [rbx+4]                                        ; +0x1c9, 0x140076549\naddss   xmm2, dword ptr [rax+4]                                        ; +0x1ce, 0x14007654e\nxorps   xmm1, xmm1                                                     ; +0x1d3, 0x140076553\nlea     rcx, [rsp+58h+arg_18]                                          ; +0x1d6, 0x140076556\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1db, 0x14007655b\nmov     rdx, rax                                                       ; +0x1e1, 0x140076561\nmov     rcx, rbp                                                       ; +0x1e4, 0x140076564\ncall    qword ptr [rdi+0B8h]                                           ; +0x1e7, 0x140076567\nmov     rdx, r14                                                       ; +0x1ed, 0x14007656d\nlea     rcx, [rbp+1A8h]                                                ; +0x1f0, 0x140076570\ncall    cs:??4CCObject@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCObject::operator=(cocos2d::CCObject const &) ; +0x1f7, 0x140076577\nmov     eax, [r14+38h]                                                 ; +0x1fd, 0x14007657d\nmov     [rbp+1E0h], eax                                                ; +0x201, 0x140076581\nmov     eax, [r14+3Ch]                                                 ; +0x207, 0x140076587\nmov     [rbp+1E4h], eax                                                ; +0x20b, 0x14007658b\nxor     r8d, r8d                                                       ; +0x211, 0x140076591\nmov     rdx, rbp                                                       ; +0x214, 0x140076594\nmov     rcx, [rsi+238h]                                                ; +0x217, 0x140076597\ncall    cs:?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0x21e, 0x14007659e\nmov     rdx, r14                                                       ; +0x224, 0x1400765a4\nmov     rcx, rsi                                                       ; +0x227, 0x1400765a7\ncall    TableView__isDuplicateIndexPath                                ; +0x22a, 0x1400765aa\ntest    al, al                                                         ; +0x22f, 0x1400765af\njnz     short loc_1400765C6                                            ; +0x231, 0x1400765b1\nxor     r8d, r8d                                                       ; +0x233, 0x1400765b3\nmov     rdx, r14                                                       ; +0x236, 0x1400765b6\nmov     rcx, [rsi+248h]                                                ; +0x239, 0x1400765b9\ncall    cs:?insertObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@I@Z; cocos2d::CCArray::insertObject(cocos2d::CCObject *,uint) ; +0x240, 0x1400765c0\nmov     rcx, [rsi+250h]                                                ; +0x246, 0x1400765c6\ntest    rcx, rcx                                                       ; +0x24d, 0x1400765cd\njz      short loc_1400765E1                                            ; +0x250, 0x1400765d0\nmov     rax, [rcx]                                                     ; +0x252, 0x1400765d2\nmov     r9, rsi                                                        ; +0x255, 0x1400765d5\nmov     r8, rbp                                                        ; +0x258, 0x1400765d8\nmov     rdx, r14                                                       ; +0x25b, 0x1400765db\ncall    qword ptr [rax+10h]                                            ; +0x25e, 0x1400765de\nmov     rcx, [rsi+1D8h]                                                ; +0x261, 0x1400765e1\nmov     rax, [rcx]                                                     ; +0x268, 0x1400765e8\nmov     rdx, rbp                                                       ; +0x26b, 0x1400765eb\ncall    qword ptr [rax+1C0h]                                           ; +0x26e, 0x1400765ee\nmov     rcx, [rsi+250h]                                                ; +0x274, 0x1400765f4\ntest    rcx, rcx                                                       ; +0x27b, 0x1400765fb\njz      short loc_14007660F                                            ; +0x27e, 0x1400765fe\nmov     rax, [rcx]                                                     ; +0x280, 0x140076600\nmov     r9, rsi                                                        ; +0x283, 0x140076603\nmov     r8, rbp                                                        ; +0x286, 0x140076606\nmov     rdx, r14                                                       ; +0x289, 0x140076609\ncall    qword ptr [rax+18h]                                            ; +0x28c, 0x14007660c\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x28f, 0x14007660f\nmovaps  xmm6, [rsp+58h+var_38]                                         ; +0x294, 0x140076614\nadd     rsp, 30h                                                       ; +0x299, 0x140076619\npop     r15                                                            ; +0x29d, 0x14007661d\npop     r14                                                            ; +0x29f, 0x14007661f\npop     rdi                                                            ; +0x2a1, 0x140076621\npop     rsi                                                            ; +0x2a2, 0x140076622\npop     rbp                                                            ; +0x2a3, 0x140076623\nretn                                                                   ; +0x2a4, 0x140076624", "xrefs": ["TableView::checkBoundaryOfContent @ 0x140075ebf", "TableView::checkBoundaryOfContent @ 0x140075ee5", "<???> @ 0x1406c64a4"], "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"}