// // cocos2d::CCKeyboardDispatcher::releaseAllKeys from 0x809740 to 0x809820 (224 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:01:28 +0000 // void __fastcall cocos2d::CCKeyboardDispatcher::releaseAllKeys(cocos2d::CCKeyboardDispatcher *this, double a2) { int v4; // r0 _DWORD *v6; // r2 unsigned int v7; // r1 int v8; // r2 int v9; // r3 unsigned int v10; // r0 int v11; // r1 unsigned int v12; // r1 unsigned int v13; // r0 int v14; // r1 _DWORD *v15; // r6 char **i; // r4 char *v17; // r6 _DWORD *v18; // [sp+8h] [bp-18h] _DWORD v19[3]; // [sp+10h] [bp-10h] BYREF v4 = *((_DWORD *)this + 20); if ( v4 ) { v6 = *((_DWORD **)this + 17); v7 = *((_DWORD *)this + 18); *((_DWORD *)this + 17) = 0; *((_DWORD *)this + 18) = 0; *((_DWORD *)this + 20) = 0; v18 = v6; v8 = *((_DWORD *)this + 19); *((_DWORD *)this + 19) = 0; v9 = *((_DWORD *)this + 21); v19[0] = v8; v19[2] = v9; *((_DWORD *)this + 21) = 1065353216; v19[1] = v4; v10 = *(_DWORD *)(v8 + 4); if ( ((v7 - 1) & v7) != 0 ) v11 = v10 % v7; else v11 = (v7 - 1) & v10; v18[v11] = v19; if ( *((_DWORD *)this + 20) ) { v12 = *((_DWORD *)this + 18); v13 = *(_DWORD *)(*((_DWORD *)this + 19) + 4); if ( ((v12 - 1) & v12) != 0 ) v14 = v13 % v12; else v14 = (v12 - 1) & v13; *(_DWORD *)(*((_DWORD *)this + 17) + 4 * v14) = (char *)this + 76; } v15 = (_DWORD *)v19[0]; *((_BYTE *)this + 93) = 0; *((_BYTE *)this + 56) = 1; while ( v15 ) { cocos2d::CCKeyboardDispatcher::dispatchToTopDelegate((int)this, v15[2], 0, v15 + 3, SLODWORD(a2), SHIDWORD(a2)); v15 = (_DWORD *)*v15; } *((_BYTE *)this + 56) = 0; cocos2d::CCKeyboardDispatcher::flushPendingDelegates(this); for ( i = (char **)v19[0]; i; i = (char **)v17 ) { v17 = *i; std::__vector_base::~__vector_base(i + 3); operator delete(i); } if ( v18 ) operator delete(v18); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source