{"type": "func", "start": 4299771136, "end": 4299771315, "name": "FLAlertLayer::keyBackClicked", "pseudocode": "// \n// FLAlertLayer::keyBackClicked from 0x100494d00 to 0x100494db3 (179 bytes)\n// \n// 3 xrefs:\n// > sub_100494DC0 @ 0x100494dcc\n// > <???> @ 0x100b4ffc8\n// > <???> @ 0x100bd3fd8\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:30:48 +0000\n// \n\n__int64 __fastcall FLAlertLayer::keyBackClicked(_BYTE *a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  char v4; // r14\n  __int64 v5; // rax\n  __int64 v6; // rax\n  void (__fastcall ***v7)(_QWORD, _BYTE *, __int64); // rdi\n  void (__fastcall **v8)(_QWORD, _BYTE *, __int64); // rax\n  _BYTE *v9; // rsi\n  __int64 v10; // rdx\n\n  (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n  (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1088LL))(a1, 0);\n  if ( a1[656] != 1 )\n  {\n    v4 = a1[576];\n    v5 = cocos2d::CCDirector::sharedDirector();\n    v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);\n    v7 = *((void (__fastcall ****)(_QWORD, _BYTE *, __int64))a1 + 70);\n    if ( v4 )\n    {\n      if ( !v7 )\n        return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n      v8 = *v7;\n      v9 = a1;\n      v10 = 1;\n    }\n    else\n    {\n      if ( !v7 )\n        return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n      v8 = *v7;\n      v9 = a1;\n      v10 = 0;\n    }\n    (*v8)(v7, v9, v10);\n    return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n  }\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);\n  return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n}", "assembly": "; \n; FLAlertLayer::keyBackClicked from 0x100494d00 to 0x100494db3 (179 bytes)\n; \n; 3 xrefs:\n; > sub_100494DC0 @ 0x100494dcc\n; > <???> @ 0x100b4ffc8\n; > <???> @ 0x100bd3fd8\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:30:48 +0000\n; \npush    rbp                                                            ; +0x0, 0x100494d00\nmov     rbp, rsp                                                       ; +0x1, 0x100494d01\npush    r14                                                            ; +0x4, 0x100494d04\npush    rbx                                                            ; +0x6, 0x100494d06\nmov     rbx, rdi                                                       ; +0x7, 0x100494d07\nmov     rax, [rdi]                                                     ; +0xa, 0x100494d0a\nxor     esi, esi                                                       ; +0xd, 0x100494d0d\ncall    qword ptr [rax+430h]                                           ; +0xf, 0x100494d0f\nmov     rax, [rbx]                                                     ; +0x15, 0x100494d15\nmov     rdi, rbx                                                       ; +0x18, 0x100494d18\nxor     esi, esi                                                       ; +0x1b, 0x100494d1b\ncall    qword ptr [rax+440h]                                           ; +0x1d, 0x100494d1d\ncmp     byte ptr [rbx+290h], 1                                         ; +0x23, 0x100494d23\njnz     short loc_100494D4A                                            ; +0x2a, 0x100494d2a\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x2c, 0x100494d2c\nmov     rcx, [rax]                                                     ; +0x31, 0x100494d31\nmov     rdi, rax                                                       ; +0x34, 0x100494d34\ncall    qword ptr [rcx+0A0h]                                           ; +0x37, 0x100494d37\nmov     rdi, rax                                                       ; +0x3d, 0x100494d3d\nmov     rsi, rbx                                                       ; +0x40, 0x100494d40\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x43, 0x100494d43\njmp     short loc_100494D9B                                            ; +0x48, 0x100494d48\nmovzx   r14d, byte ptr [rbx+240h]                                      ; +0x4a, 0x100494d4a\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x52, 0x100494d52\nmov     rcx, [rax]                                                     ; +0x57, 0x100494d57\nmov     rdi, rax                                                       ; +0x5a, 0x100494d5a\ncall    qword ptr [rcx+0A0h]                                           ; +0x5d, 0x100494d5d\nmov     rdi, rax                                                       ; +0x63, 0x100494d63\nmov     rsi, rbx                                                       ; +0x66, 0x100494d66\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x69, 0x100494d69\nmov     rdi, [rbx+230h]                                                ; +0x6e, 0x100494d6e\ntest    r14b, r14b                                                     ; +0x75, 0x100494d75\njz      short loc_100494D8C                                            ; +0x78, 0x100494d78\ntest    rdi, rdi                                                       ; +0x7a, 0x100494d7a\njz      short loc_100494D9B                                            ; +0x7d, 0x100494d7d\nmov     rax, [rdi]                                                     ; +0x7f, 0x100494d7f\nmov     rsi, rbx                                                       ; +0x82, 0x100494d82\nmov     edx, 1                                                         ; +0x85, 0x100494d85\njmp     short loc_100494D99                                            ; +0x8a, 0x100494d8a\ntest    rdi, rdi                                                       ; +0x8c, 0x100494d8c\njz      short loc_100494D9B                                            ; +0x8f, 0x100494d8f\nmov     rax, [rdi]                                                     ; +0x91, 0x100494d91\nmov     rsi, rbx                                                       ; +0x94, 0x100494d94\nxor     edx, edx                                                       ; +0x97, 0x100494d97\ncall    qword ptr [rax]                                                ; +0x99, 0x100494d99\nmov     rax, [rbx]                                                     ; +0x9b, 0x100494d9b\nmov     rax, [rax+210h]                                                ; +0x9e, 0x100494d9e\nmov     rdi, rbx                                                       ; +0xa5, 0x100494da5\nmov     esi, 1                                                         ; +0xa8, 0x100494da8\npop     rbx                                                            ; +0xad, 0x100494dad\npop     r14                                                            ; +0xae, 0x100494dae\npop     rbp                                                            ; +0xb0, 0x100494db0\njmp     rax                                                            ; +0xb1, 0x100494db1", "xrefs": ["sub_100494DC0 @ 0x100494dcc", "<???> @ 0x100b4ffc8", "<???> @ 0x100bd3fd8"], "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"}