{"type": "func", "start": 4295670960, "end": 4295671136, "name": "GameLevelManager::markLevelAsReported", "pseudocode": "// \n// GameLevelManager::markLevelAsReported from 0x1000abcb0 to 0x1000abd60 (176 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::reportLevel @ 0x1000abae8\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 GameLevelManager::markLevelAsReported(GameLevelManager *a1, int a2)\n{\n  cocos2d::CCDictionary *m_reportedLevels; // x21\n  cocos2d::CCString *m_trueString; // x20\n  cocos2d::CCString *v6; // x0\n  char *CString; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v9; // [xsp+1Fh] [xbp-21h]\n\n  if ( cocos2d::CCDictionary::count(a1->m_reportedLevels) >= 0xA )\n  {\n    cocos2d::CCDictionary::getFirstKey(__p, a1->m_reportedLevels);\n    cocos2d::CCDictionary::removeObjectForKey_1((int)a1->m_reportedLevels, (char *)__p);\n    if ( v9 < 0 )\n      operator delete(__p[0]);\n  }\n  m_reportedLevels = a1->m_reportedLevels;\n  m_trueString = a1->m_trueString;\n  v6 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  sub_100009900(__p, CString);\n  cocos2d::CCDictionary::setObject_1(m_reportedLevels, m_trueString, __p);\n  if ( v9 < 0 )\n    operator delete(__p[0]);\n}", "assembly": "; \n; GameLevelManager::markLevelAsReported from 0x1000abcb0 to 0x1000abd60 (176 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::reportLevel @ 0x1000abae8\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1000abcb0\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1000abcb4\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1000abcb8\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1000abcbc\nADD             X29, SP, #0x40                                         ; +0x10, 0x1000abcc0\nMOV             X19, X1                                                ; +0x14, 0x1000abcc4\nMOV             X20, X0                                                ; +0x18, 0x1000abcc8\nLDR             X0, [X0,#0x1A8]                                        ; +0x1c, 0x1000abccc\nBL              cocos2d__CCDictionary__count                           ; +0x20, 0x1000abcd0\nCMP             W0, #0xA                                               ; +0x24, 0x1000abcd4\nB.CC            loc_1000ABD04                                          ; +0x28, 0x1000abcd8\nLDR             X0, [X20,#0x1A8]                                       ; +0x2c, 0x1000abcdc\nADD             X8, SP, #0x40+__p                                      ; +0x30, 0x1000abce0\nBL              cocos2d__CCDictionary__getFirstKey                     ; +0x34, 0x1000abce4\nLDR             X0, [X20,#0x1A8]; int                                  ; +0x38, 0x1000abce8\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x1000abcec\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x40, 0x1000abcf0\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x44, 0x1000abcf4\nTBZ             W8, #0x1F, loc_1000ABD04                               ; +0x48, 0x1000abcf8\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x4c, 0x1000abcfc\nBL              __ZdlPv; operator delete(void *)                       ; +0x50, 0x1000abd00\nLDR             X21, [X20,#0x1A8]                                      ; +0x54, 0x1000abd04\nLDR             X20, [X20,#0x3A8]                                      ; +0x58, 0x1000abd08\nSTR             X19, [SP,#0x40+var_40]                                 ; +0x5c, 0x1000abd0c\nADRL            X0, aI; \"%i\"                                           ; +0x60, 0x1000abd10\nBL              sub_100268F4C                                          ; +0x68, 0x1000abd18\nBL              cocos2d__CCString__getCString                          ; +0x6c, 0x1000abd1c\nMOV             X1, X0; __s                                            ; +0x70, 0x1000abd20\nADD             X0, SP, #0x40+__p; int                                 ; +0x74, 0x1000abd24\nBL              sub_100009900                                          ; +0x78, 0x1000abd28\nADD             X2, SP, #0x40+__p                                      ; +0x7c, 0x1000abd2c\nMOV             X0, X21                                                ; +0x80, 0x1000abd30\nMOV             X1, X20                                                ; +0x84, 0x1000abd34\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x88, 0x1000abd38\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x8c, 0x1000abd3c\nTBZ             W8, #0x1F, loc_1000ABD4C                               ; +0x90, 0x1000abd40\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x94, 0x1000abd44\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x1000abd48\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x9c, 0x1000abd4c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa0, 0x1000abd50\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xa4, 0x1000abd54\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xa8, 0x1000abd58\nRET                                                                    ; +0xac, 0x1000abd5c", "xrefs": ["GameLevelManager::reportLevel @ 0x1000abae8"], "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"}