{"type": "func", "start": 6442785424, "end": 6442785655, "name": "cocos2d::CCLayerColor::draw", "pseudocode": "// \n// cocos2d::CCLayerColor::draw from 0x180051a90 to 0x180051b77 (231 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800f3d58\n// > <???> @ 0x1800f42e0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc130\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:21:45 +0000\n// \n\nvoid __fastcall cocos2d::CCLayerColor::draw(GLenum *this, float a2)\n{\n  cocos2d::CCGLProgram *v3; // rax\n  cocos2d::CCGLProgram *v4; // rax\n  unsigned int v5; // edx\n  unsigned int v6; // r8d\n\n  cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)*(this + 62), a2);\n  (*(void (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);\n  v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);\n  cocos2d::CCGLProgram::use(v3);\n  v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(v4);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)3, v5);\n  _glewVertexAttribPointer(0, 2, 5126, 0, 0, this + 110);\n  _glewVertexAttribPointer(1, 4, 5126, 0, 0, this + 118);\n  cocos2d::ccGLBlendFunc(*(this + 134), *(this + 135), v6);\n  glDrawArrays(5u, 0, 4);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::CCLayerColor::draw from 0x180051a90 to 0x180051b77 (231 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800f3d58\n; > <???> @ 0x1800f42e0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc130\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:21:45 +0000\n; \npush    rbx                                                            ; +0x0, 0x180051a90\nsub     rsp, 30h                                                       ; +0x2, 0x180051a92\nmov     rbx, rcx                                                       ; +0x6, 0x180051a96\nmov     ecx, [rcx+0F8h]; this                                          ; +0x9, 0x180051a99\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0xf, 0x180051a9f\nmov     rax, [rbx]                                                     ; +0x14, 0x180051aa4\nmov     rcx, rbx                                                       ; +0x17, 0x180051aa7\ncall    qword ptr [rax+288h]                                           ; +0x1a, 0x180051aaa\nmov     rax, [rbx]                                                     ; +0x20, 0x180051ab0\nmov     rcx, rbx                                                       ; +0x23, 0x180051ab3\ncall    qword ptr [rax+288h]                                           ; +0x26, 0x180051ab6\nmov     rcx, rax; this                                                 ; +0x2c, 0x180051abc\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x2f, 0x180051abf\nmov     rax, [rbx]                                                     ; +0x34, 0x180051ac4\nmov     rcx, rbx                                                       ; +0x37, 0x180051ac7\ncall    qword ptr [rax+288h]                                           ; +0x3a, 0x180051aca\nmov     rcx, rax; this                                                 ; +0x40, 0x180051ad0\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x43, 0x180051ad3\nmov     ecx, 3; this                                                   ; +0x48, 0x180051ad8\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x4d, 0x180051add\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x52, 0x180051ae2\nlea     rcx, [rbx+1B8h]                                                ; +0x59, 0x180051ae9\nmov     [rsp+38h+var_10], rcx                                          ; +0x60, 0x180051af0\nxor     r9d, r9d                                                       ; +0x65, 0x180051af5\nmov     edx, 2                                                         ; +0x68, 0x180051af8\nmov     [rsp+38h+var_18], 0                                            ; +0x6d, 0x180051afd\nxor     ecx, ecx                                                       ; +0x75, 0x180051b05\nmov     r8d, 1406h                                                     ; +0x77, 0x180051b07\nmov     r10, [rax]                                                     ; +0x7d, 0x180051b0d\ncall    r10                                                            ; +0x80, 0x180051b10\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x83, 0x180051b13\nlea     rcx, [rbx+1D8h]                                                ; +0x8a, 0x180051b1a\nmov     [rsp+38h+var_10], rcx                                          ; +0x91, 0x180051b21\nxor     r9d, r9d                                                       ; +0x96, 0x180051b26\nmov     edx, 4                                                         ; +0x99, 0x180051b29\nmov     [rsp+38h+var_18], 0                                            ; +0x9e, 0x180051b2e\nmov     ecx, 1                                                         ; +0xa6, 0x180051b36\nmov     r8d, 1406h                                                     ; +0xab, 0x180051b3b\nmov     r10, [rax]                                                     ; +0xb1, 0x180051b41\ncall    r10                                                            ; +0xb4, 0x180051b44\nmov     edx, [rbx+21Ch]; dfactor                                       ; +0xb7, 0x180051b47\nmov     ecx, [rbx+218h]; sfactor                                       ; +0xbd, 0x180051b4d\ncall    ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0xc3, 0x180051b53\nxor     edx, edx; first                                                ; +0xc8, 0x180051b58\nmov     ecx, 5; mode                                                   ; +0xca, 0x180051b5a\nmov     r8d, 4; count                                                  ; +0xcf, 0x180051b5f\ncall    cs:glDrawArrays                                                ; +0xd5, 0x180051b65\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xdb, 0x180051b6b\nadd     rsp, 30h                                                       ; +0xe1, 0x180051b71\npop     rbx                                                            ; +0xe5, 0x180051b75\nretn                                                                   ; +0xe6, 0x180051b76", "xrefs": ["<???> @ 0x1800f3d58", "<???> @ 0x1800f42e0", "<???> @ 0x18014cf68", "<???> @ 0x1801bc130"], "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"}