// // SetGroupIDLayer::onArrow from 0x63b310 to 0x63b484 (372 bytes) // // 2 xrefs: // > SetGroupIDLayer::onArrowLeft @ 0x63b49c // > SetGroupIDLayer::onArrowRight @ 0x63b4b6 // // 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:55:24 +0000 // int *__fastcall SetGroupIDLayer::onArrow(int *this, int a2, int a3, int a4) { unsigned int v4; // r4 int v5; // r1 int v6; // r2 int v7; // r1 int v8; // r2 int v9; // r3 _BOOL4 v10; // r5 int v11; // r3 int v12; // r3 unsigned int v13; // r6 int v14; // r8 GameObject *v15; // r0 GameObject *v16; // r7 int v17; // r3 int v18; // r3 int v19; // r3 v4 = (unsigned int)this; switch ( a2 ) { case 1: *(this + 144) = (a3 + *(this + 144)) & ~((a3 + *(this + 144)) >> 31); this = (int *)SetGroupIDLayer::updateGroupIDLabel((SetGroupIDLayer *)this); break; case 3: *(this + 151) = (a3 + *(this + 151)) & ~((a3 + *(this + 151)) >> 31); SetGroupIDLayer::updateEditorOrder((SetGroupIDLayer *)this); this = (int *)SetGroupIDLayer::updateEditorOrderLabel((SetGroupIDLayer *)v4, v5, v6, a4); break; case 4: *(this + 142) = (a3 + *(this + 142)) & ~((a3 + *(this + 142)) >> 31); SetGroupIDLayer::updateOrderChannel((SetGroupIDLayer *)this); this = (int *)SetGroupIDLayer::updateOrderChannelLabel((SetGroupIDLayer *)v4, v7, v8, a4); break; case 5: *(this + 145) = (a3 + *(this + 145)) & ~((a3 + *(this + 145)) >> 31); SetGroupIDLayer::updateEditorLabel((SetGroupIDLayer *)this); this = (int *)SetGroupIDLayer::updateEditorLayerID(v4); break; case 6: *(this + 146) = (a3 + *(this + 146)) & ~((a3 + *(this + 146)) >> 31); SetGroupIDLayer::updateEditorLabel2((SetGroupIDLayer *)this); this = (int *)SetGroupIDLayer::updateEditorLayerID2(v4); break; case 7: v9 = *(this + 147); if ( v9 == -1000 ) { v10 = a3 == 1; v11 = *(this + 148); if ( a3 == 1 ) v12 = v11 + 1; else v12 = v11 - 1; *(this + 148) = v12; this = (int *)SetGroupIDLayer::updateZOrderLabel((SetGroupIDLayer *)this); if ( *(_DWORD *)(v4 + 528) ) { v13 = 0; if ( v10 ) v14 = 1; else v14 = -1; while ( 1 ) { this = (int *)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v4 + 528)); if ( v13 >= (unsigned int)this ) break; v15 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v4 + 528), v13); v16 = v15; if ( *(_BYTE *)(v4 + 596) ) *((_DWORD *)v15 + 246) = GameObject::getObjectZOrder(v15); v17 = v14 + *((_DWORD *)v16 + 246); if ( !v17 ) { if ( v10 ) v17 = 1; else v17 = -1; } *((_DWORD *)v16 + 246) = v17; ++v13; *((_BYTE *)v16 + 1004) = 1; } } *(_BYTE *)(v4 + 596) = 0; } else { if ( a3 == 1 ) { v18 = v9 + 1; if ( !v18 ) v18 = 1; } else { v18 = v9 - 1; if ( !v18 ) v18 = -1; } *(this + 147) = v18; v19 = -100; if ( *(this + 147) > -100 ) v19 = *(this + 147); if ( v19 >= 100 ) v19 = 100; *(this + 147) = v19; SetGroupIDLayer::updateZOrderLabel((SetGroupIDLayer *)this); this = SetGroupIDLayer::updateZOrder((_DWORD *)v4); } break; default: return this; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source