// // CustomizeObjectLayer::determineStartValues from 0x9830ec to 0x983200 (276 bytes) // // 2 xrefs: // > CustomizeObjectLayer::init @ 0x9852dc // > @ 0xf7288 // // 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:57:52 +0000 // __int64 __fastcall CustomizeObjectLayer::determineStartValues(CustomizeObjectLayer *this) { GameObject *v2; // x0 bool v3; // zf GameObject *v4; // x0 char v5; // w2 __int64 RelativeSpriteColor; // x0 __int64 v7; // x1 __int64 result; // x0 unsigned int v9; // w20 GameObject *v10; // x0 GameObject *v11; // x21 cocos2d::CCArray *v12; // x0 __int64 v13; // x0 int v14; // w1 v2 = *((GameObject **)this + 86); if ( v2 ) { v3 = GameObject::getRelativeSpriteColor(v2, 1) == 0; v4 = *((GameObject **)this + 86); v5 = !v3; *((_BYTE *)this + 752) = v5; RelativeSpriteColor = GameObject::getRelativeSpriteColor(v4, 2); v7 = *((_QWORD *)this + 86); *((_BYTE *)this + 753) = RelativeSpriteColor != 0; result = *(unsigned __int8 *)(v7 + 1020); *((_BYTE *)this + 754) = result; } else { v9 = 0; *((_BYTE *)this + 754) = 1; LABEL_8: result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 87)); if ( v9 < (unsigned int)result ) { v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 87), v9); v11 = v10; if ( *((_BYTE *)this + 752) ) { LABEL_10: if ( *((_BYTE *)this + 753) ) goto LABEL_12; } else { while ( 1 ) { v13 = GameObject::getRelativeSpriteColor(v10, 1); v14 = *((unsigned __int8 *)this + 753); *((_BYTE *)this + 752) = v13 != 0; if ( !v14 ) break; LABEL_12: ++v9; if ( *((_BYTE *)v11 + 1020) ) goto LABEL_8; v12 = *((cocos2d::CCArray **)this + 87); *((_BYTE *)this + 754) = 0; result = cocos2d::CCArray::count(v12); if ( v9 >= (unsigned int)result ) return result; v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 87), v9); v11 = v10; if ( *((_BYTE *)this + 752) ) goto LABEL_10; } } *((_BYTE *)this + 753) = GameObject::getRelativeSpriteColor(v11, 2) != 0; goto LABEL_12; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source