// // cocos2d::CCTMXLayer::removeTileAt from 0x100245580 to 0x1002456b6 (310 bytes) // // 1 xrefs: // > cocos2d::CCTMXLayer::setTileGID @ 0x10024553f // // 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 12:27:19 +0000 // unsigned __int64 __fastcall cocos2d::CCTMXLayer::removeTileAt(__int64 a1, float *a2) { __int64 v2; // rax float v3; // xmm0_4 unsigned __int64 result; // rax void *v6; // rax __int64 v7; // rdi unsigned __int64 v8; // r14 __int64 v9; // rax __int64 v10; // rdi __int64 v11; // rcx unsigned __int64 v12; // rcx __int64 v13; // rdx unsigned int v14; // esi int __key[7]; // [rsp+0h] [rbp-1Ch] BYREF __key[0] = HIDWORD(v2); v3 = (float)(a2[1] * *(float *)(a1 + 356)) + *a2; result = (int)v3; if ( (*(_DWORD *)(*(_QWORD *)(a1 + 376) + 4 * result) & 0x1FFFFFFF) != 0 ) { __key[0] = (int)v3; v6 = bsearch( __key, *(const void **)(*(_QWORD *)(a1 + 464) + 16LL), **(unsigned int **)(a1 + 464), 8u, (int (__cdecl *)(const void *, const void *))sub_100245350); v7 = *(_QWORD *)(a1 + 464); v8 = ((unsigned __int64)v6 - *(_QWORD *)(v7 + 16)) >> 3; *(_DWORD *)(*(_QWORD *)(a1 + 376) + 4LL * (unsigned int)(int)v3) = 0; sub_100747B50(v7, (unsigned int)v8); v9 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 480LL))(a1, (unsigned int)(int)v3); if ( v9 ) { return cocos2d::CCSpriteBatchNode::removeChild(a1, v9, 1u); } else { result = cocos2d::CCTextureAtlas::removeQuadAtIndex(*(_QWORD *)(a1 + 328), (unsigned int)v8); v10 = *(_QWORD *)(a1 + 208); if ( v10 ) { result = sub_1007FEF90(v10); if ( (_DWORD)result ) { result = *(_QWORD *)(a1 + 208); if ( result ) { result = *(_QWORD *)(result + 56); v11 = *(unsigned int *)result; if ( *(_DWORD *)result ) { result = *(_QWORD *)(result + 16); v12 = result + 8 * v11 - 8; do { v13 = *(_QWORD *)result; if ( !*(_QWORD *)result ) break; v14 = *(_DWORD *)(v13 + 360); if ( v14 >= (unsigned int)v8 ) *(_DWORD *)(v13 + 360) = v14 - 1; result += 8LL; } while ( result <= v12 ); } } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source