	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_channel2               ## -- Begin function convert_channel2
	.p2align	4, 0x90
_convert_channel2:                      ## @convert_channel2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%ecx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r12d
	movl	16(%rbp), %r8d
	andl	$3, %ebx
	cmpl	$72, %edx
	jl	LBB0_4
## %bb.1:
	movl	$1, %r15d
	movl	%r8d, %eax
	orl	%r13d, %eax
	je	LBB0_16
## %bb.2:
	cmpl	$12, %r13d
	jne	LBB0_9
## %bb.3:
	movl	$5, %edi
	movl	%r8d, %ebx
	callq	_BIT
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_VOLUME_MOD_TO_GB
	movl	%eax, %ebx
	orl	%r14d, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_4:
	movl	%edx, %r15d
	cmpl	$12, %r13d
	jne	LBB0_6
## %bb.5:
	movl	$7, %edi
	movl	%r8d, %r12d
	callq	_BIT
	movl	%eax, %r14d
	orl	%r15d, %r14d
	shll	$4, %ebx
	movl	%r12d, %edi
	callq	_VOLUME_MOD_TO_GB
	movl	%eax, %r13d
	orl	%ebx, %r13d
	movl	$2, %r15d
	xorl	%r12d, %r12d
	movl	%r14d, %ebx
	jmp	LBB0_19
LBB0_6:
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %r9
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	$2, %edx
	movl	%r13d, %ecx
	callq	_EFFECT_MOD_TO_GB
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.7:
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %r14d
	orl	%r15d, %r14d
	movl	$7, %edi
	callq	_BIT
	shll	$4, %ebx
	orl	%eax, %ebx
	orl	-48(%rbp), %ebx
	movl	$3, %r15d
	movl	-44(%rbp), %r12d
	movl	%ebx, %r13d
	movl	%r14d, %ebx
	jmp	LBB0_19
LBB0_9:
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$2, %r15d
	leaq	-48(%rbp), %r9
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	$2, %edx
	movl	%r13d, %ecx
	callq	_EFFECT_MOD_TO_GB
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.10:
	movl	$6, %edi
	callq	_BIT
	shll	$4, %ebx
	orl	%eax, %ebx
	orl	-48(%rbp), %ebx
	movl	-44(%rbp), %r13d
	jmp	LBB0_18
LBB0_11:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	16(%rbp), %r8d
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %r15d
	testl	%r13d, %r13d
	jne	LBB0_13
## %bb.12:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_13:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_19
LBB0_14:
	movl	$1, %r15d
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.15:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	xorl	%r13d, %r13d
	movl	16(%rbp), %r8d
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_17
LBB0_16:
	xorl	%r13d, %r13d
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	xorl	%r12d, %r12d
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_out_write_str
	movl	%ebx, %edi
	callq	_out_write_hex
	cmpl	$2, %r15d
	jb	LBB0_22
## %bb.20:
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_out_write_str
	movl	%r13d, %edi
	callq	_out_write_hex
	cmpl	$2, %r15d
	je	LBB0_22
## %bb.21:
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_out_write_str
	movl	%r12d, %edi
	callq	_out_write_hex
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid command at pattern %d, step %d, channel 2: %01X%02X\n"

L_.str.2:                               ## @.str.2
	.asciz	"0x"

L_.str.3:                               ## @.str.3
	.asciz	"$"

L_.str.4:                               ## @.str.4
	.asciz	",0x"

L_.str.5:                               ## @.str.5
	.asciz	",$"

L_str:                                  ## @str
	.asciz	"You need to set the volume when using a new note."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_channel2               ; -- Begin function convert_channel2
	.p2align	2
_convert_channel2:                      ; @convert_channel2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x6
	mov	x19, x5
	mov	x22, x1
	mov	x21, x0
	and	w24, w3, #0x3
	cmp	w2, #72
	b.lt	LBB0_4
; %bb.1:
	orr	w8, w20, w19
	cbz	w8, LBB0_11
; %bb.2:
	cmp	w19, #12
	b.ne	LBB0_8
; %bb.3:
	mov	w0, #5
	bl	_BIT
	mov	x19, x0
	mov	x0, x20
	bl	_VOLUME_MOD_TO_GB
	mov	w20, #0
	mov	w21, #0
	orr	w19, w0, w19
	b	LBB0_12
LBB0_4:
	mov	x23, x2
	cmp	w19, #12
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #7
	bl	_BIT
	orr	w19, w0, w23
	mov	x0, x20
	bl	_VOLUME_MOD_TO_GB
	mov	w21, #0
	orr	w20, w0, w24, lsl #4
	mov	w22, #2
	b	LBB0_13
LBB0_6:
	add	x5, sp, #44
	add	x6, sp, #40
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	mov	x3, x19
	mov	x4, x20
	bl	_EFFECT_MOD_TO_GB
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.7:
	mov	w0, #7
	bl	_BIT
	orr	w19, w0, w23
	mov	w0, #7
	bl	_BIT
	orr	w8, w0, w24, lsl #4
	ldp	w21, w9, [sp, #40]
	orr	w20, w8, w9
	mov	w22, #3
	b	LBB0_13
LBB0_8:
	add	x5, sp, #44
	add	x6, sp, #40
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	mov	x3, x19
	mov	x4, x20
	bl	_EFFECT_MOD_TO_GB
	cmp	w0, #1
	b.ne	LBB0_17
; %bb.9:
	mov	w0, #6
	bl	_BIT
	orr	w8, w0, w24, lsl #4
	ldp	w20, w9, [sp, #40]
	orr	w19, w8, w9
	mov	w22, #2
	mov	w21, #0
	b	LBB0_13
LBB0_10:
	stp	x19, x20, [sp, #16]
	stp	x21, x22, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	cbz	w19, LBB0_19
LBB0_11:
	mov	w20, #0
	mov	w21, #0
	mov	w19, #0
LBB0_12:
	mov	w22, #1
LBB0_13:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_out_write_str
	mov	x0, x19
	bl	_out_write_hex
	cmp	w22, #2
	b.lo	LBB0_16
; %bb.14:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_out_write_str
	mov	x0, x20
	bl	_out_write_hex
	cmp	w22, #2
	b.eq	LBB0_16
; %bb.15:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_out_write_str
	mov	x0, x21
	bl	_out_write_hex
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	cbz	w19, LBB0_20
; %bb.18:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x20, [sp, #16]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x22, [sp]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w20, #0
	mov	w19, #0
	b	LBB0_21
LBB0_19:
Lloh16:
	adrp	x0, l_str@PAGE
Lloh17:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w20, #0
	mov	w21, #0
	b	LBB0_12
LBB0_20:
	mov	w20, #0
LBB0_21:
	mov	w22, #1
	mov	w21, #0
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid command at pattern %d, step %d, channel 2: %01X%02X\n"

l_.str.2:                               ; @.str.2
	.asciz	"0x"

l_.str.3:                               ; @.str.3
	.asciz	"$"

l_.str.4:                               ; @.str.4
	.asciz	",0x"

l_.str.5:                               ; @.str.5
	.asciz	",$"

l_str:                                  ; @str
	.asciz	"You need to set the volume when using a new note."

.subsections_via_symbols
