// // EditorUI::editorLayerForArray from 0x10002d9a0 to 0x10002da69 (201 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall EditorUI::editorLayerForArray(EditorUI *a1, cocos2d::CCArray *a2, bool a3) { int v3; // r14d unsigned int v5; // r15d int v6; // eax unsigned int v7; // r15d int v8; // eax v3 = 0; if ( a2 ) { if ( !(unsigned int)sub_100720070(a2) ) return 0; if ( a3 ) { v5 = 0; v3 = -1; while ( 1 ) { v6 = *(__int16 *)(sub_1007200C0(a2, v5) + 1204); if ( v3 == -1 ) { v3 = v6; } else if ( v3 != v6 ) { return 0; } if ( ++v5 >= (unsigned int)sub_100720070(a2) ) goto LABEL_16; } } v7 = 0; v3 = -1; do { v8 = *(__int16 *)(sub_1007200C0(a2, v7) + 1202); if ( v3 == -1 ) { v3 = v8; } else if ( v3 != v8 ) { return 0; } ++v7; } while ( v7 < (unsigned int)sub_100720070(a2) ); LABEL_16: if ( v3 == -1 ) return 0; } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source