// // PlayerObject::setPosition from 0x436578 to 0x436e5e (2278 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:48:19 +0000 // int __fastcall PlayerObject::setPosition(PlayerObject *this, const cocos2d::CCPoint *a2) { float *v4; // r7 const cocos2d::CCPoint *v5; // r0 const cocos2d::CCPoint *v6; // r9 float v7; // r2 float v8; // r1 int v9; // r9 void (__fastcall *v10)(int, _BYTE *); // r11 const cocos2d::CCPoint *v11; // r0 int v12; // r6 void (__fastcall *v13)(int, int); // r9 int v14; // r0 int v15; // r6 void (__fastcall *v16)(int, int); // r9 int v17; // r0 int v18; // r6 void (__fastcall *v19)(int, int); // r9 int v20; // r0 int v21; // r10 const cocos2d::CCPoint *v22; // r6 const cocos2d::CCPoint *v23; // r11 float *v24; // r0 int v25; // r10 void (__fastcall *v26)(int, _DWORD); // r11 float v27; // s22 float v28; // s20 float v29; // r0 int v30; // r6 void (__fastcall *v31)(int, _BYTE *); // r10 const cocos2d::CCPoint *v32; // r11 int v33; // r6 void (__fastcall *v34)(int, _BYTE *); // r10 const cocos2d::CCPoint *v35; // r11 const cocos2d::CCPoint *v36; // r9 int v37; // r6 void (__fastcall *v38)(int, _BYTE *); // r10 const cocos2d::CCPoint *v39; // r11 const cocos2d::CCPoint *v40; // r9 int v41; // r0 int v42; // r6 float v43; // s22 float v44; // s20 int v45; // r0 float v46; // s22 float v47; // s20 float v48; // s21 float v49; // r0 double v50; // d9 float v51; // s16 float v52; // r0 double v53; // d8 int v54; // r3 double v55; // d6 double v56; // d7 double v57; // d9 float v58; // s18 double v59; // d10 int v60; // s19 double v61; // d8 int v62; // r0 float v63; // s15 float v64; // r1 float v65; // s15 float v66; // r2 int v67; // r9 void (__fastcall *v68)(int, _BYTE *); // r10 int v69; // r2 int v70; // r9 void (__fastcall *v71)(int, _BYTE *); // r11 float v72; // s16 float v73; // s17 float v74; // s16 int v75; // r0 float v76; // r2 int v77; // r9 void (__fastcall *v78)(int, _BYTE *); // r10 int v79; // r1 int v80; // r8 void (__fastcall *v81)(int, _BYTE *); // r9 int v82; // r0 int v83; // r1 int v84; // r0 float v85; // r2 int v86; // r7 void (__fastcall *v87)(int, _BYTE *); // r8 int v88; // r9 int v89; // r8 int v90; // r0 const cocos2d::CCPoint *v91; // r11 int v92; // r0 float v93; // s16 int v94; // r10 int v95; // r0 int v96; // r0 int v97; // r8 void (__fastcall *v98)(int, _BYTE *); // r9 int v99; // r0 const cocos2d::CCPoint *v100; // r10 const cocos2d::CCPoint *v101; // r11 int v102; // r6 int v103; // r0 const cocos2d::CCPoint *v104; // r11 const cocos2d::CCPoint *v105; // r10 int v106; // r9 int v107; // r5 void (__fastcall *v108)(int, int); // r6 int v109; // r0 float v110; // s16 int v111; // r0 int v112; // r6 void (__fastcall *v113)(int, _BYTE *); // r8 int v114; // r0 int v115; // r6 const cocos2d::CCPoint *v116; // r0 int v117; // r5 int (__fastcall *v118)(int, int); // r6 int v119; // r0 cocos2d::CCPoint *v121; // [sp+4h] [bp-68h] cocos2d::CCPoint *v122; // [sp+4h] [bp-68h] cocos2d::CCPoint *v123; // [sp+4h] [bp-68h] cocos2d::CCPoint *v124; // [sp+Ch] [bp-60h] _BYTE v125[8]; // [sp+14h] [bp-58h] BYREF _BYTE v126[8]; // [sp+1Ch] [bp-50h] BYREF float v127[2]; // [sp+24h] [bp-48h] BYREF int v128; // [sp+2Ch] [bp-40h] BYREF int v129; // [sp+30h] [bp-3Ch] float v130; // [sp+34h] [bp-38h] BYREF float v131; // [sp+38h] [bp-34h] float v132[2]; // [sp+3Ch] [bp-30h] BYREF _BYTE v133[8]; // [sp+44h] [bp-28h] BYREF _BYTE v134[8]; // [sp+4Ch] [bp-20h] BYREF float v135; // [sp+54h] [bp-18h] BYREF float v136; // [sp+58h] [bp-14h] _BYTE v137[8]; // [sp+5Ch] [bp-10h] BYREF v4 = (float *)((char *)this + 2008); *((_BYTE *)this + 732) = 1; *((_BYTE *)this + 733) = 1; GameObject::setPosition(this, a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v125); v5 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 377) + 96))(*((_DWORD *)this + 377)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, v5); v6 = *((const cocos2d::CCPoint **)this + 293); if ( *((_BYTE *)this + 1964) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, *v4 * -10.0, 0.0); } else { if ( *((_BYTE *)this + 2320) && *((_BYTE *)this + 1953) ) { v7 = -18.0; v8 = *v4 * -10.0; } else if ( *((_BYTE *)this + 1954) ) { v7 = -3.0; v8 = 0.0; } else { v7 = -4.0; v8 = *v4 * -12.0; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v134, v8, v7); cocos2d::CCPoint::operator+(&v135, v126, v134); } cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v137, v6); cocos2d::CCPoint::operator=(v125, v137); if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 437) + 256))(*((_DWORD *)this + 437)) ) { v9 = *((_DWORD *)this + 437); v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92); v11 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v9 + 256))(v9); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v137, v11); v10(v9, v137); } v12 = *((_DWORD *)this + 438); v13 = *(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 92); v14 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 437) + 96))(*((_DWORD *)this + 437)); v13(v12, v14); v15 = *((_DWORD *)this + 440); v16 = *(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 92); v17 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 437) + 96))(*((_DWORD *)this + 437)); v16(v15, v17); v18 = *((_DWORD *)this + 442); v19 = *(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 92); v20 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 437) + 96))(*((_DWORD *)this + 437)); v19(v18, v20); v21 = *((_DWORD *)this + 608); v22 = *(const cocos2d::CCPoint **)(*((_DWORD *)this + 433) + 604); v121 = *(cocos2d::CCPoint **)(*(_DWORD *)v21 + 92); v23 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v21 + 256))(v21); v24 = (float *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v22 + 164))(v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v134, *v24 * 0.5, 2.5); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v135, v22); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v137, v23); ((void (__fastcall *)(int, _BYTE *))v121)(v21, v137); v25 = *((_DWORD *)this + 608); v26 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v25 + 180); v27 = COERCE_FLOAT((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v22 + 184))(v22)); v28 = v27 * COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*((_DWORD *)this + 433) + 544) + 68))(*(_DWORD *)(*((_DWORD *)this + 433) + 544))); v29 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*((_DWORD *)this + 433) + 544) + 184))(*(_DWORD *)(*((_DWORD *)this + 433) + 544))); v26(v25, v28 + v29); if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 441) + 256))(*((_DWORD *)this + 441)) ) { v30 = *((_DWORD *)this + 441); v31 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v30 + 92); v32 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v30 + 256))(v30); v122 = (cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 608) + 256))(*((_DWORD *)this + 608)); (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 608) + 96))(*((_DWORD *)this + 608)); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v135, v122); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v137, v32); v31(v30, v137); } if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 443) + 256))(*((_DWORD *)this + 443)) ) { v33 = *((_DWORD *)this + 443); v34 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v33 + 92); v35 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v33 + 256))(v33); v36 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 383) + 256))(*((_DWORD *)this + 383)); (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 383) + 96))(*((_DWORD *)this + 383)); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v135, v36); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v137, v35); v34(v33, v137); } if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 444) + 256))(*((_DWORD *)this + 444)) ) { v37 = *((_DWORD *)this + 444); v38 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v37 + 92); v39 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v37 + 256))(v37); v40 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 384) + 256))(*((_DWORD *)this + 384)); (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 384) + 96))(*((_DWORD *)this + 384)); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v135, v40); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v137, v39); v38(v37, v137); } v41 = PlayerObject::flipMod(this); if ( *((_BYTE *)this + 1964) ) v41 = 1; v42 = (v41 ^ -(*((unsigned __int8 *)this + 1608) ^ 1)) + (*((unsigned __int8 *)this + 1608) ^ 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, 0.0, 0.0); if ( *((_BYTE *)this + 1957) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, 0.0, -2.0); cocos2d::CCPoint::operator=(v127, v137); } v43 = *v4; v44 = v127[0] - 10.0; v45 = PlayerObject::reverseMod(this); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v128, (float)(v44 * v43) * (float)v45, (float)((float)(v127[1] - 13.0) * (float)v42) * *v4); if ( *((_BYTE *)this + 1944) ) { v46 = *v4 * *((float *)this + 163); v47 = *v4 * 20.0; v48 = 1.0; if ( !*((_BYTE *)this + 1300) ) v48 = -1.0; v49 = sqrtf((float)(v46 * v46) + (float)(v47 * v47)); v50 = *((float *)this + 357); if ( v48 == -1.0 ) v50 = -v50; v51 = v49 * 0.5; v52 = atanf(v46 / v47); v53 = v51; v54 = *((unsigned __int8 *)this + 1962) ^ *((unsigned __int8 *)this + 1300); v55 = v52; if ( *((_BYTE *)this + 1959) ) v54 ^= 1u; v56 = v48; if ( v54 ) v57 = v50 + v55 * v56; else v57 = v50 - v55 * v56; v58 = v57; v59 = v53 * cosf(v58); v60 = PlayerObject::reverseMod(this); v61 = v53 * sinf(v58); v62 = PlayerObject::reverseMod(this); v63 = v59 * (double)v60; v64 = v63; v65 = v61 * (double)v62; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v64, v65); if ( *((_BYTE *)this + 1963) ) { v66 = v136; v136 = v135; v135 = v66; } v67 = *((_DWORD *)this + 436); v68 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v67 + 92); cocos2d::CCPoint::operator-(v137, a2, &v135); v68(v67, v137); } else if ( *((_BYTE *)this + 2036) ) { if ( *((_BYTE *)this + 1963) ) { v69 = v129; v129 = v128; v128 = v69; } v70 = *((_DWORD *)this + 436); v71 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v70 + 92); cocos2d::CCPoint::operator+(v137, a2, &v128); v71(v70, v137); } if ( *((_BYTE *)this + 2065) ) { v72 = *v4; v73 = v72 * (float)PlayerObject::reverseMod(this); v74 = *v4 * -15.0; v75 = PlayerObject::flipMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v73, v74 * (float)v75); if ( *((_BYTE *)this + 1963) ) { v76 = v136; v136 = v135; v135 = v76; } v77 = *((_DWORD *)this + 439); v78 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v77 + 92); cocos2d::CCPoint::operator+(v137, a2, &v135); v78(v77, v137); if ( *((_BYTE *)this + 1959) ) v79 = 1133576192; else v79 = 1121714176; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 439) + 504))(*((_DWORD *)this + 439), v79); v80 = *((_DWORD *)this + 439); v81 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v80 + 524); v82 = PlayerObject::flipMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, -350.0, (float)(-300 * v82)); v81(v80, v137); if ( *((_BYTE *)this + 1963) ) v83 = 1119092736; else v83 = 0; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 439) + 180))(*((_DWORD *)this + 439), v83); } if ( *((_BYTE *)this + 1953) ) { if ( *((_BYTE *)this + 2320) ) { v97 = *((_DWORD *)this + 386); v98 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v97 + 92); v99 = (*(int (__fastcall **)(int))(*(_DWORD *)v97 + 256))(v97); v100 = *((const cocos2d::CCPoint **)this + 293); v101 = (const cocos2d::CCPoint *)v99; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v134, *v4 * -10.0, *v4 * -12.0); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v135, v100); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v137, v101); v98(v97, v137); } else { v84 = PlayerObject::reverseMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v130, (float)(4 * v84), 0.0); if ( *((_BYTE *)this + 1963) ) { v85 = v131; v131 = v130; v130 = v85; } v86 = *((_DWORD *)this + 386); v87 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v86 + 92); v88 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 437) + 96))(*((_DWORD *)this + 437)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v130, v131); cocos2d::CCPoint::operator+(v137, v88, &v135); v87(v86, v137); if ( *((_DWORD *)this + 387) ) { offsetForStreak((cocos2d::CCPoint *)v132, *((_DWORD *)this + 453)); v89 = *((_DWORD *)this + 387); v123 = *(cocos2d::CCPoint **)(*(_DWORD *)v89 + 92); v90 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 386) + 256))(*((_DWORD *)this + 386)); v124 = *((cocos2d::CCPoint **)this + 293); v91 = (const cocos2d::CCPoint *)v90; v92 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 377) + 96))(*((_DWORD *)this + 377)); v93 = v132[0]; v94 = v92; v95 = PlayerObject::reverseMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, v93 * (float)v95, v132[1]); cocos2d::CCPoint::operator+(v134, v94, v133); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v135, v124); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v137, v91); v96 = v89; LABEL_59: ((void (__fastcall *)(int, _BYTE *))v123)(v96, v137); } } } else if ( *((_BYTE *)this + 1954) ) { if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 386) + 256))(*((_DWORD *)this + 386)) ) { v102 = *((_DWORD *)this + 386); v123 = *(cocos2d::CCPoint **)(*(_DWORD *)v102 + 92); v103 = (*(int (__fastcall **)(int))(*(_DWORD *)v102 + 256))(v102); v104 = *((const cocos2d::CCPoint **)this + 293); v105 = (const cocos2d::CCPoint *)v103; v106 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 377) + 96))(*((_DWORD *)this + 377)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, 0.0, 0.0); cocos2d::CCPoint::operator+(v134, v106, v133); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v135, v104); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v137, v105); v96 = v102; goto LABEL_59; } } else if ( *((_BYTE *)this + 1964) ) { v107 = *((_DWORD *)this + 386); v108 = *(void (__fastcall **)(int, int))(*(_DWORD *)v107 + 92); v109 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 437) + 96))(*((_DWORD *)this + 437)); v108(v107, v109); } else { v110 = *((float *)this + 502) * -2.0; v111 = PlayerObject::reverseMod(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v135, v110 * (float)v111, 0.0); if ( *((_BYTE *)this + 1963) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, v136, v135); cocos2d::CCPoint::operator=(&v135, v137); } v112 = *((_DWORD *)this + 386); v113 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v112 + 92); v114 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); cocos2d::CCPoint::operator+(v137, v114, &v135); v113(v112, v137); } if ( *((_BYTE *)this + 1888) && *((_BYTE *)this + 1956) ) { v115 = *((_DWORD *)this + 388); v116 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, v116); cocos2d::CCPoint::operator=(v115 + 348, v137); } v117 = *((_DWORD *)this + 388); v118 = *(int (__fastcall **)(int, int))(*(_DWORD *)v117 + 92); v119 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); return v118(v117, v119); }
GD Web Decomp Icon

GD Web Decomp

Raw Source