{"type": "func", "start": 5369615632, "end": 5369615793, "name": "EditorPauseLayer::onSong", "pseudocode": "// \n// EditorPauseLayer::onSong from 0x1400dd510 to 0x1400dd5b1 (161 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1400da8f3\n// > EditorPauseLayer::customSetup @ 0x1400da91b\n// > <???> @ 0x1406c8a0c\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 EditorPauseLayer::onSong(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rdx\n  __int64 v4; // rbx\n  void *v5; // [rsp+40h] [rbp+18h]\n  void *v6; // [rsp+40h] [rbp+18h]\n\n  v3 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v5 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = qword_1406C2ED8;\n  }\n  v4 = v3;\n  if ( !v3 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = qword_1406C2ED8;\n  }\n  *(_BYTE *)(v3 + 913) = *(_BYTE *)(v4 + 913) == 0;\n  EditorPauseLayer::updateSongButton(a1);\n}", "assembly": "; \n; EditorPauseLayer::onSong from 0x1400dd510 to 0x1400dd5b1 (161 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1400da8f3\n; > EditorPauseLayer::customSetup @ 0x1400da91b\n; > <???> @ 0x1406c8a0c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400dd510\npush    rdi                                                            ; +0x5, 0x1400dd515\nsub     rsp, 20h                                                       ; +0x6, 0x1400dd516\nmov     rdi, rcx                                                       ; +0xa, 0x1400dd51a\nmov     rdx, cs:qword_1406C2ED8                                        ; +0xd, 0x1400dd51d\ntest    rdx, rdx                                                       ; +0x14, 0x1400dd524\njnz     short loc_1400DD558                                            ; +0x17, 0x1400dd527\nmov     ecx, 668h; Size                                                ; +0x19, 0x1400dd529\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x1400dd52e\nmov     [rsp+28h+arg_10], rax                                          ; +0x23, 0x1400dd533\nmov     rcx, rax                                                       ; +0x28, 0x1400dd538\ncall    sub_14017AB00                                                  ; +0x2b, 0x1400dd53b\nnop                                                                    ; +0x30, 0x1400dd540\nmov     cs:qword_1406C2ED8, rax                                        ; +0x31, 0x1400dd541\nmov     rdx, [rax]                                                     ; +0x38, 0x1400dd548\nmov     rcx, rax                                                       ; +0x3b, 0x1400dd54b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x1400dd54e\nmov     rdx, cs:qword_1406C2ED8                                        ; +0x41, 0x1400dd551\nmov     rbx, rdx                                                       ; +0x48, 0x1400dd558\ntest    rdx, rdx                                                       ; +0x4b, 0x1400dd55b\njnz     short loc_1400DD58F                                            ; +0x4e, 0x1400dd55e\nmov     ecx, 668h; Size                                                ; +0x50, 0x1400dd560\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x55, 0x1400dd565\nmov     [rsp+28h+arg_10], rax                                          ; +0x5a, 0x1400dd56a\nmov     rcx, rax                                                       ; +0x5f, 0x1400dd56f\ncall    sub_14017AB00                                                  ; +0x62, 0x1400dd572\nnop                                                                    ; +0x67, 0x1400dd577\nmov     cs:qword_1406C2ED8, rax                                        ; +0x68, 0x1400dd578\nmov     rdx, [rax]                                                     ; +0x6f, 0x1400dd57f\nmov     rcx, rax                                                       ; +0x72, 0x1400dd582\ncall    qword ptr [rdx+48h]                                            ; +0x75, 0x1400dd585\nmov     rdx, cs:qword_1406C2ED8                                        ; +0x78, 0x1400dd588\ncmp     byte ptr [rbx+391h], 0                                         ; +0x7f, 0x1400dd58f\nsetz    al                                                             ; +0x86, 0x1400dd596\nmov     [rdx+391h], al                                                 ; +0x89, 0x1400dd599\nmov     rcx, rdi                                                       ; +0x8f, 0x1400dd59f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x92, 0x1400dd5a2\nadd     rsp, 20h                                                       ; +0x97, 0x1400dd5a7\npop     rdi                                                            ; +0x9b, 0x1400dd5ab\njmp     EditorPauseLayer__updateSongButton                             ; +0x9c, 0x1400dd5ac", "xrefs": ["EditorPauseLayer::customSetup @ 0x1400da8f3", "EditorPauseLayer::customSetup @ 0x1400da91b", "<???> @ 0x1406c8a0c"], "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"}