// // GJTransformControl::updateButtons from 0x6ec05c to 0x6eca16 (2490 bytes) // // 17 xrefs: // > GJTransformControl::refreshControl @ 0x6eca96 // > GJTransformControl::refreshControl @ 0x6ecaa0 // > GJTransformControl::refreshControl @ 0x6ecaf8 // > GJTransformControl::refreshControl @ 0x6ecb02 // > GJTransformControl::moveAnchorTo @ 0x6ecc7e // > GJTransformControl::moveAnchorTo @ 0x6ecc88 // > GJTransformControl::moveAnchorTo @ 0x6eccd6 // > GJTransformControl::moveAnchorTo @ 0x6ecce0 // > GJTransformControl::ccTouchMoved @ 0x6ed9c2 // > GJTransformControl::loadValues @ 0x6eedc2 // > GJTransformControl::applyFreeRotation @ 0x6eeeca // > GJTransformControl::ccTouchEnded @ 0x6ef0a2 // > GJTransformControl::ccTouchEnded @ 0x6ef0b2 // > GJTransformControl::ccTouchEnded @ 0x6ef10a // > GJTransformControl::ccTouchEnded @ 0x6ef114 // > GJTransformControl::applyRotation @ 0x6ef18a // > EditorUI::transformObjectCall @ 0x70e50a // // 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:57:32 +0000 // int __fastcall GJTransformControl::updateButtons(GJTransformControl *this, int a2, int a3) { GameManager *v4; // r0 int v5; // r3 EditorUI *v6; // r0 int v7; // r0 float v8; // s18 float v9; // s17 float v10; // s20 float v11; // s19 int v12; // r0 const cocos2d::CCPoint *v13; // r0 GameManager *v14; // r0 int v15; // r0 GameManager *v16; // r0 int v17; // r0 cocos2d::CCArray *v18; // r0 unsigned int v19; // r9 float *v20; // r6 float v21; // s21 float v22; // s16 float v23; // s15 const cocos2d::CCPoint *v24; // r0 float v25; // s12 float v26; // s11 float v27; // s12 float v28; // s11 float v29; // s10 float v30; // s11 float v31; // s12 float v32; // s11 float v33; // s9 float v34; // s11 float v35; // s9 float v36; // s8 float v37; // s11 int v38; // r0 int v39; // r0 int *v40; // r0 int v41; // r3 EditorUI *v42; // r0 GameManager *v43; // r0 int v44; // r0 float v45; // s15 float v46; // s14 bool v47; // fzf bool v48; // fnf float v49; // s15 bool v50; // nf bool v51; // fnf float v52; // s14 float v53; // s15 bool v54; // fzf bool v55; // fnf float v56; // s15 float v57; // r7 float v58; // r6 float v59; // r8 float v60; // s18 float v61; // s17 float v62; // s16 int v63; // r10 void (__fastcall *v64)(int, _BYTE *); // r9 int v65; // r10 void (__fastcall *v66)(int, _BYTE *); // r9 int v67; // r10 void (__fastcall *v68)(int, _BYTE *); // r9 int v69; // r10 void (__fastcall *v70)(int, _BYTE *); // r9 int v71; // r10 void (__fastcall *v72)(int, _BYTE *); // r9 int v73; // r10 void (__fastcall *v74)(int, _BYTE *); // r9 int v75; // r8 void (__fastcall *v76)(int, _BYTE *); // r9 int v77; // r7 void (__fastcall *v78)(int, _BYTE *); // r8 int v79; // r6 void (__fastcall *v80)(int, _BYTE *); // r7 int v81; // r0 float v82; // r1 int v83; // r0 float v84; // s19 int v85; // r6 void (__fastcall *v86)(int, _BYTE *); // r7 int v87; // r0 float v88; // r2 int v89; // r6 void (__fastcall *v90)(int, _BYTE *); // r7 int v91; // r0 int v92; // r0 int v93; // r0 int v94; // r0 int v95; // r6 int (__fastcall *v96)(int, _BYTE *); // r9 int v97; // r0 GameManager *v98; // r0 int v99; // r0 GameManager *v103; // [sp+10h] [bp-84h] _BYTE v104[8]; // [sp+2Ch] [bp-68h] BYREF float v105; // [sp+34h] [bp-60h] BYREF float v106; // [sp+38h] [bp-5Ch] _BYTE v107[8]; // [sp+3Ch] [bp-58h] BYREF float v108; // [sp+44h] [bp-50h] BYREF float v109; // [sp+48h] [bp-4Ch] float v110; // [sp+4Ch] [bp-48h] BYREF float v111; // [sp+50h] [bp-44h] float v112; // [sp+54h] [bp-40h] BYREF float v113; // [sp+58h] [bp-3Ch] float v114; // [sp+5Ch] [bp-38h] BYREF float v115; // [sp+60h] [bp-34h] float v116; // [sp+64h] [bp-30h] BYREF float v117; // [sp+68h] [bp-2Ch] _BYTE v118[8]; // [sp+6Ch] [bp-28h] BYREF _BYTE v119[8]; // [sp+74h] [bp-20h] BYREF _BYTE v120[8]; // [sp+7Ch] [bp-18h] BYREF float v121; // [sp+84h] [bp-10h] float v122; // [sp+88h] [bp-Ch] v4 = *((GameManager **)this + 84); if ( v4 ) { v5 = *(_DWORD *)v4; if ( a3 ) { v6 = (EditorUI *)(*(int (**)(void))(v5 + 60))(); v4 = (GameManager *)EditorUI::transformObjectsReset(v6); } else { v4 = (GameManager *)(*(int (**)(void))(v5 + 24))(); } } v7 = GameManager::sharedState(v4); v8 = 10000000.0; v9 = -10000000.0; v10 = 10000000.0; v11 = -10000000.0; v103 = (GameManager *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*(_DWORD *)(v7 + 408) + 2436) + 84))(*(_DWORD *)(*(_DWORD *)(v7 + 408) + 2436)); v12 = GameManager::sharedState(v103); v13 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*(_DWORD *)(v12 + 408) + 2436) + 96))(*(_DWORD *)(*(_DWORD *)(v12 + 408) + 2436)); v14 = (GameManager *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, v13); v15 = GameManager::sharedState(v14); v16 = (GameManager *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(*(_DWORD *)(v15 + 408) + 2436) + 80))( *(_DWORD *)(*(_DWORD *)(v15 + 408) + 2436), 1065353216); v17 = GameManager::sharedState(v16); (*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(*(_DWORD *)(v17 + 408) + 2436) + 92))( *(_DWORD *)(*(_DWORD *)(v17 + 408) + 2436), &unk_D2DAF0); v18 = *((cocos2d::CCArray **)this + 81); if ( v18 && cocos2d::CCArray::count(v18) ) { v19 = 0; while ( v19 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 81)) ) { v20 = (float *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 81), v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v105, (const cocos2d::CCPoint *)(v20 + 89)); v21 = v20[162]; v22 = v20[163]; if ( (*(int (__fastcall **)(float *))(*(_DWORD *)v20 + 868))(v20) ) { v23 = v106; if ( v21 >= v22 ) v22 = v21; if ( v105 >= v106 ) v23 = v105; v21 = v22; v105 = v23; v106 = v23; } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v120, 0.0, 0.0, v21 + v105, v22 + v106); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, 0.0, 0.0); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v107, (const cocos2d::CCPoint *)v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, -(float)(v121 * 0.5), v122 * 0.5); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v108, (const cocos2d::CCPoint *)v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, v121 * 0.5, v122 * 0.5); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v110, (const cocos2d::CCPoint *)v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, -(float)(v121 * 0.5), -(float)(v122 * 0.5)); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v112, (const cocos2d::CCPoint *)v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, v121 * 0.5, -(float)(v122 * 0.5)); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v114, (const cocos2d::CCPoint *)v20); v24 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(float *))(*(_DWORD *)v20 + 96))(v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v24); cocos2d::CCPoint::operator-(v118, &v108, v107); cocos2d::CCPoint::operator+(v119, &v116, v118); cocos2d::CCPoint::operator=(&v108, v119); cocos2d::CCPoint::operator-(v118, &v110, v107); cocos2d::CCPoint::operator+(v119, &v116, v118); cocos2d::CCPoint::operator=(&v110, v119); cocos2d::CCPoint::operator-(v118, &v112, v107); cocos2d::CCPoint::operator+(v119, &v116, v118); cocos2d::CCPoint::operator=(&v112, v119); cocos2d::CCPoint::operator-(v118, &v114, v107); cocos2d::CCPoint::operator+(v119, &v116, v118); cocos2d::CCPoint::operator=(&v114, v119); if ( v108 < v110 ) v25 = v110; else v25 = v108; if ( v25 < v112 ) { v26 = v112; } else if ( v108 < v110 ) { v26 = v110; } else { v26 = v108; } v27 = v114; if ( v26 < v114 ) { v29 = v114; } else { if ( v108 < v110 ) v28 = v110; else v28 = v108; if ( v28 < v112 ) { v29 = v112; } else if ( v108 < v110 ) { v29 = v110; } else { v29 = v108; } } if ( v108 > v110 ) { if ( v110 > v112 ) { LABEL_38: v30 = v112; LABEL_39: if ( v30 <= v114 ) { if ( v108 > v110 ) v31 = v110; else v31 = v108; goto LABEL_43; } goto LABEL_48; } } else { if ( v108 > v112 ) goto LABEL_38; if ( v108 <= v110 ) { v30 = v108; goto LABEL_39; } } if ( v110 <= v114 ) { v31 = v110; LABEL_43: if ( v31 > v112 ) { v27 = v112; } else if ( v108 > v110 ) { v27 = v110; } else { v27 = v108; } } LABEL_48: if ( v109 < v111 ) v32 = v111; else v32 = v109; if ( v32 < v113 ) { v33 = v113; } else if ( v109 < v111 ) { v33 = v111; } else { v33 = v109; } v34 = v115; if ( v33 < v115 ) { v35 = v115; } else { if ( v109 < v111 ) v35 = v111; else v35 = v109; if ( v35 < v113 ) v35 = v113; } if ( v109 > v111 ) { if ( v111 > v113 ) { LABEL_68: v36 = v113; goto LABEL_69; } } else { if ( v109 > v113 ) goto LABEL_68; if ( v109 <= v111 ) { v36 = v109; LABEL_69: if ( v36 > v115 ) goto LABEL_78; if ( v109 > v111 ) v37 = v111; else v37 = v109; goto LABEL_73; } } if ( v111 > v115 ) goto LABEL_78; v37 = v111; LABEL_73: if ( v37 > v113 ) { v34 = v113; } else if ( v109 > v111 ) { v34 = v111; } else { v34 = v109; } LABEL_78: ++v19; if ( v11 < v29 ) v11 = v29; if ( v10 > v27 ) v10 = v27; if ( v9 < v35 ) v9 = v35; if ( v8 > v34 ) v8 = v34; } } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v11, v9); v38 = (*(int (__fastcall **)(GJTransformControl *))(*(_DWORD *)this + 96))(this); cocos2d::CCPoint::operator-(&v114, v120, v38); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v10, v8); v39 = (*(int (__fastcall **)(GJTransformControl *))(*(_DWORD *)this + 96))(this); cocos2d::CCPoint::operator-(&v116, v120, v39); v40 = *((int **)this + 84); if ( v40 ) { v41 = *v40; if ( a3 ) { v42 = (EditorUI *)(*(int (**)(void))(v41 + 60))(); EditorUI::transformObjectsActive(v42); LABEL_92: cocos2d::CCPoint::operator=((char *)this + 348, &v114); v43 = (GameManager *)cocos2d::CCPoint::operator=((char *)this + 356, &v116); goto LABEL_118; } (*(void (**)(void))(v41 + 28))(); } else if ( a3 ) { goto LABEL_92; } if ( a2 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v118, (const cocos2d::CCPoint *)&v114); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, (const cocos2d::CCPoint *)&v116); cocos2d::CCPoint::operator-(v120, &v114, v118); cocos2d::CCPoint::operator=((char *)this + 388, v120); cocos2d::CCPoint::operator-(v120, &v116, v119); cocos2d::CCPoint::operator=((char *)this + 396, v120); cocos2d::CCPoint::operator=((char *)this + 348, &v114); cocos2d::CCPoint::operator=((char *)this + 356, &v116); v44 = *((_DWORD *)this + 80); *((_DWORD *)this + 112) = 1065353216; *((_DWORD *)this + 113) = 1065353216; *((_DWORD *)this + 115) = 0; *((_DWORD *)this + 116) = 0; (*(void (__fastcall **)(int))(*(_DWORD *)v44 + 180))(v44); } else { v45 = *((float *)this + 97); v46 = *((float *)this + 99); v47 = v45 == 0.0; v48 = v45 < 0.0; v49 = *((float *)this + 112); v50 = v48; v51 = v46 < 0.0; if ( !v50 && !v47 ) v114 = *((float *)this + 112); if ( v46 < 0.0 ) v49 = -v49; v52 = *((float *)this + 100); if ( v51 ) v116 = v49; v53 = *((float *)this + 98); v54 = v53 == 0.0; v55 = v53 < 0.0; v56 = *((float *)this + 113); if ( !v55 && !v54 ) v115 = *((float *)this + 113); if ( v52 < 0.0 ) v117 = -v56; } if ( *((float *)this + 112) >= 0.0 ) { v57 = v116; v58 = v114; } else { v57 = v114; v58 = v116; } if ( *((float *)this + 113) >= 0.0 ) { v59 = v115; v60 = v117; } else { v59 = v117; v60 = v115; } v61 = (float)(v114 - v116) * 0.5; v62 = (float)(v115 - v117) * 0.5; v63 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 3); v64 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v63 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v58, v62 + v117); v64(v63, v120); v65 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 2); v66 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v65 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v57, v62 + v117); v66(v65, v120); v67 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 4); v68 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v67 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v61 + v116, v59); v68(v67, v120); v69 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 5); v70 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v69 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v61 + v116, v60); v70(v69, v120); v71 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 6); v72 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v71 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v57, v59); v72(v71, v120); v73 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 7); v74 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v73 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v58, v59); v74(v73, v120); v75 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 8); v76 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v75 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v57, v60); v76(v75, v120); v77 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 9); v78 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v77 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v58, v60); v78(v77, v120); v79 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 10); v80 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v79 + 92); if ( a2 ) { v82 = 0.0; } else { v81 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 10); v82 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v81 + 96))(v81); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v82, v115 + 30.0); v80(v79, v120); v83 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 11); v84 = v114 + 30.0; v85 = v83; v86 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v83 + 92); if ( a2 ) { v88 = 0.0; } else { v87 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 11); v88 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v87 + 96))(v87) + 4); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v84, v88); v86(v85, v120); v89 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 104) + 256))(*((_DWORD *)this + 104)); v90 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v89 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v61 + v116, v115 + 60.0); v90(v89, v120); v91 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 104) + 536))(*((_DWORD *)this + 104)); (*(void (__fastcall **)(int, unsigned int))(*(_DWORD *)v91 + 180))(v91, *((_DWORD *)this + 116) ^ 0x80000000); v92 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 105) + 536))(*((_DWORD *)this + 105)); (*(void (__fastcall **)(int, unsigned int))(*(_DWORD *)v92 + 180))(v92, *((_DWORD *)this + 116) ^ 0x80000000); v93 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 106) + 536))(*((_DWORD *)this + 106)); (*(void (__fastcall **)(int, unsigned int))(*(_DWORD *)v93 + 180))(v93, *((_DWORD *)this + 116) ^ 0x80000000); v94 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 107) + 536))(*((_DWORD *)this + 107)); (*(void (__fastcall **)(int, unsigned int))(*(_DWORD *)v94 + 180))(v94, *((_DWORD *)this + 116) ^ 0x80000000); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, v114 + 60.0, v60 + v62); cocos2d::CCPoint::operator=((char *)this + 408, v120); GJTransformControl::calculateRotationOffset(this); v95 = GJTransformControl::spriteByTag((cocos2d::CCArray **)this, 12); v96 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v95 + 92); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v119, *((const cocos2d::CCPoint **)this + 79)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v120, this); v43 = (GameManager *)v96(v95, v120); LABEL_118: v97 = GameManager::sharedState(v43); v98 = (GameManager *)(*(int (__fastcall **)(_DWORD, GameManager *))(**(_DWORD **)(*(_DWORD *)(v97 + 408) + 2436) + 80))( *(_DWORD *)(*(_DWORD *)(v97 + 408) + 2436), v103); v99 = GameManager::sharedState(v98); return (*(int (__fastcall **)(_DWORD, _BYTE *))(**(_DWORD **)(*(_DWORD *)(v99 + 408) + 2436) + 92))( *(_DWORD *)(*(_DWORD *)(v99 + 408) + 2436), v104); }
GD Web Decomp Icon

GD Web Decomp

Raw Source