{"type": "func", "start": 6443193728, "end": 6443193874, "name": "cocos2d::CCTextFieldTTF::draw", "pseudocode": "// \n// cocos2d::CCTextFieldTTF::draw from 0x1800b5580 to 0x1800b5612 (146 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x180106a58\n// > <???> @ 0x180141484\n// > <???> @ 0x180141494\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8a84\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\nvoid __fastcall cocos2d::CCTextFieldTTF::draw(cocos2d::CCTextFieldTTF *this, float a2)\n{\n  cocos2d::CCTextFieldDelegate *m_pDelegate; // rcx\n  __int64 v4; // rax\n  __int16 v5; // [rsp+30h] [rbp+8h] BYREF\n  char v6; // [rsp+32h] [rbp+Ah]\n\n  m_pDelegate = this->m_pDelegate;\n  if ( !m_pDelegate\n    || !((unsigned __int8 (__fastcall *)(cocos2d::CCTextFieldDelegate *, cocos2d::CCTextFieldTTF *))m_pDelegate->onDraw)(\n          m_pDelegate,\n          this) )\n  {\n    if ( this->m_pInputText->m_data.m_size )\n    {\n      cocos2d::CCSprite::draw(this, a2);\n    }\n    else\n    {\n      v4 = ((__int64 (__fastcall *)(cocos2d::CCRGBAProtocol *))this->getColor)(&this->cocos2d::CCRGBAProtocol);\n      v5 = *(_WORD *)v4;\n      v6 = *(_BYTE *)(v4 + 2);\n      ((void (__fastcall *)(cocos2d::CCRGBAProtocol *, cocos2d::ccColor3B *))this->setColor)(\n        &this->cocos2d::CCRGBAProtocol,\n        &this->m_ColorSpaceHolder);\n      cocos2d::CCSprite::draw(this, a2);\n      ((void (__fastcall *)(cocos2d::CCRGBAProtocol *, __int16 *))this->setColor)(&this->cocos2d::CCRGBAProtocol, &v5);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCTextFieldTTF::draw from 0x1800b5580 to 0x1800b5612 (146 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x180106a58\n; > <???> @ 0x180141484\n; > <???> @ 0x180141494\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8a84\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    rdi                                                            ; +0x0, 0x1800b5580\nsub     rsp, 20h                                                       ; +0x2, 0x1800b5582\nmov     rdi, rcx                                                       ; +0x6, 0x1800b5586\nmov     rcx, [rcx+2C8h]                                                ; +0x9, 0x1800b5589\ntest    rcx, rcx                                                       ; +0x10, 0x1800b5590\njz      short loc_1800B55A2                                            ; +0x13, 0x1800b5593\nmov     rax, [rcx]                                                     ; +0x15, 0x1800b5595\nmov     rdx, rdi                                                       ; +0x18, 0x1800b5598\ncall    qword ptr [rax+20h]                                            ; +0x1b, 0x1800b559b\ntest    al, al                                                         ; +0x1e, 0x1800b559e\njnz     short loc_1800B560C                                            ; +0x20, 0x1800b55a0\nmov     rax, [rdi+2D8h]                                                ; +0x22, 0x1800b55a2\ncmp     qword ptr [rax+10h], 0                                         ; +0x29, 0x1800b55a9\njz      short loc_1800B55BE                                            ; +0x2e, 0x1800b55ae\nmov     rcx, rdi; this                                                 ; +0x30, 0x1800b55b0\ncall    ?draw@CCSprite@cocos2d@@UEAAXXZ; cocos2d::CCSprite::draw(void) ; +0x33, 0x1800b55b3\nadd     rsp, 20h                                                       ; +0x38, 0x1800b55b8\npop     rdi                                                            ; +0x3c, 0x1800b55bc\nretn                                                                   ; +0x3d, 0x1800b55bd\nmov     [rsp+28h+arg_8], rbx                                           ; +0x3e, 0x1800b55be\nlea     rbx, [rdi+140h]                                                ; +0x43, 0x1800b55c3\nmov     rax, [rbx]                                                     ; +0x4a, 0x1800b55ca\nmov     rcx, rbx                                                       ; +0x4d, 0x1800b55cd\ncall    qword ptr [rax+8]                                              ; +0x50, 0x1800b55d0\nmov     rcx, rbx                                                       ; +0x53, 0x1800b55d3\nmovzx   edx, word ptr [rax]                                            ; +0x56, 0x1800b55d6\nmov     [rsp+28h+arg_0], dx                                            ; +0x59, 0x1800b55d9\nlea     rdx, [rdi+2E8h]                                                ; +0x5e, 0x1800b55de\nmovzx   eax, byte ptr [rax+2]                                          ; +0x65, 0x1800b55e5\nmov     [rsp+28h+arg_2], al                                            ; +0x69, 0x1800b55e9\nmov     rax, [rbx]                                                     ; +0x6d, 0x1800b55ed\ncall    qword ptr [rax]                                                ; +0x70, 0x1800b55f0\nmov     rcx, rdi; this                                                 ; +0x72, 0x1800b55f2\ncall    ?draw@CCSprite@cocos2d@@UEAAXXZ; cocos2d::CCSprite::draw(void) ; +0x75, 0x1800b55f5\nmov     rax, [rbx]                                                     ; +0x7a, 0x1800b55fa\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x7d, 0x1800b55fd\nmov     rcx, rbx                                                       ; +0x82, 0x1800b5602\ncall    qword ptr [rax]                                                ; +0x85, 0x1800b5605\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x87, 0x1800b5607\nadd     rsp, 20h                                                       ; +0x8c, 0x1800b560c\npop     rdi                                                            ; +0x90, 0x1800b5610\nretn                                                                   ; +0x91, 0x1800b5611", "xrefs": ["<???> @ 0x180106a58", "<???> @ 0x180141484", "<???> @ 0x180141494", "<???> @ 0x1801438a8", "<???> @ 0x1801b8a84"], "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"}