{"type": "func", "start": 3954132, "end": 3954220, "name": "GJGameLevel::getLastBuildPageForTab", "pseudocode": "// \n// GJGameLevel::getLastBuildPageForTab from 0x3c55d4 to 0x3c562c (88 bytes)\n// \n// 1 xrefs:\n// > EditorUI::setupCreateMenu @ 0x39be34\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\nint GJGameLevel::getLastBuildPageForTab(GJGameLevel *a1, int a2)\n{\n  cocos2d::CCDictionary *m_lastBuildSave; // r6\n  cocos2d::CCString *v3; // r0\n  char *CString; // r0\n  cocos2d::CCString *v5; // r0\n  int v6; // r6\n  std::string v8; // [sp+8h] [bp-8h] BYREF\n\n  m_lastBuildSave = a1->m_lastBuildSave;\n  v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)a2);\n  CString = (char *)cocos2d::CCString::getCString(v3);\n  sub_776584((int)&v8, CString);\n  v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(m_lastBuildSave, &v8);\n  v6 = cocos2d::CCString::intValue(v5);\n  sub_774008(&v8);\n  return v6;\n}", "assembly": "; \n; GJGameLevel::getLastBuildPageForTab from 0x3c55d4 to 0x3c562c (88 bytes)\n; \n; 1 xrefs:\n; > EditorUI::setupCreateMenu @ 0x39be34\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            {R0-R6,LR}                                             ; +0x0, 0x3c55d4\nADD             R5, SP, #0x10+var_8                                    ; +0x2, 0x3c55d6\nLDR             R4, =(__stack_chk_guard_ptr - 0x3C55E2)                ; +0x4, 0x3c55d8\nLDR.W           R6, [R0,#0x108]                                        ; +0x6, 0x3c55da\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x3c55de\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x3c55e0\nLDR             R0, =(aI - 0x3C55EA); \"%i\"                             ; +0xe, 0x3c55e2\nLDR             R3, [R4]                                               ; +0x10, 0x3c55e4\nADD             R0, PC; \"%i\"                                           ; +0x12, 0x3c55e6\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x14, 0x3c55e8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x16, 0x3c55ea\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1a, 0x3c55ee\nADD             R2, SP, #0x10+var_C                                    ; +0x1e, 0x3c55f2\nMOV             R1, R0; char *                                         ; +0x20, 0x3c55f4\nMOV             R0, R5; int                                            ; +0x22, 0x3c55f6\nBL              sub_776584                                             ; +0x24, 0x3c55f8\nMOV             R0, R6                                                 ; +0x28, 0x3c55fc\nMOV             R1, R5                                                 ; +0x2a, 0x3c55fe\nBL              _ZN7cocos2d12CCDictionary11valueForKeyERKSs; cocos2d::CCDictionary::valueForKey(std::string const&) ; +0x2c, 0x3c5600\nBL              _ZNK7cocos2d8CCString8intValueEv; cocos2d::CCString::intValue(void) ; +0x30, 0x3c5604\nMOV             R6, R0                                                 ; +0x34, 0x3c5608\nMOV             R0, R5                                                 ; +0x36, 0x3c560a\nBL              sub_774008                                             ; +0x38, 0x3c560c\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x3c, 0x3c5610\nLDR             R3, [R4]                                               ; +0x3e, 0x3c5612\nMOV             R0, R6                                                 ; +0x40, 0x3c5614\nCMP             R2, R3                                                 ; +0x42, 0x3c5616\nBEQ             loc_3C5628                                             ; +0x44, 0x3c5618\nBLX             __stack_chk_fail                                       ; +0x46, 0x3c561a\nMOV             R0, R5                                                 ; +0x4a, 0x3c561e\nBL              sub_774008                                             ; +0x4c, 0x3c5620\nBL              __cxa_end_cleanup                                      ; +0x50, 0x3c5624\nADD             SP, SP, #0x10                                          ; +0x54, 0x3c5628\nPOP             {R4-R6,PC}                                             ; +0x56, 0x3c562a", "xrefs": ["EditorUI::setupCreateMenu @ 0x39be34"], "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"}