// // GameObject::playDestroyObjectAnim from 0x1002484c0 to 0x1002494de (4126 bytes) // // 1 xrefs: // > GJBaseGameLayer::destroyObject @ 0x100106255 // // 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:21 +0000 // void __fastcall GameObject::playDestroyObjectAnim(__int64 a1, __int64 a2, double a3) { unsigned __int8 v4; // r12 bool v5; // al int v6; // ecx __int64 v7; // rdi __int64 v8; // rax int v9; // r13d __int64 v10; // rax __int64 v11; // r12 char *v12; // r12 int v13; // eax __int64 v14; // r14 unsigned int v15; // r13d __int64 v16; // rax __int64 v17; // r12 __int64 v18; // rdi __int64 v19; // rax void *v20; // r15 __int64 v21; // rax __int64 v22; // rax __int64 v23; // r15 unsigned int ObjectZOrder; // eax __int64 v25; // rax __int64 v26; // rax unsigned __int8 *v27; // rax unsigned int v28; // r13d unsigned __int8 *v29; // rax void *v30; // r15 __int64 v31; // rax __int64 v32; // rax __int64 v33; // rax __int64 v34; // r13 __int64 v35; // r12 __int64 v36; // rax __int64 CString; // rax __int64 v38; // rax __int64 v39; // r12 __int64 v40; // rax __int64 v41; // rax __int64 v42; // rax __int64 v43; // r12 __int64 v44; // rax __int64 v45; // rax __int64 v46; // rax __int64 v47; // r12 __int64 v48; // rax __int64 v49; // rax __int64 v50; // rax __int64 v51; // rax __int64 v52; // r15 __int64 v53; // rax __int64 v54; // r13 __int64 v55; // r12 __int64 v56; // rax __int64 v57; // rax __int64 v58; // rax __int64 v59; // r12 __int64 v60; // rax __int64 v61; // rax __int64 v62; // rax __int64 v63; // r12 __int64 v64; // rax __int64 v65; // rax __int64 v66; // rax __int64 v67; // r12 __int64 v68; // rax __int64 v69; // rax __int64 v70; // rax __int64 v71; // rax __int64 v72; // r15 __int64 v73; // rax int v74; // eax int v75; // ecx int v76; // r8d int v77; // r9d __int64 v78; // rax __int64 v79; // r12 __int64 v80; // r13 __int64 v81; // rax __int64 v82; // rax __int64 v83; // rax __int64 v84; // r13 __int64 v85; // rax __int64 v86; // rax __int64 v87; // rax __int64 v88; // r13 __int64 v89; // rax __int64 v90; // rax __int64 v91; // rax __int64 v92; // r13 __int64 v93; // rax __int64 v94; // rax __int64 v95; // rax __int64 v96; // rax __int64 v97; // r15 __int64 v98; // rax void *v99; // r12 int v100; // eax int v101; // ecx int v102; // r8d int v103; // r9d __int64 v104; // rax __int64 v105; // rax size_t v106; // rax size_t v107; // r15 __int8 *v108; // rax __int64 v109; // rax __int64 v110; // r12 __int64 v111; // rax const std::string::value_type *v112; // rdi __int64 v113; // r14 __int64 v114; // r12 unsigned int v115; // eax __int64 v116; // rax __int64 v117; // rdi __int64 v118; // rax __int64 v119; // r12 __int64 v120; // r13 __int64 v121; // rax __int64 v122; // rax __int64 v123; // rax __int64 v124; // r13 __int64 v125; // rax __int64 v126; // rax __int64 v127; // rax __int64 v128; // r13 __int64 v129; // rax __int64 v130; // rax __int64 v131; // rax __int64 v132; // r13 __int64 v133; // rax __int64 v134; // rax __int64 v135; // rax __int64 v136; // rax __int64 v137; // rax __int64 v138; // rax size_t v139; // r13 __int8 *v140; // r13 __int8 *v141; // rdi __int64 v142; // r15 __int64 v143; // r12 float v144; // xmm0_4 double v145; // xmm1_8 float v146; // xmm0_4 double v147; // xmm1_8 unsigned int ObjectZLayer; // r12d unsigned __int8 v149; // r13 unsigned int ParentMode; // eax __int64 v151; // r12 unsigned int v152; // eax __int64 v153; // rax __int64 v154; // rax char *v155; // rdi __int64 v156; // r12 __int64 v157; // rax __int64 v158; // rax unsigned __int8 v159; // al int v160; // r13d int v161; // eax int v162; // ecx int v163; // r8d int v164; // r9d __int64 v165; // rax char v166; // [rsp+0h] [rbp-C0h] char v167; // [rsp+0h] [rbp-C0h] char v168; // [rsp+0h] [rbp-C0h] char v169; // [rsp+0h] [rbp-C0h] char v170; // [rsp+0h] [rbp-C0h] char v171; // [rsp+0h] [rbp-C0h] char v172; // [rsp+0h] [rbp-C0h] char v173; // [rsp+0h] [rbp-C0h] char v174; // [rsp+0h] [rbp-C0h] char v175; // [rsp+0h] [rbp-C0h] char v176; // [rsp+0h] [rbp-C0h] char v177; // [rsp+0h] [rbp-C0h] char v178; // [rsp+0h] [rbp-C0h] char v179; // [rsp+0h] [rbp-C0h] char v180; // [rsp+0h] [rbp-C0h] __m128 v181; // [rsp+10h] [rbp-B0h] BYREF void *__p; // [rsp+20h] [rbp-A0h] __int64 v183; // [rsp+30h] [rbp-90h] char v184; // [rsp+38h] [rbp-88h] BYREF char v185; // [rsp+39h] [rbp-87h] BYREF void *v186; // [rsp+48h] [rbp-78h] float v187; // [rsp+54h] [rbp-6Ch] BYREF unsigned int v188; // [rsp+58h] [rbp-68h] unsigned int v189; // [rsp+5Ch] [rbp-64h] unsigned int v190; // [rsp+60h] [rbp-60h] unsigned int v191; // [rsp+64h] [rbp-5Ch] unsigned int v192; // [rsp+68h] [rbp-58h] unsigned int v193; // [rsp+6Ch] [rbp-54h] __m128 __dst; // [rsp+70h] [rbp-50h] BYREF void *v195; // [rsp+80h] [rbp-40h] float v196; // [rsp+88h] [rbp-38h] BYREF void *__src; // [rsp+90h] [rbp-30h] if ( !a2 ) return; v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 896LL))(a1); if ( v4 ) { v5 = 0; v6 = *(_DWORD *)(a1 + 1028); if ( v6 == 1614 ) { LABEL_15: if ( ((*(_BYTE *)(a1 + 999) | v5) & 1) == 0 ) { v14 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_001.png"); v15 = v4; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 912LL))(v14, v4); v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 328LL))(v14); sub_100278630(&__dst, v16); sub_100278250(&v184, __dst.f32[0] * 0.5, 0.5 * __dst.f32[1]); v17 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_color_001.png"); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v14 + 464LL))(v14, v17, 1); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 912LL))(v17, v15); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v17 + 184LL))(v17, &v184); v18 = *(_QWORD *)(a1 + 888); if ( v18 ) { v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 944LL))(v18); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 960LL))(v17, v19); } v20 = (void *)cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_highlight_001.png"); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v14 + 464LL))(v14, v20, 2); (*(void (__fastcall **)(void *, char *))(*(_QWORD *)v20 + 184LL))(v20, &v184); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v20 + 912LL))(v20, v15); v21 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 2); if ( v21 ) { v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 944LL))(v21); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v20 + 960LL))(v20, v22); } v188 = v15; v183 = v17; __src = v20; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 136LL))(a1); (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 128LL))(v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 152LL))(a1); (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 144LL))(v14); v23 = *(_QWORD *)(a1 + 216); if ( v23 ) { ObjectZOrder = GameObject::getObjectZOrder(a1); (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v23 + 464LL))(v23, v14, ObjectZOrder); } v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 184LL))(v14, v25); v26 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 944LL))(a1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 960LL))(v14, v26); v27 = (unsigned __int8 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 944LL))(v14); v192 = *v27; v193 = v27[1]; v28 = v27[2]; v29 = (unsigned __int8 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v183 + 944LL))(v183); v189 = *v29; v190 = v29[1]; v191 = v29[2]; BYTE2(v196) = -56; LOWORD(v196) = -1; (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v14 + 960LL))(v14, &v196); BYTE2(v196) = -56; LOWORD(v196) = -1; (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v183 + 960LL))(v183, &v196); v30 = __src; (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)__src + 912LL))(__src, 0); v31 = cocos2d::CCTintTo::create(v192, v193, v28, 0.30000001); cocos2d::CCNode::runAction(v14, v31); v32 = cocos2d::CCTintTo::create(v189, v190, v191, 0.30000001); cocos2d::CCNode::runAction(v183, v32); v33 = cocos2d::CCFadeTo::create(v188, 0.30000001); cocos2d::CCNode::runAction(v30, v33); v34 = sub_1007FE900(v30); v35 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1050253722)); v36 = sub_10088E820("smallCoin_01_%s001.png", v166); CString = cocos2d::CCString::getCString(v36); v38 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v35, CString); sub_1007FEBF0(v34, v38); v39 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1050253722)); v40 = sub_10088E820("smallCoin_02_%s001.png", v167); v41 = cocos2d::CCString::getCString(v40); v42 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v39, v41); sub_1007FEBF0(v34, v42); v43 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1050253722)); v44 = sub_10088E820("smallCoin_03_%s001.png", v168); v45 = cocos2d::CCString::getCString(v44); v46 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v43, v45); sub_1007FEBF0(v34, v46); v47 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1050253722)); v48 = sub_10088E820("smallCoin_04_%s001.png", v169); v49 = cocos2d::CCString::getCString(v48); v50 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v47, v49); sub_1007FEBF0(v34, v50); v51 = cocos2d::CCAnimation::createWithSpriteFrames(v34); v52 = cocos2d::CCAnimate::create(v51); v53 = cocos2d::CCRepeatForever::create(v52); *(_BYTE *)(v52 + 133) = 1; cocos2d::CCNode::runAction(v14, v53); v54 = sub_1007FE900(v14); v55 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1028443341)); v56 = sub_10088E820("smallCoin_01_%s001.png", v170); v57 = cocos2d::CCString::getCString(v56); v58 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v55, v57); sub_1007FEBF0(v54, v58); v59 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1028443341)); v60 = sub_10088E820("smallCoin_02_%s001.png", v171); v61 = cocos2d::CCString::getCString(v60); v62 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v59, v61); sub_1007FEBF0(v54, v62); v63 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1028443341)); v64 = sub_10088E820("smallCoin_03_%s001.png", v172); v65 = cocos2d::CCString::getCString(v64); v66 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v63, v65); sub_1007FEBF0(v54, v66); v67 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1028443341)); v68 = sub_10088E820("smallCoin_04_%s001.png", v173); v69 = cocos2d::CCString::getCString(v68); v70 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v67, v69); sub_1007FEBF0(v54, v70); v71 = cocos2d::CCAnimation::createWithSpriteFrames(v54); v72 = cocos2d::CCAnimate::create(v71); v73 = cocos2d::CCRepeatForever::create(v72); *(_BYTE *)(v72 + 132) = 1; cocos2d::CCNode::runAction(v183, v73); LODWORD(v72) = cocos2d::CCDelayTime::create(0.30000001); v74 = cocos2d::CCFadeTo::create(0, 0.30000001); v78 = sub_10039EB60(v72, v74, 0, v75, v76, v77); cocos2d::CCNode::runAction(v183, v78); v79 = sub_1007FE900(v183); v80 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1050253722)); v81 = sub_10088E820("smallCoin_01_%s001.png", v174); v82 = cocos2d::CCString::getCString(v81); v83 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v80, v82); sub_1007FEBF0(v79, v83); v84 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1050253722)); v85 = sub_10088E820("smallCoin_02_%s001.png", v175); v86 = cocos2d::CCString::getCString(v85); v87 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v84, v86); sub_1007FEBF0(v79, v87); v88 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1050253722)); v89 = sub_10088E820("smallCoin_03_%s001.png", v176); v90 = cocos2d::CCString::getCString(v89); v91 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v88, v90); sub_1007FEBF0(v79, v91); v92 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1050253722)); v93 = sub_10088E820("smallCoin_04_%s001.png", v177); v94 = cocos2d::CCString::getCString(v93); v95 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v92, v94); sub_1007FEBF0(v79, v95); v96 = cocos2d::CCAnimation::createWithSpriteFrames(v79); v97 = cocos2d::CCAnimate::create(v96); v98 = cocos2d::CCRepeatForever::create(v97); *(_BYTE *)(v97 + 132) = 1; v99 = __src; cocos2d::CCNode::runAction(__src, v98); LODWORD(v97) = cocos2d::CCDelayTime::create(0.30000001); v100 = cocos2d::CCFadeTo::create(0, 0.30000001); v104 = sub_10039EB60(v97, v100, 0, v101, v102, v103); cocos2d::CCNode::runAction(v99, v104); GameObject::playPickupAnimation( a1, v14, 0, 30.000002, 36.0, 54.000004, 108.00001, 12.0, 0.60000002, 0.40000001, 0.2, 0.0, 0.0); } return; } } else { v7 = *(_QWORD *)(a1 + 888); if ( v7 ) { v5 = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v7 + 896LL))(v7) == 0; v6 = *(_DWORD *)(a1 + 1028); if ( v6 == 1614 ) goto LABEL_15; } else { v5 = 1; v6 = *(_DWORD *)(a1 + 1028); if ( v6 == 1614 ) goto LABEL_15; } } if ( v6 == 143 ) { v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); sub_1002782D0(&__dst, v8); GJBaseGameLayer::spawnParticle(a2, (__int64)"glassDestroy01.plist", 0, 2u, (__int64)&__dst); return; } v9 = *(_DWORD *)(a1 + 920); if ( v9 == 31 ) goto LABEL_12; if ( v9 != 30 ) { if ( v9 != 22 ) return; LABEL_12: LOBYTE(__src) = GJBaseGameLayer::hasUniqueCoin(a2, (_DWORD *)a1); v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); sub_1002782D0(&__dst, v10); v11 = GJBaseGameLayer::spawnParticle(a2, (__int64)"coinPickupEffect.plist", 0, 2u, (__int64)&__dst); if ( v9 == 31 && v11 != 0 ) { __dst = _mm_movelh_ps( (__m128)xmmword_100A038B0, _mm_insert_ps( (__m128)xmmword_100A049A0, (__m128)*(unsigned int *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1352LL))(v11) + 12), 16)); (*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v11 + 1360LL))(v11, &__dst); __dst = _mm_movelh_ps( (__m128)xmmword_100A04CE0, _mm_insert_ps( (__m128)xmmword_100A067A0, (__m128)*(unsigned int *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1384LL))(v11) + 12), 16)); (*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v11 + 1392LL))(v11, &__dst); v12 = CCCircleWave::create(0, 0, 25.0, 5.0, 0.30000001); v13 = 13158600; } else { v12 = CCCircleWave::create(0, 0, 25.0, 5.0, 0.30000001); v13 = 51455; if ( v9 == 31 ) v13 = -3618616; } *((_WORD *)v12 + 170) = v13; v12[342] = BYTE2(v13); v109 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v12 + 184LL))(v12, v109); (*(void (__fastcall **)(_QWORD, char *, _QWORD))(**(_QWORD **)(a2 + 3920) + 464LL))(*(_QWORD *)(a2 + 3920), v12, 0); v110 = CCCircleWave::create_1(0, 5.0, 60.0, 0.30000001); *(_BYTE *)(v110 + 342) = (unsigned int)-(v9 == 31) >> 16; *(_WORD *)(v110 + 340) = -1; v111 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v110 + 184LL))(v110, v111); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a2 + 3920) + 464LL))( *(_QWORD *)(a2 + 3920), v110, 0); *(_QWORD *)(v110 + 352) = 0x400000001LL; v112 = "secretCoin_01_001.png"; if ( *(_DWORD *)(a1 + 920) == 31 ) v112 = "secretCoin_2_01_001.png"; v113 = cocos2d::CCSprite::createWithSpriteFrameName(v112); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 136LL))(a1); (*(void (__fastcall **)(__int64))(*(_QWORD *)v113 + 160LL))(v113); v114 = *(_QWORD *)(a1 + 216); if ( v114 ) { v115 = GameObject::getObjectZOrder(a1); (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v114 + 464LL))(v114, v113, v115); } v116 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); v117 = v113; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v113 + 184LL))(v113, v116); if ( v9 == 31 ) { v118 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 944LL))(a1); v117 = v113; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v113 + 960LL))(v113, v118); } v119 = sub_1007FE900(v117); v120 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1084227584)); v121 = sub_10088E820("%s_01_001.png", v166); v122 = cocos2d::CCString::getCString(v121); v123 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v120, v122); sub_1007FEBF0(v119, v123); v124 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1084227584)); v125 = sub_10088E820("%s_01_002.png", v178); v126 = cocos2d::CCString::getCString(v125); v127 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v124, v126); sub_1007FEBF0(v119, v127); v128 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1084227584)); v129 = sub_10088E820("%s_01_003.png", v179); v130 = cocos2d::CCString::getCString(v129); v131 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v128, v130); sub_1007FEBF0(v119, v131); v132 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(COERCE_DOUBLE(1084227584)); v133 = sub_10088E820("%s_01_004.png", v180); v134 = cocos2d::CCString::getCString(v133); v135 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v132, v134); sub_1007FEBF0(v119, v135); v136 = cocos2d::CCAnimation::createWithSpriteFrames(v119); v137 = cocos2d::CCAnimate::create(v136); v138 = cocos2d::CCRepeatForever::create(v137); cocos2d::CCNode::runAction(v113, v138); GameObject::playPickupAnimation(a1, v113, 0, 50.0, 60.0, 90.0, 180.0, 20.0, 0.75, 0.5, 0.25, 0.0, 0.0); return; } if ( ((*(_BYTE *)(a1 + 999) | v5) & 1) != 0 ) return; v105 = ObjectToolbox::sharedState(a3); __src = (void *)ObjectToolbox::intKeyToFrame(v105, *(unsigned int *)(a1 + 1028)); v106 = strlen((const char *)__src); if ( v106 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v107 = v106; if ( v106 >= 0x17 ) { v139 = 26; if ( (v106 | 7) != 0x17 ) v139 = (v106 | 7) + 1; v108 = (__int8 *)operator new(v139); v195 = v108; __dst.i64[0] = v139 + 1; __dst.i64[1] = v107; } else { __dst.i8[0] = 2 * v106; v108 = &__dst.i8[1]; if ( !v107 ) goto LABEL_42; } v140 = v108; memmove(v108, __src, v107); v108 = v140; LABEL_42: v108[v107] = 0; if ( (__dst.i8[0] & 1) != 0 ) { sub_10001AD30(&v181, v195, __dst.u64[1]); } else { __p = v195; v181 = __dst; } sub_10067ACE0(&v184, a1, &v181); if ( (v181.i8[0] & 1) != 0 ) operator delete(__p); if ( (__dst.i8[0] & 1) != 0 ) v141 = (__int8 *)v195; else v141 = &__dst.i8[1]; v142 = cocos2d::CCSprite::createWithSpriteFrameName(v141); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v142 + 912LL))(v142, v4); v143 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 1); if ( v143 ) { LODWORD(__src) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v143 + 136LL))(v143); v144 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 136LL))(a1); *(_QWORD *)&v145 = (unsigned int)__src; *(float *)&v145 = *(float *)&__src * v144; (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v142 + 128LL))(v142, v145); LODWORD(__src) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v143 + 152LL))(v143); v146 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 152LL))(a1); *(_QWORD *)&v147 = (unsigned int)__src; *(float *)&v147 = *(float *)&__src * v146; (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v142 + 144LL))(v142, v147); } ObjectZLayer = GameObject::getObjectZLayer(a1); v149 = *(_BYTE *)(a1 + 884); ParentMode = GameObject::getParentMode(a1); v151 = GameObject::parentForZLayer(a1, ObjectZLayer, v149, ParentMode); v152 = GameObject::getObjectZOrder(a1); (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v151 + 464LL))(v151, v142, v152); v153 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v142 + 184LL))(v142, v153); v154 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 944LL))(a1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v142 + 960LL))(v142, v154); if ( *(_QWORD *)(a1 + 888) ) { if ( (v184 & 1) != 0 ) v155 = (char *)v186; else v155 = &v185; v156 = cocos2d::CCSprite::createWithSpriteFrameName(v155); (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v142 + 464LL))( v142, v156, (*(unsigned __int8 *)(a1 + 1053) - 1) | 1u); LODWORD(__src) = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v142 + 328LL))(v142); v157 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v142 + 328LL))(v142); sub_100278250(&v196, *(float *)&__src * 0.5, 0.5 * *(float *)(v157 + 4)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v156 + 184LL))(v156, &v196); v158 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 888) + 944LL))(*(_QWORD *)(a1 + 888)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v156 + 960LL))(v156, v158); v159 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 888) + 896LL))(*(_QWORD *)(a1 + 888)); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v156 + 912LL))(v156, v159); v160 = cocos2d::CCDelayTime::create(0.44999999); v161 = cocos2d::CCFadeTo::create(0, 0.15000001); v165 = sub_10039EB60(v160, v161, 0, v162, v163, v164); cocos2d::CCNode::runAction(v156, v165); } GJBaseGameLayer::generatePickupAnimRandVal(a2, a1, &v196, &v187); GameObject::playPickupAnimation( a1, v142, 1, 20.0, 30.0, 65.0, 115.0, 10.0, 0.60000002, 0.44999999, 0.15000001, v196, v187); if ( (v184 & 1) != 0 ) operator delete(v186); if ( (__dst.i8[0] & 1) != 0 ) operator delete(v195); }
GD Web Decomp Icon

GD Web Decomp

Raw Source