{"type": "func", "start": 4298189864, "end": 4298189988, "name": "GameManager::unlockIcon", "pseudocode": "// \n// GameManager::unlockIcon from 0x100312c28 to 0x100312ca4 (124 bytes)\n// \n// 1 xrefs:\n// > GameManager::completedAchievement @ 0x100313794\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GameManager::unlockIcon(GameManager *a1, int a2, IconType a3)\n{\n  __int64 v4; // x20\n  cocos2d::CCDictionary *m_valueKeeper; // x21\n  cocos2d::CCObject *v6; // x22\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v8; // [xsp+1Fh] [xbp-21h]\n\n  v4 = *(_QWORD *)&a2;\n  m_valueKeeper = a1->m_valueKeeper;\n  v6 = sub_100268F4C(\"%i\", 1);\n  GameManager::iconKey(v4, a3, __p);\n  cocos2d::CCDictionary::setObject_1(m_valueKeeper, v6, __p);\n  if ( v8 < 0 )\n    operator delete(__p[0]);\n}", "assembly": "; \n; GameManager::unlockIcon from 0x100312c28 to 0x100312ca4 (124 bytes)\n; \n; 1 xrefs:\n; > GameManager::completedAchievement @ 0x100313794\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, 0x100312c28\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x100312c2c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x100312c30\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100312c34\nADD             X29, SP, #0x40                                         ; +0x10, 0x100312c38\nMOV             X19, X2                                                ; +0x14, 0x100312c3c\nMOV             X20, X1                                                ; +0x18, 0x100312c40\nLDR             X21, [X0,#0x190]                                       ; +0x1c, 0x100312c44\nMOV             W8, #1                                                 ; +0x20, 0x100312c48\nSTR             X8, [SP,#0x40+var_40]                                  ; +0x24, 0x100312c4c\nADRL            X0, aI; \"%i\"                                           ; +0x28, 0x100312c50\nBL              sub_100268F4C                                          ; +0x30, 0x100312c58\nMOV             X22, X0                                                ; +0x34, 0x100312c5c\nADD             X8, SP, #0x40+__p                                      ; +0x38, 0x100312c60\nMOV             X1, X20                                                ; +0x3c, 0x100312c64\nMOV             X2, X19                                                ; +0x40, 0x100312c68\nBL              GameManager__iconKey                                   ; +0x44, 0x100312c6c\nADD             X2, SP, #0x40+__p                                      ; +0x48, 0x100312c70\nMOV             X0, X21                                                ; +0x4c, 0x100312c74\nMOV             X1, X22                                                ; +0x50, 0x100312c78\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x54, 0x100312c7c\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x58, 0x100312c80\nTBZ             W8, #0x1F, loc_100312C90                               ; +0x5c, 0x100312c84\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x60, 0x100312c88\nBL              __ZdlPv; operator delete(void *)                       ; +0x64, 0x100312c8c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x68, 0x100312c90\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x6c, 0x100312c94\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x70, 0x100312c98\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x74, 0x100312c9c\nRET                                                                    ; +0x78, 0x100312ca0", "xrefs": ["GameManager::completedAchievement @ 0x100313794"], "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"}