{"type": "func", "start": 4298605104, "end": 4298605216, "name": "GameManager::unlockIcon", "pseudocode": "// \n// GameManager::unlockIcon from 0x100378230 to 0x1003782a0 (112 bytes)\n// \n// 0 xrefs:\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 GameManager::unlockIcon(GameManager *a1, int a2, IconType a3)\n{\n  double v3; // xmm0_8\n  cocos2d::CCDictionary *m_valueKeeper; // r15\n  cocos2d::CCObject *v6; // r12\n  size_t v7[8]; // [rsp+0h] [rbp-40h] BYREF\n\n  m_valueKeeper = a1->m_valueKeeper;\n  v6 = (cocos2d::CCObject *)sub_1007AB580(\"%i\", v7[0]);\n  GameManager::iconKey(v7, v3, 1, a2, a3);\n  cocos2d::CCDictionary::setObject_1((__int64)m_valueKeeper, v6, (char *)v7);\n  if ( (v7[0] & 1) != 0 )\n    operator delete((void *)v7[2]);\n}", "assembly": "; \n; GameManager::unlockIcon from 0x100378230 to 0x1003782a0 (112 bytes)\n; \n; 0 xrefs:\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, 0x100378230\nmov     rbp, rsp                                                       ; +0x1, 0x100378231\npush    r15                                                            ; +0x4, 0x100378234\npush    r14                                                            ; +0x6, 0x100378236\npush    r13                                                            ; +0x8, 0x100378238\npush    r12                                                            ; +0xa, 0x10037823a\npush    rbx                                                            ; +0xc, 0x10037823c\nsub     rsp, 18h                                                       ; +0xd, 0x10037823d\nmov     ebx, edx                                                       ; +0x11, 0x100378241\nmov     r14d, esi                                                      ; +0x13, 0x100378243\nmov     r15, [rdi+190h]                                                ; +0x16, 0x100378246\nlea     rdi, aI; \"%i\"                                                  ; +0x1d, 0x10037824d\nmov     esi, 1                                                         ; +0x24, 0x100378254\nxor     eax, eax                                                       ; +0x29, 0x100378259\ncall    sub_1007AB580                                                  ; +0x2b, 0x10037825b\nmov     r12, rax                                                       ; +0x30, 0x100378260\nlea     r13, [rbp+var_40]                                              ; +0x33, 0x100378263\nmov     rdi, r13                                                       ; +0x37, 0x100378267\nmov     edx, r14d                                                      ; +0x3a, 0x10037826a\nmov     ecx, ebx                                                       ; +0x3d, 0x10037826d\ncall    GameManager__iconKey                                           ; +0x3f, 0x10037826f\nmov     rdi, r15                                                       ; +0x44, 0x100378274\nmov     rsi, r12                                                       ; +0x47, 0x100378277\nmov     rdx, r13                                                       ; +0x4a, 0x10037827a\ncall    cocos2d__CCDictionary__setObject_1                             ; +0x4d, 0x10037827d\ntest    [rbp+var_40], 1                                                ; +0x52, 0x100378282\njz      short loc_100378291                                            ; +0x56, 0x100378286\nmov     rdi, [rbp+__p]; __p                                            ; +0x58, 0x100378288\ncall    __ZdlPv; operator delete(void *)                               ; +0x5c, 0x10037828c\nadd     rsp, 18h                                                       ; +0x61, 0x100378291\npop     rbx                                                            ; +0x65, 0x100378295\npop     r12                                                            ; +0x66, 0x100378296\npop     r13                                                            ; +0x68, 0x100378298\npop     r14                                                            ; +0x6a, 0x10037829a\npop     r15                                                            ; +0x6c, 0x10037829c\npop     rbp                                                            ; +0x6e, 0x10037829e\nretn                                                                   ; +0x6f, 0x10037829f", "xrefs": [], "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"}