// // sub_10047AA1C from 0x10047aa1c to 0x10047abdc (448 bytes) // // 1 xrefs: // > sub_100041E30 @ 0x100041e4c // // 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 11:05:43 +0000 // __int64 __fastcall sub_10047AA1C(__int64 *a1) { __int64 result; // x0 _QWORD *v3; // x0 _QWORD *v4; // x21 double v5; // d0 _QWORD *v6; // x20 unsigned int *v7; // x9 __int64 v8; // x8 __int64 *v9; // x24 unsigned __int64 v10; // x25 __int64 v11; // x21 __int64 v12; // x0 __n128 v13; // q0 unsigned int *v14; // x9 __int64 v15; // x8 unsigned __int64 v16; // x26 unsigned __int64 v17; // x27 int v18; // w22 double *v19; // x0 __int64 Object; // x23 __int64 NewKeyframeAnim; // x0 __int64 v22; // [xsp+8h] [xbp-58h] BYREF if ( a1[187] || (result = sub_1002E757C(a1[112]), (_DWORD)result) ) { v3 = sub_1002E736C(); v4 = v3; if ( a1[187] ) sub_1002E74E0((__int64)v3); else sub_1002E7570((__int64)v3, a1[112]); EditorUI::deselectAll((__int64)a1, v5); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1[180] + 1192LL))(a1[180], 0.0); v6 = sub_1002E736C(); if ( v4 ) { v7 = (unsigned int *)v4[7]; v8 = *v7; if ( (_DWORD)v8 ) { v9 = *((__int64 **)v7 + 2); v10 = (unsigned __int64)&v9[v8 - 1]; do { v11 = *v9; if ( !*v9 ) break; if ( *(_BYTE *)(v11 + 1170) == 1 ) { v13 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1[180] + 3696), *(unsigned int *)(v11 + 916)); if ( v12 ) { v14 = *(unsigned int **)(v12 + 56); v15 = *v14; if ( (_DWORD)v15 ) { v16 = *((_QWORD *)v14 + 2); v17 = v16 + 8 * v15 - 8; do { if ( !*(_QWORD *)v16 ) break; v18 = *(_DWORD *)(*(_QWORD *)v16 + 56LL); v19 = (double *)(*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v11 + 192LL))(v11, v13); sub_1000262F4(&v22, v19); Object = EditorUI::createObject((__int64)a1, 3032, (double *)&v22); LevelEditorLayer::removeSpecial(a1[180], Object); sub_1002E74E0((__int64)v6); sub_10042235C(Object, v18); sub_100431674(Object, a1[180], (__int64)a1); NewKeyframeAnim = GJBaseGameLayer::createNewKeyframeAnim(a1[180]); *(_DWORD *)(Object + 1856) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)NewKeyframeAnim + 64LL))(NewKeyframeAnim); *(_DWORD *)(Object + 1860) = 0; LevelEditorLayer::addSpecial(a1[180], Object); v16 += 8LL; } while ( v16 <= v17 ); } } } ++v9; } while ( (unsigned __int64)v9 <= v10 ); } } return EditorUI::selectObjects((__int64)a1, (__int64)v6, 0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source