{"type": "func", "start": 5371992032, "end": 5371992346, "name": "LevelSettingsLayer::onClose", "pseudocode": "// \n// LevelSettingsLayer::onClose from 0x1403217e0 to 0x14032191a (314 bytes)\n// \n// 4 xrefs:\n// > LevelSettingsLayer::onLiveEdit @ 0x140321932\n// > LevelSettingsLayer::keyBackClicked @ 0x140322189\n// > LevelSettingsLayer::init @ 0x1403200ba\n// > <???> @ 0x1406d4c4c\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 LevelSettingsLayer::onClose(LevelSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_orderInput; // rax\n  CCTextInputNode *m_channelInput; // rax\n  LevelSettingsObject *m_settingsObject; // rcx\n  SongSelectNode *m_songSelectNode; // rax\n  LevelSettingsObject *v7; // rcx\n  LevelSettingsDelegate *m_delegate; // rcx\n  _BOOL8 v9; // rdx\n\n  m_orderInput = a1->m_orderInput;\n  if ( m_orderInput )\n  {\n    m_orderInput->m_delegate = nullptr;\n    a1->m_orderInput->onClickTrackNode(a1->m_orderInput, 0);\n  }\n  m_channelInput = a1->m_channelInput;\n  if ( m_channelInput )\n  {\n    m_channelInput->m_delegate = nullptr;\n    a1->m_channelInput->onClickTrackNode(a1->m_channelInput, 0);\n  }\n  m_settingsObject = a1->m_settingsObject;\n  if ( !m_settingsObject->m_startsWithStartPos )\n  {\n    m_songSelectNode = a1->m_songSelectNode;\n    if ( m_songSelectNode && m_songSelectNode->m_songChanged )\n    {\n      if ( m_songSelectNode->m_isCustomSong )\n      {\n        m_settingsObject->m_level->m_songID = m_songSelectNode->m_selectedSongID;\n      }\n      else\n      {\n        m_settingsObject->m_level->m_songID = 0;\n        a2 = a1->m_songSelectNode;\n        a1->m_settingsObject->m_level->m_audioTrack = a2[6].m_uID;\n      }\n      a1->m_settingsObject->m_guidelinesUpdated = 1;\n    }\n    v7 = a1->m_settingsObject;\n    if ( v7->m_startSpeed != a1->m_speed || v7->m_guidelinesUpdated )\n      v7->m_guidelinesUpdated = 0;\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      ((void (__fastcall *)(LevelSettingsDelegate *, cocos2d::CCObject *))m_delegate->levelSettingsUpdated)(\n        m_delegate,\n        a2);\n  }\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v9) = 1;\n  a1->removeFromParentAndCleanup(a1, v9);\n}", "assembly": "; \n; LevelSettingsLayer::onClose from 0x1403217e0 to 0x14032191a (314 bytes)\n; \n; 4 xrefs:\n; > LevelSettingsLayer::onLiveEdit @ 0x140321932\n; > LevelSettingsLayer::keyBackClicked @ 0x140322189\n; > LevelSettingsLayer::init @ 0x1403200ba\n; > <???> @ 0x1406d4c4c\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    rbx                                                            ; +0x0, 0x1403217e0\nsub     rsp, 20h                                                       ; +0x2, 0x1403217e2\nmov     rax, [rcx+348h]                                                ; +0x6, 0x1403217e6\nmov     rbx, rcx                                                       ; +0xd, 0x1403217ed\ntest    rax, rax                                                       ; +0x10, 0x1403217f0\njz      short loc_140321812                                            ; +0x13, 0x1403217f3\nmov     qword ptr [rax+230h], 0                                        ; +0x15, 0x1403217f5\nxor     edx, edx                                                       ; +0x20, 0x140321800\nmov     rcx, [rcx+348h]                                                ; +0x22, 0x140321802\nmov     rax, [rcx]                                                     ; +0x29, 0x140321809\ncall    qword ptr [rax+3F8h]                                           ; +0x2c, 0x14032180c\nmov     rax, [rbx+350h]                                                ; +0x32, 0x140321812\ntest    rax, rax                                                       ; +0x39, 0x140321819\njz      short loc_14032183B                                            ; +0x3c, 0x14032181c\nmov     qword ptr [rax+230h], 0                                        ; +0x3e, 0x14032181e\nxor     edx, edx                                                       ; +0x49, 0x140321829\nmov     rcx, [rbx+350h]                                                ; +0x4b, 0x14032182b\nmov     rax, [rcx]                                                     ; +0x52, 0x140321832\ncall    qword ptr [rax+3F8h]                                           ; +0x55, 0x140321835\nmov     rcx, [rbx+318h]                                                ; +0x5b, 0x14032183b\ncmp     byte ptr [rcx+170h], 0                                         ; +0x62, 0x140321842\njnz     loc_1403218F8                                                  ; +0x69, 0x140321849\nmov     rax, [rbx+2A8h]                                                ; +0x6f, 0x14032184f\ntest    rax, rax                                                       ; +0x76, 0x140321856\njz      short loc_1403218C2                                            ; +0x79, 0x140321859\ncmp     byte ptr [rax+15Dh], 0                                         ; +0x7b, 0x14032185b\njz      short loc_1403218C2                                            ; +0x82, 0x140321862\ncmp     byte ptr [rax+15Ch], 0                                         ; +0x84, 0x140321864\njz      short loc_140321882                                            ; +0x8b, 0x14032186b\nmov     rcx, [rcx+180h]                                                ; +0x8d, 0x14032186d\nmov     eax, [rax+158h]                                                ; +0x94, 0x140321874\nmov     [rcx+2A0h], eax                                                ; +0x9a, 0x14032187a\njmp     short loc_1403218B4                                            ; +0xa0, 0x140321880\nmov     rax, [rcx+180h]                                                ; +0xa2, 0x140321882\nmov     dword ptr [rax+2A0h], 0                                        ; +0xa9, 0x140321889\nmov     rax, [rbx+318h]                                                ; +0xb3, 0x140321893\nmov     rdx, [rbx+2A8h]                                                ; +0xba, 0x14032189a\nmov     rcx, [rax+180h]                                                ; +0xc1, 0x1403218a1\nmov     eax, [rdx+158h]                                                ; +0xc8, 0x1403218a8\nmov     [rcx+29Ch], eax                                                ; +0xce, 0x1403218ae\nmov     rax, [rbx+318h]                                                ; +0xd4, 0x1403218b4\nmov     byte ptr [rax+1A8h], 1                                         ; +0xdb, 0x1403218bb\nmov     rcx, [rbx+318h]                                                ; +0xe2, 0x1403218c2\nmov     eax, [rbx+2B0h]                                                ; +0xe9, 0x1403218c9\ncmp     [rcx+14Ch], eax                                                ; +0xef, 0x1403218cf\njnz     short loc_1403218E0                                            ; +0xf5, 0x1403218d5\ncmp     byte ptr [rcx+1A8h], 0                                         ; +0xf7, 0x1403218d7\njz      short loc_1403218E7                                            ; +0xfe, 0x1403218de\nmov     byte ptr [rcx+1A8h], 0                                         ; +0x100, 0x1403218e0\nmov     rcx, [rbx+338h]                                                ; +0x107, 0x1403218e7\ntest    rcx, rcx                                                       ; +0x10e, 0x1403218ee\njz      short loc_1403218F8                                            ; +0x111, 0x1403218f1\nmov     rax, [rcx]                                                     ; +0x113, 0x1403218f3\ncall    qword ptr [rax]                                                ; +0x116, 0x1403218f6\nmov     rax, [rbx]                                                     ; +0x118, 0x1403218f8\nxor     edx, edx                                                       ; +0x11b, 0x1403218fb\nmov     rcx, rbx                                                       ; +0x11d, 0x1403218fd\ncall    qword ptr [rax+3D0h]                                           ; +0x120, 0x140321900\nmov     rax, [rbx]                                                     ; +0x126, 0x140321906\nmov     dl, 1                                                          ; +0x129, 0x140321909\nmov     rcx, rbx                                                       ; +0x12b, 0x14032190b\nadd     rsp, 20h                                                       ; +0x12e, 0x14032190e\npop     rbx                                                            ; +0x132, 0x140321912\njmp     qword ptr [rax+1F8h]                                           ; +0x133, 0x140321913", "xrefs": ["LevelSettingsLayer::onLiveEdit @ 0x140321932", "LevelSettingsLayer::keyBackClicked @ 0x140322189", "LevelSettingsLayer::init @ 0x1403200ba", "<???> @ 0x1406d4c4c"], "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"}