{"type": "func", "start": 4371456, "end": 4371646, "name": "GJMoreGamesLayer::customSetup", "pseudocode": "// \n// GJMoreGamesLayer::customSetup from 0x42b400 to 0x42b4be (190 bytes)\n// \n// 0 xrefs:\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; // r0\n  CustomListView *v3; // r0\n  cocos2d::CCDirector *v4; // r0\n  cocos2d::CCLabelBMFont *v5; // r5\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7\n  cocos2d::CCSize v7; // [sp+14h] [bp-18h] BYREF\n  cocos2d::CCPoint v8; // [sp+1Ch] [bp-10h] BYREF\n\n  MoreGamesList = GJMoreGamesLayer::getMoreGamesList(a1);\n  a1->m_moreGamesList = MoreGamesList;\n  cocos2d::CCObject::retain(MoreGamesList);\n  v3 = CustomListView::create(a1->m_moreGamesList, (BoomListType)0, 220.0, 356.0);\n  ((void (__fastcall *)(GJListLayer *, CustomListView *, int, void (__fastcall *)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int), _DWORD, int, _DWORD))a1->m_listLayer->addChild_0)(\n    a1->m_listLayer,\n    v3,\n    6,\n    a1->m_listLayer->addChild_0,\n    0,\n    11,\n    0);\n  if ( !cocos2d::CCArray::count(a1->m_moreGamesList) )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize(&v7, v4);\n    v5 = cocos2d::CCLabelBMFont::create();\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v5->setScale)(v5, 1058642330);\n    a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, 10);\n    setPosition = v5->setPosition;\n    cocos2d::CCPoint::CCPoint(&v8, v7.width * 0.5, v7.height * 0.5);\n    setPosition(v5, &v8);\n  }\n}", "assembly": "; \n; GJMoreGamesLayer::customSetup from 0x42b400 to 0x42b4be (190 bytes)\n; \n; 0 xrefs:\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            {R4-R7,LR}                                             ; +0x0, 0x42b400\nSUB             SP, SP, #0x2C                                          ; +0x2, 0x42b402\nLDR             R6, =(__stack_chk_guard_ptr - 0x42B40C)                ; +0x4, 0x42b404\nMOV             R4, R0                                                 ; +0x6, 0x42b406\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x8, 0x42b408\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xa, 0x42b40a\nLDR             R3, [R6]                                               ; +0xc, 0x42b40c\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0xe, 0x42b40e\nBL              _ZN16GJMoreGamesLayer16getMoreGamesListEv; GJMoreGamesLayer::getMoreGamesList(void) ; +0x10, 0x42b410\nSTR.W           R0, [R4,#0x1E0]                                        ; +0x14, 0x42b414\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x18, 0x42b418\nMOVS            R1, #0                                                 ; +0x1c, 0x42b41c\nMOVS            R3, #0xB                                               ; +0x1e, 0x42b41e\nLDR             R2, =0x435C0000                                        ; +0x20, 0x42b420\nSTMEA.W         SP, {R1,R3}                                            ; +0x22, 0x42b422\nMOVS            R3, #0                                                 ; +0x26, 0x42b426\nSTR             R3, [SP,#0x2C+var_24]                                  ; +0x28, 0x42b428\nLDR             R3, =0x43B20000                                        ; +0x2a, 0x42b42a\nLDR.W           R0, [R4,#0x1E0]                                        ; +0x2c, 0x42b42c\nBL              _ZN14CustomListView6createEPN7cocos2d7CCArrayEP21TableViewCellDelegateffi12BoomListTypef; CustomListView::create(cocos2d::CCArray *,TableViewCellDelegate *,float,float,int,BoomListType,float) ; +0x30, 0x42b430\nMOVS            R2, #6                                                 ; +0x34, 0x42b434\nMOV             R1, R0                                                 ; +0x36, 0x42b436\nLDR.W           R0, [R4,#0x1CC]                                        ; +0x38, 0x42b438\nLDR             R3, [R0]                                               ; +0x3c, 0x42b43c\nLDR.W           R3, [R3,#0xE0]                                         ; +0x3e, 0x42b43e\nBLX             R3                                                     ; +0x42, 0x42b442\nLDR.W           R0, [R4,#0x1E0]; this                                  ; +0x44, 0x42b444\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x42b448\nCBNZ            R0, loc_42B4AE                                         ; +0x4c, 0x42b44c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x4e, 0x42b44e\nMOV             R1, R0                                                 ; +0x52, 0x42b452\nADD             R0, SP, #0x2C+var_18; this                             ; +0x54, 0x42b454\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x56, 0x42b456\nLDR             R0, =(aNothingHereYet - 0x42B462); \"Nothing here yet... sorry :(\" ; +0x5a, 0x42b45a\nLDR             R1, =(aBigfontFnt - 0x42B464); \"bigFont.fnt\"           ; +0x5c, 0x42b45c\nADD             R0, PC; \"Nothing here yet... sorry :(\"                 ; +0x5e, 0x42b45e\nADD             R1, PC; \"bigFont.fnt\"                                  ; +0x60, 0x42b460\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x62, 0x42b462\nLDR             R1, =0x3F19999A                                        ; +0x66, 0x42b466\nLDR             R3, [R0]                                               ; +0x68, 0x42b468\nMOV             R5, R0                                                 ; +0x6a, 0x42b46a\nLDR             R3, [R3,#0x50]                                         ; +0x6c, 0x42b46c\nBLX             R3                                                     ; +0x6e, 0x42b46e\nLDR.W           R0, [R4,#0x1D0]                                        ; +0x70, 0x42b470\nMOV             R1, R5                                                 ; +0x74, 0x42b474\nMOVS            R2, #0xA                                               ; +0x76, 0x42b476\nADD             R4, SP, #0x2C+var_10                                   ; +0x78, 0x42b478\nLDR             R3, [R0]                                               ; +0x7a, 0x42b47a\nLDR.W           R3, [R3,#0xE0]                                         ; +0x7c, 0x42b47c\nBLX             R3                                                     ; +0x80, 0x42b480\nVMOV.F32        S15, #0.5                                              ; +0x82, 0x42b482\nVLDR            S14, [SP,#0x2C+var_18]                                 ; +0x86, 0x42b486\nMOV             R0, R4; this                                           ; +0x8a, 0x42b48a\nLDR             R3, [R5]                                               ; +0x8c, 0x42b48c\nLDR             R7, [R3,#0x5C]                                         ; +0x8e, 0x42b48e\nVMUL.F32        S14, S14, S15                                          ; +0x90, 0x42b490\nVMOV            R1, S14; float                                         ; +0x94, 0x42b494\nVLDR            S14, [SP,#0x2C+var_14]                                 ; +0x98, 0x42b498\nVMUL.F32        S15, S14, S15                                          ; +0x9c, 0x42b49c\nVMOV            R2, S15; float                                         ; +0xa0, 0x42b4a0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa4, 0x42b4a4\nMOV             R0, R5                                                 ; +0xa8, 0x42b4a8\nMOV             R1, R4                                                 ; +0xaa, 0x42b4aa\nBLX             R7                                                     ; +0xac, 0x42b4ac\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xae, 0x42b4ae\nLDR             R3, [R6]                                               ; +0xb0, 0x42b4b0\nCMP             R2, R3                                                 ; +0xb2, 0x42b4b2\nBEQ             loc_42B4BA                                             ; +0xb4, 0x42b4b4\nBLX             __stack_chk_fail                                       ; +0xb6, 0x42b4b6\nADD             SP, SP, #0x2C ; ','                                    ; +0xba, 0x42b4ba\nPOP             {R4-R7,PC}                                             ; +0xbc, 0x42b4bc", "xrefs": [], "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"}