// // sub_1800C6AE0 from 0x1800c6ae0 to 0x1800c6d24 (580 bytes) // // 2 xrefs: // > cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher @ 0x1800ca3d3 // > @ 0x1801c396c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 11:22:27 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall sub_1800C6AE0(_QWORD *a1, __int64 *a2, __int64 *a3) { __int64 *v4; // rbx __int64 **v6; // r8 unsigned __int64 v7; // r13 __int64 v8; // rcx __int64 *v9; // rax __int64 *v10; // rbp __int64 *v11; // rdx int v12; // ecx __int64 v13; // rsi __int64 v14; // rdx float v15; // xmm0_4 __int64 v16; // rcx float v17; // xmm1_4 __int64 v18; // rax unsigned __int64 v19; // rax __int64 v20; // rcx __int64 *v21; // rax __int64 *v22; // rdx int v23; // ecx __int64 *v24; // rdx __int64 v25; // rax __int64 v26; // rcx __int64 *v27; // r8 if ( a2 != a3 ) { v4 = a2; v6 = (__int64 **)(a1 + 1); while ( 1 ) { v7 = 0x100000001B3LL * (*((unsigned __int8 *)v4 + 19) ^ (0x100000001B3LL * (*((unsigned __int8 *)v4 + 18) ^ (0x100000001B3LL * (*((unsigned __int8 *)v4 + 17) ^ (0x100000001B3LL * (*((unsigned __int8 *)v4 + 16) ^ 0xCBF29CE484222325uLL))))))); v8 = a1[3]; v9 = *(__int64 **)(v8 + 16 * (v7 & a1[6]) + 8); v10 = *v6; if ( v9 == *v6 ) goto LABEL_9; v11 = *(__int64 **)(v8 + 16 * (v7 & a1[6])); v12 = *((_DWORD *)v4 + 4); if ( v12 != *((_DWORD *)v9 + 4) ) break; LABEL_30: v4 = (__int64 *)*v4; if ( v4 == a3 ) return; } while ( v9 != v11 ) { v9 = (__int64 *)v9[1]; if ( v12 == *((_DWORD *)v9 + 4) ) goto LABEL_30; } v10 = v9; LABEL_9: if ( a1[2] == 0x555555555555555LL ) std::_Xlength_error("unordered_map/set too long"); v13 = sub_1800E4AC0(0x30u); sub_1800C6D30(a1 + 1, v13 + 16, v4 + 2); v14 = a1[2] + 1LL; if ( v14 < 0 ) v15 = (float)(v14 & 1 | (unsigned int)((unsigned __int64)v14 >> 1)) + (float)(v14 & 1 | (unsigned int)((unsigned __int64)v14 >> 1)); else v15 = (float)(int)v14; v16 = a1[7]; if ( v16 < 0 ) { v18 = a1[7] & 1LL | ((unsigned __int64)v16 >> 1); v17 = (float)(int)v18 + (float)(int)v18; } else { v17 = (float)(int)v16; } if ( (float)(v15 / v17) > *(float *)a1 ) { v19 = sub_1800D5970(a1); sub_180045870(a1, v19); v20 = a1[3]; v21 = *(__int64 **)(v20 + 16 * (v7 & a1[6]) + 8); v10 = (__int64 *)a1[1]; if ( v21 != v10 ) { v22 = *(__int64 **)(v20 + 16 * (v7 & a1[6])); v23 = *(_DWORD *)(v13 + 16); if ( v23 == *((_DWORD *)v21 + 4) ) { LABEL_21: v10 = (__int64 *)*v21; } else { while ( v21 != v22 ) { v21 = (__int64 *)v21[1]; if ( v23 == *((_DWORD *)v21 + 4) ) goto LABEL_21; } v10 = v21; } } } v24 = (__int64 *)v10[1]; ++a1[2]; *(_QWORD *)v13 = v10; *(_QWORD *)(v13 + 8) = v24; *v24 = v13; v10[1] = v13; v25 = 2 * (v7 & a1[6]); v26 = a1[3]; v27 = *(__int64 **)(v26 + 16 * (v7 & a1[6])); if ( v27 == (__int64 *)a1[1] ) { *(_QWORD *)(v26 + 16 * (v7 & a1[6])) = v13; LABEL_28: *(_QWORD *)(v26 + 8 * v25 + 8) = v13; goto LABEL_29; } if ( v27 == v10 ) { *(_QWORD *)(v26 + 16 * (v7 & a1[6])) = v13; } else if ( *(__int64 **)(v26 + 16 * (v7 & a1[6]) + 8) == v24 ) { goto LABEL_28; } LABEL_29: v6 = (__int64 **)(a1 + 1); goto LABEL_30; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source