{"type": "func", "start": 6442777712, "end": 6442777927, "name": "cocos2d::CCLayerColor::draw", "pseudocode": "// \n// cocos2d::CCLayerColor::draw from 0x18004fc70 to 0x18004fd47 (215 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800edbb8\n// > <???> @ 0x1800ee120\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1e9c\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::CCLayerColor::draw(cocos2d::CCLayerColor *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 *)(unsigned int)this->m_eGLServerState, a2);\n  ((void (__fastcall *)(cocos2d::CCLayerColor *))this->getShaderProgram)(this);\n  v3 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCLayerColor *))this->getShaderProgram)(this);\n  cocos2d::CCGLProgram::use(v3);\n  v4 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCLayerColor *))this->getShaderProgram)(this);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(v4);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)3, v5);\n  _glewVertexAttribPointer(0, 2, 5126);\n  _glewVertexAttribPointer(1, 4, 5126);\n  cocos2d::ccGLBlendFunc(this->m_tBlendFunc.src, this->m_tBlendFunc.dst, v6);\n  glDrawArrays(5u, 0, 4);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::CCLayerColor::draw from 0x18004fc70 to 0x18004fd47 (215 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800edbb8\n; > <???> @ 0x1800ee120\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1e9c\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, 0x18004fc70\nsub     rsp, 30h                                                       ; +0x2, 0x18004fc72\nmov     rbx, rcx                                                       ; +0x6, 0x18004fc76\nmov     ecx, [rcx+0F8h]; this                                          ; +0x9, 0x18004fc79\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0xf, 0x18004fc7f\nmov     rax, [rbx]                                                     ; +0x14, 0x18004fc84\nmov     rcx, rbx                                                       ; +0x17, 0x18004fc87\ncall    qword ptr [rax+278h]                                           ; +0x1a, 0x18004fc8a\nmov     rax, [rbx]                                                     ; +0x20, 0x18004fc90\nmov     rcx, rbx                                                       ; +0x23, 0x18004fc93\ncall    qword ptr [rax+278h]                                           ; +0x26, 0x18004fc96\nmov     rcx, rax; this                                                 ; +0x2c, 0x18004fc9c\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x2f, 0x18004fc9f\nmov     rax, [rbx]                                                     ; +0x34, 0x18004fca4\nmov     rcx, rbx                                                       ; +0x37, 0x18004fca7\ncall    qword ptr [rax+278h]                                           ; +0x3a, 0x18004fcaa\nmov     rcx, rax; this                                                 ; +0x40, 0x18004fcb0\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x43, 0x18004fcb3\nmov     ecx, 3; this                                                   ; +0x48, 0x18004fcb8\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x4d, 0x18004fcbd\nlea     rax, [rbx+1B8h]                                                ; +0x52, 0x18004fcc2\nxor     r9d, r9d                                                       ; +0x59, 0x18004fcc9\nmov     [rsp+38h+var_10], rax                                          ; +0x5c, 0x18004fccc\nxor     ecx, ecx                                                       ; +0x61, 0x18004fcd1\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x63, 0x18004fcd3\nmov     r8d, 1406h                                                     ; +0x6a, 0x18004fcda\nmov     [rsp+38h+var_18], 0                                            ; +0x70, 0x18004fce0\nlea     edx, [r9+2]                                                    ; +0x78, 0x18004fce8\ncall    qword ptr [rax]                                                ; +0x7c, 0x18004fcec\nxor     r9d, r9d                                                       ; +0x7e, 0x18004fcee\nlea     rax, [rbx+1D8h]                                                ; +0x81, 0x18004fcf1\nmov     [rsp+38h+var_10], rax                                          ; +0x88, 0x18004fcf8\nmov     r8d, 1406h                                                     ; +0x8d, 0x18004fcfd\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x93, 0x18004fd03\nmov     [rsp+38h+var_18], 0                                            ; +0x9a, 0x18004fd0a\nlea     edx, [r9+4]                                                    ; +0xa2, 0x18004fd12\nlea     ecx, [rdx-3]                                                   ; +0xa6, 0x18004fd16\ncall    qword ptr [rax]                                                ; +0xa9, 0x18004fd19\nmov     edx, [rbx+21Ch]; dfactor                                       ; +0xab, 0x18004fd1b\nmov     ecx, [rbx+218h]; sfactor                                       ; +0xb1, 0x18004fd21\ncall    ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0xb7, 0x18004fd27\nxor     edx, edx; first                                                ; +0xbc, 0x18004fd2c\nlea     ecx, [rdx+5]; mode                                             ; +0xbe, 0x18004fd2e\nlea     r8d, [rdx+4]; count                                            ; +0xc1, 0x18004fd31\ncall    cs:glDrawArrays                                                ; +0xc5, 0x18004fd35\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xcb, 0x18004fd3b\nadd     rsp, 30h                                                       ; +0xd1, 0x18004fd41\npop     rbx                                                            ; +0xd5, 0x18004fd45\nretn                                                                   ; +0xd6, 0x18004fd46", "xrefs": ["<???> @ 0x1800edbb8", "<???> @ 0x1800ee120", "<???> @ 0x1801438a8", "<???> @ 0x1801b1e9c"], "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"}