{"type": "func", "start": 4297798300, "end": 4297798440, "name": "AchievementNotifier::willSwitchToScene", "pseudocode": "// \n// AchievementNotifier::willSwitchToScene from 0x1002b329c to 0x1002b3328 (140 bytes)\n// \n// 1 xrefs:\n// > AppDelegate::willSwitchToScene @ 0x1003074d4\n// \n// This function is hookable on this platform (idp: arm, 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:02:21 +0000\n// \n\n__int64 __fastcall AchievementNotifier::willSwitchToScene(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n\n  *(_QWORD *)(a1 + 320) = a2;\n  result = *(_QWORD *)(a1 + 336);\n  if ( result )\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 512LL))(result);\n    if ( result != 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      return cocos2d::CCNode::resumeSchedulerAndActions(*(_QWORD *)(a1 + 336));\n    }\n  }\n  return result;\n}", "assembly": "; \n; AchievementNotifier::willSwitchToScene from 0x1002b329c to 0x1002b3328 (140 bytes)\n; \n; 1 xrefs:\n; > AppDelegate::willSwitchToScene @ 0x1003074d4\n; \n; This function is hookable on this platform (idp: arm, 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:02:21 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002b329c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002b32a0\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002b32a4\nMOV             X19, X0                                                ; +0xc, 0x1002b32a8\nSTR             X1, [X0,#0x140]                                        ; +0x10, 0x1002b32ac\nLDR             X0, [X0,#0x150]                                        ; +0x14, 0x1002b32b0\nCBZ             X0, loc_1002B331C                                      ; +0x18, 0x1002b32b4\nMOV             X20, X1                                                ; +0x1c, 0x1002b32b8\nLDR             X8, [X0]                                               ; +0x20, 0x1002b32bc\nLDR             X8, [X8,#0x200]                                        ; +0x24, 0x1002b32c0\nBLR             X8                                                     ; +0x28, 0x1002b32c4\nCMP             X0, X20                                                ; +0x2c, 0x1002b32c8\nB.EQ            loc_1002B331C                                          ; +0x30, 0x1002b32cc\nLDR             X0, [X19,#0x150]                                       ; +0x34, 0x1002b32d0\nBL              cocos2d__CCObject__retain                              ; +0x38, 0x1002b32d4\nLDR             X0, [X19,#0x150]                                       ; +0x3c, 0x1002b32d8\nLDR             X8, [X0]                                               ; +0x40, 0x1002b32dc\nLDR             X8, [X8,#0x210]                                        ; +0x44, 0x1002b32e0\nMOV             W1, #0                                                 ; +0x48, 0x1002b32e4\nBLR             X8                                                     ; +0x4c, 0x1002b32e8\nLDR             X1, [X19,#0x150]                                       ; +0x50, 0x1002b32ec\nLDR             X8, [X20]                                              ; +0x54, 0x1002b32f0\nLDR             X8, [X8,#0x1D0]                                        ; +0x58, 0x1002b32f4\nMOV             X0, X20                                                ; +0x5c, 0x1002b32f8\nMOV             W2, #0x69 ; 'i'                                        ; +0x60, 0x1002b32fc\nBLR             X8                                                     ; +0x64, 0x1002b3300\nLDR             X0, [X19,#0x150]                                       ; +0x68, 0x1002b3304\nBL              cocos2d__CCObject__release                             ; +0x6c, 0x1002b3308\nLDR             X0, [X19,#0x150]                                       ; +0x70, 0x1002b330c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x1002b3310\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x1002b3314\nB               cocos2d__CCNode__resumeSchedulerAndActions             ; +0x7c, 0x1002b3318\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x80, 0x1002b331c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x84, 0x1002b3320\nRET                                                                    ; +0x88, 0x1002b3324", "xrefs": ["AppDelegate::willSwitchToScene @ 0x1003074d4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}