// // sub_1004CB1A0 from 0x1004cb1a0 to 0x1004cb3a4 (516 bytes) // // 1 xrefs: // > EditorSoundBrowserLayer::setTextPopupClosed @ 0x1004cdfc8 // // 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 11:06:25 +0000 // __int64 __fastcall sub_1004CB1A0(__int64 a1, __int64 a2) { __int64 v4; // x0 _QWORD *v5; // x0 __int64 v6; // x20 std::string::size_type size; // x8 _QWORD *v8; // x20 int v9; // w23 int v10; // w22 __int64 *v11; // x24 __int64 v12; // x0 int v13; // w8 std::string __p; // [xsp+0h] [xbp-90h] BYREF std::string v16; // [xsp+18h] [xbp-78h] BYREF std::string __str; // [xsp+30h] [xbp-60h] BYREF std::string v18; // [xsp+48h] [xbp-48h] BYREF v4 = *(_QWORD *)(a1 + 152); if ( !v4 ) { v5 = sub_1002E736C(); *(_QWORD *)(a1 + 152) = v5; cocos2d::CCObject::retain((__int64)v5); v4 = *(_QWORD *)(a1 + 152); } if ( (unsigned int)sub_1002E757C(v4) > 0x31 ) return 0; sub_1004CAA78(a1, (__int64)&v18); size = HIBYTE(v18.__r_.__value_.__r.__words[2]); if ( (v18.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = v18.__r_.__value_.__l.__size_; if ( size ) { v8 = *(_QWORD **)(a1 + 16); if ( v8 ) { v9 = 0; v10 = 0; do { v11 = (__int64 *)v8[3]; if ( v11 && *v11 && (unsigned int)sub_1002E757C(*v11) ) { ++v9; v10 += sub_1002E757C(*v11); } v8 = (_QWORD *)*v8; } while ( v8 ); } else { v10 = 0; v9 = 0; } v12 = GJEditorSoundConfig::create_1(); v6 = v12; if ( v12 ) { v13 = *(_DWORD *)(a1 + 160); *(_DWORD *)(a1 + 160) = v13 + 1; *(_DWORD *)(v12 + 320) = v13; *(_BYTE *)(v12 + 324) = 1; *(_DWORD *)(v12 + 316) = 0; if ( *(char *)(a2 + 23) < 0 ) sub_1000097D0(&__str, *(void **)a2, *(_QWORD *)(a2 + 8)); else __str = *(std::string *)a2; std::string::operator=((std::string *)(v6 + 376), &__str); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); sub_100009900(&v16, ""); std::string::operator=((std::string *)(v6 + 400), &v16); if ( SHIBYTE(v16.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v16.__r_.__value_.__l.__data_); *(_QWORD *)(v6 + 328) = 1; *(_DWORD *)(v6 + 336) = 0; *(_DWORD *)(v6 + 352) = v9; *(_DWORD *)(v6 + 356) = v10; if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__p, v18.__r_.__value_.__l.__data_, v18.__r_.__value_.__l.__size_); else __p = v18; std::string::operator=((std::string *)(v6 + 472), &__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); *(_BYTE *)(v6 + 496) = 1; *(_QWORD *)(v6 + 364) = 0; sub_1002E7640(*(_QWORD *)(a1 + 152)); } } else { v6 = 0; } if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v18.__r_.__value_.__l.__data_); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source