{"type": "func", "start": 5369083504, "end": 5369083607, "name": "FLAlertLayer::onButtonTag", "pseudocode": "// \n// FLAlertLayer::onButtonTag from 0x14005b670 to 0x14005b6d7 (103 bytes)\n// \n// 2 xrefs:\n// > FLAlertLayer::onButton @ 0x14005b65c\n// > <???> @ 0x140910724\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:42 +0000\n// \n\n__int64 __fastcall FLAlertLayer::onButtonTag(struct cocos2d::CCObject *a1, int a2)\n{\n  __int64 v4; // rax\n  cocos2d::CCTouchDispatcher *v5; // rax\n  __int64 v6; // rdx\n  __int64 v7; // r8\n  void (__fastcall ***v8)(_QWORD, struct cocos2d::CCObject *, __int64); // rcx\n\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1);\n  if ( a2 != 2 )\n  {\n    v8 = *((void (__fastcall ****)(_QWORD, struct cocos2d::CCObject *, __int64))a1 + 70);\n    if ( v8 )\n    {\n      LOBYTE(v7) = a2 == 1;\n      (**v8)(v8, a1, v7);\n    }\n  }\n  LOBYTE(v6) = 1;\n  return (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v6);\n}", "assembly": "; \n; FLAlertLayer::onButtonTag from 0x14005b670 to 0x14005b6d7 (103 bytes)\n; \n; 2 xrefs:\n; > FLAlertLayer::onButton @ 0x14005b65c\n; > <???> @ 0x140910724\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:42 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14005b670\npush    rdi                                                            ; +0x5, 0x14005b675\nsub     rsp, 20h                                                       ; +0x6, 0x14005b676\nmov     edi, edx                                                       ; +0xa, 0x14005b67a\nmov     rbx, rcx                                                       ; +0xc, 0x14005b67c\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xf, 0x14005b67f\nmov     rcx, rax                                                       ; +0x15, 0x14005b685\nmov     r8, [rax]                                                      ; +0x18, 0x14005b688\ncall    qword ptr [r8+90h]                                             ; +0x1b, 0x14005b68b\nmov     rcx, rax                                                       ; +0x22, 0x14005b692\nmov     rdx, rbx                                                       ; +0x25, 0x14005b695\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x28, 0x14005b698\ncmp     edi, 2                                                         ; +0x2e, 0x14005b69e\njz      short loc_14005B6BE                                            ; +0x31, 0x14005b6a1\nmov     rcx, [rbx+230h]                                                ; +0x33, 0x14005b6a3\ntest    rcx, rcx                                                       ; +0x3a, 0x14005b6aa\njz      short loc_14005B6BE                                            ; +0x3d, 0x14005b6ad\nmov     rax, [rcx]                                                     ; +0x3f, 0x14005b6af\ncmp     edi, 1                                                         ; +0x42, 0x14005b6b2\nmov     rdx, rbx                                                       ; +0x45, 0x14005b6b5\nsetz    r8b                                                            ; +0x48, 0x14005b6b8\ncall    qword ptr [rax]                                                ; +0x4c, 0x14005b6bc\nmov     rax, [rbx]                                                     ; +0x4e, 0x14005b6be\nmov     dl, 1                                                          ; +0x51, 0x14005b6c1\nmov     rcx, rbx                                                       ; +0x53, 0x14005b6c3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x56, 0x14005b6c6\nadd     rsp, 20h                                                       ; +0x5b, 0x14005b6cb\npop     rdi                                                            ; +0x5f, 0x14005b6cf\njmp     qword ptr [rax+208h]                                           ; +0x60, 0x14005b6d0", "xrefs": ["FLAlertLayer::onButton @ 0x14005b65c", "<???> @ 0x140910724"], "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"}