{"type": "func", "start": 4304053856, "end": 4304053989, "name": "AchievementNotifier::willSwitchToScene", "pseudocode": "// \n// AchievementNotifier::willSwitchToScene from 0x1008aa660 to 0x1008aa6e5 (133 bytes)\n// \n// 2 xrefs:\n// > AppDelegate::willSwitchToScene @ 0x10073bdb4\n// > sub_10073BDD0 @ 0x10073bde4\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 12:37:18 +0000\n// \n\nvoid __fastcall AchievementNotifier::willSwitchToScene(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rdi\n\n  *(_QWORD *)(a1 + 320) = a2;\n  v3 = *(_QWORD *)(a1 + 336);\n  if ( v3 )\n  {\n    if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3) != a2 )\n    {\n      cocos2d::CCObject::retain(*(_QWORD *)(a1 + 336));\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 336) + 528LL))(*(_QWORD *)(a1 + 336), 0);\n      (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a2 + 464LL))(a2, *(_QWORD *)(a1 + 336), 105);\n      cocos2d::CCObject::release(*(_DWORD **)(a1 + 336));\n      cocos2d::CCNode::resumeSchedulerAndActions(*(_QWORD *)(a1 + 336));\n    }\n  }\n}", "assembly": "; \n; AchievementNotifier::willSwitchToScene from 0x1008aa660 to 0x1008aa6e5 (133 bytes)\n; \n; 2 xrefs:\n; > AppDelegate::willSwitchToScene @ 0x10073bdb4\n; > sub_10073BDD0 @ 0x10073bde4\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 12:37:18 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008aa660\nmov     rbp, rsp                                                       ; +0x1, 0x1008aa661\npush    r14                                                            ; +0x4, 0x1008aa664\npush    rbx                                                            ; +0x6, 0x1008aa666\nmov     rbx, rdi                                                       ; +0x7, 0x1008aa667\nmov     [rdi+140h], rsi                                                ; +0xa, 0x1008aa66a\nmov     rdi, [rdi+150h]                                                ; +0x11, 0x1008aa671\ntest    rdi, rdi                                                       ; +0x18, 0x1008aa678\njz      short loc_1008AA6E0                                            ; +0x1b, 0x1008aa67b\nmov     r14, rsi                                                       ; +0x1d, 0x1008aa67d\nmov     rax, [rdi]                                                     ; +0x20, 0x1008aa680\ncall    qword ptr [rax+200h]                                           ; +0x23, 0x1008aa683\ncmp     rax, r14                                                       ; +0x29, 0x1008aa689\njz      short loc_1008AA6E0                                            ; +0x2c, 0x1008aa68c\nmov     rdi, [rbx+150h]                                                ; +0x2e, 0x1008aa68e\ncall    cocos2d__CCObject__retain                                      ; +0x35, 0x1008aa695\nmov     rdi, [rbx+150h]                                                ; +0x3a, 0x1008aa69a\nmov     rax, [rdi]                                                     ; +0x41, 0x1008aa6a1\nxor     esi, esi                                                       ; +0x44, 0x1008aa6a4\ncall    qword ptr [rax+210h]                                           ; +0x46, 0x1008aa6a6\nmov     rsi, [rbx+150h]                                                ; +0x4c, 0x1008aa6ac\nmov     rax, [r14]                                                     ; +0x53, 0x1008aa6b3\nmov     rdi, r14                                                       ; +0x56, 0x1008aa6b6\nmov     edx, 69h ; 'i'                                                 ; +0x59, 0x1008aa6b9\ncall    qword ptr [rax+1D0h]                                           ; +0x5e, 0x1008aa6be\nmov     rdi, [rbx+150h]                                                ; +0x64, 0x1008aa6c4\ncall    cocos2d__CCObject__release                                     ; +0x6b, 0x1008aa6cb\nmov     rdi, [rbx+150h]                                                ; +0x70, 0x1008aa6d0\npop     rbx                                                            ; +0x77, 0x1008aa6d7\npop     r14                                                            ; +0x78, 0x1008aa6d8\npop     rbp                                                            ; +0x7a, 0x1008aa6da\njmp     cocos2d__CCNode__resumeSchedulerAndActions                     ; +0x7b, 0x1008aa6db\npop     rbx                                                            ; +0x80, 0x1008aa6e0\npop     r14                                                            ; +0x81, 0x1008aa6e1\npop     rbp                                                            ; +0x83, 0x1008aa6e3\nretn                                                                   ; +0x84, 0x1008aa6e4", "xrefs": ["AppDelegate::willSwitchToScene @ 0x10073bdb4", "sub_10073BDD0 @ 0x10073bde4"], "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"}