	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av7110_set_volume              ## -- Begin function av7110_set_volume
	.p2align	4, 0x90
_av7110_set_volume:                     ## @av7110_set_volume
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r15, %rdx
	callq	_dprintk
	movl	%ebx, 4(%r15)
	movl	%r12d, 8(%r15)
	movl	(%r15), %eax
	xorl	%r14d, %r14d
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_12
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	shll	$8, %ebx
	movl	$4245218641, %eax               ## imm = 0xFD08E551
	imulq	%rax, %rbx
	shrq	$42, %rbx
	cmpl	$63, %ebx
	movl	$63, %r13d
	cmovael	%r13d, %ebx
	orl	$128, %ebx
	movq	%r15, %rdi
	movl	$3, %esi
	movl	%ebx, %edx
	callq	_SendDAC
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	shll	$8, %r12d
	movl	$4245218641, %eax               ## imm = 0xFD08E551
	imulq	%rax, %r12
	shrq	$42, %r12
	cmpl	$63, %r12d
	cmovbl	%r12d, %r13d
	movq	%r15, %rdi
	movl	$4, %esi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SendDAC                        ## TAILCALL
LBB0_8:
	movl	%r12d, %edx
	subl	%ebx, %edx
	cmoval	%r12d, %ebx
	imull	$115, %ebx, %eax
	movl	$2155905153, %r12d              ## imm = 0x80808081
	imulq	%rax, %r12
	shrq	$32, %r12
	andl	$-128, %r12d
	addl	%r12d, %r12d
	xorl	%r14d, %r14d
	movl	$0, %ecx
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:
	movl	%edx, %eax
	shll	$7, %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %ecx
	shll	$8, %ecx
LBB0_10:
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_msp_writereg
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_5:
	movl	%r12d, %edx
	subl	%ebx, %edx
	cmoval	%r12d, %ebx
	imull	$115, %ebx, %eax
	movl	$2155905153, %r12d              ## imm = 0x80808081
	imulq	%rax, %r12
	shrq	$32, %r12
	andl	$-128, %r12d
	addl	%r12d, %r12d
	xorl	%r14d, %r14d
	movl	$0, %ecx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movl	%edx, %eax
	shll	$7, %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %ecx
	shll	$8, %ecx
LBB0_7:
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_msp_writereg
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	_msp_writereg
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$6, %edx
LBB0_11:
	movl	%r12d, %ecx
	callq	_msp_writereg
	jmp	LBB0_12
LBB0_4:
	shrl	%ebx
	movl	$127, %r13d
	movl	$127, %ecx
	subl	%ebx, %ecx
	shrl	%r12d
	subl	%r12d, %r13d
	movq	%r15, %rdi
	movl	$32, %esi
	movl	$3, %edx
	callq	_i2c_writereg
	movq	%r15, %rdi
	movl	$32, %esi
	movl	$4, %edx
	movl	%r13d, %ecx
	callq	_i2c_writereg
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"av7110:%p, \n"

	.comm	_MSP_WR_DSP,4,2                 ## @MSP_WR_DSP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av7110_set_volume              ; -- Begin function av7110_set_volume
	.p2align	2
_av7110_set_volume:                     ; @av7110_set_volume
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_dprintk
	stp	w21, w20, [x19, #4]
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	lsl	w8, w21, #8
	mov	w21, #58705
	movk	w21, #64776, lsl #16
	umull	x8, w8, w21
	lsr	x8, x8, #42
	mov	w22, #63
	cmp	w8, #63
	csel	w8, w8, w22, lo
	orr	w2, w8, #0x80
	mov	x0, x19
	mov	w1, #3
	bl	_SendDAC
	cbnz	w0, LBB0_9
; %bb.3:
	lsl	w8, w20, #8
	umull	x8, w8, w21
	lsr	x8, x8, #42
	cmp	w8, #63
	csel	w2, w8, w22, lo
	mov	x0, x19
	mov	w1, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_SendDAC
LBB0_4:
	subs	w8, w20, w21
	lsl	w9, w8, #7
	sub	w8, w9, w8
	csel	w9, w20, w21, hi
	mov	w10, #115
	mul	w10, w9, w10
	mov	w11, #32897
	movk	w11, #32896, lsl #16
	umull	x10, w10, w11
	lsr	x10, x10, #32
	lsl	w10, w10, #1
	and	w20, w10, #0xffffff00
	udiv	w8, w8, w9
	lsl	w8, w8, #8
	cmp	w9, #0
	csel	w3, wzr, w8, eq
Lloh4:
	adrp	x21, _MSP_WR_DSP@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MSP_WR_DSP@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_msp_writereg
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_6
LBB0_5:
	subs	w8, w20, w21
	lsl	w9, w8, #7
	sub	w8, w9, w8
	csel	w9, w20, w21, hi
	mov	w10, #115
	mul	w10, w9, w10
	mov	w11, #32897
	movk	w11, #32896, lsl #16
	umull	x10, w10, w11
	lsr	x10, x10, #32
	lsl	w10, w10, #1
	and	w20, w10, #0xffffff00
	udiv	w8, w8, w9
	lsl	w8, w8, #8
	cmp	w9, #0
	csel	w3, wzr, w8, eq
Lloh6:
	adrp	x21, _MSP_WR_DSP@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MSP_WR_DSP@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_msp_writereg
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_msp_writereg
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #6
LBB0_6:
	mov	x3, x20
	bl	_msp_writereg
	b	LBB0_8
LBB0_7:
	mov	w8, #127
	sub	w3, w8, w21, lsr #1
	sub	w20, w8, w20, lsr #1
	mov	x0, x19
	mov	w1, #32
	mov	w2, #3
	bl	_i2c_writereg
	mov	x0, x19
	mov	w1, #32
	mov	w2, #4
	mov	x3, x20
	bl	_i2c_writereg
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"av7110:%p, \n"

	.comm	_MSP_WR_DSP,4,2                 ; @MSP_WR_DSP
.subsections_via_symbols
