// // sub_1001669E8 from 0x1001669e8 to 0x100166c5c (628 bytes) // // 1 xrefs: // > GameSettingsLayer::valueDidChange @ 0x1001669e4 // // 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 10:59:48 +0000 // void __fastcall sub_1001669E8(__int64 a1) { int v2; // w8 int v3; // w20 __int64 v4; // x21 const std::string::value_type *v5; // x1 char *v6; // x0 __int64 v7; // x20 int v8; // w8 int v9; // w8 std::string __p; // [xsp+0h] [xbp-90h] BYREF std::string __dst; // [xsp+20h] [xbp-70h] BYREF std::string v12; // [xsp+40h] [xbp-50h] BYREF std::string v13; // [xsp+58h] [xbp-38h] BYREF sub_100009900(&v13, ""); sub_100009900(&v12, "Scratch"); v2 = *(_DWORD *)(a1 + 1144); v3 = 10; v4 = 2; if ( v2 > 3 ) { if ( v2 > 5 ) { if ( v2 != 6 ) { if ( v2 != 7 ) goto LABEL_20; v5 = "..."; goto LABEL_14; } std::string::assign( &v13, "ShiMmer... sHim... bLiNg sNap... HA!"); std::string::assign(&v12, "Diamond Shopkeeper"); v3 = 42; } else { if ( v2 != 4 ) { std::string::assign(&v13, "Looks to me like you had enough shiny..."); v3 = 11; goto LABEL_20; } std::string::assign( &v13, "ShiM gNaw glEaM... bRinG ShiNy!"); std::string::assign(&v12, "Diamond Shopkeeper"); v3 = 41; } LABEL_19: v4 = 4; goto LABEL_20; } if ( v2 > 1 ) { if ( v2 != 2 ) { v5 = "See what I mean?..."; LABEL_14: std::string::assign(&v13, v5); v3 = 12; goto LABEL_20; } std::string::assign(&v13, "SpaRkle gnAsH Glorp sHiMmerRr crUnCHle bLinGz..."); std::string::assign(&v12, "Diamond Shopkeeper"); v3 = 40; goto LABEL_19; } if ( v2 ) { if ( v2 == 1 ) { std::string::assign(&v13, "I think the Diamond Shopkeeper has one, weird guy..."); v3 = 26; } } else { std::string::assign( &v13, "You need a Music Unlocker to play normal music in practice mode."); } LABEL_20: if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__dst, v12.__r_.__value_.__l.__data_, v12.__r_.__value_.__l.__size_); else __dst = v12; if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__p, v13.__r_.__value_.__l.__data_, v13.__r_.__value_.__l.__size_); else __p = v13; v6 = DialogObject::create((__int64)&__dst, (__int64)&__p, v3, 0, 0xFFFFFF, 1.0); v7 = DialogLayer::create((__int64)v6, v4); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); DialogLayer::addToMainScene(v7); DialogLayer::updateChatPlacement(v7, 0); sub_1000909DC(v7, 1); v8 = *(_DWORD *)(a1 + 1144); if ( v8 <= 6 ) v9 = v8 + 1; else v9 = 0; *(_DWORD *)(a1 + 1144) = v9; if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v12.__r_.__value_.__l.__data_); if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v13.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source