{"type": "func", "start": 6443209280, "end": 6443209426, "name": "cocos2d::CCTextFieldTTF::draw", "pseudocode": "// \n// cocos2d::CCTextFieldTTF::draw from 0x1800b9240 to 0x1800b92d2 (146 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x18010d140\n// > <???> @ 0x18014a7fc\n// > <???> @ 0x18014a80c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2d9c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:22 +0000\n// \n\nvoid __fastcall cocos2d::CCTextFieldTTF::draw(cocos2d::CCTextFieldTTF *this, float a2)\n{\n  __int64 v3; // rcx\n  __int64 v4; // rax\n  __int16 v5; // [rsp+30h] [rbp+8h] BYREF\n  char v6; // [rsp+32h] [rbp+Ah]\n\n  v3 = *((_QWORD *)this + 89);\n  if ( !v3 || !(*(unsigned __int8 (__fastcall **)(__int64, cocos2d::CCTextFieldTTF *))(*(_QWORD *)v3 + 32LL))(v3, this) )\n  {\n    if ( *(_QWORD *)(*((_QWORD *)this + 91) + 16LL) )\n    {\n      cocos2d::CCSprite::draw((GLenum *)this, a2);\n    }\n    else\n    {\n      v4 = (*(__int64 (__fastcall **)(char *))(*((_QWORD *)this + 40) + 8LL))((char *)this + 320);\n      v5 = *(_WORD *)v4;\n      v6 = *(_BYTE *)(v4 + 2);\n      (**((void (__fastcall ***)(char *, char *))this + 40))((char *)this + 320, (char *)this + 744);\n      cocos2d::CCSprite::draw((GLenum *)this, a2);\n      (**((void (__fastcall ***)(char *, __int16 *))this + 40))((char *)this + 320, &v5);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCTextFieldTTF::draw from 0x1800b9240 to 0x1800b92d2 (146 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x18010d140\n; > <???> @ 0x18014a7fc\n; > <???> @ 0x18014a80c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2d9c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:22 +0000\n; \npush    rdi                                                            ; +0x0, 0x1800b9240\nsub     rsp, 20h                                                       ; +0x2, 0x1800b9242\nmov     rdi, rcx                                                       ; +0x6, 0x1800b9246\nmov     rcx, [rcx+2C8h]                                                ; +0x9, 0x1800b9249\ntest    rcx, rcx                                                       ; +0x10, 0x1800b9250\njz      short loc_1800B9262                                            ; +0x13, 0x1800b9253\nmov     rax, [rcx]                                                     ; +0x15, 0x1800b9255\nmov     rdx, rdi                                                       ; +0x18, 0x1800b9258\ncall    qword ptr [rax+20h]                                            ; +0x1b, 0x1800b925b\ntest    al, al                                                         ; +0x1e, 0x1800b925e\njnz     short loc_1800B92CC                                            ; +0x20, 0x1800b9260\nmov     rax, [rdi+2D8h]                                                ; +0x22, 0x1800b9262\ncmp     qword ptr [rax+10h], 0                                         ; +0x29, 0x1800b9269\njz      short loc_1800B927E                                            ; +0x2e, 0x1800b926e\nmov     rcx, rdi; this                                                 ; +0x30, 0x1800b9270\ncall    ?draw@CCSprite@cocos2d@@UEAAXXZ; cocos2d::CCSprite::draw(void) ; +0x33, 0x1800b9273\nadd     rsp, 20h                                                       ; +0x38, 0x1800b9278\npop     rdi                                                            ; +0x3c, 0x1800b927c\nretn                                                                   ; +0x3d, 0x1800b927d\nmov     [rsp+28h+arg_8], rbx                                           ; +0x3e, 0x1800b927e\nlea     rbx, [rdi+140h]                                                ; +0x43, 0x1800b9283\nmov     rax, [rbx]                                                     ; +0x4a, 0x1800b928a\nmov     rcx, rbx                                                       ; +0x4d, 0x1800b928d\ncall    qword ptr [rax+8]                                              ; +0x50, 0x1800b9290\nmov     rcx, rbx                                                       ; +0x53, 0x1800b9293\nmovzx   edx, word ptr [rax]                                            ; +0x56, 0x1800b9296\nmov     [rsp+28h+arg_0], dx                                            ; +0x59, 0x1800b9299\nlea     rdx, [rdi+2E8h]                                                ; +0x5e, 0x1800b929e\nmovzx   eax, byte ptr [rax+2]                                          ; +0x65, 0x1800b92a5\nmov     [rsp+28h+arg_2], al                                            ; +0x69, 0x1800b92a9\nmov     rax, [rbx]                                                     ; +0x6d, 0x1800b92ad\ncall    qword ptr [rax]                                                ; +0x70, 0x1800b92b0\nmov     rcx, rdi; this                                                 ; +0x72, 0x1800b92b2\ncall    ?draw@CCSprite@cocos2d@@UEAAXXZ; cocos2d::CCSprite::draw(void) ; +0x75, 0x1800b92b5\nmov     rax, [rbx]                                                     ; +0x7a, 0x1800b92ba\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x7d, 0x1800b92bd\nmov     rcx, rbx                                                       ; +0x82, 0x1800b92c2\ncall    qword ptr [rax]                                                ; +0x85, 0x1800b92c5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x87, 0x1800b92c7\nadd     rsp, 20h                                                       ; +0x8c, 0x1800b92cc\npop     rdi                                                            ; +0x90, 0x1800b92d0\nretn                                                                   ; +0x91, 0x1800b92d1", "xrefs": ["<???> @ 0x18010d140", "<???> @ 0x18014a7fc", "<???> @ 0x18014a80c", "<???> @ 0x18014cf68", "<???> @ 0x1801c2d9c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}