{"type": "func", "start": 6442457728, "end": 6442458013, "name": "cocos2d::CCAtlasNode::draw", "pseudocode": "// \n// cocos2d::CCAtlasNode::draw from 0x180001a80 to 0x180001b9d (285 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800e56b0\n// > <???> @ 0x1800eb6b0\n// > <???> @ 0x180105860\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad0d8\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::CCAtlasNode::draw(cocos2d::CCAtlasNode *this, float a2, int a3)\n{\n  cocos2d::CCGLProgram *v4; // rax\n  cocos2d::CCGLProgram *v5; // rax\n  unsigned int v6; // r8d\n  int g; // eax\n  float v8; // xmm0_4\n  unsigned int displayedOpacity; // eax\n  float b; // xmm1_4\n  __m128i v11; // xmm0\n  cocos2d::CCAtlasNode_vtbl *v12; // rax\n  cocos2d::CCGLProgram *v13; // rax\n  float v14[4]; // [rsp+20h] [rbp-28h] BYREF\n\n  cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)(unsigned int)this->m_eGLServerState, a2, a3);\n  ((void (__fastcall *)(cocos2d::CCAtlasNode *))this->getShaderProgram)(this);\n  v4 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCAtlasNode *))this->getShaderProgram)(this);\n  cocos2d::CCGLProgram::use(v4);\n  v5 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCAtlasNode *))this->getShaderProgram)(this);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(v5);\n  cocos2d::ccGLBlendFunc(this->m_tBlendFunc.src, this->m_tBlendFunc.dst, v6);\n  g = this->_displayedColor.g;\n  v14[0] = (float)this->_displayedColor.r / 255.0;\n  v8 = (float)g;\n  displayedOpacity = this->_displayedOpacity;\n  b = (float)this->_displayedColor.b;\n  v14[1] = v8 / 255.0;\n  v11 = _mm_cvtsi32_si128(displayedOpacity);\n  v12 = this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v14[2] = b / 255.0;\n  v14[3] = _mm_cvtepi32_ps(v11).m128_f32[0] / 255.0;\n  v13 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCAtlasNode *))v12->getShaderProgram)(this);\n  cocos2d::CCGLProgram::setUniformLocationWith4fv(v13, this->m_nUniformColor, v14, 1u);\n  cocos2d::CCTextureAtlas::drawNumberOfQuads(this->m_pTextureAtlas, this->m_uQuadsToDraw, 0);\n}", "assembly": "; \n; cocos2d::CCAtlasNode::draw from 0x180001a80 to 0x180001b9d (285 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800e56b0\n; > <???> @ 0x1800eb6b0\n; > <???> @ 0x180105860\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad0d8\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, 0x180001a80\nsub     rsp, 40h                                                       ; +0x2, 0x180001a82\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x180001a86\nxor     rax, rsp                                                       ; +0xd, 0x180001a8d\nmov     [rsp+48h+var_18], rax                                          ; +0x10, 0x180001a90\nmov     rbx, rcx                                                       ; +0x15, 0x180001a95\nmov     ecx, [rcx+0F8h]; this                                          ; +0x18, 0x180001a98\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x1e, 0x180001a9e\nmov     rax, [rbx]                                                     ; +0x23, 0x180001aa3\nmov     rcx, rbx                                                       ; +0x26, 0x180001aa6\ncall    qword ptr [rax+278h]                                           ; +0x29, 0x180001aa9\nmov     rax, [rbx]                                                     ; +0x2f, 0x180001aaf\nmov     rcx, rbx                                                       ; +0x32, 0x180001ab2\ncall    qword ptr [rax+278h]                                           ; +0x35, 0x180001ab5\nmov     rcx, rax; this                                                 ; +0x3b, 0x180001abb\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x3e, 0x180001abe\nmov     rax, [rbx]                                                     ; +0x43, 0x180001ac3\nmov     rcx, rbx                                                       ; +0x46, 0x180001ac6\ncall    qword ptr [rax+278h]                                           ; +0x49, 0x180001ac9\nmov     rcx, rax; this                                                 ; +0x4f, 0x180001acf\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x52, 0x180001ad2\nmov     edx, [rbx+188h]; dfactor                                       ; +0x57, 0x180001ad7\nmov     ecx, [rbx+184h]; sfactor                                       ; +0x5d, 0x180001add\ncall    ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x63, 0x180001ae3\nmovss   xmm2, cs:dword_1800E5838                                       ; +0x68, 0x180001ae8\nmov     rcx, rbx                                                       ; +0x70, 0x180001af0\nmovzx   eax, byte ptr [rbx+14Ah]                                       ; +0x73, 0x180001af3\nmovd    xmm0, eax                                                      ; +0x7a, 0x180001afa\nmovzx   eax, byte ptr [rbx+14Bh]                                       ; +0x7e, 0x180001afe\ncvtdq2ps xmm0, xmm0                                                    ; +0x85, 0x180001b05\ndivss   xmm0, xmm2                                                     ; +0x88, 0x180001b08\nmovss   [rsp+48h+var_28], xmm0                                         ; +0x8c, 0x180001b0c\nmovd    xmm0, eax                                                      ; +0x92, 0x180001b12\nmovzx   eax, byte ptr [rbx+14Ch]                                       ; +0x96, 0x180001b16\ncvtdq2ps xmm0, xmm0                                                    ; +0x9d, 0x180001b1d\nmovd    xmm1, eax                                                      ; +0xa0, 0x180001b20\nmovzx   eax, byte ptr [rbx+148h]                                       ; +0xa4, 0x180001b24\ndivss   xmm0, xmm2                                                     ; +0xab, 0x180001b2b\ncvtdq2ps xmm1, xmm1                                                    ; +0xaf, 0x180001b2f\nmovss   [rsp+48h+var_24], xmm0                                         ; +0xb2, 0x180001b32\nmovd    xmm0, eax                                                      ; +0xb8, 0x180001b38\nmov     rax, [rbx]                                                     ; +0xbc, 0x180001b3c\ncvtdq2ps xmm0, xmm0                                                    ; +0xbf, 0x180001b3f\ndivss   xmm1, xmm2                                                     ; +0xc2, 0x180001b42\ndivss   xmm0, xmm2                                                     ; +0xc6, 0x180001b46\nmovss   [rsp+48h+var_20], xmm1                                         ; +0xca, 0x180001b4a\nmovss   [rsp+48h+var_1C], xmm0                                         ; +0xd0, 0x180001b50\ncall    qword ptr [rax+278h]                                           ; +0xd6, 0x180001b56\nmov     edx, [rbx+190h]; int                                           ; +0xdc, 0x180001b5c\nlea     r8, [rsp+48h+var_28]; float *                                  ; +0xe2, 0x180001b62\nmov     rcx, rax; this                                                 ; +0xe7, 0x180001b67\nmov     r9d, 1; unsigned int                                           ; +0xea, 0x180001b6a\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0xf0, 0x180001b70\nmov     edx, [rbx+18Ch]; unsigned int                                  ; +0xf5, 0x180001b75\nxor     r8d, r8d; unsigned int                                         ; +0xfb, 0x180001b7b\nmov     rcx, [rbx+178h]; this                                          ; +0xfe, 0x180001b7e\ncall    ?drawNumberOfQuads@CCTextureAtlas@cocos2d@@QEAAXII@Z; cocos2d::CCTextureAtlas::drawNumberOfQuads(uint,uint) ; +0x105, 0x180001b85\nmov     rcx, [rsp+48h+var_18]                                          ; +0x10a, 0x180001b8a\nxor     rcx, rsp; StackCookie                                          ; +0x10f, 0x180001b8f\ncall    __security_check_cookie                                        ; +0x112, 0x180001b92\nadd     rsp, 40h                                                       ; +0x117, 0x180001b97\npop     rbx                                                            ; +0x11b, 0x180001b9b\nretn                                                                   ; +0x11c, 0x180001b9c", "xrefs": ["<???> @ 0x1800e56b0", "<???> @ 0x1800eb6b0", "<???> @ 0x180105860", "<???> @ 0x1801438a8", "<???> @ 0x1801ad0d8"], "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"}