// // PlayerObject::setPosition from 0x7504d8 to 0x7510a0 (3016 bytes) // // 2 xrefs: // > @ 0x80338 // > @ 0x1433358 // // 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:52:55 +0000 // __int64 __fastcall PlayerObject::setPosition(PlayerObject *this, const cocos2d::CCPoint *a2) { const cocos2d::CCPoint *v4; // x0 float v5; // s0 cocos2d::CCNode *v6; // x27 float v7; // s1 cocos2d::CCNode *v8; // x0 long double v9; // q0 __int64 v10; // x26 void (__fastcall *v11)(__int64, __int64 *); // x27 cocos2d::CCNode *v12; // x0 __int64 v13; // x24 void (__fastcall *v14)(__int64, __int64); // x26 __int64 v15; // x0 __int64 v16; // x24 void (__fastcall *v17)(__int64, __int64); // x26 __int64 v18; // x0 __int64 v19; // x24 void (__fastcall *v20)(__int64, __int64); // x26 __int64 v21; // x0 __int64 v22; // x26 cocos2d::CCNode *v23; // x24 void (__fastcall *v24)(__int64, __int64 *); // x27 cocos2d::CCNode *v25; // x28 float *v26; // x0 __int64 v27; // x26 cocos2d::CCNode *v28; // x0 float (__fastcall *v29)(cocos2d::CCNode *); // x1 void (__fastcall *v30)(__int64, float); // x24 float v31; // s9 float v32; // s8 float v33; // s0 __int64 v34; // x24 void (__fastcall *v35)(__int64, __int64 *); // x26 cocos2d::CCNode *v36; // x27 cocos2d::CCNode *v37; // x28 const cocos2d::CCPoint *v38; // x0 __int64 v39; // x24 void (__fastcall *v40)(__int64, __int64 *); // x26 cocos2d::CCNode *v41; // x27 cocos2d::CCNode *v42; // x28 const cocos2d::CCPoint *v43; // x0 __int64 v44; // x24 void (__fastcall *v45)(__int64, __int64 *); // x26 cocos2d::CCNode *v46; // x27 cocos2d::CCNode *v47; // x28 const cocos2d::CCPoint *v48; // x0 int v49; // w0 int v50; // w26 int v51; // w26 float v52; // s8 int v53; // w0 float v54; // s8 float v55; // s11 float v56; // s9 double v57; // d12 double v58; // d10 double v59; // d8 float v60; // s0 int v61; // w0 double v62; // d0 double v63; // d10 float v64; // s10 double v65; // d9 int v66; // w24 double v67; // d8 int v68; // w0 float v69; // s0 float v70; // s1 long double v71; // q0 __int64 v72; // x24 void (__fastcall *v73)(__int64, __int64 *); // x26 int v74; // w0 float v75; // w1 __int64 v76; // x24 void (__fastcall *v77)(__int64, __int64 *); // x25 __int64 v78; // x26 long double v79; // q0 __int64 v80; // x25 void (__fastcall *v81)(__int64, __int64 *); // x26 cocos2d::CCNode *v82; // x27 cocos2d::CCNode *v83; // x28 float v84; // s8 float v85; // s0 float v86; // s1 float v87; // s0 __int64 v88; // x21 const cocos2d::CCPoint *v89; // x0 __int64 v90; // x20 PlayerObject *v91; // x0 __int64 (__fastcall *v92)(PlayerObject *, long double); // x1 void (__fastcall *v93)(__int64, __int64); // x19 __int64 v94; // x0 float v96; // s8 int v97; // w0 __int64 v98; // x22 void (__fastcall *v99)(__int64, __int64 *); // x24 __int64 v100; // x0 int v101; // w0 __int64 v102; // x26 void (__fastcall *v103)(__int64, __int64 *); // x24 float v104; // s8 float v105; // s0 float v106; // s8 int v107; // w0 __int64 v108; // x24 const cocos2d::CCPoint *v109; // x0 void (__fastcall *v110)(__int64, __int64 *); // x25 long double v111; // q0 __int64 v112; // x24 void (__fastcall *v113)(__int64, __int64 *); // x25 int v114; // w0 long double v115; // q0 cocos2d::CCNode *v116; // x26 __int64 v117; // x24 void (__fastcall *v118)(__int64, __int64 *); // x25 cocos2d::CCNode *v119; // x26 cocos2d::CCNode *v120; // x27 __int64 v121; // x21 void (__fastcall *v122)(__int64, __int64); // x22 __int64 v123; // x0 __int64 v124; // x0 __int64 v125; // [xsp+98h] [xbp+98h] float v126; // [xsp+A0h] [xbp+A0h] _BYTE v127[8]; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v128[8]; // [xsp+C0h] [xbp+C0h] BYREF float v129[2]; // [xsp+C8h] [xbp+C8h] BYREF int v130; // [xsp+D0h] [xbp+D0h] BYREF int v131; // [xsp+D4h] [xbp+D4h] float v132; // [xsp+D8h] [xbp+D8h] BYREF float v133; // [xsp+DCh] [xbp+DCh] _DWORD v134[2]; // [xsp+E0h] [xbp+E0h] BYREF _BYTE v135[8]; // [xsp+E8h] [xbp+E8h] BYREF __int64 v136; // [xsp+F0h] [xbp+F0h] BYREF unsigned __int64 v137; // [xsp+F8h] [xbp+F8h] BYREF __int64 v138; // [xsp+100h] [xbp+100h] BYREF *((_BYTE *)this + 864) = 1; *((_BYTE *)this + 865) = 1; GameObject::setPosition(this, a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127); v4 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 229) + 192LL))(*((_QWORD *)this + 229)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, v4); if ( *((_BYTE *)this + 2428) ) { v116 = *((cocos2d::CCNode **)this + 170); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, *((float *)this + 618) * -10.0, 0.0); v8 = v116; } else { if ( *((_BYTE *)this + 2832) && *((_BYTE *)this + 2417) ) { v7 = -18.0; v6 = *((cocos2d::CCNode **)this + 170); v5 = *((float *)this + 618) * -10.0; } else if ( *((_BYTE *)this + 2418) ) { v5 = 0.0; v6 = *((cocos2d::CCNode **)this + 170); v7 = -3.0; } else { v7 = -4.0; v6 = *((cocos2d::CCNode **)this + 170); v5 = *((float *)this + 618) * -12.0; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, v5, v7); cocos2d::CCPoint::operator+(&v137, v128); v8 = v6; } cocos2d::CCNode::convertToWorldSpace(&v138, v8, (const cocos2d::CCPoint *)&v137); *(__n128 *)&v9 = cocos2d::CCPoint::operator=(v127, &v138); if ( (*(__int64 (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 271) + 512LL))(*((_QWORD *)this + 271), v9) ) { v10 = *((_QWORD *)this + 271); v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL); v12 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 512LL))(v10); cocos2d::CCNode::convertToNodeSpace(&v138, v12, (const cocos2d::CCPoint *)v127); v11(v10, &v138); } v13 = *((_QWORD *)this + 272); v14 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL); v15 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 271) + 192LL))(*((_QWORD *)this + 271)); v14(v13, v15); v16 = *((_QWORD *)this + 274); v17 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 184LL); v18 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 271) + 192LL))(*((_QWORD *)this + 271)); v17(v16, v18); v19 = *((_QWORD *)this + 276); v20 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v19 + 184LL); v21 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 271) + 192LL))(*((_QWORD *)this + 271)); v20(v19, v21); v22 = *((_QWORD *)this + 375); v23 = *(cocos2d::CCNode **)(*((_QWORD *)this + 267) + 776LL); v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL); v25 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 512LL))(v22); v26 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v23 + 328LL))(v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v136, *v26 * 0.5, 2.5); cocos2d::CCNode::convertToWorldSpace((__int64 *)&v137, v23, (const cocos2d::CCPoint *)&v136); cocos2d::CCNode::convertToNodeSpace(&v138, v25, (const cocos2d::CCPoint *)&v137); v24(v22, &v138); v27 = *((_QWORD *)this + 375); v28 = v23; v29 = *(float (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v23 + 368LL); v30 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v27 + 360LL); v31 = v29(v28); v32 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 267) + 672LL) + 136LL))(*(_QWORD *)(*((_QWORD *)this + 267) + 672LL)); v33 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 267) + 672LL) + 368LL))(*(_QWORD *)(*((_QWORD *)this + 267) + 672LL)); v30(v27, v33 + (float)(v31 * v32)); if ( (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 275) + 512LL))(*((_QWORD *)this + 275)) ) { v34 = *((_QWORD *)this + 275); v35 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v34 + 184LL); v36 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v34 + 512LL))(v34); v37 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 375) + 512LL))(*((_QWORD *)this + 375)); v38 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 375) + 192LL))(*((_QWORD *)this + 375)); cocos2d::CCNode::convertToWorldSpace((__int64 *)&v137, v37, v38); cocos2d::CCNode::convertToNodeSpace(&v138, v36, (const cocos2d::CCPoint *)&v137); v35(v34, &v138); } if ( (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 277) + 512LL))(*((_QWORD *)this + 277)) ) { v39 = *((_QWORD *)this + 277); v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 184LL); v41 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v39 + 512LL))(v39); v42 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 235) + 512LL))(*((_QWORD *)this + 235)); v43 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 235) + 192LL))(*((_QWORD *)this + 235)); cocos2d::CCNode::convertToWorldSpace((__int64 *)&v137, v42, v43); cocos2d::CCNode::convertToNodeSpace(&v138, v41, (const cocos2d::CCPoint *)&v137); v40(v39, &v138); } if ( (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 278) + 512LL))(*((_QWORD *)this + 278)) ) { v44 = *((_QWORD *)this + 278); v45 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 184LL); v46 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 512LL))(v44); v47 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 236) + 512LL))(*((_QWORD *)this + 236)); v48 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 236) + 192LL))(*((_QWORD *)this + 236)); cocos2d::CCNode::convertToWorldSpace((__int64 *)&v137, v47, v48); cocos2d::CCNode::convertToNodeSpace(&v138, v46, (const cocos2d::CCPoint *)&v137); v45(v44, &v138); } v49 = PlayerObject::flipMod(this); if ( *((_BYTE *)this + 2428) ) v50 = 1; else v50 = v49; v51 = (v50 ^ -(*((unsigned __int8 *)this + 1976) ^ 1)) + (*((unsigned __int8 *)this + 1976) ^ 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, 0.0, 0.0); if ( *((_BYTE *)this + 2421) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, 0.0, -2.0); cocos2d::CCPoint::operator=(v129, &v138); } v52 = (float)(v129[0] - 10.0) * *((float *)this + 618); v53 = PlayerObject::reverseMod(this); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v130, v52 * (float)v53, (float)((float)(v129[1] - 13.0) * (float)v51) * *((float *)this + 618)); if ( *((_BYTE *)this + 2408) ) { v54 = *((float *)this + 618); v55 = v54 * *((float *)this + 192); v56 = v54 * 20.0; if ( *((_BYTE *)this + 1524) ) { v58 = *((float *)this + 422); v57 = 1.0; } else { v57 = -1.0; v58 = -*((float *)this + 422); } v59 = (float)(sqrtf((float)(v55 * v55) + (float)(v56 * v56)) * 0.5); v60 = atanf(v55 / v56); v61 = (unsigned __int8)(*((_BYTE *)this + 1524) ^ *((_BYTE *)this + 2426)); if ( *((_BYTE *)this + 2423) ) v61 ^= 1u; v62 = v60; if ( v61 ) v63 = v58 + v62 * v57; else v63 = v58 - v62 * v57; v64 = v63; v65 = cosf(v64) * v59; v66 = PlayerObject::reverseMod(this); v67 = sinf(v64) * v59; v68 = PlayerObject::reverseMod(this); v69 = v65 * (double)v66; v70 = v67 * (double)v68; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, v69, v70); if ( *((_BYTE *)this + 2427) ) v137 = __PAIR64__(v137, HIDWORD(v137)); v72 = *((_QWORD *)this + 270); v73 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v72 + 184LL); cocos2d::CCPoint::operator-(&v138, a2, &v137, v71); v73(v72, &v138); LABEL_30: if ( !*((_BYTE *)this + 2529) ) goto LABEL_31; goto LABEL_52; } if ( !*((_BYTE *)this + 2500) ) goto LABEL_30; if ( *((_BYTE *)this + 2427) ) { v101 = v131; v131 = v130; v130 = v101; } v102 = *((_QWORD *)this + 270); v103 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v102 + 184LL); cocos2d::CCPoint::operator+(&v138, a2); v103(v102, &v138); if ( *((_BYTE *)this + 2529) ) { LABEL_52: v104 = *((float *)this + 618); v105 = v104 * (float)(int)PlayerObject::reverseMod(this); v106 = *((float *)this + 618) * -15.0; v126 = v105; v107 = PlayerObject::flipMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, v126, v106 * (float)v107); if ( *((_BYTE *)this + 2427) ) v137 = __PAIR64__(v137, HIDWORD(v137)); v108 = *((_QWORD *)this + 273); v109 = a2; v110 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v108 + 184LL); cocos2d::CCPoint::operator+(&v138, v109); v110(v108, &v138); if ( *((_BYTE *)this + 2423) ) LODWORD(v111) = 1133576192; else LODWORD(v111) = 1121714176; (*(void (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 273) + 1008LL))(*((_QWORD *)this + 273), v111); v112 = *((_QWORD *)this + 273); v113 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v112 + 1048LL); v114 = PlayerObject::flipMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, -350.0, (float)(-300 * v114)); v113(v112, &v138); LODWORD(v115) = 0; if ( *((_BYTE *)this + 2427) ) LODWORD(v115) = 1119092736; (*(void (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 273) + 360LL))(*((_QWORD *)this + 273), v115); } LABEL_31: if ( *((_BYTE *)this + 2417) ) { if ( *((_BYTE *)this + 2832) ) { v117 = *((_QWORD *)this + 238); v118 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v117 + 184LL); v119 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v117 + 512LL))(v117); v120 = *((cocos2d::CCNode **)this + 170); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v136, *((float *)this + 618) * -10.0, *((float *)this + 618) * -12.0); cocos2d::CCNode::convertToWorldSpace((__int64 *)&v137, v120, (const cocos2d::CCPoint *)&v136); cocos2d::CCNode::convertToNodeSpace(&v138, v119, (const cocos2d::CCPoint *)&v137); v118(v117, &v138); goto LABEL_38; } v74 = PlayerObject::reverseMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, (float)(4 * v74), 0.0); if ( *((_BYTE *)this + 2427) ) { v75 = v132; v132 = v133; v133 = v75; } v76 = *((_QWORD *)this + 238); v77 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v76 + 184LL); v78 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 271) + 192LL))(*((_QWORD *)this + 271)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, v132, v133); cocos2d::CCPoint::operator+(&v138, v78); v77(v76, &v138); if ( *((_QWORD *)this + 239) ) { offsetForStreak(*((_DWORD *)this + 569), (cocos2d::CCPoint *)v134); v80 = *((_QWORD *)this + 239); v81 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v80 + 184LL); v82 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 238) + 512LL))(*((_QWORD *)this + 238)); v83 = *((cocos2d::CCNode **)this + 170); v125 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 229) + 192LL))(*((_QWORD *)this + 229)); v84 = *(float *)v134; v85 = (float)(int)PlayerObject::reverseMod(this); v86 = *(float *)&v134[1]; v87 = v84 * v85; LABEL_37: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v135, v87, v86); cocos2d::CCPoint::operator+(&v136, v125); cocos2d::CCNode::convertToWorldSpace((__int64 *)&v137, v83, (const cocos2d::CCPoint *)&v136); cocos2d::CCNode::convertToNodeSpace(&v138, v82, (const cocos2d::CCPoint *)&v137); v81(v80, &v138); } } else { if ( *((_BYTE *)this + 2418) ) { if ( !(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 238) + 512LL))(*((_QWORD *)this + 238)) ) goto LABEL_38; v80 = *((_QWORD *)this + 238); v81 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v80 + 184LL); v82 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v80 + 512LL))(v80); v83 = *((cocos2d::CCNode **)this + 170); v124 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 229) + 192LL))(*((_QWORD *)this + 229)); v87 = 0.0; v125 = v124; v86 = 0.0; goto LABEL_37; } if ( *((_BYTE *)this + 2428) ) { v121 = *((_QWORD *)this + 238); v122 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v121 + 184LL); v123 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 271) + 192LL))(*((_QWORD *)this + 271)); v122(v121, v123); } else { v96 = *((float *)this + 618) * -2.0; v97 = PlayerObject::reverseMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v137, v96 * (float)v97, 0.0); if ( *((_BYTE *)this + 2427) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, *((float *)&v137 + 1), *(float *)&v137); cocos2d::CCPoint::operator=(&v137, &v138); } v98 = *((_QWORD *)this + 238); v99 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v98 + 184LL); v100 = (*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::operator+(&v138, v100); v99(v98, &v138); } } LABEL_38: if ( *((_BYTE *)this + 2352) && *((_BYTE *)this + 2420) ) { v88 = *((_QWORD *)this + 240); v89 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, v89); *(__n128 *)&v79 = cocos2d::CCPoint::operator=(v88 + 424, &v138); } v90 = *((_QWORD *)this + 240); v91 = this; v92 = *(__int64 (__fastcall **)(PlayerObject *, long double))(*(_QWORD *)this + 192LL); v93 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v90 + 184LL); v94 = v92(v91, v79); v93(v90, v94); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source