{"type": "func", "start": 4304328256, "end": 4304328912, "name": "EditorSFXManager::createMyConfigFromLive", "pseudocode": "// \n// EditorSFXManager::createMyConfigFromLive from 0x1008ed640 to 0x1008ed8d0 (656 bytes)\n// \n// 1 xrefs:\n// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x1008f16e7\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:37:54 +0000\n// \n\n__int64 __fastcall EditorSFXManager::createMyConfigFromLive(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rdi\n  __int64 v4; // r15\n  void *v5; // rax\n  _QWORD *v6; // r15\n  __m128i inserted; // xmm0\n  __int64 *v8; // r12\n  int v9; // eax\n  std::string v11; // [rsp+0h] [rbp-B0h] BYREF\n  std::string v12; // [rsp+18h] [rbp-98h] BYREF\n  __m128i v13; // [rsp+30h] [rbp-80h] BYREF\n  std::string __str; // [rsp+40h] [rbp-70h] BYREF\n  std::string v15; // [rsp+60h] [rbp-50h] BYREF\n  std::string v16; // [rsp+78h] [rbp-38h] BYREF\n\n  v3 = *(_QWORD *)(a1 + 152);\n  if ( v3 )\n  {\n    if ( (unsigned int)sub_1007FEF90(v3) > 0x31 )\n      return 0;\n  }\n  else\n  {\n    v5 = sub_1007FE900();\n    *(_QWORD *)(a1 + 152) = v5;\n    cocos2d::CCObject::retain((__int64)v5);\n    if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 152)) > 0x31 )\n      return 0;\n  }\n  EditorSFXManager::serializeAll(&v11, (_QWORD *)a1);\n  cocos2d::ZipUtils::compressString(&v16, (unsigned __int8 *)&v11, 0, 0xFFFFFFFFLL, 0);\n  if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v11.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 )\n  {\n    if ( !v16.__r_.__value_.__l.__size_ )\n      goto LABEL_22;\n  }\n  else if ( !(*(_BYTE *)&v16.__r_.__value_.__l.0 >> 1) )\n  {\n    goto LABEL_22;\n  }\n  v6 = *(_QWORD **)(a1 + 16);\n  inserted.i64[0] = 0;\n  if ( v6 )\n  {\n    v13 = 0;\n    do\n    {\n      v8 = (__int64 *)v6[3];\n      if ( v8 && *v8 && (unsigned int)sub_1007FEF90(*v8) )\n      {\n        inserted = _mm_insert_epi32(_mm_cvtepi8_epi32(16843009), sub_1007FEF90(*v8), 1);\n        v13 = _mm_add_epi32(_mm_load_si128(&v13), inserted);\n      }\n      v6 = (_QWORD *)*v6;\n    }\n    while ( v6 );\n  }\n  else\n  {\n    v13 = 0;\n  }\n  v4 = GJEditorSoundConfig::create_1(*(double *)inserted.i64);\n  if ( v4 )\n  {\n    v9 = *(_DWORD *)(a1 + 160);\n    *(_DWORD *)(a1 + 160) = v9 + 1;\n    *(_DWORD *)(v4 + 320) = v9;\n    *(_BYTE *)(v4 + 324) = 1;\n    *(_DWORD *)(v4 + 316) = 0;\n    if ( (*(_BYTE *)a2 & 1) != 0 )\n    {\n      sub_10001AD30(&__str, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8));\n    }\n    else\n    {\n      __str.__r_.__value_.__r.__words[2] = *(_QWORD *)(a2 + 16);\n      *(__m128i *)&__str.__r_.__value_.__l.0 = _mm_loadu_si128((const __m128i *)a2);\n    }\n    std::string::operator=((std::string *)(v4 + 376), &__str);\n    if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(__str.__r_.__value_.__l.__data_);\n    *(_WORD *)&v12.__r_.__value_.__l.0 = 0;\n    std::string::operator=((std::string *)(v4 + 400), &v12);\n    if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v12.__r_.__value_.__l.__data_);\n    *(_QWORD *)(v4 + 328) = 1;\n    *(_DWORD *)(v4 + 336) = 0;\n    *(_QWORD *)(v4 + 352) = _mm_load_si128(&v13).u64[0];\n    if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 )\n    {\n      sub_10001AD30(&v15, v16.__r_.__value_.__l.__data_, v16.__r_.__value_.__l.__size_);\n    }\n    else\n    {\n      v15.__r_.__value_.__r.__words[2] = v16.__r_.__value_.__r.__words[2];\n      *(__m128i *)&v15.__r_.__value_.__l.0 = _mm_loadu_si128((const __m128i *)&v16);\n    }\n    std::string::operator=((std::string *)(v4 + 472), &v15);\n    if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v15.__r_.__value_.__l.__data_);\n    *(_BYTE *)(v4 + 496) = 1;\n    *(_QWORD *)(v4 + 364) = 0;\n    sub_1007FF110(*(_QWORD *)(a1 + 152), v4, 0);\n    goto LABEL_34;\n  }\nLABEL_22:\n  v4 = 0;\nLABEL_34:\n  if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v16.__r_.__value_.__l.__data_);\n  return v4;\n}", "assembly": "; \n; EditorSFXManager::createMyConfigFromLive from 0x1008ed640 to 0x1008ed8d0 (656 bytes)\n; \n; 1 xrefs:\n; > EditorSoundBrowserLayer::setTextPopupClosed @ 0x1008f16e7\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:37:54 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008ed640\nmov     rbp, rsp                                                       ; +0x1, 0x1008ed641\npush    r15                                                            ; +0x4, 0x1008ed644\npush    r14                                                            ; +0x6, 0x1008ed646\npush    r12                                                            ; +0x8, 0x1008ed648\npush    rbx                                                            ; +0xa, 0x1008ed64a\nsub     rsp, 90h                                                       ; +0xb, 0x1008ed64b\nmov     r14, rsi                                                       ; +0x12, 0x1008ed652\nmov     rbx, rdi                                                       ; +0x15, 0x1008ed655\nmov     rdi, [rdi+98h]                                                 ; +0x18, 0x1008ed658\ntest    rdi, rdi                                                       ; +0x1f, 0x1008ed65f\njz      short loc_1008ED676                                            ; +0x22, 0x1008ed662\ncall    sub_1007FEF90                                                  ; +0x24, 0x1008ed664\ncmp     eax, 31h ; '1'                                                 ; +0x29, 0x1008ed669\njbe     short loc_1008ED69B                                            ; +0x2c, 0x1008ed66c\nxor     r15d, r15d                                                     ; +0x2e, 0x1008ed66e\njmp     loc_1008ED8BD                                                  ; +0x31, 0x1008ed671\ncall    sub_1007FE900                                                  ; +0x36, 0x1008ed676\nmov     [rbx+98h], rax                                                 ; +0x3b, 0x1008ed67b\nmov     rdi, rax                                                       ; +0x42, 0x1008ed682\ncall    cocos2d__CCObject__retain                                      ; +0x45, 0x1008ed685\nmov     rdi, [rbx+98h]                                                 ; +0x4a, 0x1008ed68a\ncall    sub_1007FEF90                                                  ; +0x51, 0x1008ed691\ncmp     eax, 31h ; '1'                                                 ; +0x56, 0x1008ed696\nja      short loc_1008ED66E                                            ; +0x59, 0x1008ed699\nlea     r15, [rbp+var_B0]                                              ; +0x5b, 0x1008ed69b\nmov     rdi, r15; this                                                 ; +0x62, 0x1008ed6a2\nmov     rsi, rbx                                                       ; +0x65, 0x1008ed6a5\ncall    EditorSFXManager__serializeAll                                 ; +0x68, 0x1008ed6a8\nlea     rdi, [rbp+var_38]; this                                        ; +0x6d, 0x1008ed6ad\nmov     rsi, r15                                                       ; +0x71, 0x1008ed6b1\nxor     edx, edx                                                       ; +0x74, 0x1008ed6b4\nmov     ecx, 0FFFFFFFFh                                                ; +0x76, 0x1008ed6b6\nxor     r8d, r8d                                                       ; +0x7b, 0x1008ed6bb\ncall    cocos2d__ZipUtils__compressString                              ; +0x7e, 0x1008ed6be\ntest    byte ptr [rbp+var_B0.__r_.__value_], 1                         ; +0x83, 0x1008ed6c3\njz      short loc_1008ED6D8                                            ; +0x8a, 0x1008ed6ca\nmov     rdi, qword ptr [rbp+var_B0.__r_.__value_+10h]; __p             ; +0x8c, 0x1008ed6cc\ncall    __ZdlPv; operator delete(void *)                               ; +0x93, 0x1008ed6d3\nmovzx   eax, byte ptr [rbp+var_38.__r_.__value_]                       ; +0x98, 0x1008ed6d8\ntest    al, 1                                                          ; +0x9c, 0x1008ed6dc\njz      short loc_1008ED6EE                                            ; +0x9e, 0x1008ed6de\nmov     rax, qword ptr [rbp+var_38.__r_.__value_+8]                    ; +0xa0, 0x1008ed6e0\ntest    rax, rax                                                       ; +0xa4, 0x1008ed6e4\njnz     short loc_1008ED6F9                                            ; +0xa7, 0x1008ed6e7\njmp     loc_1008ED7B0                                                  ; +0xa9, 0x1008ed6e9\nshr     eax, 1                                                         ; +0xae, 0x1008ed6ee\ntest    rax, rax                                                       ; +0xb0, 0x1008ed6f0\njz      loc_1008ED7B0                                                  ; +0xb3, 0x1008ed6f3\nmov     r15, [rbx+10h]                                                 ; +0xb9, 0x1008ed6f9\npxor    xmm0, xmm0                                                     ; +0xbd, 0x1008ed6fd\ntest    r15, r15                                                       ; +0xc1, 0x1008ed701\njz      short loc_1008ED75B                                            ; +0xc4, 0x1008ed704\nmovdqa  [rbp+var_80], xmm0                                             ; +0xc6, 0x1008ed706\njmp     short loc_1008ED718                                            ; +0xcb, 0x1008ed70b\nalign 10h                                                              ; +0xcd, 0x1008ed70d\nmov     r15, [r15]                                                     ; +0xd0, 0x1008ed710\ntest    r15, r15                                                       ; +0xd3, 0x1008ed713\njz      short loc_1008ED760                                            ; +0xd6, 0x1008ed716\nmov     r12, [r15+18h]                                                 ; +0xd8, 0x1008ed718\ntest    r12, r12                                                       ; +0xdc, 0x1008ed71c\njz      short loc_1008ED710                                            ; +0xdf, 0x1008ed71f\nmov     rdi, [r12]                                                     ; +0xe1, 0x1008ed721\ntest    rdi, rdi                                                       ; +0xe5, 0x1008ed725\njz      short loc_1008ED710                                            ; +0xe8, 0x1008ed728\ncall    sub_1007FEF90                                                  ; +0xea, 0x1008ed72a\ntest    eax, eax                                                       ; +0xef, 0x1008ed72f\njz      short loc_1008ED710                                            ; +0xf1, 0x1008ed731\nmov     rdi, [r12]                                                     ; +0xf3, 0x1008ed733\ncall    sub_1007FEF90                                                  ; +0xf7, 0x1008ed737\npmovsxbd xmm0, cs:dword_100A03FD0                                      ; +0xfc, 0x1008ed73c\npinsrd  xmm0, eax, 1                                                   ; +0x105, 0x1008ed745\nmovdqa  xmm1, [rbp+var_80]                                             ; +0x10b, 0x1008ed74b\npaddd   xmm1, xmm0                                                     ; +0x110, 0x1008ed750\nmovdqa  [rbp+var_80], xmm1                                             ; +0x114, 0x1008ed754\njmp     short loc_1008ED710                                            ; +0x119, 0x1008ed759\nmovdqa  [rbp+var_80], xmm0                                             ; +0x11b, 0x1008ed75b\ncall    GJEditorSoundConfig__create_1                                  ; +0x120, 0x1008ed760\nmov     r15, rax                                                       ; +0x125, 0x1008ed765\ntest    rax, rax                                                       ; +0x128, 0x1008ed768\njz      short loc_1008ED7B0                                            ; +0x12b, 0x1008ed76b\nmov     eax, [rbx+0A0h]                                                ; +0x12d, 0x1008ed76d\nlea     ecx, [rax+1]                                                   ; +0x133, 0x1008ed773\nmov     [rbx+0A0h], ecx                                                ; +0x136, 0x1008ed776\nmov     [r15+140h], eax                                                ; +0x13c, 0x1008ed77c\nmov     byte ptr [r15+144h], 1                                         ; +0x143, 0x1008ed783\nmov     dword ptr [r15+13Ch], 0                                        ; +0x14b, 0x1008ed78b\ntest    byte ptr [r14], 1                                              ; +0x156, 0x1008ed796\njnz     short loc_1008ED7B8                                            ; +0x15a, 0x1008ed79a\nmov     rax, [r14+10h]                                                 ; +0x15c, 0x1008ed79c\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rax                   ; +0x160, 0x1008ed7a0\nmovdqu  xmm0, xmmword ptr [r14]                                        ; +0x164, 0x1008ed7a4\nmovdqa  xmmword ptr [rbp+__str.__r_.__value_], xmm0                    ; +0x169, 0x1008ed7a9\njmp     short loc_1008ED7C9                                            ; +0x16e, 0x1008ed7ae\nxor     r15d, r15d                                                     ; +0x170, 0x1008ed7b0\njmp     loc_1008ED8AE                                                  ; +0x173, 0x1008ed7b3\nmov     rdx, [r14+8]                                                   ; +0x178, 0x1008ed7b8\nmov     rsi, [r14+10h]                                                 ; +0x17c, 0x1008ed7bc\nlea     rdi, [rbp+__str]                                               ; +0x180, 0x1008ed7c0\ncall    sub_10001AD30                                                  ; +0x184, 0x1008ed7c4\nlea     rdi, [r15+178h]; this                                          ; +0x189, 0x1008ed7c9\nlea     rsi, [rbp+__str]; __str                                        ; +0x190, 0x1008ed7d0\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x194, 0x1008ed7d4\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x199, 0x1008ed7d9\njz      short loc_1008ED7E8                                            ; +0x19d, 0x1008ed7dd\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x19f, 0x1008ed7df\ncall    __ZdlPv; operator delete(void *)                               ; +0x1a3, 0x1008ed7e3\nmov     word ptr [rbp+var_98.__r_.__value_], 0                         ; +0x1a8, 0x1008ed7e8\nlea     rdi, [r15+190h]; this                                          ; +0x1b1, 0x1008ed7f1\nlea     rsi, [rbp+var_98]; __str                                       ; +0x1b8, 0x1008ed7f8\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x1bf, 0x1008ed7ff\ntest    byte ptr [rbp+var_98.__r_.__value_], 1                         ; +0x1c4, 0x1008ed804\njz      short loc_1008ED819                                            ; +0x1cb, 0x1008ed80b\nmov     rdi, qword ptr [rbp+var_98.__r_.__value_+10h]; __p             ; +0x1cd, 0x1008ed80d\ncall    __ZdlPv; operator delete(void *)                               ; +0x1d4, 0x1008ed814\nmov     qword ptr [r15+148h], 1                                        ; +0x1d9, 0x1008ed819\nmov     dword ptr [r15+150h], 0                                        ; +0x1e4, 0x1008ed824\nmovdqa  xmm0, [rbp+var_80]                                             ; +0x1ef, 0x1008ed82f\nmovq    qword ptr [r15+160h], xmm0                                     ; +0x1f4, 0x1008ed834\ntest    byte ptr [rbp+var_38.__r_.__value_], 1                         ; +0x1fd, 0x1008ed83d\njnz     short loc_1008ED857                                            ; +0x201, 0x1008ed841\nmov     rax, qword ptr [rbp+var_38.__r_.__value_+10h]                  ; +0x203, 0x1008ed843\nmov     qword ptr [rbp+var_50.__r_.__value_+10h], rax                  ; +0x207, 0x1008ed847\nmovdqu  xmm0, xmmword ptr [rbp+var_38.__r_.__value_]                   ; +0x20b, 0x1008ed84b\nmovdqa  xmmword ptr [rbp+var_50.__r_.__value_], xmm0                   ; +0x210, 0x1008ed850\njmp     short loc_1008ED868                                            ; +0x215, 0x1008ed855\nmov     rdx, qword ptr [rbp+var_38.__r_.__value_+8]                    ; +0x217, 0x1008ed857\nmov     rsi, qword ptr [rbp+var_38.__r_.__value_+10h]                  ; +0x21b, 0x1008ed85b\nlea     rdi, [rbp+var_50]                                              ; +0x21f, 0x1008ed85f\ncall    sub_10001AD30                                                  ; +0x223, 0x1008ed863\nmov     rdi, r15                                                       ; +0x228, 0x1008ed868\nadd     rdi, 1D8h; this                                                ; +0x22b, 0x1008ed86b\nlea     rsi, [rbp+var_50]; __str                                       ; +0x232, 0x1008ed872\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x236, 0x1008ed876\ntest    byte ptr [rbp+var_50.__r_.__value_], 1                         ; +0x23b, 0x1008ed87b\njz      short loc_1008ED88A                                            ; +0x23f, 0x1008ed87f\nmov     rdi, qword ptr [rbp+var_50.__r_.__value_+10h]; __p             ; +0x241, 0x1008ed881\ncall    __ZdlPv; operator delete(void *)                               ; +0x245, 0x1008ed885\nmov     byte ptr [r15+1F0h], 1                                         ; +0x24a, 0x1008ed88a\nmov     qword ptr [r15+16Ch], 0                                        ; +0x252, 0x1008ed892\nmov     rdi, [rbx+98h]                                                 ; +0x25d, 0x1008ed89d\nmov     rsi, r15                                                       ; +0x264, 0x1008ed8a4\nxor     edx, edx                                                       ; +0x267, 0x1008ed8a7\ncall    sub_1007FF110                                                  ; +0x269, 0x1008ed8a9\ntest    byte ptr [rbp+var_38.__r_.__value_], 1                         ; +0x26e, 0x1008ed8ae\njz      short loc_1008ED8BD                                            ; +0x272, 0x1008ed8b2\nmov     rdi, qword ptr [rbp+var_38.__r_.__value_+10h]; __p             ; +0x274, 0x1008ed8b4\ncall    __ZdlPv; operator delete(void *)                               ; +0x278, 0x1008ed8b8\nmov     rax, r15                                                       ; +0x27d, 0x1008ed8bd\nadd     rsp, 90h                                                       ; +0x280, 0x1008ed8c0\npop     rbx                                                            ; +0x287, 0x1008ed8c7\npop     r12                                                            ; +0x288, 0x1008ed8c8\npop     r14                                                            ; +0x28a, 0x1008ed8ca\npop     r15                                                            ; +0x28c, 0x1008ed8cc\npop     rbp                                                            ; +0x28e, 0x1008ed8ce\nretn                                                                   ; +0x28f, 0x1008ed8cf", "xrefs": ["EditorSoundBrowserLayer::setTextPopupClosed @ 0x1008f16e7"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}