{"type": "func", "start": 6443192640, "end": 6443192693, "name": "cocos2d::CCTextFieldTTF::attachWithIME", "pseudocode": "// \n// cocos2d::CCTextFieldTTF::attachWithIME from 0x1800b5140 to 0x1800b5175 (53 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180106cb0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8a48\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall cocos2d::CCTextFieldTTF::attachWithIME(cocos2d::CCTextFieldTTF *this)\n{\n  __int64 result; // rax\n  unsigned __int8 v2; // bl\n  __int64 v3; // rdx\n  cocos2d::CCEGLView *m_pobOpenGLView; // rcx\n\n  result = cocos2d::CCIMEDelegate::attachWithIME((cocos2d::CCIMEDelegate *)this);\n  v2 = result;\n  if ( (_BYTE)result )\n  {\n    m_pobOpenGLView = cocos2d::CCDirector::sharedDirector()->m_pobOpenGLView;\n    if ( m_pobOpenGLView )\n    {\n      LOBYTE(v3) = 1;\n      ((void (__fastcall *)(cocos2d::CCEGLView *, __int64))m_pobOpenGLView->setIMEKeyboardState)(m_pobOpenGLView, v3);\n    }\n    return v2;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCTextFieldTTF::attachWithIME from 0x1800b5140 to 0x1800b5175 (53 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180106cb0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8a48\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1800b5140\nsub     rsp, 20h                                                       ; +0x2, 0x1800b5142\ncall    ?attachWithIME@CCIMEDelegate@cocos2d@@UEAA_NXZ; cocos2d::CCIMEDelegate::attachWithIME(void) ; +0x6, 0x1800b5146\nmovzx   ebx, al                                                        ; +0xb, 0x1800b514b\ntest    al, al                                                         ; +0xe, 0x1800b514e\njz      short loc_1800B516F                                            ; +0x10, 0x1800b5150\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x12, 0x1800b5152\nmov     rcx, [rax+0B8h]                                                ; +0x17, 0x1800b5157\ntest    rcx, rcx                                                       ; +0x1e, 0x1800b515e\njz      short loc_1800B516C                                            ; +0x21, 0x1800b5161\nmov     r8, [rcx]                                                      ; +0x23, 0x1800b5163\nmov     dl, 1                                                          ; +0x26, 0x1800b5166\ncall    qword ptr [r8+20h]                                             ; +0x28, 0x1800b5168\nmovzx   eax, bl                                                        ; +0x2c, 0x1800b516c\nadd     rsp, 20h                                                       ; +0x2f, 0x1800b516f\npop     rbx                                                            ; +0x33, 0x1800b5173\nretn                                                                   ; +0x34, 0x1800b5174", "xrefs": ["<???> @ 0x180106cb0", "<???> @ 0x1801438a8", "<???> @ 0x1801b8a48"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}