{"type": "func", "start": 3954228, "end": 3954328, "name": "GJGameLevel::setLastBuildPageForTab", "pseudocode": "// \n// GJGameLevel::setLastBuildPageForTab from 0x3c5634 to 0x3c5698 (100 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onPause @ 0x3875be\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 GJGameLevel::setLastBuildPageForTab(GJGameLevel *a1, int a2, int a3)\n{\n  cocos2d::CCDictionary *m_lastBuildSave; // r7\n  cocos2d::CCObject *v5; // r6\n  cocos2d::CCString *v6; // r0\n  char *CString; // r0\n  int v8; // [sp+8h] [bp-8h] BYREF\n\n  v8 = a3;\n  m_lastBuildSave = a1->m_lastBuildSave;\n  v5 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)a2);\n  v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)a3);\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  sub_776584((int)&v8, CString);\n  cocos2d::CCDictionary::setObject((int)m_lastBuildSave, v5);\n  sub_774008(&v8);\n}", "assembly": "; \n; GJGameLevel::setLastBuildPageForTab from 0x3c5634 to 0x3c5698 (100 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onPause @ 0x3875be\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.W          {R0-R8,LR}                                             ; +0x0, 0x3c5634\nMOV             R8, R2                                                 ; +0x4, 0x3c5638\nLDR             R4, =(__stack_chk_guard_ptr - 0x3C5642)                ; +0x6, 0x3c563a\nLDR             R5, =(aI - 0x3C564A); \"%i\"                             ; +0x8, 0x3c563c\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x3c563e\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x3c5640\nLDR.W           R7, [R0,#0x108]                                        ; +0xe, 0x3c5642\nADD             R5, PC; \"%i\"                                           ; +0x12, 0x3c5646\nLDR             R3, [R4]                                               ; +0x14, 0x3c5648\nMOV             R0, R5; this                                           ; +0x16, 0x3c564a\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x18, 0x3c564c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1a, 0x3c564e\nMOV             R1, R8; char *                                         ; +0x1e, 0x3c5652\nMOV             R6, R0                                                 ; +0x20, 0x3c5654\nMOV             R0, R5; this                                           ; +0x22, 0x3c5656\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x24, 0x3c5658\nADD             R5, SP, #0x10+var_8                                    ; +0x28, 0x3c565c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x2a, 0x3c565e\nADD             R2, SP, #0x10+var_C                                    ; +0x2e, 0x3c5662\nMOV             R1, R0; char *                                         ; +0x30, 0x3c5664\nMOV             R0, R5; int                                            ; +0x32, 0x3c5666\nBL              sub_776584                                             ; +0x34, 0x3c5668\nMOV             R0, R7; int                                            ; +0x38, 0x3c566c\nMOV             R1, R6; this                                           ; +0x3a, 0x3c566e\nMOV             R2, R5                                                 ; +0x3c, 0x3c5670\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKSs; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x3e, 0x3c5672\nMOV             R0, R5                                                 ; +0x42, 0x3c5676\nBL              sub_774008                                             ; +0x44, 0x3c5678\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x48, 0x3c567c\nLDR             R3, [R4]                                               ; +0x4a, 0x3c567e\nCMP             R2, R3                                                 ; +0x4c, 0x3c5680\nBEQ             loc_3C5692                                             ; +0x4e, 0x3c5682\nBLX             __stack_chk_fail                                       ; +0x50, 0x3c5684\nMOV             R0, R5                                                 ; +0x54, 0x3c5688\nBL              sub_774008                                             ; +0x56, 0x3c568a\nBL              __cxa_end_cleanup                                      ; +0x5a, 0x3c568e\nADD             SP, SP, #0x10                                          ; +0x5e, 0x3c5692\nPOP.W           {R4-R8,PC}                                             ; +0x60, 0x3c5694", "xrefs": ["EditorUI::onPause @ 0x3875be"], "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"}