// // SetGroupIDLayer::onArrow from 0xabc2ec to 0xabc55c (624 bytes) // // 3 xrefs: // > SetGroupIDLayer::onArrowLeft @ 0xabc590 // > SetGroupIDLayer::onArrowRight @ 0xabc5c8 // > @ 0xdedd8 // // 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 13:01:02 +0000 // SetGroupIDLayer *__fastcall SetGroupIDLayer::onArrow(SetGroupIDLayer *this, int a2, int a3) { __int64 v3; // x19 int v4; // w0 int v5; // w0 int v6; // w2 int v7; // w2 int v8; // w2 int v9; // w2 int v10; // w2 int v11; // w1 _BOOL4 v12; // w24 int v13; // w22 unsigned int i; // w20 int ObjectZOrder; // w0 int v16; // w0 GameObject *v17; // x0 GameObject *v18; // x21 v3 = (__int64)this; switch ( a2 ) { case 1: v6 = *((_DWORD *)this + 191) + a3; if ( v6 < 0 ) v6 = 0; *((_DWORD *)this + 191) = v6; return (SetGroupIDLayer *)SetGroupIDLayer::updateGroupIDLabel(this); case 3: v7 = *((_DWORD *)this + 198) + a3; if ( v7 < 0 ) v7 = 0; *((_DWORD *)this + 198) = v7; SetGroupIDLayer::updateEditorOrder(this); return (SetGroupIDLayer *)SetGroupIDLayer::updateEditorOrderLabel((SetGroupIDLayer *)v3); case 4: v8 = *((_DWORD *)this + 189) + a3; if ( v8 < 0 ) v8 = 0; *((_DWORD *)this + 189) = v8; SetGroupIDLayer::updateOrderChannel(this); return (SetGroupIDLayer *)SetGroupIDLayer::updateOrderChannelLabel((SetGroupIDLayer *)v3); case 5: v9 = *((_DWORD *)this + 192) + a3; if ( v9 < 0 ) v9 = 0; *((_DWORD *)this + 192) = v9; SetGroupIDLayer::updateEditorLabel(this); return (SetGroupIDLayer *)SetGroupIDLayer::updateEditorLayerID((SetGroupIDLayer *)v3); case 6: v10 = *((_DWORD *)this + 193) + a3; if ( v10 < 0 ) v10 = 0; *((_DWORD *)this + 193) = v10; SetGroupIDLayer::updateEditorLabel2(this); return (SetGroupIDLayer *)SetGroupIDLayer::updateEditorLayerID2((SetGroupIDLayer *)v3); case 7: v4 = *((_DWORD *)this + 194); if ( v4 != -1000 ) { if ( a3 == 1 ) { v5 = v4 + 1; if ( !v5 ) goto LABEL_5; } else { v5 = v4 - 1; a3 = -1; if ( !v5 ) { LABEL_5: *(_DWORD *)(v3 + 776) = a3; SetGroupIDLayer::updateZOrderLabel((SetGroupIDLayer *)v3); return (SetGroupIDLayer *)SetGroupIDLayer::updateZOrder((SetGroupIDLayer *)v3); } } if ( v5 < -100 ) a3 = -100; else a3 = v5; if ( a3 > 100 ) a3 = 100; goto LABEL_5; } v11 = *(_DWORD *)(v3 + 780); v12 = a3 == 1; if ( a3 == 1 ) { v13 = 1; *(_DWORD *)(v3 + 780) = v11 + 1; SetGroupIDLayer::updateZOrderLabel((SetGroupIDLayer *)v3); this = *(SetGroupIDLayer **)(v3 + 680); if ( !this ) goto LABEL_39; } else { *(_DWORD *)(v3 + 780) = v11 - 1; SetGroupIDLayer::updateZOrderLabel((SetGroupIDLayer *)v3); this = *(SetGroupIDLayer **)(v3 + 680); if ( !this ) goto LABEL_39; v13 = -1; } for ( i = 0; ; ++i ) { this = (SetGroupIDLayer *)cocos2d::CCArray::count(this); if ( i >= (unsigned int)this ) break; v17 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v3 + 680), i); v18 = v17; if ( *(_BYTE *)(v3 + 784) ) ObjectZOrder = GameObject::getObjectZOrder(v17); else ObjectZOrder = *((_DWORD *)v17 + 282); v16 = v13 + ObjectZOrder; if ( !v16 ) { if ( v12 ) v16 = 1; else v16 = -1; } *((_DWORD *)v18 + 282) = v16; *((_BYTE *)v18 + 1148) = 1; this = *(SetGroupIDLayer **)(v3 + 680); } LABEL_39: *(_BYTE *)(v3 + 784) = 0; return this; default: return this; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source