// // cocos2d::CCTMXLayer::tileAt from 0x1800b0c30 to 0x1800b0e73 (579 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801c2544 // // 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:22:19 +0000 // // Hidden C++ exception states: #wind=1 struct cocos2d::CCSprite *__fastcall cocos2d::CCTMXLayer::tileAt( cocos2d::CCTMXLayer *this, const struct cocos2d::CCPoint *a2) { struct cocos2d::CCSprite *v4; // rsi int v5; // ebp unsigned int v6; // ebx struct cocos2d::CCSprite *result; // rax cocos2d::CCDirector *v8; // rax float ContentScaleFactor; // xmm0_4 float v10; // xmm8_4 cocos2d::CCDirector *v11; // rax float v12; // xmm0_4 float v13; // xmm7_4 cocos2d::CCDirector *v14; // rax float v15; // xmm0_4 float v16; // xmm6_4 cocos2d::CCDirector *v17; // rax float v18; // xmm0_4 cocos2d::CCRect *v19; // rax cocos2d::CCSprite *v20; // rax __int64 v21; // rbx __int64 v22; // rax __int64 v23; // rbx __int64 v24; // rax void *v25; // rax float v26[4]; // [rsp+30h] [rbp-68h] BYREF _BYTE v27[16]; // [rsp+40h] [rbp-58h] BYREF cocos2d::CCSprite *Key; // [rsp+A0h] [rbp+8h] BYREF v4 = nullptr; v5 = (int)(float)((float)(*((float *)this + 90) * *((float *)a2 + 1)) + *(float *)a2); v6 = *(_DWORD *)(*((_QWORD *)this + 47) + 4LL * v5) & 0x1FFFFFFF; if ( v6 ) { result = (struct cocos2d::CCSprite *)(*(__int64 (__fastcall **)(cocos2d::CCTMXLayer *, _QWORD))(*(_QWORD *)this + 472LL))( this, (unsigned int)v5); if ( result ) return result; cocos2d::CCTMXTilesetInfo::rectForGID(*((_QWORD *)this + 48), v26, v6); v8 = cocos2d::CCDirector::sharedDirector(); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v8); v10 = v26[3] / ContentScaleFactor; v11 = cocos2d::CCDirector::sharedDirector(); v12 = cocos2d::CCDirector::getContentScaleFactor(v11); v13 = v26[2] / v12; v14 = cocos2d::CCDirector::sharedDirector(); v15 = cocos2d::CCDirector::getContentScaleFactor(v14); v16 = v26[1] / v15; v17 = cocos2d::CCDirector::sharedDirector(); v18 = cocos2d::CCDirector::getContentScaleFactor(v17); v19 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v27, v26[0] / v18, v16, v13, v10); cocos2d::CCRect::operator=((__int64)v26, (__int64)v19); v20 = (cocos2d::CCSprite *)sub_1800E4AC0(0x258u); Key = v20; if ( v20 ) v4 = cocos2d::CCSprite::CCSprite(v20); v21 = *(_QWORD *)v4; v22 = (*(__int64 (__fastcall **)(char *))(*((_QWORD *)this + 40) + 16LL))((char *)this + 320); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64, float *))(v21 + 896))(v4, v22, v26); (*(void (__fastcall **)(struct cocos2d::CCSprite *, cocos2d::CCTMXLayer *))(*(_QWORD *)v4 + 968LL))(v4, this); v23 = *(_QWORD *)v4; v24 = cocos2d::CCTMXLayer::positionAt((__int64)this, (__int64)&Key, (float *)a2); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v23 + 184))(v4, v24); cocos2d::CCTMXLayer::vertexZForPos(this, a2); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v4 + 104LL))(v4); (*(void (__fastcall **)(struct cocos2d::CCSprite *, _DWORD *))(*(_QWORD *)v4 + 288LL))(v4, dword_1801B3B28); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v4 + 40) + 40LL))( (__int64)v4 + 320, *((unsigned __int8 *)this + 440)); LODWORD(Key) = v5; v25 = bsearch( &Key, *(const void **)(*((_QWORD *)this + 59) + 16LL), **((unsigned int **)this + 59), 8u, (_CoreCrtNonSecureSearchSortCompareFunction)CompareFunction); cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad( this, v4, ((unsigned __int64)v25 - *(_QWORD *)(*((_QWORD *)this + 59) + 16LL)) >> 3, v5); cocos2d::CCObject::release(v4); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source