// // LevelEditorLayer::pasteAttributeState from 0x78d6e0 to 0x78d7c8 (232 bytes) // // 3 xrefs: // > SetGroupIDLayer::onPaste @ 0xabba20 // > EditorUI::onPasteState @ 0xbd8c4c // > @ 0x7c690 // // This function is hookable on this platform (idp: arm, 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:53:27 +0000 // __int64 __fastcall LevelEditorLayer::pasteAttributeState(__int64 this, GameObject *a2, cocos2d::CCArray *a3) { GameObject *v5; // x2 cocos2d::CCArray *v6; // x22 GameObject **v7; // x20 GameManager *v8; // x0 unsigned int *v9; // x1 GameObject **v10; // x19 char *v11; // x23 GameObject *v12; // x1 GameObject **v13; // x19 GameObject *v14; // x1 v5 = *(GameObject **)(this + 14120); if ( v5 ) { v6 = a3; v7 = (GameObject **)this; if ( a2 ) { this = LevelEditorLayer::applyAttributeState((LevelEditorLayer *)this, a2, v5); } else if ( a3 ) { v9 = *((unsigned int **)a3 + 7); this = *v9; if ( (_DWORD)this ) { v10 = *((GameObject ***)v9 + 2); this = 8LL * (unsigned int)this - 8; v11 = (char *)v10 + this; if ( v10 <= (GameObject **)((char *)v10 + this) ) { v12 = *v10; if ( *v10 ) { v13 = v10 + 1; for ( this = LevelEditorLayer::applyAttributeState((LevelEditorLayer *)v7, v12, v5); v11 >= (char *)v13; this = LevelEditorLayer::applyAttributeState((LevelEditorLayer *)v7, v14, v7[1765]) ) { v14 = *v13; if ( !*v13 ) break; ++v13; } } } } } v8 = (GameManager *)GameManager::sharedState((GameManager *)this); this = (unsigned __int8)GameManager::getGameVariable(v8, "0156"); if ( !(_BYTE)this ) return LevelEditorLayer::pasteGroupState((__int64)v7, a2, v6); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source