// File: /workspace/github_cpp_makefile_star2_O1/danomatika[P]miditester/src/main.cpp
// Function: runningStatus(std::vector<TestSet, std::allocator<TestSet>>&, int)
void runningStatus(TestQueue &queue, int channel) {
    TestSet set;
    set.name = "running";
    set.messages = {

        // start with note on
        {(unsigned char)(MIDI_NOTEON + channel), 64, 64},
        
        // note on without status byte
        {65, 64},

        // realtime messages should pass through 
        {MIDI_START},
        {66, 64},
        {MIDI_STOP},
        {67, 64},
        {MIDI_CONTINUE},
        {68, 64},
        {MIDI_CLOCK},

        // note off
        {(unsigned char)(MIDI_NOTEOFF + channel), 64, 0},

        // note offs without status byte
        {65, 0},
        {66, 0},
        {67, 0},
        {68, 0}
    };
    queue.push_back(set);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movl %esi, %r12d
movq %rdi, %r15
leaq 0x40(%rsp), %rbp
movq %rbp, -0x10(%rbp)
xorl %eax, %eax
movq %rax, -0x8(%rbp)
movb $0x0, (%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbp)
movq %rax, 0x20(%rbp)
leaq 0x2d7c(%rip), %rcx      # 0x8273
leaq 0x30(%rsp), %rdi
movl $0x7, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3210
leal -0x70(%r12), %eax
leaq 0x2d(%rsp), %rsi
movb %al, (%rsi)
movw $0x4040, 0x1(%rsi)      # imm = 0x4040
leaq 0x68(%rsp), %r14
leaq 0x19(%rsp), %rcx
movl $0x3, %edx
movq %r14, %rdi
callq 0x5e6e
leaq 0x80(%rsp), %rbx
leaq 0x28(%rsp), %rsi
movw $0x4041, (%rsi)         # imm = 0x4041
leaq 0x18(%rsp), %rcx
movl $0x2, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0x98(%rsp), %rbx
leaq 0x17(%rsp), %rsi
movb $-0x6, (%rsi)
leaq 0x16(%rsp), %rcx
movl $0x1, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0xb0(%rsp), %rbx
leaq 0x26(%rsp), %rsi
movw $0x4042, (%rsi)         # imm = 0x4042
leaq 0x15(%rsp), %rcx
movl $0x2, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0xc8(%rsp), %rbx
leaq 0x14(%rsp), %rsi
movb $-0x4, (%rsi)
leaq 0x13(%rsp), %rcx
movl $0x1, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0xe0(%rsp), %rbx
leaq 0x24(%rsp), %rsi
movw $0x4043, (%rsi)         # imm = 0x4043
leaq 0x12(%rsp), %rcx
movl $0x2, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0xf8(%rsp), %rbx
leaq 0x11(%rsp), %rsi
movb $-0x5, (%rsi)
leaq 0x10(%rsp), %rcx
movl $0x1, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0x110(%rsp), %rbx
leaq 0x22(%rsp), %rsi
movw $0x4044, (%rsi)         # imm = 0x4044
leaq 0xf(%rsp), %rcx
movl $0x2, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0x128(%rsp), %rbx
leaq 0xe(%rsp), %rsi
movb $-0x8, (%rsi)
leaq 0xd(%rsp), %rcx
movl $0x1, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0x140(%rsp), %rbx
addb $-0x80, %r12b
leaq 0x2a(%rsp), %rsi
movb %r12b, (%rsi)
movw $0x40, 0x1(%rsi)
leaq 0xc(%rsp), %rcx
movl $0x3, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0x158(%rsp), %rbx
leaq 0x20(%rsp), %rsi
movw $0x41, (%rsi)
leaq 0xb(%rsp), %rcx
movl $0x2, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0x170(%rsp), %rbx
leaq 0x1e(%rsp), %rsi
movw $0x42, (%rsi)
leaq 0xa(%rsp), %rcx
movl $0x2, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0x188(%rsp), %rbx
leaq 0x1c(%rsp), %rsi
movw $0x43, (%rsi)
leaq 0x9(%rsp), %rcx
movl $0x2, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0x1a0(%rsp), %rbx
leaq 0x1a(%rsp), %rsi
movw $0x44, (%rsi)
leaq 0x8(%rsp), %rcx
movl $0x2, %edx
movq %rbx, %rdi
callq 0x5e6e
leaq 0x50(%rsp), %r12
leaq 0x1b8(%rsp), %r13
leaq 0x68(%rsp), %rsi
movq %r12, %rdi
movq %r13, %rdx
callq 0x60c8
movl $0x150, %ebx            # imm = 0x150
movq 0x50(%rsp,%rbx), %rdi
testq %rdi, %rdi
je 0x5741
movq 0x60(%rsp,%rbx), %rsi
subq %rdi, %rsi
callq 0x31a0
addq $-0x18, %rbx
jne 0x572a
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
callq 0x5eb2
movq %r12, %rdi
callq 0x5f0e
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5773
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x31a0
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq 0x68(%rsp), %rsi
movq %r13, %rdi
callq 0x3360
movb $0x1, %al
jmp 0x57b6
jmp 0x57b1
jmp 0x57b1
jmp 0x57b1
jmp 0x57b1
jmp 0x57b1
jmp 0x57b1
jmp 0x57b1
jmp 0x57b1
jmp 0x57b1
jmp 0x57b1
jmp 0x57b1
jmp 0x57b1
movq %rax, %r15
xorl %eax, %eax
cmpq %rbx, %r14
sete %cl
testb %al, %al
jne 0x57f6
testb %cl, %cl
jne 0x57f6
leaq 0x68(%rsp), %r14
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x57de
movq -0x8(%rbx), %rsi
subq %rdi, %rsi
callq 0x31a0
addq $-0x18, %rbx
cmpq %r14, %rbx
jne 0x57c9
jmp 0x57f6
movq %rax, %r15
xorl %eax, %eax
movq %r14, %rbx
jmp 0x57b6
movq %rax, %r15
leaq 0x30(%rsp), %rdi
callq 0x5edc
movq %r15, %rdi
callq 0x3280