{"type": "func", "start": 4295627108, "end": 4295627284, "name": "GameLevelManager::markLevelAsRatedDemon", "pseudocode": "// \n// GameLevelManager::markLevelAsRatedDemon from 0x1000a1164 to 0x1000a1214 (176 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::rateDemon @ 0x1000a18f0\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::markLevelAsRatedDemon(GameLevelManager *a1, int a2)\n{\n  cocos2d::CCDictionary *m_ratedDemons; // 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_ratedDemons) >= 0x3E8 )\n  {\n    cocos2d::CCDictionary::getFirstKey(__p, a1->m_ratedDemons);\n    cocos2d::CCDictionary::removeObjectForKey_1((int)a1->m_ratedDemons, (char *)__p);\n    if ( v9 < 0 )\n      operator delete(__p[0]);\n  }\n  m_ratedDemons = a1->m_ratedDemons;\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_ratedDemons, m_trueString, __p);\n  if ( v9 < 0 )\n    operator delete(__p[0]);\n}", "assembly": "; \n; GameLevelManager::markLevelAsRatedDemon from 0x1000a1164 to 0x1000a1214 (176 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::rateDemon @ 0x1000a18f0\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, 0x1000a1164\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1000a1168\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1000a116c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1000a1170\nADD             X29, SP, #0x40                                         ; +0x10, 0x1000a1174\nMOV             X19, X1                                                ; +0x14, 0x1000a1178\nMOV             X20, X0                                                ; +0x18, 0x1000a117c\nLDR             X0, [X0,#0x1A0]                                        ; +0x1c, 0x1000a1180\nBL              cocos2d__CCDictionary__count                           ; +0x20, 0x1000a1184\nCMP             W0, #0x3E8                                             ; +0x24, 0x1000a1188\nB.CC            loc_1000A11B8                                          ; +0x28, 0x1000a118c\nLDR             X0, [X20,#0x1A0]                                       ; +0x2c, 0x1000a1190\nADD             X8, SP, #0x40+__p                                      ; +0x30, 0x1000a1194\nBL              cocos2d__CCDictionary__getFirstKey                     ; +0x34, 0x1000a1198\nLDR             X0, [X20,#0x1A0]; int                                  ; +0x38, 0x1000a119c\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x1000a11a0\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x40, 0x1000a11a4\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x44, 0x1000a11a8\nTBZ             W8, #0x1F, loc_1000A11B8                               ; +0x48, 0x1000a11ac\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x4c, 0x1000a11b0\nBL              __ZdlPv; operator delete(void *)                       ; +0x50, 0x1000a11b4\nLDR             X21, [X20,#0x1A0]                                      ; +0x54, 0x1000a11b8\nLDR             X20, [X20,#0x3A8]                                      ; +0x58, 0x1000a11bc\nSTR             X19, [SP,#0x40+var_40]                                 ; +0x5c, 0x1000a11c0\nADRL            X0, aI; \"%i\"                                           ; +0x60, 0x1000a11c4\nBL              sub_100268F4C                                          ; +0x68, 0x1000a11cc\nBL              cocos2d__CCString__getCString                          ; +0x6c, 0x1000a11d0\nMOV             X1, X0; __s                                            ; +0x70, 0x1000a11d4\nADD             X0, SP, #0x40+__p; int                                 ; +0x74, 0x1000a11d8\nBL              sub_100009900                                          ; +0x78, 0x1000a11dc\nADD             X2, SP, #0x40+__p                                      ; +0x7c, 0x1000a11e0\nMOV             X0, X21                                                ; +0x80, 0x1000a11e4\nMOV             X1, X20                                                ; +0x84, 0x1000a11e8\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x88, 0x1000a11ec\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x8c, 0x1000a11f0\nTBZ             W8, #0x1F, loc_1000A1200                               ; +0x90, 0x1000a11f4\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x94, 0x1000a11f8\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x1000a11fc\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x9c, 0x1000a1200\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa0, 0x1000a1204\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xa4, 0x1000a1208\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xa8, 0x1000a120c\nRET                                                                    ; +0xac, 0x1000a1210", "xrefs": ["GameLevelManager::rateDemon @ 0x1000a18f0"], "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"}