// // cocos2d::CCTMXLayer::removeTileAt from 0x10025b5f0 to 0x10025b726 (310 bytes) // // 1 xrefs: // > cocos2d::CCTMXLayer::setTileGID @ 0x10025b5af // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::CCTMXLayer::removeTileAt(cocos2d::CCTMXLayer *a1, const cocos2d::CCPoint *a2) { __int64 v2; // rax float v3; // xmm0_4 void *v5; // rax __int64 v6; // rdi unsigned __int64 v7; // r14 cocos2d::CCNode *v8; // rax cocos2d::CCArray *m_pChildren; // rdi cocos2d::CCArray *v10; // rax cocos2d::ccArray *data; // rax __int64 num; // rcx cocos2d::CCObject **arr; // rax unsigned __int64 v14; // rcx cocos2d::CCObject *v15; // rdx unsigned int m_uAutoReleaseCount; // esi int __key[7]; // [rsp+0h] [rbp-1Ch] BYREF __key[0] = HIDWORD(v2); v3 = (float)(a2->y * *(float *)(&a1->m_bManualSortAllChildrenDirty + 3)) + a2->x; if ( (*(_DWORD *)(*(_QWORD *)&a1[1].m_nTag + 4LL * (int)v3) & 0x1FFFFFFF) != 0 ) { __key[0] = (int)v3; v5 = bsearch( __key, *(const void **)(*(_QWORD *)&a1[1].m_obAnchorPoint.y + 16LL), **(unsigned int **)&a1[1].m_obAnchorPoint.y, 8u, (int (__cdecl *)(const void *, const void *))sub_10025B3C0); v6 = *(_QWORD *)&a1[1].m_obAnchorPoint.y; v7 = ((unsigned __int64)v5 - *(_QWORD *)(v6 + 16)) >> 3; *(_DWORD *)(*(_QWORD *)&a1[1].m_nTag + 4LL * (unsigned int)(int)v3) = 0; sub_100668620(v6, (unsigned int)v7); v8 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCTMXLayer *, _QWORD))a1->getChildByTag)( a1, (unsigned int)(int)v3); if ( v8 ) { cocos2d::CCSpriteBatchNode::removeChild(a1, v8, 1); } else { cocos2d::CCTextureAtlas::removeQuadAtIndex(a1->m_pobTextureAtlas, v7); m_pChildren = a1->m_pChildren; if ( m_pChildren ) { if ( (unsigned int)sub_100720070(m_pChildren) ) { v10 = a1->m_pChildren; if ( v10 ) { data = v10->data; num = data->num; if ( data->num ) { arr = data->arr; v14 = (unsigned __int64)&arr[num - 1]; do { v15 = *arr; if ( !*arr ) break; m_uAutoReleaseCount = v15[6].m_uAutoReleaseCount; if ( m_uAutoReleaseCount >= (unsigned int)v7 ) v15[6].m_uAutoReleaseCount = m_uAutoReleaseCount - 1; ++arr; } while ( (unsigned __int64)arr <= v14 ); } } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source