{"type": "func", "start": 5369186944, "end": 5369187622, "name": "TableView::deleteTableViewCell", "pseudocode": "// \n// TableView::deleteTableViewCell from 0x140074a80 to 0x140074d26 (678 bytes)\n// \n// 2 xrefs:\n// > CustomSongCell::onDelete @ 0x1400b4a3c\n// > <???> @ 0x1406c63a8\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=2\nvoid TableView::deleteTableViewCell(TableView *a1, TableViewCell *a2)\n{\n  int height; // esi\n  unsigned int m_row; // r14d\n  _BOOL8 v6; // r8\n  cocos2d::CCArray *m_indexPathArray; // rcx\n  unsigned int v8; // edi\n  struct cocos2d::CCObject *v9; // rax\n  float v10; // xmm6_4\n  struct cocos2d::CCObject *v11; // rsi\n  const struct cocos2d::CCPoint *v12; // rax\n  cocos2d::CCObject_vtbl *v13; // rbx\n  DS_Dictionary *v14; // rax\n  int v15; // edi\n  TableViewDataSource *m_dataSource; // rcx\n  cocos2d::CCObject v17; // [rsp+20h] [rbp-F8h] BYREF\n  int v18; // [rsp+58h] [rbp-C0h]\n  int v19; // [rsp+5Ch] [rbp-BCh]\n  cocos2d::CCObject v20; // [rsp+60h] [rbp-B8h] BYREF\n  int v21; // [rsp+98h] [rbp-80h]\n  int m_section; // [rsp+9Ch] [rbp-7Ch]\n  cocos2d::CCObject v23; // [rsp+A0h] [rbp-78h] BYREF\n  int m_uIndexInArray; // [rsp+D8h] [rbp-40h]\n  int m_uUnknown; // [rsp+DCh] [rbp-3Ch]\n  cocos2d::CCPoint v26; // [rsp+128h] [rbp+10h] BYREF\n  cocos2d::CCPoint v27; // [rsp+130h] [rbp+18h] BYREF\n\n  if ( a2 )\n  {\n    a2->getContentSize(a2);\n    height = (int)a2->getContentSize(a2)->height;\n    m_row = a2->m_indexPath.m_row;\n    cocos2d::CCObject::CCObject(&v20);\n    v20.__vftable = (cocos2d::CCObject_vtbl *)&CCIndexPath::`vftable';\n    m_section = a2->m_indexPath.m_section;\n    v21 = a2->m_indexPath.m_row;\n    m_indexPathArray = a1->m_indexPathArray;\n    if ( m_indexPathArray )\n    {\n      if ( cocos2d::CCArray::count(m_indexPathArray) )\n      {\n        v8 = 0;\n        if ( cocos2d::CCArray::count(a1->m_indexPathArray) )\n        {\n          while ( 1 )\n          {\n            v9 = cocos2d::CCArray::objectAtIndex(a1->m_indexPathArray, v8);\n            if ( HIDWORD(v9[1].__vftable) == a2->m_indexPath.m_section\n              && LODWORD(v9[1].__vftable) == a2->m_indexPath.m_row )\n            {\n              break;\n            }\n            if ( ++v8 >= cocos2d::CCArray::count(a1->m_indexPathArray) )\n              goto LABEL_10;\n          }\n          cocos2d::CCArray::removeObject(a1->m_indexPathArray, v9, 1);\n        }\n      }\n    }\nLABEL_10:\n    LOBYTE(v6) = 1;\n    a1->m_contentLayer->removeChild(a1->m_contentLayer, a2, v6);\n    cocos2d::CCArray::removeObject(a1->m_cellArray, a2, 1);\n    if ( m_row < cocos2d::CCArray::count(a1->m_cellArray) )\n    {\n      v10 = (float)height;\n      do\n      {\n        v11 = cocos2d::CCArray::objectAtIndex(a1->m_cellArray, m_row);\n        v12 = (const struct cocos2d::CCPoint *)((__int64 (__fastcall *)(struct cocos2d::CCObject *))v11->__vftable[2].getTag)(v11);\n        cocos2d::CCPoint::CCPoint(&v26, v12);\n        v13 = v11->__vftable;\n        cocos2d::CCPoint::CCPoint(&v27, v26.x, v10 + v26.y);\n        v13[2].encodeWithCoder(v11, v14);\n        cocos2d::CCObject::CCObject(&v23);\n        v23.__vftable = (cocos2d::CCObject_vtbl *)&CCIndexPath::`vftable';\n        m_uUnknown = v11[8].m_uUnknown;\n        v15 = m_uUnknown;\n        m_uIndexInArray = v11[8].m_uIndexInArray;\n        LODWORD(v13) = m_uIndexInArray - 1;\n        cocos2d::CCObject::CCObject(&v17);\n        v17.__vftable = (cocos2d::CCObject_vtbl *)&CCIndexPath::`vftable';\n        v18 = (int)v13;\n        v19 = v15;\n        cocos2d::CCObject::operator=(&v11[7].m_uIndexInArray, &v17);\n        v11[8].m_uIndexInArray = v18;\n        v11[8].m_uUnknown = v19;\n        cocos2d::CCObject::~CCObject(&v17);\n        cocos2d::CCObject::~CCObject(&v23);\n        ++m_row;\n      }\n      while ( m_row < cocos2d::CCArray::count(a1->m_cellArray) );\n    }\n    m_dataSource = a1->m_dataSource;\n    if ( m_dataSource )\n      m_dataSource->TableViewCommitCellEditingStyleForRowAtIndexPath(\n        m_dataSource,\n        a1,\n        (TableViewCellEditingStyle)1LL,\n        (CCIndexPath *)&v20);\n    cocos2d::CCObject::~CCObject(&v20);\n  }\n}", "assembly": "; \n; TableView::deleteTableViewCell from 0x140074a80 to 0x140074d26 (678 bytes)\n; \n; 2 xrefs:\n; > CustomSongCell::onDelete @ 0x1400b4a3c\n; > <???> @ 0x1406c63a8\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, 0x140074a80\npush    rbp                                                            ; +0x5, 0x140074a85\npush    rsi                                                            ; +0x6, 0x140074a86\npush    rdi                                                            ; +0x7, 0x140074a87\npush    r14                                                            ; +0x8, 0x140074a88\npush    r15                                                            ; +0xa, 0x140074a8a\nsub     rsp, 0F0h                                                      ; +0xc, 0x140074a8c\nmovaps  [rsp+118h+var_38], xmm6                                        ; +0x13, 0x140074a93\nmov     rbx, rdx                                                       ; +0x1b, 0x140074a9b\nmov     rbp, rcx                                                       ; +0x1e, 0x140074a9e\ntest    rdx, rdx                                                       ; +0x21, 0x140074aa1\njz      loc_140074D05                                                  ; +0x24, 0x140074aa4\nmov     rax, [rdx]                                                     ; +0x2a, 0x140074aaa\nmov     rcx, rdx                                                       ; +0x2d, 0x140074aad\ncall    qword ptr [rax+130h]                                           ; +0x30, 0x140074ab0\nmov     rax, [rbx]                                                     ; +0x36, 0x140074ab6\nmov     rcx, rbx                                                       ; +0x39, 0x140074ab9\ncall    qword ptr [rax+130h]                                           ; +0x3c, 0x140074abc\ncvttss2si esi, dword ptr [rax+4]                                       ; +0x42, 0x140074ac2\nmov     r14d, [rbx+1E0h]                                               ; +0x47, 0x140074ac7\nlea     rcx, [rsp+118h+var_B8]                                         ; +0x4e, 0x140074ace\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x53, 0x140074ad3\nlea     r15, ??_7CCIndexPath@@6B@; const CCIndexPath::`vftable'        ; +0x59, 0x140074ad9\nmov     qword ptr [rsp+118h+var_B8], r15                               ; +0x60, 0x140074ae0\nmov     eax, [rbx+1E4h]                                                ; +0x65, 0x140074ae5\nmov     [rsp+118h+var_7C], eax                                         ; +0x6b, 0x140074aeb\nmov     eax, [rbx+1E0h]                                                ; +0x72, 0x140074af2\nmov     [rsp+118h+var_80], eax                                         ; +0x78, 0x140074af8\nmov     rcx, [rbp+248h]                                                ; +0x7f, 0x140074aff\ntest    rcx, rcx                                                       ; +0x86, 0x140074b06\njz      short loc_140074B7D                                            ; +0x89, 0x140074b09\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8b, 0x140074b0b\ntest    eax, eax                                                       ; +0x91, 0x140074b11\njz      short loc_140074B7D                                            ; +0x93, 0x140074b13\nxor     edi, edi                                                       ; +0x95, 0x140074b15\nmov     rcx, [rbp+248h]                                                ; +0x97, 0x140074b17\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9e, 0x140074b1e\ntest    eax, eax                                                       ; +0xa4, 0x140074b24\njz      short loc_140074B7D                                            ; +0xa6, 0x140074b26\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xa8, 0x140074b28\nmov     edx, edi                                                       ; +0xb0, 0x140074b30\nmov     rcx, [rbp+248h]                                                ; +0xb2, 0x140074b32\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb9, 0x140074b39\nmov     ecx, [rbx+1E4h]                                                ; +0xbf, 0x140074b3f\ncmp     [rax+3Ch], ecx                                                 ; +0xc5, 0x140074b45\njnz     short loc_140074B55                                            ; +0xc8, 0x140074b48\nmov     ecx, [rbx+1E0h]                                                ; +0xca, 0x140074b4a\ncmp     [rax+38h], ecx                                                 ; +0xd0, 0x140074b50\njz      short loc_140074B6A                                            ; +0xd3, 0x140074b53\ninc     edi                                                            ; +0xd5, 0x140074b55\nmov     rcx, [rbp+248h]                                                ; +0xd7, 0x140074b57\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xde, 0x140074b5e\ncmp     edi, eax                                                       ; +0xe4, 0x140074b64\njb      short loc_140074B30                                            ; +0xe6, 0x140074b66\njmp     short loc_140074B7D                                            ; +0xe8, 0x140074b68\nmov     r8b, 1                                                         ; +0xea, 0x140074b6a\nmov     rdx, rax                                                       ; +0xed, 0x140074b6d\nmov     rcx, [rbp+248h]                                                ; +0xf0, 0x140074b70\ncall    cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0xf7, 0x140074b77\nmov     rcx, [rbp+1D8h]                                                ; +0xfd, 0x140074b7d\nmov     rax, [rcx]                                                     ; +0x104, 0x140074b84\nmov     r8b, 1                                                         ; +0x107, 0x140074b87\nmov     rdx, rbx                                                       ; +0x10a, 0x140074b8a\ncall    qword ptr [rax+208h]                                           ; +0x10d, 0x140074b8d\nmov     r8b, 1                                                         ; +0x113, 0x140074b93\nmov     rdx, rbx                                                       ; +0x116, 0x140074b96\nmov     rcx, [rbp+238h]                                                ; +0x119, 0x140074b99\ncall    cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x120, 0x140074ba0\nmov     rcx, [rbp+238h]                                                ; +0x126, 0x140074ba6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x12d, 0x140074bad\ncmp     r14d, eax                                                      ; +0x133, 0x140074bb3\njnb     loc_140074CD5                                                  ; +0x136, 0x140074bb6\nmovd    xmm6, esi                                                      ; +0x13c, 0x140074bbc\ncvtdq2ps xmm6, xmm6                                                    ; +0x140, 0x140074bc0\nnop     dword ptr [rax+00h]                                            ; +0x143, 0x140074bc3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x147, 0x140074bc7\nmov     edx, r14d                                                      ; +0x150, 0x140074bd0\nmov     rcx, [rbp+238h]                                                ; +0x153, 0x140074bd3\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x15a, 0x140074bda\nmov     rsi, rax                                                       ; +0x160, 0x140074be0\nmov     rdx, [rax]                                                     ; +0x163, 0x140074be3\nmov     rcx, rax                                                       ; +0x166, 0x140074be6\ncall    qword ptr [rdx+0C8h]                                           ; +0x169, 0x140074be9\nmov     rdx, rax                                                       ; +0x16f, 0x140074bef\nlea     rcx, [rsp+118h+arg_8]                                          ; +0x172, 0x140074bf2\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x17a, 0x140074bfa\nmov     rbx, [rsi]                                                     ; +0x180, 0x140074c00\nmovaps  xmm2, xmm6                                                     ; +0x183, 0x140074c03\naddss   xmm2, [rsp+118h+arg_C]                                         ; +0x186, 0x140074c06\nmovss   xmm1, [rsp+118h+arg_8]                                         ; +0x18f, 0x140074c0f\nlea     rcx, [rsp+118h+arg_10]                                         ; +0x198, 0x140074c18\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a0, 0x140074c20\nmov     rdx, rax                                                       ; +0x1a6, 0x140074c26\nmov     rcx, rsi                                                       ; +0x1a9, 0x140074c29\ncall    qword ptr [rbx+0B8h]                                           ; +0x1ac, 0x140074c2c\nlea     rcx, [rsp+118h+var_78]                                         ; +0x1b2, 0x140074c32\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x1ba, 0x140074c3a\nmov     qword ptr [rsp+118h+var_78], r15                               ; +0x1c0, 0x140074c40\nmov     edi, [rsi+1E4h]                                                ; +0x1c8, 0x140074c48\nmov     [rsp+118h+var_3C], edi                                         ; +0x1ce, 0x140074c4e\nmov     ebx, [rsi+1E0h]                                                ; +0x1d5, 0x140074c55\nmov     [rsp+118h+var_40], ebx                                         ; +0x1db, 0x140074c5b\ndec     ebx                                                            ; +0x1e2, 0x140074c62\nlea     rcx, [rsp+118h+var_F8]                                         ; +0x1e4, 0x140074c64\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x1e9, 0x140074c69\nmov     qword ptr [rsp+118h+var_F8], r15                               ; +0x1ef, 0x140074c6f\nmov     [rsp+118h+var_C0], ebx                                         ; +0x1f4, 0x140074c74\nmov     [rsp+118h+var_BC], edi                                         ; +0x1f8, 0x140074c78\nlea     rdx, [rsp+118h+var_F8]                                         ; +0x1fc, 0x140074c7c\nlea     rcx, [rsi+1A8h]                                                ; +0x201, 0x140074c81\ncall    cs:??4CCObject@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCObject::operator=(cocos2d::CCObject const &) ; +0x208, 0x140074c88\nmov     eax, [rsp+118h+var_C0]                                         ; +0x20e, 0x140074c8e\nmov     [rsi+1E0h], eax                                                ; +0x212, 0x140074c92\nmov     eax, [rsp+118h+var_BC]                                         ; +0x218, 0x140074c98\nmov     [rsi+1E4h], eax                                                ; +0x21c, 0x140074c9c\nlea     rcx, [rsp+118h+var_F8]                                         ; +0x222, 0x140074ca2\ncall    cs:__imp_??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x227, 0x140074ca7\nnop                                                                    ; +0x22d, 0x140074cad\nlea     rcx, [rsp+118h+var_78]                                         ; +0x22e, 0x140074cae\ncall    cs:__imp_??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x236, 0x140074cb6\ninc     r14d                                                           ; +0x23c, 0x140074cbc\nmov     rcx, [rbp+238h]                                                ; +0x23f, 0x140074cbf\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x246, 0x140074cc6\ncmp     r14d, eax                                                      ; +0x24c, 0x140074ccc\njb      loc_140074BD0                                                  ; +0x24f, 0x140074ccf\nmov     rcx, [rbp+258h]                                                ; +0x255, 0x140074cd5\ntest    rcx, rcx                                                       ; +0x25c, 0x140074cdc\njz      short loc_140074CF6                                            ; +0x25f, 0x140074cdf\nmov     rax, [rcx]                                                     ; +0x261, 0x140074ce1\nlea     r9, [rsp+118h+var_B8]                                          ; +0x264, 0x140074ce4\nmov     r8d, 1                                                         ; +0x269, 0x140074ce9\nmov     rdx, rbp                                                       ; +0x26f, 0x140074cef\ncall    qword ptr [rax+10h]                                            ; +0x272, 0x140074cf2\nnop                                                                    ; +0x275, 0x140074cf5\nlea     rcx, [rsp+118h+var_B8]                                         ; +0x276, 0x140074cf6\ncall    cs:__imp_??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x27b, 0x140074cfb\nmov     al, 1                                                          ; +0x281, 0x140074d01\njmp     short loc_140074D07                                            ; +0x283, 0x140074d03\nxor     al, al                                                         ; +0x285, 0x140074d05\nmov     rbx, [rsp+118h+arg_0]                                          ; +0x287, 0x140074d07\nmovaps  xmm6, [rsp+118h+var_38]                                        ; +0x28f, 0x140074d0f\nadd     rsp, 0F0h                                                      ; +0x297, 0x140074d17\npop     r15                                                            ; +0x29e, 0x140074d1e\npop     r14                                                            ; +0x2a0, 0x140074d20\npop     rdi                                                            ; +0x2a2, 0x140074d22\npop     rsi                                                            ; +0x2a3, 0x140074d23\npop     rbp                                                            ; +0x2a4, 0x140074d24\nretn                                                                   ; +0x2a5, 0x140074d25", "xrefs": ["CustomSongCell::onDelete @ 0x1400b4a3c", "<???> @ 0x1406c63a8"], "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"}