{"type": "func", "start": 6442539728, "end": 6442540129, "name": "cocos2d::extension::CCTableView::_updateCellPositions", "pseudocode": "// \n// cocos2d::extension::CCTableView::_updateCellPositions from 0x180015ad0 to 0x180015c61 (401 bytes)\n// \n// 7 xrefs:\n// > cocos2d::extension::CCTableView::create @ 0x180014876\n// > cocos2d::extension::CCTableView::reloadData @ 0x180014d64\n// > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x1800150b7\n// > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x1800152f8\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c7b8\n// > <???> @ 0x18004c7c4\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 12:15:41 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCTableView::_updateCellPositions(cocos2d::extension::CCTableView *this)\n{\n  int v2; // eax\n  _QWORD *v3; // r14\n  char *v4; // rsi\n  unsigned int v5; // edi\n  __int64 v6; // r15\n  float v7; // xmm6_4\n  unsigned __int64 v8; // rbx\n  __int64 v9; // rdx\n  unsigned __int64 v10; // rcx\n  unsigned __int64 v11; // rbx\n  __int64 v12; // rcx\n  unsigned __int8 v13; // al\n  int v14; // eax\n  __int64 v15; // rbx\n  size_t v16; // r8\n  __int64 i; // rbx\n  __int64 v18; // rax\n  _QWORD v19[2]; // [rsp+20h] [rbp-48h] BYREF\n  float v20; // [rsp+70h] [rbp+8h] BYREF\n  float v21; // [rsp+74h] [rbp+Ch]\n  char v22; // [rsp+78h] [rbp+10h] BYREF\n\n  v2 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::extension::CCTableView *))(**((_QWORD **)this + 80) + 32LL))(\n         *((_QWORD *)this + 80),\n         this);\n  v3 = (_QWORD *)((char *)this + 600);\n  LODWORD(v19[0]) = 0;\n  v4 = *((char **)this + 76);\n  v5 = 0;\n  v6 = v2;\n  v7 = 0.0;\n  v8 = v2 + 1;\n  v9 = *((_QWORD *)this + 75);\n  v10 = (__int64)&v4[-v9] >> 2;\n  if ( v8 < v10 )\n  {\n    *((_QWORD *)this + 76) = v9 + 4 * v8;\n    goto LABEL_17;\n  }\n  if ( v8 > v10 )\n  {\n    if ( v8 > (*((_QWORD *)this + 77) - v9) >> 2 )\n    {\n      sub_1800168F0((char *)this + 600, v8, v19);\n      goto LABEL_17;\n    }\n    v11 = v8 - v10;\n    HIDWORD(v19[0]) = 0;\n    v12 = 0;\n    while ( 1 )\n    {\n      v13 = *((_BYTE *)v19 + v12++);\n      if ( v13 != *((_BYTE *)v19 + v12 + 3) )\n        break;\n      if ( v12 == 4 )\n      {\n        v14 = 0;\n        goto LABEL_11;\n      }\n    }\n    v14 = v13 < *((_BYTE *)v19 + v12 + 3) ? -1 : 1;\nLABEL_11:\n    if ( v14 )\n    {\n      if ( !v11 )\n      {\nLABEL_16:\n        *((_QWORD *)this + 76) = v4;\n        goto LABEL_17;\n      }\n      v15 = 4 * v11;\n      v16 = v15 & 0xFFFFFFFFFFFFFFFCuLL;\n    }\n    else\n    {\n      v15 = 4 * v11;\n      v16 = v15;\n    }\n    memset(v4, 0, v16);\n    v4 += v15;\n    goto LABEL_16;\n  }\nLABEL_17:\n  if ( (int)v6 > 0 )\n  {\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v20);\n    for ( i = 0; i < v6; ++i )\n    {\n      *(float *)(*v3 + 4 * i) = v7;\n      v18 = (*(__int64 (__fastcall **)(_QWORD, char *, cocos2d::extension::CCTableView *, _QWORD, _QWORD))(**((_QWORD **)this + 80) + 8LL))(\n              *((_QWORD *)this + 80),\n              &v22,\n              this,\n              v5,\n              v19[0]);\n      cocos2d::CCSize::operator=(&v20, v18);\n      if ( *((_DWORD *)this + 108) )\n        v7 = v7 + v21;\n      else\n        v7 = v7 + v20;\n      ++v5;\n    }\n    *(float *)(*v3 + 4 * v6) = v7;\n  }\n}", "assembly": "; \n; cocos2d::extension::CCTableView::_updateCellPositions from 0x180015ad0 to 0x180015c61 (401 bytes)\n; \n; 7 xrefs:\n; > cocos2d::extension::CCTableView::create @ 0x180014876\n; > cocos2d::extension::CCTableView::reloadData @ 0x180014d64\n; > cocos2d::extension::CCTableView::insertCellAtIndex @ 0x1800150b7\n; > cocos2d::extension::CCTableView::removeCellAtIndex @ 0x1800152f8\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c7b8\n; > <???> @ 0x18004c7c4\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 12:15:41 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180015ad0\npush    rbp                                                            ; +0x5, 0x180015ad5\npush    rsi                                                            ; +0x6, 0x180015ad6\npush    rdi                                                            ; +0x7, 0x180015ad7\npush    r14                                                            ; +0x8, 0x180015ad8\npush    r15                                                            ; +0xa, 0x180015ada\nsub     rsp, 40h                                                       ; +0xc, 0x180015adc\nmov     rbp, rcx                                                       ; +0x10, 0x180015ae0\nmovaps  [rsp+68h+var_38], xmm6                                         ; +0x13, 0x180015ae3\nmov     rcx, [rcx+280h]                                                ; +0x18, 0x180015ae8\nmov     rdx, rbp                                                       ; +0x1f, 0x180015aef\nmov     rax, [rcx]                                                     ; +0x22, 0x180015af2\ncall    qword ptr [rax+20h]                                            ; +0x25, 0x180015af5\nlea     r14, [rbp+258h]                                                ; +0x28, 0x180015af8\nmov     [rsp+68h+var_48], 0                                            ; +0x2f, 0x180015aff\nmov     rsi, [r14+8]                                                   ; +0x37, 0x180015b07\nxor     edi, edi                                                       ; +0x3b, 0x180015b0b\nmovsxd  r15, eax                                                       ; +0x3d, 0x180015b0d\nmov     rcx, rsi                                                       ; +0x40, 0x180015b10\nxorps   xmm6, xmm6                                                     ; +0x43, 0x180015b13\nlea     edx, [r15+1]                                                   ; +0x46, 0x180015b16\nmovsxd  rbx, edx                                                       ; +0x4a, 0x180015b1a\nmov     rdx, [r14]                                                     ; +0x4d, 0x180015b1d\nsub     rcx, rdx                                                       ; +0x50, 0x180015b20\nsar     rcx, 2                                                         ; +0x53, 0x180015b23\ncmp     rbx, rcx                                                       ; +0x57, 0x180015b27\njnb     short loc_180015B39                                            ; +0x5a, 0x180015b2a\nlea     rax, [rdx+rbx*4]                                               ; +0x5c, 0x180015b2c\nmov     [r14+8], rax                                                   ; +0x60, 0x180015b30\njmp     loc_180015BD3                                                  ; +0x64, 0x180015b34\njbe     loc_180015BD3                                                  ; +0x69, 0x180015b39\nmov     rax, [r14+10h]                                                 ; +0x6f, 0x180015b3f\nsub     rax, rdx                                                       ; +0x73, 0x180015b43\nsar     rax, 2                                                         ; +0x76, 0x180015b46\ncmp     rbx, rax                                                       ; +0x7a, 0x180015b4a\njbe     short loc_180015B61                                            ; +0x7d, 0x180015b4d\nlea     r8, [rsp+68h+var_48]                                           ; +0x7f, 0x180015b4f\nmov     rdx, rbx                                                       ; +0x84, 0x180015b54\nmov     rcx, r14                                                       ; +0x87, 0x180015b57\ncall    sub_1800168F0                                                  ; +0x8a, 0x180015b5a\njmp     short loc_180015BD3                                            ; +0x8f, 0x180015b5f\nsub     rbx, rcx                                                       ; +0x91, 0x180015b61\nmov     [rsp+68h+var_44], edi                                          ; +0x94, 0x180015b64\nmov     rcx, rdi                                                       ; +0x98, 0x180015b68\nlea     rdx, [rsp+68h+var_48]                                          ; +0x9b, 0x180015b6b\nlea     r8, [rsp+68h+var_44]                                           ; +0xa0, 0x180015b70\nnop     word ptr [rax+rax+00000000h]                                   ; +0xa5, 0x180015b75\nmovzx   eax, byte ptr [rdx+rcx]                                        ; +0xb0, 0x180015b80\ninc     rcx                                                            ; +0xb4, 0x180015b84\ncmp     al, [r8+rcx-1]                                                 ; +0xb7, 0x180015b87\njnz     short loc_180015B98                                            ; +0xbc, 0x180015b8c\ncmp     rcx, 4                                                         ; +0xbe, 0x180015b8e\njnz     short loc_180015B80                                            ; +0xc2, 0x180015b92\nmov     eax, edi                                                       ; +0xc4, 0x180015b94\njmp     short loc_180015B9D                                            ; +0xc6, 0x180015b96\nsbb     eax, eax                                                       ; +0xc8, 0x180015b98\nor      eax, 1                                                         ; +0xca, 0x180015b9a\ntest    eax, eax                                                       ; +0xcd, 0x180015b9d\njnz     short loc_180015BAE                                            ; +0xcf, 0x180015b9f\nlea     rbx, ds:0[rbx*4]                                               ; +0xd1, 0x180015ba1\nmov     r8, rbx                                                        ; +0xd9, 0x180015ba9\njmp     short loc_180015BC2                                            ; +0xdc, 0x180015bac\ntest    rbx, rbx                                                       ; +0xde, 0x180015bae\njz      short loc_180015BCF                                            ; +0xe1, 0x180015bb1\nlea     rbx, ds:0[rbx*4]                                               ; +0xe3, 0x180015bb3\nmov     r8, rbx                                                        ; +0xeb, 0x180015bbb\nand     r8, 0FFFFFFFFFFFFFFFCh; Size                                   ; +0xee, 0x180015bbe\nxor     edx, edx; Val                                                  ; +0xf2, 0x180015bc2\nmov     rcx, rsi; void *                                               ; +0xf4, 0x180015bc4\ncall    memset                                                         ; +0xf7, 0x180015bc7\nadd     rsi, rbx                                                       ; +0xfc, 0x180015bcc\nmov     [r14+8], rsi                                                   ; +0xff, 0x180015bcf\ntest    r15d, r15d                                                     ; +0x103, 0x180015bd3\njle     short loc_180015C48                                            ; +0x106, 0x180015bd6\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x108, 0x180015bd8\ncall    cs:??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)   ; +0x10d, 0x180015bdd\ntest    r15d, r15d                                                     ; +0x113, 0x180015be3\njle     short loc_180015C3F                                            ; +0x116, 0x180015be6\nmov     rbx, rdi                                                       ; +0x118, 0x180015be8\nnop     dword ptr [rax+rax+00h]                                        ; +0x11b, 0x180015beb\nmov     rax, [r14]                                                     ; +0x120, 0x180015bf0\nlea     rdx, [rsp+68h+arg_8]                                           ; +0x123, 0x180015bf3\nmov     r9d, edi                                                       ; +0x128, 0x180015bf8\nmov     r8, rbp                                                        ; +0x12b, 0x180015bfb\nmovss   dword ptr [rax+rbx*4], xmm6                                    ; +0x12e, 0x180015bfe\nmov     rcx, [rbp+280h]                                                ; +0x133, 0x180015c03\nmov     rax, [rcx]                                                     ; +0x13a, 0x180015c0a\ncall    qword ptr [rax+8]                                              ; +0x13d, 0x180015c0d\nmov     rdx, rax                                                       ; +0x140, 0x180015c10\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x143, 0x180015c13\ncall    cs:??4CCSize@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCSize::operator=(cocos2d::CCSize const &) ; +0x148, 0x180015c18\ncmp     dword ptr [rbp+1B0h], 0                                        ; +0x14e, 0x180015c1e\njz      short loc_180015C2F                                            ; +0x155, 0x180015c25\naddss   xmm6, [rsp+68h+arg_4]                                          ; +0x157, 0x180015c27\njmp     short loc_180015C35                                            ; +0x15d, 0x180015c2d\naddss   xmm6, [rsp+68h+arg_0]                                          ; +0x15f, 0x180015c2f\ninc     edi                                                            ; +0x165, 0x180015c35\ninc     rbx                                                            ; +0x167, 0x180015c37\ncmp     rbx, r15                                                       ; +0x16a, 0x180015c3a\njl      short loc_180015BF0                                            ; +0x16d, 0x180015c3d\nmov     rax, [r14]                                                     ; +0x16f, 0x180015c3f\nmovss   dword ptr [rax+r15*4], xmm6                                    ; +0x172, 0x180015c42\nmov     rbx, [rsp+68h+arg_10]                                          ; +0x178, 0x180015c48\nmovaps  xmm6, [rsp+68h+var_38]                                         ; +0x180, 0x180015c50\nadd     rsp, 40h                                                       ; +0x185, 0x180015c55\npop     r15                                                            ; +0x189, 0x180015c59\npop     r14                                                            ; +0x18b, 0x180015c5b\npop     rdi                                                            ; +0x18d, 0x180015c5d\npop     rsi                                                            ; +0x18e, 0x180015c5e\npop     rbp                                                            ; +0x18f, 0x180015c5f\nretn                                                                   ; +0x190, 0x180015c60", "xrefs": ["cocos2d::extension::CCTableView::create @ 0x180014876", "cocos2d::extension::CCTableView::reloadData @ 0x180014d64", "cocos2d::extension::CCTableView::insertCellAtIndex @ 0x1800150b7", "cocos2d::extension::CCTableView::removeCellAtIndex @ 0x1800152f8", "<???> @ 0x180032408", "<???> @ 0x18004c7b8", "<???> @ 0x18004c7c4"], "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"}