{"type": "func", "start": 5369083216, "end": 5369083448, "name": "FLAlertLayer::keyBackClicked", "pseudocode": "// \n// FLAlertLayer::keyBackClicked from 0x14005b550 to 0x14005b638 (232 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x14070dae8\n// > <???> @ 0x1407460c0\n// > <???> @ 0x14091070c\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::keyBackClicked(__int64 a1)\n{\n  __int64 v1; // rdi\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  __int64 v5; // rdx\n  __int64 v6; // rax\n  cocos2d::CCTouchDispatcher *v7; // rax\n  void (__fastcall ***v8)(_QWORD, __int64, __int64); // rcx\n  __int64 v9; // r8\n  __int64 v10; // rax\n  cocos2d::CCTouchDispatcher *v11; // rax\n\n  v1 = a1 - 336;\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 336) + 992LL))(a1 - 336, 0);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v1 + 1008LL))(v1, 0);\n  if ( !*(_BYTE *)(a1 + 320) )\n  {\n    if ( *(_BYTE *)(v1 + 576) )\n    {\n      v10 = cocos2d::CCDirector::sharedDirector();\n      v11 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 144LL))(v10);\n      cocos2d::CCTouchDispatcher::unregisterForcePrio(v11, (struct cocos2d::CCObject *)v1);\n      v8 = *(void (__fastcall ****)(_QWORD, __int64, __int64))(v1 + 560);\n      if ( !v8 )\n        goto LABEL_9;\n      LOBYTE(v9) = 1;\n    }\n    else\n    {\n      v6 = cocos2d::CCDirector::sharedDirector();\n      v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 144LL))(v6);\n      cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, (struct cocos2d::CCObject *)v1);\n      v8 = *(void (__fastcall ****)(_QWORD, __int64, __int64))(v1 + 560);\n      if ( !v8 )\n        goto LABEL_9;\n      v9 = 0;\n    }\n    (**v8)(v8, v1, v9);\n    goto LABEL_9;\n  }\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (struct cocos2d::CCObject *)v1);\nLABEL_9:\n  LOBYTE(v5) = 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 520LL))(v1, v5);\n}", "assembly": "; \n; FLAlertLayer::keyBackClicked from 0x14005b550 to 0x14005b638 (232 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x14070dae8\n; > <???> @ 0x1407460c0\n; > <???> @ 0x14091070c\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, 0x14005b550\npush    rdi                                                            ; +0x5, 0x14005b555\nsub     rsp, 20h                                                       ; +0x6, 0x14005b556\nlea     rdi, [rcx-150h]                                                ; +0xa, 0x14005b55a\nmov     rbx, rcx                                                       ; +0x11, 0x14005b561\nmov     rax, [rdi]                                                     ; +0x14, 0x14005b564\nxor     edx, edx                                                       ; +0x17, 0x14005b567\nmov     rcx, rdi                                                       ; +0x19, 0x14005b569\ncall    qword ptr [rax+3E0h]                                           ; +0x1c, 0x14005b56c\nmov     rax, [rdi]                                                     ; +0x22, 0x14005b572\nxor     edx, edx                                                       ; +0x25, 0x14005b575\nmov     rcx, rdi                                                       ; +0x27, 0x14005b577\ncall    qword ptr [rax+3F0h]                                           ; +0x2a, 0x14005b57a\ncmp     byte ptr [rbx+140h], 0                                         ; +0x30, 0x14005b580\njz      short loc_14005B5AC                                            ; +0x37, 0x14005b587\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x39, 0x14005b589\nmov     rcx, [rax]                                                     ; +0x3f, 0x14005b58f\nmov     rdx, [rcx+90h]                                                 ; +0x42, 0x14005b592\nmov     rcx, rax                                                       ; +0x49, 0x14005b599\ncall    rdx                                                            ; +0x4c, 0x14005b59c\nmov     rcx, rax                                                       ; +0x4e, 0x14005b59e\nmov     rdx, rdi                                                       ; +0x51, 0x14005b5a1\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x54, 0x14005b5a4\njmp     short loc_14005B61F                                            ; +0x5a, 0x14005b5aa\ncmp     byte ptr [rdi+240h], 0                                         ; +0x5c, 0x14005b5ac\njnz     short loc_14005B5E7                                            ; +0x63, 0x14005b5b3\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x65, 0x14005b5b5\nmov     rcx, [rax]                                                     ; +0x6b, 0x14005b5bb\nmov     rdx, [rcx+90h]                                                 ; +0x6e, 0x14005b5be\nmov     rcx, rax                                                       ; +0x75, 0x14005b5c5\ncall    rdx                                                            ; +0x78, 0x14005b5c8\nmov     rcx, rax                                                       ; +0x7a, 0x14005b5ca\nmov     rdx, rdi                                                       ; +0x7d, 0x14005b5cd\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x80, 0x14005b5d0\nmov     rcx, [rdi+230h]                                                ; +0x86, 0x14005b5d6\ntest    rcx, rcx                                                       ; +0x8d, 0x14005b5dd\njz      short loc_14005B61F                                            ; +0x90, 0x14005b5e0\nxor     r8d, r8d                                                       ; +0x92, 0x14005b5e2\njmp     short loc_14005B617                                            ; +0x95, 0x14005b5e5\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x97, 0x14005b5e7\nmov     rcx, [rax]                                                     ; +0x9d, 0x14005b5ed\nmov     rdx, [rcx+90h]                                                 ; +0xa0, 0x14005b5f0\nmov     rcx, rax                                                       ; +0xa7, 0x14005b5f7\ncall    rdx                                                            ; +0xaa, 0x14005b5fa\nmov     rcx, rax                                                       ; +0xac, 0x14005b5fc\nmov     rdx, rdi                                                       ; +0xaf, 0x14005b5ff\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0xb2, 0x14005b602\nmov     rcx, [rdi+230h]                                                ; +0xb8, 0x14005b608\ntest    rcx, rcx                                                       ; +0xbf, 0x14005b60f\njz      short loc_14005B61F                                            ; +0xc2, 0x14005b612\nmov     r8b, 1                                                         ; +0xc4, 0x14005b614\nmov     rax, [rcx]                                                     ; +0xc7, 0x14005b617\nmov     rdx, rdi                                                       ; +0xca, 0x14005b61a\ncall    qword ptr [rax]                                                ; +0xcd, 0x14005b61d\nmov     rax, [rdi]                                                     ; +0xcf, 0x14005b61f\nmov     dl, 1                                                          ; +0xd2, 0x14005b622\nmov     rcx, rdi                                                       ; +0xd4, 0x14005b624\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd7, 0x14005b627\nadd     rsp, 20h                                                       ; +0xdc, 0x14005b62c\npop     rdi                                                            ; +0xe0, 0x14005b630\njmp     qword ptr [rax+208h]                                           ; +0xe1, 0x14005b631", "xrefs": ["<???> @ 0x14070dae8", "<???> @ 0x1407460c0", "<???> @ 0x14091070c"], "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"}