// // cocos2d::CCIMEDispatcher::addDelegate from 0x1800b8560 to 0x1800b8605 (165 bytes) // // 3 xrefs: // > cocos2d::CCIMEDelegate::CCIMEDelegate @ 0x1800b832e // > @ 0x18014cf68 // > @ 0x1801c2c10 // // 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:22 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall cocos2d::CCIMEDispatcher::addDelegate(__int64 ****this, struct cocos2d::CCIMEDelegate *a2) { __int64 ***v3; // rdi __int64 **v4; // rcx __int64 **v5; // rsi __int64 **v6; // rax __int64 *v7; // rax __int64 *v8; // rcx if ( a2 ) { v3 = *this; if ( *this ) { v4 = *v3; v5 = (__int64 **)**v3; v6 = v5; if ( v5 == *v3 ) goto LABEL_8; while ( a2 != (struct cocos2d::CCIMEDelegate *)v6[2] ) { v6 = (__int64 **)*v6; if ( v6 == v4 ) goto LABEL_8; } if ( v4 == v6 ) { LABEL_8: if ( v3[1] == (__int64 **)0xAAAAAAAAAAAAAAALL ) std::_Xlength_error("list too long"); v7 = (__int64 *)sub_1800E4AC0(0x18u); v7[2] = (__int64)a2; v3[1] = (__int64 **)((char *)v3[1] + 1); v8 = v5[1]; *v7 = (__int64)v5; v7[1] = (__int64)v8; v5[1] = v7; *v8 = (__int64)v7; } } } }