{"type": "func", "start": 6442457648, "end": 6442457944, "name": "cocos2d::CCAtlasNode::draw", "pseudocode": "// \n// cocos2d::CCAtlasNode::draw from 0x180001a30 to 0x180001b58 (296 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800eb6f0\n// > <???> @ 0x1800f1760\n// > <???> @ 0x18010bf50\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b70e4\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:15 +0000\n// \n\nvoid __fastcall cocos2d::CCAtlasNode::draw(GLenum *this, float a2, int a3)\n{\n  cocos2d::CCGLProgram *v4; // rax\n  cocos2d::CCGLProgram *v5; // rax\n  unsigned int v6; // r8d\n  int v7; // ebx\n  int v8; // eax\n  float v9; // xmm0_4\n  unsigned int v10; // eax\n  float v11; // xmm1_4\n  __m128i v12; // xmm0\n  __int64 v13; // rax\n  cocos2d::CCGLProgram *v14; // rax\n  float v15[4]; // [rsp+20h] [rbp-28h] BYREF\n\n  cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)*(this + 62), a2, a3);\n  (*(void (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);\n  v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);\n  cocos2d::CCGLProgram::use(v4);\n  v5 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(v5);\n  cocos2d::ccGLBlendFunc(*(this + 97), *(this + 98), v6);\n  v7 = *(this + 100);\n  v8 = *((unsigned __int8 *)this + 331);\n  v15[0] = (float)*((unsigned __int8 *)this + 330) / 255.0;\n  v9 = (float)v8;\n  v10 = *((unsigned __int8 *)this + 328);\n  v11 = (float)*((unsigned __int8 *)this + 332);\n  v15[1] = v9 / 255.0;\n  v12 = _mm_cvtsi32_si128(v10);\n  v13 = *(_QWORD *)this;\n  v15[2] = v11 / 255.0;\n  v15[3] = _mm_cvtepi32_ps(v12).m128_f32[0] / 255.0;\n  v14 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(v13 + 648))(this);\n  cocos2d::CCGLProgram::setUniformLocationWith4fv(v14, v7, v15, 1u);\n  cocos2d::CCTextureAtlas::drawNumberOfQuads(*((cocos2d::CCTextureAtlas **)this + 47), *(this + 99), 0);\n}", "assembly": "; \n; cocos2d::CCAtlasNode::draw from 0x180001a30 to 0x180001b58 (296 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800eb6f0\n; > <???> @ 0x1800f1760\n; > <???> @ 0x18010bf50\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b70e4\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:15 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180001a30\npush    rdi                                                            ; +0x5, 0x180001a35\nsub     rsp, 40h                                                       ; +0x6, 0x180001a36\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x180001a3a\nxor     rax, rsp                                                       ; +0x11, 0x180001a41\nmov     [rsp+48h+var_18], rax                                          ; +0x14, 0x180001a44\nmov     rdi, rcx                                                       ; +0x19, 0x180001a49\nmov     ecx, [rcx+0F8h]; this                                          ; +0x1c, 0x180001a4c\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x22, 0x180001a52\nmov     rax, [rdi]                                                     ; +0x27, 0x180001a57\nmov     rcx, rdi                                                       ; +0x2a, 0x180001a5a\ncall    qword ptr [rax+288h]                                           ; +0x2d, 0x180001a5d\nmov     rax, [rdi]                                                     ; +0x33, 0x180001a63\nmov     rcx, rdi                                                       ; +0x36, 0x180001a66\ncall    qword ptr [rax+288h]                                           ; +0x39, 0x180001a69\nmov     rcx, rax; this                                                 ; +0x3f, 0x180001a6f\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x42, 0x180001a72\nmov     rax, [rdi]                                                     ; +0x47, 0x180001a77\nmov     rcx, rdi                                                       ; +0x4a, 0x180001a7a\ncall    qword ptr [rax+288h]                                           ; +0x4d, 0x180001a7d\nmov     rcx, rax; this                                                 ; +0x53, 0x180001a83\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x56, 0x180001a86\nmov     edx, [rdi+188h]; dfactor                                       ; +0x5b, 0x180001a8b\nmov     ecx, [rdi+184h]; sfactor                                       ; +0x61, 0x180001a91\ncall    ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x67, 0x180001a97\nmovss   xmm2, cs:dword_1800EB878                                       ; +0x6c, 0x180001a9c\nmov     rcx, rdi                                                       ; +0x74, 0x180001aa4\nmovzx   eax, byte ptr [rdi+14Ah]                                       ; +0x77, 0x180001aa7\nmov     ebx, [rdi+190h]                                                ; +0x7e, 0x180001aae\nmovd    xmm0, eax                                                      ; +0x84, 0x180001ab4\nmovzx   eax, byte ptr [rdi+14Bh]                                       ; +0x88, 0x180001ab8\ncvtdq2ps xmm0, xmm0                                                    ; +0x8f, 0x180001abf\ndivss   xmm0, xmm2                                                     ; +0x92, 0x180001ac2\nmovss   [rsp+48h+var_28], xmm0                                         ; +0x96, 0x180001ac6\nmovd    xmm0, eax                                                      ; +0x9c, 0x180001acc\nmovzx   eax, byte ptr [rdi+14Ch]                                       ; +0xa0, 0x180001ad0\ncvtdq2ps xmm0, xmm0                                                    ; +0xa7, 0x180001ad7\nmovd    xmm1, eax                                                      ; +0xaa, 0x180001ada\nmovzx   eax, byte ptr [rdi+148h]                                       ; +0xae, 0x180001ade\ndivss   xmm0, xmm2                                                     ; +0xb5, 0x180001ae5\ncvtdq2ps xmm1, xmm1                                                    ; +0xb9, 0x180001ae9\nmovss   [rsp+48h+var_24], xmm0                                         ; +0xbc, 0x180001aec\nmovd    xmm0, eax                                                      ; +0xc2, 0x180001af2\nmov     rax, [rdi]                                                     ; +0xc6, 0x180001af6\ncvtdq2ps xmm0, xmm0                                                    ; +0xc9, 0x180001af9\ndivss   xmm1, xmm2                                                     ; +0xcc, 0x180001afc\ndivss   xmm0, xmm2                                                     ; +0xd0, 0x180001b00\nmovss   [rsp+48h+var_20], xmm1                                         ; +0xd4, 0x180001b04\nmovss   [rsp+48h+var_1C], xmm0                                         ; +0xda, 0x180001b0a\ncall    qword ptr [rax+288h]                                           ; +0xe0, 0x180001b10\nmov     r9d, 1; unsigned int                                           ; +0xe6, 0x180001b16\nlea     r8, [rsp+48h+var_28]; float *                                  ; +0xec, 0x180001b1c\nmov     rcx, rax; this                                                 ; +0xf1, 0x180001b21\nmov     edx, ebx; int                                                  ; +0xf4, 0x180001b24\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0xf6, 0x180001b26\nmov     edx, [rdi+18Ch]; unsigned int                                  ; +0xfb, 0x180001b2b\nxor     r8d, r8d; unsigned int                                         ; +0x101, 0x180001b31\nmov     rcx, [rdi+178h]; this                                          ; +0x104, 0x180001b34\ncall    ?drawNumberOfQuads@CCTextureAtlas@cocos2d@@QEAAXII@Z; cocos2d::CCTextureAtlas::drawNumberOfQuads(uint,uint) ; +0x10b, 0x180001b3b\nmov     rcx, [rsp+48h+var_18]                                          ; +0x110, 0x180001b40\nxor     rcx, rsp; StackCookie                                          ; +0x115, 0x180001b45\ncall    __security_check_cookie                                        ; +0x118, 0x180001b48\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x11d, 0x180001b4d\nadd     rsp, 40h                                                       ; +0x122, 0x180001b52\npop     rdi                                                            ; +0x126, 0x180001b56\nretn                                                                   ; +0x127, 0x180001b57", "xrefs": ["<???> @ 0x1800eb6f0", "<???> @ 0x1800f1760", "<???> @ 0x18010bf50", "<???> @ 0x18014cf68", "<???> @ 0x1801b70e4"], "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"}