{"type": "func", "start": 5371332128, "end": 5371332411, "name": "GJMoreGamesLayer::customSetup", "pseudocode": "// \n// GJMoreGamesLayer::customSetup from 0x140280620 to 0x14028073b (283 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14056c618\n// > <???> @ 0x140687ca4\n// > <???> @ 0x140687cb4\n// > <???> @ 0x1406d13dc\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 GJMoreGamesLayer::customSetup(GJMoreGamesLayer *a1)\n{\n  cocos2d::CCArray *MoreGamesList; // rax\n  CustomListView *v3; // rax\n  __int64 v4; // rcx\n  cocos2d::CCDirector *v5; // rax\n  struct cocos2d::CCLabelBMFont *v6; // rdi\n  float v7; // xmm0_4\n  cocos2d::CCLabelBMFont_vtbl *v8; // rbx\n  const cocos2d::CCPoint *v9; // rax\n  int v10; // [rsp+20h] [rbp-28h]\n  float v11; // [rsp+50h] [rbp+8h]\n\n  MoreGamesList = GJMoreGamesLayer::getMoreGamesList(a1);\n  a1->m_moreGamesList = MoreGamesList;\n  cocos2d::CCObject::retain(MoreGamesList);\n  v3 = CustomListView::create(a1->m_moreGamesList, nullptr, 220.0, 356.0, v10, List|0x1, 0.0);\n  a1->m_listLayer->addChild_0(a1->m_listLayer, v3, 6);\n  if ( !cocos2d::CCArray::count(a1->m_moreGamesList) )\n  {\n    v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);\n    cocos2d::CCDirector::getWinSize(v5);\n    v6 = cocos2d::CCLabelBMFont::create(\"Nothing here yet... sorry :(\", (const char *)&qword_14052A4D8);\n    ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v6->setScale_0)(v6);\n    v7 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)(\n           a1->m_mainLayer,\n           v6,\n           10);\n    v8 = v6->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    cocos2d::CCPoint::CCPoint(v7, v11 * 0.5);\n    v8->setPosition_0(v6, v9);\n  }\n}", "assembly": "; \n; GJMoreGamesLayer::customSetup from 0x140280620 to 0x14028073b (283 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14056c618\n; > <???> @ 0x140687ca4\n; > <???> @ 0x140687cb4\n; > <???> @ 0x1406d13dc\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, 0x140280620\nsub     rsp, 40h                                                       ; +0x2, 0x140280622\nmov     rbx, rcx                                                       ; +0x6, 0x140280626\ncall    GJMoreGamesLayer__getMoreGamesList                             ; +0x9, 0x140280629\nmov     rcx, rax                                                       ; +0xe, 0x14028062e\nmov     [rbx+260h], rax                                                ; +0x11, 0x140280631\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x18, 0x140280638\nmovss   xmm3, cs:dword_140623468                                       ; +0x1e, 0x14028063e\nxorps   xmm0, xmm0                                                     ; +0x26, 0x140280646\nmovss   xmm2, cs:dword_1406233F4                                       ; +0x29, 0x140280649\nxor     edx, edx                                                       ; +0x31, 0x140280651\nmov     rcx, [rbx+260h]                                                ; +0x33, 0x140280653\nmovss   [rsp+48h+var_18], xmm0                                         ; +0x3a, 0x14028065a\nmov     [rsp+48h+var_20], 0Bh                                          ; +0x40, 0x140280660\ncall    CustomListView__create                                         ; +0x48, 0x140280668\nmov     rcx, [rbx+238h]                                                ; +0x4d, 0x14028066d\nmov     r8d, 6                                                         ; +0x54, 0x140280674\nmov     rdx, rax                                                       ; +0x5a, 0x14028067a\nmov     r9, [rcx]                                                      ; +0x5d, 0x14028067d\ncall    qword ptr [r9+1B8h]                                            ; +0x60, 0x140280680\nmov     rcx, [rbx+260h]                                                ; +0x67, 0x140280687\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6e, 0x14028068e\ntest    eax, eax                                                       ; +0x74, 0x140280694\njnz     loc_140280735                                                  ; +0x76, 0x140280696\nmov     [rsp+48h+arg_10], rdi                                          ; +0x7c, 0x14028069c\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x81, 0x1402806a1\nmov     rcx, rax                                                       ; +0x87, 0x1402806a7\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x8a, 0x1402806aa\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x8f, 0x1402806af\nlea     rdx, qword_14052A4D8                                           ; +0x95, 0x1402806b5\nlea     rcx, aNothingHereYet; \"Nothing here yet... sorry :(\"           ; +0x9c, 0x1402806bc\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0xa3, 0x1402806c3\nmovss   xmm1, cs:dword_140622B38                                       ; +0xa9, 0x1402806c9\nmov     rcx, rax                                                       ; +0xb1, 0x1402806d1\nmov     rdi, rax                                                       ; +0xb4, 0x1402806d4\nmov     rdx, [rax]                                                     ; +0xb7, 0x1402806d7\ncall    qword ptr [rdx+0A0h]                                           ; +0xba, 0x1402806da\nmov     rcx, [rbx+240h]                                                ; +0xc0, 0x1402806e0\nmov     r8d, 0Ah                                                       ; +0xc7, 0x1402806e7\nmov     rdx, rdi                                                       ; +0xcd, 0x1402806ed\nmov     r9, [rcx]                                                      ; +0xd0, 0x1402806f0\ncall    qword ptr [r9+1B8h]                                            ; +0xd3, 0x1402806f3\nmovss   xmm2, [rsp+48h+arg_4]                                          ; +0xda, 0x1402806fa\nlea     rcx, [rsp+48h+arg_8]                                           ; +0xe0, 0x140280700\nmovss   xmm1, [rsp+48h+arg_0]                                          ; +0xe5, 0x140280705\nmulss   xmm2, cs:dword_140622B08                                       ; +0xeb, 0x14028070b\nmov     rbx, [rdi]                                                     ; +0xf3, 0x140280713\nmulss   xmm1, cs:dword_140622B08                                       ; +0xf6, 0x140280716\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xfe, 0x14028071e\nmov     rdx, rax                                                       ; +0x104, 0x140280724\nmov     rcx, rdi                                                       ; +0x107, 0x140280727\ncall    qword ptr [rbx+0B8h]                                           ; +0x10a, 0x14028072a\nmov     rdi, [rsp+48h+arg_10]                                          ; +0x110, 0x140280730\nadd     rsp, 40h                                                       ; +0x115, 0x140280735\npop     rbx                                                            ; +0x119, 0x140280739\nretn                                                                   ; +0x11a, 0x14028073a", "xrefs": ["<???> @ 0x14056c618", "<???> @ 0x140687ca4", "<???> @ 0x140687cb4", "<???> @ 0x1406d13dc"], "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"}