{"type": "func", "start": 4297672784, "end": 4297673836, "name": "EditorPauseLayer::saveLevel", "pseudocode": "// \n// EditorPauseLayer::saveLevel from 0x100294850 to 0x100294c6c (1052 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::onSaveAndPlay @ 0x100293829\n// > EditorPauseLayer::onSaveAndExit @ 0x100293898\n// > EditorPauseLayer::FLAlert_Clicked @ 0x100294f00\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorPauseLayer::saveLevel(EditorPauseLayer *a1)\n{\n  __int128 v1; // xmm0\n  LevelEditorLayer *m_editorLayer; // rsi\n  GJGameLevel *m_level; // rbx\n  LevelEditorLayer *v5; // rax\n  std::string *p_m_levelString; // rax\n  char v7; // r12\n  char *v8; // rdi\n  size_t v9; // rcx\n  size_t size; // rdx\n  std::string::pointer data; // rsi\n  bool v12; // zf\n  char v13; // r13\n  LevelEditorLayer *v14; // rdi\n  DrawGridLayer *m_drawGridLayer; // r15\n  LevelEditorLayer *v16; // rax\n  int m_timestamp; // ecx\n  int v18; // r15d\n  float v19; // xmm0_4\n  LevelEditorLayer *v20; // rsi\n  __m128 v21; // xmm0\n  double v22; // xmm0_8\n  std::string *p_m_sfxIDs; // r14\n  unsigned int sizex2; // eax\n  LocalLevelManager *v25; // rax\n  std::string __str; // [rsp+18h] [rbp-B8h] BYREF\n  std::string v27; // [rsp+30h] [rbp-A0h] BYREF\n  std::string v28; // [rsp+48h] [rbp-88h] BYREF\n  void *__p; // [rsp+60h] [rbp-70h]\n  std::string v30; // [rsp+68h] [rbp-68h] BYREF\n  size_t __n[2]; // [rsp+80h] [rbp-50h] BYREF\n  char *longStorage; // [rsp+90h] [rbp-40h]\n  bool v33; // [rsp+A7h] [rbp-29h] BYREF\n\n  m_editorLayer = a1->m_editorLayer;\n  m_level = m_editorLayer->m_level;\n  LevelEditorLayer::getLevelString(&v30, (__int64)m_editorLayer);\n  v5 = a1->m_editorLayer;\n  if ( (v5->m_levelString.m_data.m_short.sizex2 & 1) != 0 )\n  {\n    sub_100006B70(\n      __n,\n      v5->m_levelString.m_data.m_long.longStorage,\n      v5->m_levelString.m_data.m_long.size,\n      *(double *)&v1);\n  }\n  else\n  {\n    p_m_levelString = &v5->m_levelString;\n    longStorage = p_m_levelString->m_data.m_long.longStorage;\n    v1 = *(_OWORD *)&p_m_levelString->m_data.m_short.sizex2;\n    *(_OWORD *)__n = *(_OWORD *)&p_m_levelString->m_data.m_short.sizex2;\n  }\n  v7 = __n[0];\n  v8 = longStorage;\n  __p = longStorage;\n  if ( (__n[0] & 1) != 0 )\n  {\n    v9 = __n[1];\n  }\n  else\n  {\n    v9 = LOBYTE(__n[0]) >> 1;\n    v8 = (char *)__n + 1;\n  }\n  size = *(_BYTE *)&v30.__r_.__value_.__l.0 >> 1;\n  if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 )\n    size = v30.__r_.__value_.__l.__size_;\n  data = v30.__r_.__value_.__s.__data_;\n  if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 )\n    data = v30.__r_.__value_.__l.__data_;\n  v12 = size == v9;\n  if ( size >= v9 )\n    size = v9;\n  v13 = v12 & (memcmp(v8, data, size) == 0);\n  if ( (v7 & 1) != 0 )\n    operator delete(__p);\n  if ( !v13 )\n    GJGameLevel::levelWasAltered(m_level);\n  cocos2d::ZipUtils::compressString(&__str, (unsigned __int8 *)&v30, 0, 11, *(double *)&v1);\n  std::string::operator=((std::string *)&m_level->m_levelString, &__str);\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__str.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 )\n  {\n    *v30.__r_.__value_.__l.__data_ = 0;\n    v30.__r_.__value_.__l.__size_ = 0;\n  }\n  else\n  {\n    *(_WORD *)&v30.__r_.__value_.__l.0 = 0;\n  }\n  v14 = a1->m_editorLayer;\n  m_level->m_audioTrack = v14->m_level->m_audioTrack;\n  m_level->m_twoPlayerMode = v14->m_levelSettings->m_twoPlayerMode;\n  *(float *)&v1 = LevelEditorLayer::getLastObjectX(v14) + 340.0;\n  m_drawGridLayer = a1->m_editorLayer->m_drawGridLayer;\n  sub_10028CBE0((float *)__n, *(float *)&v1, 0.0);\n  *(float *)&v1 = DrawGridLayer::timeForPos(m_drawGridLayer, (cocos2d::CCPoint)v1, (int)__n, 0, 0, 0, 0, 0);\n  v16 = a1->m_editorLayer;\n  m_timestamp = v16->m_level->GJBaseGameLayer::m_timestamp;\n  if ( m_timestamp > 0 )\n    LODWORD(v1) = fmaxf((float)m_timestamp / 240.0, *(float *)&v1);\n  m_level->m_levelLength = GJGameLevel::getLengthKey((int)*(float *)&v1, v16->m_levelSettings->m_platformerMode);\n  v18 = a1->m_editorLayer->m_objectCount.random - a1->m_editorLayer->m_objectCount.seed;\n  m_level->m_objectCount.value = v18;\n  v19 = (float)((float)rand() * 4.6566129e-10) * 1000.0;\n  m_level->m_objectCount.seed = (int)v19;\n  m_level->m_objectCount.random = v18 + (int)v19;\n  v20 = a1->m_editorLayer;\n  m_level->m_coins = v20->m_coinCount.random - v20->m_coinCount.seed;\n  m_level->m_lowDetailMode = v20->m_hasHighDetail;\n  if ( v18 > 40000 )\n  {\n    if ( (unsigned int)v18 > 0x13880 )\n      goto LABEL_28;\n  }\n  else\n  {\n    m_level->m_highObjectsEnabled = 0;\n  }\n  m_level->m_unlimitedObjectsEnabled = 0;\nLABEL_28:\n  v21 = (__m128)*(unsigned __int64 *)&v20->m_sessionTime;\n  v21.f32[0] = *(double *)v21.i64;\n  *(_QWORD *)&v22 = _mm_round_ss(v21, v21, 9).u64[0];\n  m_level->m_workingTime += (int)*(float *)&v22;\n  LevelEditorLayer::getLockedLayers((size_t *)&v27, (__int64)v20, v22);\n  std::string::operator=((std::string *)&m_level->m_lockedEditorLayers, &v27);\n  if ( (*(_BYTE *)&v27.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v27.__r_.__value_.__l.__data_);\n  LevelEditorLayer::getSavedEditorPositions((size_t *)&v28, (__int64)a1->m_editorLayer, v22);\n  std::string::operator=((std::string *)&m_level->m_savedCameraPositions, &v28);\n  if ( (*(_BYTE *)&v28.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v28.__r_.__value_.__l.__data_);\n  sub_10028CC60(__n, (double *)&a1->m_editorLayer->m_previewPosition);\n  sub_10028CC90(&m_level->m_previewLock, (double *)__n);\n  v33 = 0;\n  LevelEditorLayer::getSongIDs((__int64)__n, (__int64)a1->m_editorLayer, &v33);\n  if ( (m_level->m_songIDs.m_data.m_short.sizex2 & 1) != 0 )\n    operator delete(m_level->m_songIDs.m_data.m_long.longStorage);\n  m_level->m_songIDs.m_data.m_long.longStorage = longStorage;\n  *(_OWORD *)&m_level->m_songIDs.m_data.m_short.sizex2 = *(_OWORD *)__n;\n  LevelEditorLayer::getSFXIDs(__n, (__int64)a1->m_editorLayer);\n  p_m_sfxIDs = &m_level->m_sfxIDs;\n  if ( (m_level->m_sfxIDs.m_data.m_short.sizex2 & 1) != 0 )\n    operator delete(m_level->m_sfxIDs.m_data.m_long.longStorage);\n  m_level->m_sfxIDs.m_data.m_long.longStorage = longStorage;\n  *(_OWORD *)&p_m_sfxIDs->m_data.m_short.sizex2 = *(_OWORD *)__n;\n  sizex2 = p_m_sfxIDs->m_data.m_short.sizex2;\n  if ( (sizex2 & 1) != 0 )\n  {\n    if ( m_level->m_sfxIDs.m_data.m_long.size )\n      goto LABEL_42;\n  }\n  else if ( sizex2 >> 1 )\n  {\n    goto LABEL_42;\n  }\n  if ( !v33 )\n    std::string::assign((std::string *)&m_level->m_songIDs, \"\");\nLABEL_42:\n  v25 = LocalLevelManager::sharedState();\n  GManager::save(v25);\n  if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v30.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; EditorPauseLayer::saveLevel from 0x100294850 to 0x100294c6c (1052 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::onSaveAndPlay @ 0x100293829\n; > EditorPauseLayer::onSaveAndExit @ 0x100293898\n; > EditorPauseLayer::FLAlert_Clicked @ 0x100294f00\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100294850\nmov     rbp, rsp                                                       ; +0x1, 0x100294851\npush    r15                                                            ; +0x4, 0x100294854\npush    r14                                                            ; +0x6, 0x100294856\npush    r13                                                            ; +0x8, 0x100294858\npush    r12                                                            ; +0xa, 0x10029485a\npush    rbx                                                            ; +0xc, 0x10029485c\nsub     rsp, 0A8h                                                      ; +0xd, 0x10029485d\nmov     r14, rdi                                                       ; +0x14, 0x100294864\nmov     rsi, [rdi+248h]                                                ; +0x17, 0x100294867\nmov     rbx, [rsi+790h]                                                ; +0x1e, 0x10029486e\nlea     rdi, [rbp+var_68]; this                                        ; +0x25, 0x100294875\ncall    LevelEditorLayer__getLevelString                               ; +0x29, 0x100294879\nmov     rax, [r14+248h]                                                ; +0x2e, 0x10029487e\ntest    byte ptr [rax+36A8h], 1                                        ; +0x35, 0x100294885\njnz     short loc_1002948A5                                            ; +0x3c, 0x10029488c\nadd     rax, 36A8h                                                     ; +0x3e, 0x10029488e\nmov     rcx, [rax+10h]                                                 ; +0x44, 0x100294894\nmov     [rbp+var_40], rcx                                              ; +0x48, 0x100294898\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x4c, 0x10029489c\nmovaps  xmmword ptr [rbp+__n], xmm0                                    ; +0x4f, 0x10029489f\njmp     short loc_1002948BC                                            ; +0x53, 0x1002948a3\nmov     rdx, [rax+36B0h]                                               ; +0x55, 0x1002948a5\nmov     rsi, [rax+36B8h]                                               ; +0x5c, 0x1002948ac\nlea     rdi, [rbp+__n]                                                 ; +0x63, 0x1002948b3\ncall    sub_100006B70                                                  ; +0x67, 0x1002948b7\nmovzx   eax, byte ptr [rbp+var_68.__r_.__value_]                       ; +0x6c, 0x1002948bc\nmovzx   r12d, byte ptr [rbp+__n]                                       ; +0x70, 0x1002948c0\nmov     rdi, [rbp+var_40]                                              ; +0x75, 0x1002948c5\ntest    r12b, 1                                                        ; +0x79, 0x1002948c9\nmov     [rbp+__p], rdi                                                 ; +0x7d, 0x1002948cd\njz      short loc_1002948D9                                            ; +0x81, 0x1002948d1\nmov     rcx, [rbp+__n+8]                                               ; +0x83, 0x1002948d3\njmp     short loc_1002948E2                                            ; +0x87, 0x1002948d7\nmov     ecx, r12d                                                      ; +0x89, 0x1002948d9\nshr     ecx, 1                                                         ; +0x8c, 0x1002948dc\nlea     rdi, [rbp+__n+1]; __s1                                         ; +0x8e, 0x1002948de\nmov     edx, eax                                                       ; +0x92, 0x1002948e2\nshr     edx, 1                                                         ; +0x94, 0x1002948e4\ntest    al, 1                                                          ; +0x96, 0x1002948e6\ncmovnz  rdx, qword ptr [rbp+var_68.__r_.__value_+8]                    ; +0x98, 0x1002948e8\nlea     rsi, [rbp+var_68.__r_.__value_+1]                              ; +0x9d, 0x1002948ed\ncmovnz  rsi, qword ptr [rbp+var_68.__r_.__value_+10h]; __s2            ; +0xa1, 0x1002948f1\ncmp     rdx, rcx                                                       ; +0xa6, 0x1002948f6\ncmovnb  rdx, rcx; __n                                                  ; +0xa9, 0x1002948f9\nsetz    r15b                                                           ; +0xad, 0x1002948fd\ncall    _memcmp                                                        ; +0xb1, 0x100294901\ntest    eax, eax                                                       ; +0xb6, 0x100294906\nsetz    r13b                                                           ; +0xb8, 0x100294908\nand     r13b, r15b                                                     ; +0xbc, 0x10029490c\ntest    r12b, 1                                                        ; +0xbf, 0x10029490f\njz      short loc_10029491E                                            ; +0xc3, 0x100294913\nmov     rdi, [rbp+__p]; __p                                            ; +0xc5, 0x100294915\ncall    __ZdlPv; operator delete(void *)                               ; +0xc9, 0x100294919\ntest    r13b, r13b                                                     ; +0xce, 0x10029491e\njnz     short loc_10029492B                                            ; +0xd1, 0x100294921\nmov     rdi, rbx                                                       ; +0xd3, 0x100294923\ncall    GJGameLevel__levelWasAltered                                   ; +0xd6, 0x100294926\nlea     rdi, [rbp+__str]; this                                         ; +0xdb, 0x10029492b\nlea     rsi, [rbp+var_68]                                              ; +0xe2, 0x100294932\nxor     edx, edx                                                       ; +0xe6, 0x100294936\nmov     ecx, 0Bh                                                       ; +0xe8, 0x100294938\ncall    cocos2d__ZipUtils__compressString                              ; +0xed, 0x10029493d\nlea     rdi, [rbx+188h]; this                                          ; +0xf2, 0x100294942\nlea     rsi, [rbp+__str]; __str                                        ; +0xf9, 0x100294949\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x100, 0x100294950\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x105, 0x100294955\njz      short loc_10029496A                                            ; +0x10c, 0x10029495c\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x10e, 0x10029495e\ncall    __ZdlPv; operator delete(void *)                               ; +0x115, 0x100294965\ntest    byte ptr [rbp+var_68.__r_.__value_], 1                         ; +0x11a, 0x10029496a\njnz     short loc_100294978                                            ; +0x11e, 0x10029496e\nmov     word ptr [rbp+var_68.__r_.__value_], 0                         ; +0x120, 0x100294970\njmp     short loc_100294987                                            ; +0x126, 0x100294976\nmov     rax, qword ptr [rbp+var_68.__r_.__value_+10h]                  ; +0x128, 0x100294978\nmov     byte ptr [rax], 0                                              ; +0x12c, 0x10029497c\nmov     qword ptr [rbp+var_68.__r_.__value_+8], 0                      ; +0x12f, 0x10029497f\nmov     rdi, [r14+248h]                                                ; +0x137, 0x100294987\nmov     rax, [rdi+790h]                                                ; +0x13e, 0x10029498e\nmov     eax, [rax+254h]                                                ; +0x145, 0x100294995\nmov     [rbx+254h], eax                                                ; +0x14b, 0x10029499b\nmov     rax, [rdi+0CB0h]                                               ; +0x151, 0x1002949a1\nmovzx   eax, byte ptr [rax+154h]                                       ; +0x158, 0x1002949a8\nmov     [rbx+374h], al                                                 ; +0x15f, 0x1002949af\ncall    LevelEditorLayer__getLastObjectX                               ; +0x165, 0x1002949b5\naddss   xmm0, cs:dword_1008152B0                                       ; +0x16a, 0x1002949ba\nmov     rax, [r14+248h]                                                ; +0x172, 0x1002949c2\nmov     r15, [rax+3698h]                                               ; +0x179, 0x1002949c9\nlea     rdi, [rbp+__n]                                                 ; +0x180, 0x1002949d0\nxorps   xmm1, xmm1                                                     ; +0x184, 0x1002949d4\ncall    sub_10028CBE0                                                  ; +0x187, 0x1002949d7\nmov     [rsp+0D0h+var_C8], 0                                           ; +0x18c, 0x1002949dc\nmov     [rsp+0D0h+var_D0], 0                                           ; +0x194, 0x1002949e4\nlea     rsi, [rbp+__n]                                                 ; +0x19b, 0x1002949eb\nmov     rdi, r15                                                       ; +0x19f, 0x1002949ef\nxor     edx, edx                                                       ; +0x1a2, 0x1002949f2\nxor     ecx, ecx                                                       ; +0x1a4, 0x1002949f4\nxor     r8d, r8d                                                       ; +0x1a6, 0x1002949f6\nxor     r9d, r9d                                                       ; +0x1a9, 0x1002949f9\ncall    DrawGridLayer__timeForPos                                      ; +0x1ac, 0x1002949fc\nmov     rax, [r14+248h]                                                ; +0x1b1, 0x100294a01\nmov     rcx, [rax+790h]                                                ; +0x1b8, 0x100294a08\nmov     ecx, [rcx+460h]                                                ; +0x1bf, 0x100294a0f\ntest    ecx, ecx                                                       ; +0x1c5, 0x100294a15\njle     short loc_100294A2F                                            ; +0x1c7, 0x100294a17\nxorps   xmm1, xmm1                                                     ; +0x1c9, 0x100294a19\ncvtsi2ss xmm1, ecx                                                     ; +0x1cc, 0x100294a1c\ndivss   xmm1, cs:dword_100815B84                                       ; +0x1d0, 0x100294a20\nmaxss   xmm1, xmm0                                                     ; +0x1d8, 0x100294a28\nmovaps  xmm0, xmm1                                                     ; +0x1dc, 0x100294a2c\ncvttss2si edi, xmm0                                                    ; +0x1df, 0x100294a2f\nmov     rax, [rax+0CB0h]                                               ; +0x1e3, 0x100294a33\nmovzx   esi, byte ptr [rax+155h]                                       ; +0x1ea, 0x100294a3a\ncall    GJGameLevel__getLengthKey                                      ; +0x1f1, 0x100294a41\nmov     [rbx+310h], eax                                                ; +0x1f6, 0x100294a46\nmov     rax, [r14+248h]                                                ; +0x1fc, 0x100294a4c\nmov     r15d, [rax+3688h]                                              ; +0x203, 0x100294a53\nsub     r15d, [rax+368Ch]                                              ; +0x20a, 0x100294a5a\nmov     [rbx+26Ch], r15d                                               ; +0x211, 0x100294a61\ncall    _rand                                                          ; +0x218, 0x100294a68\nxorps   xmm0, xmm0                                                     ; +0x21d, 0x100294a6d\ncvtsi2ss xmm0, eax                                                     ; +0x220, 0x100294a70\nmulss   xmm0, cs:dword_100815710                                       ; +0x224, 0x100294a74\nmulss   xmm0, cs:dword_1008152B8                                       ; +0x22c, 0x100294a7c\ncvttss2si eax, xmm0                                                    ; +0x234, 0x100294a84\nmov     [rbx+268h], eax                                                ; +0x238, 0x100294a88\nadd     eax, r15d                                                      ; +0x23e, 0x100294a8e\nmov     [rbx+264h], eax                                                ; +0x241, 0x100294a91\nmov     rsi, [r14+248h]                                                ; +0x247, 0x100294a97\nmov     eax, [rsi+3614h]                                               ; +0x24e, 0x100294a9e\nsub     eax, [rsi+3618h]                                               ; +0x254, 0x100294aa4\nmov     [rbx+350h], eax                                                ; +0x25a, 0x100294aaa\nmovzx   eax, byte ptr [rsi+3589h]                                      ; +0x260, 0x100294ab0\nmov     [rbx+28Ch], al                                                 ; +0x267, 0x100294ab7\ncmp     r15d, 9C40h                                                    ; +0x26d, 0x100294abd\njg      short loc_100294ACF                                            ; +0x274, 0x100294ac4\nmov     byte ptr [rbx+440h], 0                                         ; +0x276, 0x100294ac6\njmp     short loc_100294AD8                                            ; +0x27d, 0x100294acd\ncmp     r15d, 13880h                                                   ; +0x27f, 0x100294acf\nja      short loc_100294ADF                                            ; +0x286, 0x100294ad6\nmov     byte ptr [rbx+441h], 0                                         ; +0x288, 0x100294ad8\nmovsd   xmm0, qword ptr [rsi+3820h]                                    ; +0x28f, 0x100294adf\ncvtsd2ss xmm0, xmm0                                                    ; +0x297, 0x100294ae7\nroundss xmm0, xmm0, 9                                                  ; +0x29b, 0x100294aeb\ncvttss2si eax, xmm0                                                    ; +0x2a1, 0x100294af1\nadd     [rbx+284h], eax                                                ; +0x2a5, 0x100294af5\nlea     rdi, [rbp+var_A0]                                              ; +0x2ab, 0x100294afb\ncall    LevelEditorLayer__getLockedLayers                              ; +0x2b2, 0x100294b02\nlea     rdi, [rbx+200h]; this                                          ; +0x2b7, 0x100294b07\nlea     rsi, [rbp+var_A0]; __str                                       ; +0x2be, 0x100294b0e\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x2c5, 0x100294b15\ntest    byte ptr [rbp+var_A0.__r_.__value_], 1                         ; +0x2ca, 0x100294b1a\njz      short loc_100294B2F                                            ; +0x2d1, 0x100294b21\nmov     rdi, qword ptr [rbp+var_A0.__r_.__value_+10h]; __p             ; +0x2d3, 0x100294b23\ncall    __ZdlPv; operator delete(void *)                               ; +0x2da, 0x100294b2a\nmov     rsi, [r14+248h]                                                ; +0x2df, 0x100294b2f\nlea     rdi, [rbp+var_88]                                              ; +0x2e6, 0x100294b36\ncall    LevelEditorLayer__getSavedEditorPositions                      ; +0x2ed, 0x100294b3d\nlea     rdi, [rbx+218h]; this                                          ; +0x2f2, 0x100294b42\nlea     rsi, [rbp+var_88]; __str                                       ; +0x2f9, 0x100294b49\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x300, 0x100294b50\ntest    byte ptr [rbp+var_88.__r_.__value_], 1                         ; +0x305, 0x100294b55\njz      short loc_100294B67                                            ; +0x30c, 0x100294b5c\nmov     rdi, qword ptr [rbp+var_88.__r_.__value_+10h]; __p             ; +0x30e, 0x100294b5e\ncall    __ZdlPv; operator delete(void *)                               ; +0x312, 0x100294b62\nmov     esi, 37B8h                                                     ; +0x317, 0x100294b67\nadd     rsi, [r14+248h]                                                ; +0x31c, 0x100294b6c\nlea     rdi, [rbp+__n]                                                 ; +0x323, 0x100294b73\ncall    sub_10028CC60                                                  ; +0x327, 0x100294b77\nlea     rdi, [rbx+230h]                                                ; +0x32c, 0x100294b7c\nlea     rsi, [rbp+__n]                                                 ; +0x333, 0x100294b83\ncall    sub_10028CC90                                                  ; +0x337, 0x100294b87\nmov     [rbp+var_29], 0                                                ; +0x33c, 0x100294b8c\nmov     rsi, [r14+248h]                                                ; +0x340, 0x100294b90\nlea     rdi, [rbp+__n]                                                 ; +0x347, 0x100294b97\nlea     rdx, [rbp+var_29]                                              ; +0x34b, 0x100294b9b\ncall    LevelEditorLayer__getSongIDs                                   ; +0x34f, 0x100294b9f\nlea     r15, [rbx+468h]                                                ; +0x354, 0x100294ba4\ntest    byte ptr [rbx+468h], 1                                         ; +0x35b, 0x100294bab\njz      short loc_100294BC0                                            ; +0x362, 0x100294bb2\nmov     rdi, [rbx+478h]; __p                                           ; +0x364, 0x100294bb4\ncall    __ZdlPv; operator delete(void *)                               ; +0x36b, 0x100294bbb\nmov     rax, [rbp+var_40]                                              ; +0x370, 0x100294bc0\nmov     [r15+10h], rax                                                 ; +0x374, 0x100294bc4\nmovups  xmm0, xmmword ptr [rbp+__n]                                    ; +0x378, 0x100294bc8\nmovups  xmmword ptr [r15], xmm0                                        ; +0x37c, 0x100294bcc\nmov     rsi, [r14+248h]                                                ; +0x380, 0x100294bd0\nlea     rdi, [rbp+__n]                                                 ; +0x387, 0x100294bd7\ncall    LevelEditorLayer__getSFXIDs                                    ; +0x38b, 0x100294bdb\nlea     r14, [rbx+480h]                                                ; +0x390, 0x100294be0\ntest    byte ptr [rbx+480h], 1                                         ; +0x397, 0x100294be7\njz      short loc_100294BFC                                            ; +0x39e, 0x100294bee\nmov     rdi, [rbx+490h]; __p                                           ; +0x3a0, 0x100294bf0\ncall    __ZdlPv; operator delete(void *)                               ; +0x3a7, 0x100294bf7\nmov     rax, [rbp+var_40]                                              ; +0x3ac, 0x100294bfc\nmov     [r14+10h], rax                                                 ; +0x3b0, 0x100294c00\nmovups  xmm0, xmmword ptr [rbp+__n]                                    ; +0x3b4, 0x100294c04\nmovups  xmmword ptr [r14], xmm0                                        ; +0x3b8, 0x100294c08\nmovzx   eax, byte ptr [r14]                                            ; +0x3bc, 0x100294c0c\ntest    al, 1                                                          ; +0x3c0, 0x100294c10\njnz     short loc_100294C1D                                            ; +0x3c2, 0x100294c12\nshr     eax, 1                                                         ; +0x3c4, 0x100294c14\ntest    rax, rax                                                       ; +0x3c6, 0x100294c16\njnz     short loc_100294C3E                                            ; +0x3c9, 0x100294c19\njmp     short loc_100294C29                                            ; +0x3cb, 0x100294c1b\nmov     rax, [rbx+488h]                                                ; +0x3cd, 0x100294c1d\ntest    rax, rax                                                       ; +0x3d4, 0x100294c24\njnz     short loc_100294C3E                                            ; +0x3d7, 0x100294c27\ncmp     [rbp+var_29], 0                                                ; +0x3d9, 0x100294c29\njnz     short loc_100294C3E                                            ; +0x3dd, 0x100294c2d\nlea     rsi, __src; \"\"                                                 ; +0x3df, 0x100294c2f\nmov     rdi, r15; this                                                 ; +0x3e6, 0x100294c36\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x3e9, 0x100294c39\ncall    LocalLevelManager__sharedState                                 ; +0x3ee, 0x100294c3e\nmov     rdi, rax                                                       ; +0x3f3, 0x100294c43\ncall    GManager__save                                                 ; +0x3f6, 0x100294c46\ntest    byte ptr [rbp+var_68.__r_.__value_], 1                         ; +0x3fb, 0x100294c4b\njz      short loc_100294C5A                                            ; +0x3ff, 0x100294c4f\nmov     rdi, qword ptr [rbp+var_68.__r_.__value_+10h]; __p             ; +0x401, 0x100294c51\ncall    __ZdlPv; operator delete(void *)                               ; +0x405, 0x100294c55\nadd     rsp, 0A8h                                                      ; +0x40a, 0x100294c5a\npop     rbx                                                            ; +0x411, 0x100294c61\npop     r12                                                            ; +0x412, 0x100294c62\npop     r13                                                            ; +0x414, 0x100294c64\npop     r14                                                            ; +0x416, 0x100294c66\npop     r15                                                            ; +0x418, 0x100294c68\npop     rbp                                                            ; +0x41a, 0x100294c6a\nretn                                                                   ; +0x41b, 0x100294c6b", "xrefs": ["EditorPauseLayer::onSaveAndPlay @ 0x100293829", "EditorPauseLayer::onSaveAndExit @ 0x100293898", "EditorPauseLayer::FLAlert_Clicked @ 0x100294f00"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}