{"type": "func", "start": 5368960576, "end": 5368960798, "name": "AchievementNotifier::notifyAchievement", "pseudocode": "// \n// AchievementNotifier::notifyAchievement from 0x14003d640 to 0x14003d71e (222 bytes)\n// \n// 3 xrefs:\n// > AchievementManager::notifyAchievementWithID @ 0x14003cfbd\n// > GameStatsManager::incrementChallenge @ 0x1402e616d\n// > <???> @ 0x14090f0e0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:28 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall AchievementNotifier::notifyAchievement(__int64 a1, int a2, int a3, int a4, char a5)\n{\n  cocos2d::CCNodeRGBA *v9; // r14\n\n  v9 = (cocos2d::CCNodeRGBA *)operator new(0x1A0u);\n  cocos2d::CCNodeRGBA::CCNodeRGBA(v9);\n  *(_QWORD *)v9 = &AchievementBar::`vftable';\n  *((_QWORD *)v9 + 40) = &AchievementBar::`vftable';\n  *((_QWORD *)v9 + 43) = 0;\n  *((_DWORD *)v9 + 88) = 0;\n  *((_QWORD *)v9 + 45) = 0;\n  if ( (unsigned __int8)AchievementBar::init((_DWORD)v9, a2, a3, a4, a5) )\n  {\n    cocos2d::CCObject::autorelease(v9);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCNodeRGBA *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);\n    v9 = nullptr;\n  }\n  cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 328), v9);\n  if ( !*(_QWORD *)(a1 + 336) )\n    AchievementNotifier::showNextAchievement(a1);\n}", "assembly": "; \n; AchievementNotifier::notifyAchievement from 0x14003d640 to 0x14003d71e (222 bytes)\n; \n; 3 xrefs:\n; > AchievementManager::notifyAchievementWithID @ 0x14003cfbd\n; > GameStatsManager::incrementChallenge @ 0x1402e616d\n; > <???> @ 0x14090f0e0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:28 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14003d640\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14003d645\npush    rsi                                                            ; +0xa, 0x14003d64a\npush    rdi                                                            ; +0xb, 0x14003d64b\npush    r14                                                            ; +0xc, 0x14003d64c\nsub     rsp, 30h                                                       ; +0xe, 0x14003d64e\nmov     rbx, r9                                                        ; +0x12, 0x14003d652\nmov     rdi, r8                                                        ; +0x15, 0x14003d655\nmov     rsi, rdx                                                       ; +0x18, 0x14003d658\nmov     rbp, rcx                                                       ; +0x1b, 0x14003d65b\nmov     ecx, 1A0h; Size                                                ; +0x1e, 0x14003d65e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x14003d663\nmov     r14, rax                                                       ; +0x28, 0x14003d668\nmov     [rsp+48h+arg_0], rax                                           ; +0x2b, 0x14003d66b\nmov     rcx, rax                                                       ; +0x30, 0x14003d670\ncall    cs:??0CCNodeRGBA@cocos2d@@QEAA@XZ; cocos2d::CCNodeRGBA::CCNodeRGBA(void) ; +0x33, 0x14003d673\nlea     rax, ??_7AchievementBar@@6B@; const AchievementBar::`vftable'  ; +0x39, 0x14003d679\nmov     [r14], rax                                                     ; +0x40, 0x14003d680\nlea     rax, ??_7AchievementBar@@6B@_0; const AchievementBar::`vftable' ; +0x43, 0x14003d683\nmov     [r14+140h], rax                                                ; +0x4a, 0x14003d68a\nmov     qword ptr [r14+158h], 0                                        ; +0x51, 0x14003d691\nmov     dword ptr [r14+160h], 0                                        ; +0x5c, 0x14003d69c\nmov     qword ptr [r14+168h], 0                                        ; +0x67, 0x14003d6a7\nmovzx   eax, [rsp+48h+arg_20]                                          ; +0x72, 0x14003d6b2\nmov     [rsp+48h+var_28], al                                           ; +0x77, 0x14003d6b7\nmov     r9, rbx                                                        ; +0x7b, 0x14003d6bb\nmov     r8, rdi                                                        ; +0x7e, 0x14003d6be\nmov     rdx, rsi                                                       ; +0x81, 0x14003d6c1\nmov     rcx, r14                                                       ; +0x84, 0x14003d6c4\ncall    AchievementBar__init                                           ; +0x87, 0x14003d6c7\nmov     rcx, r14                                                       ; +0x8c, 0x14003d6cc\ntest    al, al                                                         ; +0x8f, 0x14003d6cf\njz      short loc_14003D6DB                                            ; +0x91, 0x14003d6d1\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x93, 0x14003d6d3\njmp     short loc_14003D6E9                                            ; +0x99, 0x14003d6d9\nmov     rax, [r14]                                                     ; +0x9b, 0x14003d6db\nmov     edx, 1                                                         ; +0x9e, 0x14003d6de\ncall    qword ptr [rax+8]                                              ; +0xa3, 0x14003d6e3\nxor     r14d, r14d                                                     ; +0xa6, 0x14003d6e6\nmov     rdx, r14                                                       ; +0xa9, 0x14003d6e9\nmov     rcx, [rbp+148h]                                                ; +0xac, 0x14003d6ec\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xb3, 0x14003d6f3\ncmp     qword ptr [rbp+150h], 0                                        ; +0xb9, 0x14003d6f9\njnz     short loc_14003D70B                                            ; +0xc1, 0x14003d701\nmov     rcx, rbp                                                       ; +0xc3, 0x14003d703\ncall    AchievementNotifier__showNextAchievement                       ; +0xc6, 0x14003d706\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xcb, 0x14003d70b\nmov     rbp, [rsp+48h+arg_10]                                          ; +0xd0, 0x14003d710\nadd     rsp, 30h                                                       ; +0xd5, 0x14003d715\npop     r14                                                            ; +0xd9, 0x14003d719\npop     rdi                                                            ; +0xdb, 0x14003d71b\npop     rsi                                                            ; +0xdc, 0x14003d71c\nretn                                                                   ; +0xdd, 0x14003d71d", "xrefs": ["AchievementManager::notifyAchievementWithID @ 0x14003cfbd", "GameStatsManager::incrementChallenge @ 0x1402e616d", "<???> @ 0x14090f0e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}