{"type": "func", "start": 5368949728, "end": 5368949950, "name": "AchievementNotifier::notifyAchievement", "pseudocode": "// \n// AchievementNotifier::notifyAchievement from 0x14003abe0 to 0x14003acbe (222 bytes)\n// \n// 3 xrefs:\n// > AchievementManager::notifyAchievementWithID @ 0x14003a731\n// > GameStatsManager::incrementChallenge @ 0x1401e2750\n// > <???> @ 0x1406c3d50\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// Hidden C++ exception states: #wind=1\nvoid AchievementNotifier::notifyAchievement(\n        AchievementNotifier *a1,\n        const char *a2,\n        const char *a3,\n        const char *a4,\n        bool a5)\n{\n  AchievementBar *v9; // r14\n\n  v9 = (AchievementBar *)operator new(0x1A0u);\n  cocos2d::CCNodeRGBA::CCNodeRGBA(v9);\n  v9->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (AchievementBar_vtbl *)&AchievementBar::`vftable';\n  v9->cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&AchievementBar::`vftable';\n  v9->m_layerColor = nullptr;\n  v9->m_unkUnused = 0;\n  v9->m_nextScene = nullptr;\n  if ( AchievementBar::init(v9, a2, a3, a4, a5) )\n  {\n    cocos2d::CCObject::autorelease(v9);\n  }\n  else\n  {\n    ((void (__fastcall *)(AchievementBar *, __int64))v9->~AchievementBar)(v9, 1);\n    v9 = nullptr;\n  }\n  cocos2d::CCArray::addObject(a1->m_achievementBarArray, v9);\n  if ( !a1->m_activeAchievementBar )\n    AchievementNotifier::showNextAchievement(a1);\n}", "assembly": "; \n; AchievementNotifier::notifyAchievement from 0x14003abe0 to 0x14003acbe (222 bytes)\n; \n; 3 xrefs:\n; > AchievementManager::notifyAchievementWithID @ 0x14003a731\n; > GameStatsManager::incrementChallenge @ 0x1401e2750\n; > <???> @ 0x1406c3d50\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14003abe0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14003abe5\npush    rsi                                                            ; +0xa, 0x14003abea\npush    rdi                                                            ; +0xb, 0x14003abeb\npush    r14                                                            ; +0xc, 0x14003abec\nsub     rsp, 30h                                                       ; +0xe, 0x14003abee\nmov     rbx, r9                                                        ; +0x12, 0x14003abf2\nmov     rdi, r8                                                        ; +0x15, 0x14003abf5\nmov     rsi, rdx                                                       ; +0x18, 0x14003abf8\nmov     rbp, rcx                                                       ; +0x1b, 0x14003abfb\nmov     ecx, 1A0h; Size                                                ; +0x1e, 0x14003abfe\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x14003ac03\nmov     r14, rax                                                       ; +0x28, 0x14003ac08\nmov     [rsp+48h+arg_0], rax                                           ; +0x2b, 0x14003ac0b\nmov     rcx, rax                                                       ; +0x30, 0x14003ac10\ncall    cs:??0CCNodeRGBA@cocos2d@@QEAA@XZ; cocos2d::CCNodeRGBA::CCNodeRGBA(void) ; +0x33, 0x14003ac13\nlea     rax, ??_7AchievementBar@@6B@; const AchievementBar::`vftable'  ; +0x39, 0x14003ac19\nmov     [r14], rax                                                     ; +0x40, 0x14003ac20\nlea     rax, ??_7AchievementBar@@6B@_0; const AchievementBar::`vftable' ; +0x43, 0x14003ac23\nmov     [r14+140h], rax                                                ; +0x4a, 0x14003ac2a\nmov     qword ptr [r14+158h], 0                                        ; +0x51, 0x14003ac31\nmov     dword ptr [r14+160h], 0                                        ; +0x5c, 0x14003ac3c\nmov     qword ptr [r14+168h], 0                                        ; +0x67, 0x14003ac47\nmovzx   eax, [rsp+48h+arg_20]                                          ; +0x72, 0x14003ac52\nmov     [rsp+48h+var_28], al                                           ; +0x77, 0x14003ac57\nmov     r9, rbx                                                        ; +0x7b, 0x14003ac5b\nmov     r8, rdi                                                        ; +0x7e, 0x14003ac5e\nmov     rdx, rsi                                                       ; +0x81, 0x14003ac61\nmov     rcx, r14                                                       ; +0x84, 0x14003ac64\ncall    AchievementBar__init                                           ; +0x87, 0x14003ac67\nmov     rcx, r14                                                       ; +0x8c, 0x14003ac6c\ntest    al, al                                                         ; +0x8f, 0x14003ac6f\njz      short loc_14003AC7B                                            ; +0x91, 0x14003ac71\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x93, 0x14003ac73\njmp     short loc_14003AC89                                            ; +0x99, 0x14003ac79\nmov     rax, [r14]                                                     ; +0x9b, 0x14003ac7b\nmov     edx, 1                                                         ; +0x9e, 0x14003ac7e\ncall    qword ptr [rax+8]                                              ; +0xa3, 0x14003ac83\nxor     r14d, r14d                                                     ; +0xa6, 0x14003ac86\nmov     rdx, r14                                                       ; +0xa9, 0x14003ac89\nmov     rcx, [rbp+148h]                                                ; +0xac, 0x14003ac8c\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xb3, 0x14003ac93\ncmp     qword ptr [rbp+150h], 0                                        ; +0xb9, 0x14003ac99\njnz     short loc_14003ACAB                                            ; +0xc1, 0x14003aca1\nmov     rcx, rbp                                                       ; +0xc3, 0x14003aca3\ncall    AchievementNotifier__showNextAchievement                       ; +0xc6, 0x14003aca6\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xcb, 0x14003acab\nmov     rbp, [rsp+48h+arg_10]                                          ; +0xd0, 0x14003acb0\nadd     rsp, 30h                                                       ; +0xd5, 0x14003acb5\npop     r14                                                            ; +0xd9, 0x14003acb9\npop     rdi                                                            ; +0xdb, 0x14003acbb\npop     rsi                                                            ; +0xdc, 0x14003acbc\nretn                                                                   ; +0xdd, 0x14003acbd", "xrefs": ["AchievementManager::notifyAchievementWithID @ 0x14003a731", "GameStatsManager::incrementChallenge @ 0x1401e2750", "<???> @ 0x1406c3d50"], "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"}