// // cocos2d::CCTMXLayer::tileAt from 0x100244c50 to 0x100244ee8 (664 bytes) // // 0 xrefs: // // 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 // void *__fastcall cocos2d::CCTMXLayer::tileAt(__int64 a1, float *a2) { unsigned int v2; // r14d unsigned int v3; // r13d void *v6; // r12 __int64 v7; // rsi __int64 v8; // rdi float v9; // xmm0_4 __int64 v10; // rdi float v11; // xmm0_4 __int64 v12; // rdi float v13; // xmm0_4 __int64 v14; // rax float v15; // xmm0_4 double v16; // xmm3_8 __int64 v17; // rax int v18; // ecx int v19; // eax float v20; // xmm0_4 void *v21; // rax float __key[4]; // [rsp+8h] [rbp-58h] BYREF _DWORD v24[4]; // [rsp+18h] [rbp-48h] BYREF float v25; // [rsp+28h] [rbp-38h] float v26; // [rsp+2Ch] [rbp-34h] float v27; // [rsp+30h] [rbp-30h] float v28; // [rsp+34h] [rbp-2Ch] v2 = (int)(float)((float)(a2[1] * *(float *)(a1 + 356)) + *a2); v3 = *(_DWORD *)(*(_QWORD *)(a1 + 376) + 4LL * (int)v2) & 0x1FFFFFFF; if ( !v3 ) return nullptr; v6 = (void *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 480LL))(a1, v2); if ( !v6 ) { v7 = *(_QWORD *)(a1 + 384); cocos2d::CCTMXTilesetInfo::rectForGID(v24, v7, v3); v26 = *(float *)v24; v8 = cocos2d::CCDirector::sharedDirector(v24, v7); v9 = sub_100479350(v8); v26 = v26 / v9; v27 = *(float *)&v24[1]; v10 = cocos2d::CCDirector::sharedDirector(v8, v7); v11 = sub_100479350(v10); v27 = v27 / v11; v28 = *(float *)&v24[2]; v12 = cocos2d::CCDirector::sharedDirector(v10, v7); v13 = sub_100479350(v12); v28 = v28 / v13; v25 = *(float *)&v24[3]; v14 = cocos2d::CCDirector::sharedDirector(v12, v7); v15 = sub_100479350(v14); *(_QWORD *)&v16 = LODWORD(v25); *(float *)&v16 = v25 / v15; sub_100278270( __key, COERCE_DOUBLE((unsigned __int64)LODWORD(v26)), COERCE_DOUBLE((unsigned __int64)LODWORD(v27)), COERCE_DOUBLE((unsigned __int64)LODWORD(v28)), v16); sub_100278810(v24, __key); v6 = operator new(0x258u); sub_100273700(v6); v17 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 896LL))(a1); (*(void (__fastcall **)(void *, __int64, _DWORD *))(*(_QWORD *)v6 + 1016LL))(v6, v17, v24); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v6 + 1120LL))(v6, a1); cocos2d::CCTMXLayer::positionAt(__key, a1, a2); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v6 + 184LL))(v6, __key); if ( *(_BYTE *)(a1 + 448) == 1 ) { v18 = *(_DWORD *)(a1 + 392); if ( !v18 ) { v20 = *(float *)(a1 + 360) - a2[1]; goto LABEL_10; } v19 = 0; if ( v18 == 2 ) { v20 = (float)(int)(float)(*(float *)(a1 + 356) + *(float *)(a1 + 360)) - (float)(*a2 + a2[1]); LABEL_10: v19 = (int)(float)-v20; } } else { v19 = *(_DWORD *)(a1 + 444); } (*(void (__fastcall **)(void *, float))(*(_QWORD *)v6 + 112LL))(v6, (float)v19); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v6 + 296LL))(v6, &unk_100BE1810); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v6 + 912LL))(v6, *(unsigned __int8 *)(a1 + 432)); LODWORD(__key[0]) = v2; v21 = bsearch( __key, *(const void **)(*(_QWORD *)(a1 + 464) + 16LL), **(unsigned int **)(a1 + 464), 8u, sub_100245350); cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad( a1, (__int64)v6, ((unsigned __int64)v21 - *(_QWORD *)(*(_QWORD *)(a1 + 464) + 16LL)) >> 3, v2); cocos2d::CCObject::release(v6); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source