{"type": "func", "start": 5372095936, "end": 5372096387, "name": "OptionsScrollLayer::setupList", "pseudocode": "// \n// OptionsScrollLayer::setupList from 0x14033adc0 to 0x14033af83 (451 bytes)\n// \n// 5 xrefs:\n// > OptionsScrollLayer::create @ 0x14033ad82\n// > OptionsScrollLayer::cellPerformedAction @ 0x14033b04e\n// > <???> @ 0x140694a48\n// > <???> @ 0x140694a58\n// > <???> @ 0x1406d5444\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 OptionsScrollLayer::setupList(OptionsScrollLayer *a1, cocos2d::CCArray *a2)\n{\n  CustomListView *v2; // rbx\n  __int64 v5; // rax\n  cocos2d::CCTouchDispatcher *v6; // rax\n  cocos2d::CCDirector *v7; // rax\n  const char *v8; // rdx\n  __int64 v9; // rcx\n  TableViewCellDelegate *v10; // r14\n  __int64 v11; // rax\n  cocos2d::ccArray *data; // rbx\n  cocos2d::CCArray *v13; // rbp\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rsi\n  cocos2d::CCObject *v17; // rdx\n  GJCommentListLayer *v18; // rax\n  cocos2d::CCLayer *m_mainLayer; // rcx\n  float v20; // xmm0_4\n  GJCommentListLayer_vtbl *v21; // rbx\n  const cocos2d::CCPoint *v22; // rax\n  int v23; // [rsp+20h] [rbp-48h]\n  float v24; // [rsp+70h] [rbp+8h]\n\n  v2 = nullptr;\n  if ( a1->m_listLayer )\n  {\n    v5 = cocos2d::CCDirector::sharedDirector(a1);\n    v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1->m_listLayer);\n    a1->m_listLayer->removeMeAndCleanup(a1->m_listLayer);\n    a1->m_listLayer = nullptr;\n  }\n  v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v7);\n  if ( a2 )\n  {\n    v10 = &a1->TableViewCellDelegate;\n    if ( !a1 )\n      v10 = nullptr;\n    v11 = cocos2d::CCArray::create(v9);\n    data = a2->data;\n    v13 = (cocos2d::CCArray *)v11;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      for ( i = &arr[num - 1]; arr <= i; ++arr )\n      {\n        v17 = *arr;\n        if ( !*arr )\n          break;\n        if ( v17[1].m_uOrderOfArrival > a1->m_minCount || BYTE4(v17[1].__vftable) )\n          cocos2d::CCArray::addObject(v13, v17);\n      }\n    }\n    v2 = CustomListView::create(v13, v10, 220.0, 340.0, v23, Options, 0.0);\n  }\n  v18 = GJCommentListLayer::create(v2, v8, (cocos2d::ccColor4B)-12684609, 340.0, 220.0, 0);\n  m_mainLayer = a1->m_mainLayer;\n  a1->m_listLayer = v18;\n  v20 = ((float (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *))m_mainLayer->addChild_1)(m_mainLayer, v18);\n  v21 = a1->m_listLayer->__vftable;\n  cocos2d::CCPoint::CCPoint(v20, (float)(v24 - 340.0) * 0.5);\n  v21->setPosition_0(a1->m_listLayer, v22);\n}", "assembly": "; \n; OptionsScrollLayer::setupList from 0x14033adc0 to 0x14033af83 (451 bytes)\n; \n; 5 xrefs:\n; > OptionsScrollLayer::create @ 0x14033ad82\n; > OptionsScrollLayer::cellPerformedAction @ 0x14033b04e\n; > <???> @ 0x140694a48\n; > <???> @ 0x140694a58\n; > <???> @ 0x1406d5444\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, 0x14033adc0\npush    rsi                                                            ; +0x2, 0x14033adc2\npush    rdi                                                            ; +0x3, 0x14033adc3\nsub     rsp, 50h                                                       ; +0x4, 0x14033adc4\nxor     ebx, ebx                                                       ; +0x8, 0x14033adc8\nmovaps  [rsp+68h+var_28], xmm7                                         ; +0xa, 0x14033adca\nmov     rsi, rdx                                                       ; +0xf, 0x14033adcf\nmov     rdi, rcx                                                       ; +0x12, 0x14033add2\ncmp     [rcx+288h], rbx                                                ; +0x15, 0x14033add5\njz      short loc_14033AE18                                            ; +0x1c, 0x14033addc\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1e, 0x14033adde\nmov     rcx, rax                                                       ; +0x24, 0x14033ade4\nmov     r8, [rax]                                                      ; +0x27, 0x14033ade7\ncall    qword ptr [r8+90h]                                             ; +0x2a, 0x14033adea\nmov     rdx, [rdi+288h]                                                ; +0x31, 0x14033adf1\nmov     rcx, rax                                                       ; +0x38, 0x14033adf8\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x3b, 0x14033adfb\nmov     rcx, [rdi+288h]                                                ; +0x41, 0x14033ae01\nmov     rax, [rcx]                                                     ; +0x48, 0x14033ae08\ncall    qword ptr [rax+200h]                                           ; +0x4b, 0x14033ae0b\nmov     [rdi+288h], rbx                                                ; +0x51, 0x14033ae11\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x58, 0x14033ae18\nmov     rcx, rax                                                       ; +0x5e, 0x14033ae1e\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x61, 0x14033ae21\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x66, 0x14033ae26\nmovss   xmm7, cs:dword_1406233F4                                       ; +0x6c, 0x14033ae2c\ntest    rsi, rsi                                                       ; +0x74, 0x14033ae34\njz      loc_14033AEE5                                                  ; +0x77, 0x14033ae37\nmov     [rsp+68h+arg_10], rbp                                          ; +0x7d, 0x14033ae3d\ntest    rdi, rdi                                                       ; +0x85, 0x14033ae45\nmov     [rsp+68h+arg_18], r14                                          ; +0x88, 0x14033ae48\nlea     r14, [rdi+278h]                                                ; +0x90, 0x14033ae50\ncmovz   r14, rbx                                                       ; +0x97, 0x14033ae57\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x9b, 0x14033ae5b\nmov     rbx, [rsi+38h]                                                 ; +0xa1, 0x14033ae61\nmov     rbp, rax                                                       ; +0xa5, 0x14033ae65\nmov     eax, [rbx]                                                     ; +0xa8, 0x14033ae68\ntest    eax, eax                                                       ; +0xaa, 0x14033ae6a\njz      short loc_14033AEAB                                            ; +0xac, 0x14033ae6c\nmov     rbx, [rbx+10h]                                                 ; +0xae, 0x14033ae6e\nlea     rsi, [rax-1]                                                   ; +0xb2, 0x14033ae72\nlea     rsi, [rbx+rsi*8]                                               ; +0xb6, 0x14033ae76\ncmp     rbx, rsi                                                       ; +0xba, 0x14033ae7a\nja      short loc_14033AEAB                                            ; +0xbd, 0x14033ae7d\nnop                                                                    ; +0xbf, 0x14033ae7f\nmov     rdx, [rbx]                                                     ; +0xc0, 0x14033ae80\ntest    rdx, rdx                                                       ; +0xc3, 0x14033ae83\njz      short loc_14033AEAB                                            ; +0xc6, 0x14033ae86\nmov     eax, [rdi+294h]                                                ; +0xc8, 0x14033ae88\ncmp     [rdx+68h], eax                                                 ; +0xce, 0x14033ae8e\njg      short loc_14033AE99                                            ; +0xd1, 0x14033ae91\ncmp     byte ptr [rdx+3Ch], 0                                          ; +0xd3, 0x14033ae93\njz      short loc_14033AEA2                                            ; +0xd7, 0x14033ae97\nmov     rcx, rbp                                                       ; +0xd9, 0x14033ae99\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xdc, 0x14033ae9c\nadd     rbx, 8                                                         ; +0xe2, 0x14033aea2\ncmp     rbx, rsi                                                       ; +0xe6, 0x14033aea6\njbe     short loc_14033AE80                                            ; +0xe9, 0x14033aea9\nmovss   xmm3, cs:dword_140623460                                       ; +0xeb, 0x14033aeab\nxorps   xmm0, xmm0                                                     ; +0xf3, 0x14033aeb3\nmovss   [rsp+68h+var_38], xmm0                                         ; +0xf6, 0x14033aeb6\nmovaps  xmm2, xmm7                                                     ; +0xfc, 0x14033aebc\nmov     rdx, r14                                                       ; +0xff, 0x14033aebf\nmov     [rsp+68h+var_40], 1Ah                                          ; +0x102, 0x14033aec2\nmov     rcx, rbp                                                       ; +0x10a, 0x14033aeca\ncall    CustomListView__create                                         ; +0x10d, 0x14033aecd\nmov     r14, [rsp+68h+arg_18]                                          ; +0x112, 0x14033aed2\nmov     rbx, rax                                                       ; +0x11a, 0x14033aeda\nmov     rbp, [rsp+68h+arg_10]                                          ; +0x11d, 0x14033aedd\nmovss   xmm3, cs:dword_140623460                                       ; +0x125, 0x14033aee5\nmov     r8d, 0FF3E72BFh                                                ; +0x12d, 0x14033aeed\nmov     byte ptr [rsp+68h+var_40], 0                                   ; +0x133, 0x14033aef3\nmov     rcx, rbx                                                       ; +0x138, 0x14033aef8\nmovss   [rsp+68h+var_48], xmm7                                         ; +0x13b, 0x14033aefb\ncall    GJCommentListLayer__create                                     ; +0x141, 0x14033af01\nmov     rcx, [rdi+240h]                                                ; +0x146, 0x14033af06\nmov     rdx, rax                                                       ; +0x14d, 0x14033af0d\nmov     [rdi+288h], rax                                                ; +0x150, 0x14033af10\nmov     r8, [rcx]                                                      ; +0x157, 0x14033af17\ncall    qword ptr [r8+1C0h]                                            ; +0x15a, 0x14033af1a\nmovss   xmm2, [rsp+68h+arg_4]                                          ; +0x161, 0x14033af21\nlea     rcx, [rsp+68h+arg_8]                                           ; +0x167, 0x14033af27\nmovss   xmm1, [rsp+68h+arg_0]                                          ; +0x16c, 0x14033af2c\nsubss   xmm2, xmm7                                                     ; +0x172, 0x14033af32\nsubss   xmm1, cs:dword_140623460                                       ; +0x176, 0x14033af36\nmov     rax, [rdi+288h]                                                ; +0x17e, 0x14033af3e\nmulss   xmm2, cs:dword_140622B08                                       ; +0x185, 0x14033af45\nmov     rbx, [rax]                                                     ; +0x18d, 0x14033af4d\nmulss   xmm1, cs:dword_140622B08                                       ; +0x190, 0x14033af50\nsubss   xmm2, cs:flt_14062307C                                         ; +0x198, 0x14033af58\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a0, 0x14033af60\nmov     rcx, [rdi+288h]                                                ; +0x1a6, 0x14033af66\nmov     rdx, rax                                                       ; +0x1ad, 0x14033af6d\ncall    qword ptr [rbx+0B8h]                                           ; +0x1b0, 0x14033af70\nmovaps  xmm7, [rsp+68h+var_28]                                         ; +0x1b6, 0x14033af76\nadd     rsp, 50h                                                       ; +0x1bb, 0x14033af7b\npop     rdi                                                            ; +0x1bf, 0x14033af7f\npop     rsi                                                            ; +0x1c0, 0x14033af80\npop     rbx                                                            ; +0x1c1, 0x14033af81\nretn                                                                   ; +0x1c2, 0x14033af82", "xrefs": ["OptionsScrollLayer::create @ 0x14033ad82", "OptionsScrollLayer::cellPerformedAction @ 0x14033b04e", "<???> @ 0x140694a48", "<???> @ 0x140694a58", "<???> @ 0x1406d5444"], "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"}