// // ArtTriggerGameObject::triggerObject from 0x140663020 to 0x1406633e6 (966 bytes) // // 2 xrefs: // > @ 0x140826758 // > @ 0x140931c04 // // 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:35:49 +0000 // // Hidden C++ exception states: #wind=8 void __fastcall ArtTriggerGameObject::triggerObject(__int64 a1, __int64 a2) { int v3; // edi __int64 v4; // rbp int v5; // ecx __int64 v6; // rcx int v7; // eax int v8; // esi cocos2d::CCString *v9; // rax const char *v10; // rbx __int64 v11; // rcx __int64 v12; // rax cocos2d::CCString *v13; // rax const char *CString; // rbx __int64 v15; // rcx __int64 v16; // rax void (__fastcall *v17)(__int64, __int64); // r9 __int64 v18; // r8 int v19; // edi __int64 v20; // rbp int v21; // ecx int v22; // eax cocos2d::CCString *v23; // rax const char *v24; // rbx __int64 v25; // rcx __int64 v26; // rax cocos2d::CCString *v27; // rax __int64 v28; // rcx int v29; // esi __int64 v30; // rdi int v31; // ecx int v32; // eax cocos2d::CCString *v33; // rax __int64 v34; // rcx void *v35; // [rsp+40h] [rbp+8h] void *v36; // [rsp+40h] [rbp+8h] void *v37; // [rsp+40h] [rbp+8h] switch ( *(_DWORD *)(a1 + 1036) ) { case 0xBD5: v29 = *(_DWORD *)(a1 + 1856); *(_DWORD *)(a2 + 2132) = v29; if ( *(_BYTE *)(a2 + 13085) ) return; v30 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v37 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v37); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v30 = qword_14090BFD0; } v31 = *(_DWORD *)(v30 + 1012); if ( v31 == v29 ) { GJBaseGameLayer::createBackground(a2, v29); GJBaseGameLayer::updateLevelColors((_QWORD *)a2); return; } v32 = 59; if ( v29 < 59 ) v32 = v29; v8 = 1; if ( v32 > 1 ) v8 = v32; if ( !*(_BYTE *)(v30 + 1032) && v8 != v31 ) { *(_BYTE *)(v30 + 1032) = 1; v33 = cocos2d::CCString::createWithFormat("game_bg_%02d_001.png", v8); CString = cocos2d::CCString::getCString(v33); v16 = cocos2d::CCTextureCache::sharedTextureCache(v34); v17 = GameManager::finishedLoadingBGAsync; v18 = v30; goto LABEL_45; } break; case 0xBD6: v19 = *(_DWORD *)(a1 + 1856); *(_DWORD *)(a2 + 2136) = v19; if ( !*(_BYTE *)(a2 + 13085) ) { v20 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v36 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v36); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v20 = qword_14090BFD0; } v21 = *(_DWORD *)(v20 + 1016); if ( v21 != v19 ) { v22 = 22; if ( v19 < 22 ) v22 = v19; v8 = 1; if ( v22 > 1 ) v8 = v22; if ( !*(_BYTE *)(v20 + 1033) && v8 != v21 ) { *(_BYTE *)(v20 + 1033) = 1; *(_BYTE *)(v20 + 1035) = 0; *(_BYTE *)(v20 + 1036) = (unsigned int)(v8 - 8) > 3; v23 = cocos2d::CCString::createWithFormat("groundSquare_%02d_001.png", v8); v24 = cocos2d::CCString::getCString(v23); v26 = cocos2d::CCTextureCache::sharedTextureCache(v25); cocos2d::CCTextureCache::addImageAsync(v26, v24, v20, GameManager::finishedLoadingGAsync1, v8, 0); if ( (unsigned int)(v8 - 8) <= 3 ) { v27 = cocos2d::CCString::createWithFormat("groundSquare_%02d_2_001.png", v8); CString = cocos2d::CCString::getCString(v27); v16 = cocos2d::CCTextureCache::sharedTextureCache(v28); v17 = GameManager::finishedLoadingGAsync2; v18 = v20; goto LABEL_45; } } } } break; case 0xBD7: v3 = *(_DWORD *)(a1 + 1856); *(_DWORD *)(a2 + 2140) = v3; if ( *(_BYTE *)(a2 + 13085) ) return; v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v35 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v35); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } v5 = *(_DWORD *)(v4 + 1020); if ( v5 == v3 ) { if ( v3 > 0 && !*(_QWORD *)(a2 + 4352) ) { GJBaseGameLayer::createMiddleground(a2, v3); GJBaseGameLayer::updateLevelColors((_QWORD *)a2); } return; } if ( !v3 ) { v6 = *(_QWORD *)(a2 + 4352); if ( v6 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 512LL))(v6); *(_QWORD *)(a2 + 4352) = 0; } return; } v7 = 3; if ( v3 < 3 ) v7 = v3; v8 = 1; if ( v7 > 1 ) v8 = v7; if ( !*(_BYTE *)(v4 + 1034) && v8 != v5 ) { *(_BYTE *)(v4 + 1034) = 1; *(_WORD *)(v4 + 1037) = 0; v9 = cocos2d::CCString::createWithFormat("fg_%02d_001.png", v8); v10 = cocos2d::CCString::getCString(v9); v12 = cocos2d::CCTextureCache::sharedTextureCache(v11); cocos2d::CCTextureCache::addImageAsync(v12, v10, v4, GameManager::finishedLoadingMGAsync1, v8, 0); v13 = cocos2d::CCString::createWithFormat("fg_%02d_2_001.png", v8); CString = cocos2d::CCString::getCString(v13); v16 = cocos2d::CCTextureCache::sharedTextureCache(v15); v17 = GameManager::finishedLoadingMGAsync2; v18 = v4; LABEL_45: cocos2d::CCTextureCache::addImageAsync(v16, CString, v18, v17, v8, 0); } break; default: return; } }