// // cocos2d::CCAtlasNode::draw from 0x180001a30 to 0x180001b58 (296 bytes) // // 5 xrefs: // > @ 0x1800eb6f0 // > @ 0x1800f1760 // > @ 0x18010bf50 // > @ 0x18014cf68 // > @ 0x1801b70e4 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:15 +0000 // void __fastcall cocos2d::CCAtlasNode::draw(GLenum *this, float a2, int a3) { cocos2d::CCGLProgram *v4; // rax cocos2d::CCGLProgram *v5; // rax unsigned int v6; // r8d int v7; // ebx int v8; // eax float v9; // xmm0_4 unsigned int v10; // eax float v11; // xmm1_4 __m128i v12; // xmm0 __int64 v13; // rax cocos2d::CCGLProgram *v14; // rax float v15[4]; // [rsp+20h] [rbp-28h] BYREF cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)*(this + 62), a2, a3); (*(void (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this); v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this); cocos2d::CCGLProgram::use(v4); v5 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(*(_QWORD *)this + 648LL))(this); cocos2d::CCGLProgram::setUniformsForBuiltins(v5); cocos2d::ccGLBlendFunc(*(this + 97), *(this + 98), v6); v7 = *(this + 100); v8 = *((unsigned __int8 *)this + 331); v15[0] = (float)*((unsigned __int8 *)this + 330) / 255.0; v9 = (float)v8; v10 = *((unsigned __int8 *)this + 328); v11 = (float)*((unsigned __int8 *)this + 332); v15[1] = v9 / 255.0; v12 = _mm_cvtsi32_si128(v10); v13 = *(_QWORD *)this; v15[2] = v11 / 255.0; v15[3] = _mm_cvtepi32_ps(v12).m128_f32[0] / 255.0; v14 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(GLenum *))(v13 + 648))(this); cocos2d::CCGLProgram::setUniformLocationWith4fv(v14, v7, v15, 1u); cocos2d::CCTextureAtlas::drawNumberOfQuads(*((cocos2d::CCTextureAtlas **)this + 47), *(this + 99), 0); }