//
// cocos2d::CCRenderTexture::listenToBackground from 0x7e0e7e to 0x7e0ee4 (102 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:49 +0000
//
int __fastcall cocos2d::CCRenderTexture::listenToBackground(cocos2d::CCRenderTexture *this, cocos2d::CCObject *a2)
{
int v3; // r0
cocos2d::CCTexture2D *v4; // r0
int ContentSizeInPixels; // r5
int v6; // r0
int result; // r0
v3 = *((_DWORD *)this + 72);
if ( v3 )
{
(*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)v3 + 8))(v3, a2);
*((_DWORD *)this + 72) = 0;
}
v4 = cocos2d::CCRenderTexture::newCCImage(this, 0);
*((_DWORD *)this + 72) = v4;
if ( v4 )
{
ContentSizeInPixels = cocos2d::CCTexture2D::getContentSizeInPixels(*((cocos2d::CCTexture2D **)this + 70));
cocos2d::VolatileTexture::addDataTexture(
*((_DWORD *)this + 70),
*(_DWORD *)(*((_DWORD *)this + 72) + 60),
0,
ContentSizeInPixels);
v6 = *((_DWORD *)this + 71);
if ( v6 )
cocos2d::VolatileTexture::addDataTexture(v6, *(_DWORD *)(*((_DWORD *)this + 72) + 60), 0, ContentSizeInPixels);
}
result = glDeleteFramebuffers();
*((_DWORD *)this + 67) = 0;
return result;
}