	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_channel1               ## -- Begin function convert_channel1
	.p2align	4, 0x90
_convert_channel1:                      ## @convert_channel1
	.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, %r12d
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movl	%edi, %r15d
	andl	$3, %ebx
	cmpl	$72, %edx
	jl	LBB0_4
## %bb.1:
	movl	$1, %r14d
	movl	%r12d, %eax
	orl	%r13d, %eax
	je	LBB0_16
## %bb.2:
	cmpl	$12, %r13d
	jne	LBB0_9
## %bb.3:
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_volume_mod_to_gb
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movl	$1, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_4:
	movl	%edx, %r14d
	cmpl	$12, %r13d
	jne	LBB0_6
## %bb.5:
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %r15d
	orl	%r14d, %r15d
	shll	$4, %ebx
	movl	%r12d, %edi
	callq	_volume_mod_to_gb
	movl	%eax, %r13d
	orl	%ebx, %r13d
	movl	$2, %r14d
	xorl	%r12d, %r12d
	movl	%r15d, %ebx
	jmp	LBB0_19
LBB0_6:
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-52(%rbp), %r9
	movl	%r15d, %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %edx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	callq	_effect_mod_to_gb
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.7:
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %r15d
	orl	%r14d, %r15d
	movl	$7, %edi
	callq	_BIT
	shll	$4, %ebx
	orl	%eax, %ebx
	orl	-52(%rbp), %ebx
	movl	$3, %r14d
	movl	-48(%rbp), %r12d
	movl	%ebx, %r13d
	movl	%r15d, %ebx
	jmp	LBB0_19
LBB0_9:
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$1, %r14d
	leaq	-52(%rbp), %r9
	movl	%r15d, %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %edx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	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	-52(%rbp), %ebx
	movl	$2, %r14d
	movl	-48(%rbp), %r13d
	jmp	LBB0_18
LBB0_11:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_printf
	testl	%r13d, %r13d
	jne	LBB0_13
## %bb.12:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_13:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movl	$1, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_19
LBB0_14:
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.15:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	xorl	%r13d, %r13d
	movl	%r12d, %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
	callq	_out_write_str
	movl	%ebx, %edi
	callq	_out_write_hex
	cmpl	$2, %r14d
	jb	LBB0_22
## %bb.20:
	leaq	L_.str.3(%rip), %rdi
	callq	_out_write_str
	movl	%r13d, %edi
	callq	_out_write_hex
	cmpl	$2, %r14d
	je	LBB0_22
## %bb.21:
	leaq	L_.str.3(%rip), %rdi
	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 1: %01X%02X\n"

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

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

L_str:                                  ## @str
	.asciz	"Volume must be set when using a note."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_convert_channel1               ; -- Begin function convert_channel1
	.p2align	2
_convert_channel1:                      ; @convert_channel1
	.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, x5
	mov	x19, x4
	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, #1
	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, #1
	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
	bl	_out_write_str
	mov	x0, x19
	bl	_out_write_hex
	cmp	w22, #2
	b.lo	LBB0_16
; %bb.14:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_out_write_str
	mov	x0, x20
	bl	_out_write_hex
	cmp	w22, #2
	b.eq	LBB0_16
; %bb.15:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@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]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w20, #0
	mov	w19, #0
	b	LBB0_21
LBB0_19:
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid command at pattern %d, step %d, channel 1: %01X%02X\n"

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

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

l_str:                                  ; @str
	.asciz	"Volume must be set when using a note."

.subsections_via_symbols
