//
// FLAlertLayer::keyDown from 0x140052870 to 0x1400528ee (126 bytes)
//
// 192 xrefs:
// > ??> @ 0x1405328b8
// > ??> @ 0x1405399d0
// > ??> @ 0x140539fa0
// > ??> @ 0x14053cc60
// > ??> @ 0x14053d728
// > ??> @ 0x14053e3d8
// > ??> @ 0x14053e5c0
// > ??> @ 0x14053f110
// > ??> @ 0x14053f5e8
// > ??> @ 0x14053f678
// > ??> @ 0x140540428
// > ??> @ 0x140541138
// > ??> @ 0x140541b38
// > ??> @ 0x140544d90
// > ??> @ 0x140545458
// > ??> @ 0x14054d2d0
// > ??> @ 0x14054d2e8
// > ??> @ 0x14054da18
// > ??> @ 0x14054da70
// > ??> @ 0x14054fdb8
// > ??> @ 0x140557200
// > ??> @ 0x140557d08
// > ??> @ 0x1405582c0
// > ??> @ 0x1405677f0
// > ??> @ 0x140569090
// > ??> @ 0x14056ad38
// > ??> @ 0x14056d0a8
// > ??> @ 0x14056d8a8
// > ??> @ 0x14056da10
// > ??> @ 0x14056da98
// > ??> @ 0x14056f460
// > ??> @ 0x140571a50
// > ??> @ 0x140571eb0
// > ??> @ 0x140571ec8
// > ??> @ 0x140572978
// > ??> @ 0x1405730c0
// > ??> @ 0x140573140
// > ??> @ 0x140573860
// > ??> @ 0x140574498
// > ??> @ 0x140576140
// > ??> @ 0x140576760
// > ??> @ 0x1405767d8
// > ??> @ 0x1405775d8
// > ??> @ 0x140577668
// > ??> @ 0x140577ca8
// > ??> @ 0x140578ae0
// > ??> @ 0x140578af8
// > ??> @ 0x140578b20
// > ??> @ 0x140579110
// > ??> @ 0x140579128
// > ??> @ 0x140579460
// > ??> @ 0x1405795b8
// > ??> @ 0x140579b08
// > ??> @ 0x14057a828
// > ??> @ 0x14057be08
// > ??> @ 0x14057ce18
// > ??> @ 0x14057e828
// > ??> @ 0x14057fcd8
// > ??> @ 0x140580ab8
// > ??> @ 0x140581490
// > ??> @ 0x1405823b0
// > ??> @ 0x140586bb0
// > ??> @ 0x140588000
// > ??> @ 0x140589108
// > ??> @ 0x140589620
// > ??> @ 0x14058a338
// > ??> @ 0x14058a8e0
// > ??> @ 0x14058bce0
// > ??> @ 0x14058bdd8
// > ??> @ 0x14058ec38
// > ??> @ 0x14058ec50
// > ??> @ 0x14058ede0
// > ??> @ 0x14058f5d8
// > ??> @ 0x14058f668
// > ??> @ 0x1405a8f00
// > ??> @ 0x1405ab848
// > ??> @ 0x1405abb88
// > ??> @ 0x1405ac558
// > ??> @ 0x1405ae100
// > ??> @ 0x1405c48a0
// > ??> @ 0x1405c5358
// > ??> @ 0x1405c5518
// > ??> @ 0x1405c55b8
// > ??> @ 0x1405caff0
// > ??> @ 0x1405cb0e8
// > ??> @ 0x1405cb1f0
// > ??> @ 0x1405cbcf0
// > ??> @ 0x1405cc300
// > ??> @ 0x1405cc948
// > ??> @ 0x1405cd508
// > ??> @ 0x1405ce488
// > ??> @ 0x1405d6538
// > ??> @ 0x1405d6bb0
// > ??> @ 0x1405d7140
// > ??> @ 0x1405d73c8
// > ??> @ 0x1405d79d0
// > ??> @ 0x1405d8788
// > ??> @ 0x1405d87b8
// > ??> @ 0x1405d87d0
// > ??> @ 0x1405d9a48
// > ??> @ 0x1405da180
// > ??> @ 0x1405dae70
// > ??> @ 0x1405dbc00
// > ??> @ 0x1405dbd78
// > ??> @ 0x1405dc780
// > ??> @ 0x1405dd2d0
// > ??> @ 0x1405de228
// > ??> @ 0x1405de258
// > ??> @ 0x1405de2c8
// > ??> @ 0x1405dee00
// > ??> @ 0x1405def58
// > ??> @ 0x1405dfce0
// > ??> @ 0x1405dfed8
// > ??> @ 0x1405e0c18
// > ??> @ 0x1405e1708
// > ??> @ 0x1405e1780
// > ??> @ 0x1405e2488
// > ??> @ 0x1405e27f8
// > ??> @ 0x1405e2e90
// > ??> @ 0x1405e4248
// > ??> @ 0x1405e44f0
// > ??> @ 0x1405e4c50
// > ??> @ 0x1405e5a18
// > ??> @ 0x1405e6160
// > ??> @ 0x1405e6848
// > ??> @ 0x1405e6d38
// > ??> @ 0x1405e7020
// > ??> @ 0x1405e81a0
// > ??> @ 0x1405e84e8
// > ??> @ 0x1405e9100
// > ??> @ 0x1405e97b0
// > ??> @ 0x1405ea390
// > ??> @ 0x1405eb070
// > ??> @ 0x1405eb878
// > ??> @ 0x1405ebbb0
// > ??> @ 0x1405ec388
// > ??> @ 0x1405ed448
// > ??> @ 0x1405ed480
// > ??> @ 0x1405ee0a8
// > ??> @ 0x1405ee360
// > ??> @ 0x1405ef278
// > ??> @ 0x1405ef800
// > ??> @ 0x1405f0330
// > ??> @ 0x1405f0360
// > ??> @ 0x1405f2650
// > ??> @ 0x1405f32b8
// > ??> @ 0x1405f5568
// > ??> @ 0x1405f5b38
// > ??> @ 0x1405f5be0
// > ??> @ 0x1405f6628
// > ??> @ 0x1405f6e18
// > ??> @ 0x1405f71a8
// > ??> @ 0x1405f7ed8
// > ??> @ 0x1405f81b0
// > ??> @ 0x1405f91f0
// > ??> @ 0x1405f9280
// > ??> @ 0x1405f92b0
// > ??> @ 0x1405f9e60
// > ??> @ 0x1405fa438
// > ??> @ 0x1405fb4d0
// > ??> @ 0x1405fcce8
// > ??> @ 0x1405fcd10
// > ??> @ 0x1405fdf38
// > ??> @ 0x1405fe070
// > ??> @ 0x1405fe648
// > ??> @ 0x1405fef90
// > ??> @ 0x1405fefa8
// > ??> @ 0x1405ff190
// > ??> @ 0x1405ff1a8
// > ??> @ 0x1405ff7e0
// > ??> @ 0x140600f98
// > ??> @ 0x1406010c8
// > ??> @ 0x1406015b8
// > ??> @ 0x1406015d0
// > ??> @ 0x140601640
// > ??> @ 0x140601668
// > ??> @ 0x140602ab0
// > ??> @ 0x140603690
// > ??> @ 0x140604250
// > ??> @ 0x140604a30
// > ??> @ 0x1406050d8
// > ??> @ 0x1406051f8
// > ??> @ 0x1406053a8
// > ??> @ 0x14060aa98
// > ??> @ 0x14060b030
// > ??> @ 0x14060b630
// > ??> @ 0x14060bfd8
// > ??> @ 0x14060c068
// > ??> @ 0x14060ce20
// > ??> @ 0x140621330
// > ??> @ 0x140621f60
// > ??> @ 0x1406c4e30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void FLAlertLayer::keyDown(FLAlertLayer *a1, cocos2d::enumKeyCodes a2, double a3)
{
bool *p_m_bReorderChildDirty; // rbx
__int64 v4; // rax
cocos2d::CCTouchDispatcher *v5; // rax
__int64 v6; // rdx
__int64 v7; // r8
void (__fastcall ***v8)(_QWORD, bool *, __int64); // rcx
if ( a2 == KEY_Space )
{
if ( !BYTE1(a1->m_fTransformX) )
return;
}
else if ( a2 != CONTROLLER_X )
{
cocos2d::CCLayer::keyDown(a1, a2, a3);
return;
}
p_m_bReorderChildDirty = &a1[-1].m_bReorderChildDirty;
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, (struct cocos2d::CCObject *)p_m_bReorderChildDirty);
v8 = *((void (__fastcall ****)(_QWORD, bool *, __int64))p_m_bReorderChildDirty + 69);
if ( v8 )
{
LOBYTE(v7) = 1;
(**v8)(v8, p_m_bReorderChildDirty, v7);
}
LOBYTE(v6) = 1;
(*(void (__fastcall **)(bool *, __int64))(*(_QWORD *)p_m_bReorderChildDirty + 504LL))(p_m_bReorderChildDirty, v6);
}