{"type": "func", "start": 4300586688, "end": 4300586938, "name": "GJGameLevel::setLastBuildPageForTab", "pseudocode": "// \n// GJGameLevel::setLastBuildPageForTab from 0x10055bec0 to 0x10055bfba (250 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onPause @ 0x10002a81d\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 __fastcall GJGameLevel::setLastBuildPageForTab(GJGameLevel *a1, int a2, int a3)\n{\n  double v3; // xmm0_8\n  cocos2d::CCDictionary *m_lastBuildSave; // rbx\n  cocos2d::CCObject *v5; // r14\n  cocos2d::CCString *v6; // rax\n  const char *CString; // r12\n  size_t v8; // rax\n  size_t v9; // r15\n  char *v10; // r13\n  cocos2d::CCDictionary *v11; // r14\n  size_t v12; // rbx\n  char v13; // [rsp+0h] [rbp-50h]\n  char v14; // [rsp+0h] [rbp-50h]\n  cocos2d::CCObject *v15; // [rsp+8h] [rbp-48h]\n  _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF\n  void *__p; // [rsp+20h] [rbp-30h]\n\n  m_lastBuildSave = a1->m_lastBuildSave;\n  v5 = (cocos2d::CCObject *)sub_1007AB580(\"%i\", v13);\n  v6 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v14);\n  CString = cocos2d::CCString::getCString(v6);\n  v8 = strlen(CString);\n  if ( v8 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v3);\n  v9 = v8;\n  if ( v8 >= 0x17 )\n  {\n    v15 = v5;\n    v11 = m_lastBuildSave;\n    v12 = 26;\n    if ( (v8 | 7) != 0x17 )\n      v12 = (v8 | 7) + 1;\n    v10 = (char *)operator new(v12);\n    __p = v10;\n    __dst[0] = v12 + 1;\n    m_lastBuildSave = v11;\n    v5 = v15;\n    __dst[1] = v9;\n    goto LABEL_8;\n  }\n  LOBYTE(__dst[0]) = 2 * v8;\n  v10 = (char *)__dst + 1;\n  if ( v8 )\nLABEL_8:\n    memmove(v10, CString, v9);\n  v10[v9] = 0;\n  cocos2d::CCDictionary::setObject_1((__int64)m_lastBuildSave, v5, (char *)__dst);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; GJGameLevel::setLastBuildPageForTab from 0x10055bec0 to 0x10055bfba (250 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onPause @ 0x10002a81d\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    rbp                                                            ; +0x0, 0x10055bec0\nmov     rbp, rsp                                                       ; +0x1, 0x10055bec1\npush    r15                                                            ; +0x4, 0x10055bec4\npush    r14                                                            ; +0x6, 0x10055bec6\npush    r13                                                            ; +0x8, 0x10055bec8\npush    r12                                                            ; +0xa, 0x10055beca\npush    rbx                                                            ; +0xc, 0x10055becc\nsub     rsp, 28h                                                       ; +0xd, 0x10055becd\nmov     r15d, edx                                                      ; +0x11, 0x10055bed1\nmov     rbx, [rdi+140h]                                                ; +0x14, 0x10055bed4\nlea     r12, aI; \"%i\"                                                  ; +0x1b, 0x10055bedb\nmov     rdi, r12; __format                                             ; +0x22, 0x10055bee2\nxor     eax, eax                                                       ; +0x25, 0x10055bee5\ncall    sub_1007AB580                                                  ; +0x27, 0x10055bee7\nmov     r14, rax                                                       ; +0x2c, 0x10055beec\nmov     rdi, r12; __format                                             ; +0x2f, 0x10055beef\nmov     esi, r15d                                                      ; +0x32, 0x10055bef2\nxor     eax, eax                                                       ; +0x35, 0x10055bef5\ncall    sub_1007AB580                                                  ; +0x37, 0x10055bef7\nmov     rdi, rax                                                       ; +0x3c, 0x10055befc\ncall    cocos2d__CCString__getCString                                  ; +0x3f, 0x10055beff\nmov     r12, rax                                                       ; +0x44, 0x10055bf04\nmov     rdi, rax; __s                                                  ; +0x47, 0x10055bf07\ncall    _strlen                                                        ; +0x4a, 0x10055bf0a\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x4f, 0x10055bf0f\njnb     loc_10055BFB5                                                  ; +0x53, 0x10055bf13\nmov     r15, rax                                                       ; +0x59, 0x10055bf19\ncmp     rax, 17h                                                       ; +0x5c, 0x10055bf1c\njnb     short loc_10055BF34                                            ; +0x60, 0x10055bf20\nlea     eax, [r15+r15]                                                 ; +0x62, 0x10055bf22\nmov     byte ptr [rbp+__dst], al                                       ; +0x66, 0x10055bf26\nlea     r13, [rbp+__dst+1]                                             ; +0x69, 0x10055bf29\ntest    r15, r15                                                       ; +0x6d, 0x10055bf2d\njnz     short loc_10055BF74                                            ; +0x70, 0x10055bf30\njmp     short loc_10055BF82                                            ; +0x72, 0x10055bf32\nmov     rax, r15                                                       ; +0x74, 0x10055bf34\nor      rax, 7                                                         ; +0x77, 0x10055bf37\nlea     rcx, [rax+1]                                                   ; +0x7b, 0x10055bf3b\ncmp     rax, 17h                                                       ; +0x7f, 0x10055bf3f\nmov     [rbp+var_48], r14                                              ; +0x83, 0x10055bf43\nmov     r14, rbx                                                       ; +0x87, 0x10055bf47\nmov     ebx, 1Ah                                                       ; +0x8a, 0x10055bf4a\ncmovnz  rbx, rcx                                                       ; +0x8f, 0x10055bf4f\nmov     rdi, rbx; __sz                                                 ; +0x93, 0x10055bf53\ncall    __Znwm; operator new(ulong)                                    ; +0x96, 0x10055bf56\nmov     r13, rax                                                       ; +0x9b, 0x10055bf5b\nmov     [rbp+__p], rax                                                 ; +0x9e, 0x10055bf5e\ninc     rbx                                                            ; +0xa2, 0x10055bf62\nmov     [rbp+__dst], rbx                                               ; +0xa5, 0x10055bf65\nmov     rbx, r14                                                       ; +0xa9, 0x10055bf69\nmov     r14, [rbp+var_48]                                              ; +0xac, 0x10055bf6c\nmov     [rbp+var_38], r15                                              ; +0xb0, 0x10055bf70\nmov     rdi, r13; __dst                                                ; +0xb4, 0x10055bf74\nmov     rsi, r12; __src                                                ; +0xb7, 0x10055bf77\nmov     rdx, r15; __len                                                ; +0xba, 0x10055bf7a\ncall    _memmove                                                       ; +0xbd, 0x10055bf7d\nmov     byte ptr [r13+r15+0], 0                                        ; +0xc2, 0x10055bf82\nlea     rdx, [rbp+__dst]                                               ; +0xc8, 0x10055bf88\nmov     rdi, rbx                                                       ; +0xcc, 0x10055bf8c\nmov     rsi, r14                                                       ; +0xcf, 0x10055bf8f\ncall    cocos2d__CCDictionary__setObject_1                             ; +0xd2, 0x10055bf92\ntest    byte ptr [rbp+__dst], 1                                        ; +0xd7, 0x10055bf97\njz      short loc_10055BFA6                                            ; +0xdb, 0x10055bf9b\nmov     rdi, [rbp+__p]; __p                                            ; +0xdd, 0x10055bf9d\ncall    __ZdlPv; operator delete(void *)                               ; +0xe1, 0x10055bfa1\nadd     rsp, 28h                                                       ; +0xe6, 0x10055bfa6\npop     rbx                                                            ; +0xea, 0x10055bfaa\npop     r12                                                            ; +0xeb, 0x10055bfab\npop     r13                                                            ; +0xed, 0x10055bfad\npop     r14                                                            ; +0xef, 0x10055bfaf\npop     r15                                                            ; +0xf1, 0x10055bfb1\npop     rbp                                                            ; +0xf3, 0x10055bfb3\nretn                                                                   ; +0xf4, 0x10055bfb4\ncall    sub_100006BF0                                                  ; +0xf5, 0x10055bfb5", "xrefs": ["EditorUI::onPause @ 0x10002a81d"], "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"}