{"type": "func", "start": 5369047568, "end": 5369047650, "name": "FLAlertLayer::onBtn2", "pseudocode": "// \n// FLAlertLayer::onBtn2 from 0x140052a10 to 0x140052a62 (82 bytes)\n// \n// 2 xrefs:\n// > FLAlertLayer::init @ 0x1400525ef\n// > <???> @ 0x1406c4e54\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 FLAlertLayer::onBtn2(FLAlertLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  _BOOL8 v5; // rdx\n  _BOOL8 v6; // r8\n  FLAlertLayerProtocol *m_alertProtocol; // rcx\n\n  v3 = cocos2d::CCDirector::sharedDirector(a1, a2);\n  v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);\n  m_alertProtocol = a1->m_alertProtocol;\n  if ( m_alertProtocol )\n  {\n    LOBYTE(v6) = 1;\n    m_alertProtocol->FLAlert_Clicked(m_alertProtocol, a1, v6);\n  }\n  LOBYTE(v5) = 1;\n  a1->removeFromParentAndCleanup(a1, v5);\n}", "assembly": "; \n; FLAlertLayer::onBtn2 from 0x140052a10 to 0x140052a62 (82 bytes)\n; \n; 2 xrefs:\n; > FLAlertLayer::init @ 0x1400525ef\n; > <???> @ 0x1406c4e54\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    rbx                                                            ; +0x0, 0x140052a10\nsub     rsp, 20h                                                       ; +0x2, 0x140052a12\nmov     rbx, rcx                                                       ; +0x6, 0x140052a16\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x140052a19\nmov     rcx, rax                                                       ; +0xf, 0x140052a1f\nmov     rdx, [rax]                                                     ; +0x12, 0x140052a22\ncall    qword ptr [rdx+90h]                                            ; +0x15, 0x140052a25\nmov     rcx, rax                                                       ; +0x1b, 0x140052a2b\nmov     rdx, rbx                                                       ; +0x1e, 0x140052a2e\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x21, 0x140052a31\nmov     rcx, [rbx+228h]                                                ; +0x27, 0x140052a37\ntest    rcx, rcx                                                       ; +0x2e, 0x140052a3e\njz      short loc_140052A4E                                            ; +0x31, 0x140052a41\nmov     rax, [rcx]                                                     ; +0x33, 0x140052a43\nmov     r8b, 1                                                         ; +0x36, 0x140052a46\nmov     rdx, rbx                                                       ; +0x39, 0x140052a49\ncall    qword ptr [rax]                                                ; +0x3c, 0x140052a4c\nmov     rax, [rbx]                                                     ; +0x3e, 0x140052a4e\nmov     dl, 1                                                          ; +0x41, 0x140052a51\nmov     rcx, rbx                                                       ; +0x43, 0x140052a53\nadd     rsp, 20h                                                       ; +0x46, 0x140052a56\npop     rbx                                                            ; +0x4a, 0x140052a5a\njmp     qword ptr [rax+1F8h]                                           ; +0x4b, 0x140052a5b", "xrefs": ["FLAlertLayer::init @ 0x1400525ef", "<???> @ 0x1406c4e54"], "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"}