	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8766_set_vol
_wm8766_set_vol:                        ## @wm8766_set_vol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_WM_VOL_MUTE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r9d
	movl	%ecx, %eax
	orl	%edx, %eax
	movl	$256, %r8d                      ## imm = 0x100
	testl	%eax, %r9d
	jne	LBB0_2
## %bb.1:
	notl	%r9d
	andl	%r9d, %edx
	andl	%ecx, %r9d
	imull	%edx, %r9d
	shrl	$7, %r9d
	movq	_WM_VOL_MAX@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	andl	%r9d, %eax
	movq	_DAC_MIN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	addb	%al, %cl
	movzbl	%cl, %ecx
	orl	$256, %ecx                      ## imm = 0x100
	testb	%al, %al
	movl	$256, %r8d                      ## imm = 0x100
	cmovnel	%ecx, %r8d
LBB0_2:
	movl	%r8d, %edx
	popq	%rbp
	jmp	_wm8766_spi_write               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WM_VOL_MUTE,2,1                ## @WM_VOL_MUTE
	.comm	_WM_VOL_MAX,2,1                 ## @WM_VOL_MAX
	.comm	_DAC_MIN,1,0                    ## @DAC_MIN
	.no_dead_strip	_wm8766_set_vol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8766_set_vol
_wm8766_set_vol:                        ; @wm8766_set_vol
	.cfi_startproc
; %bb.0:
	mov	x8, x2
Lloh0:
	adrp	x9, _WM_VOL_MUTE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WM_VOL_MUTE@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w10, w3, w2
	mov	w2, #256
	tst	w9, w10
	b.eq	LBB0_2
; %bb.1:
	b	_wm8766_spi_write
LBB0_2:
	bic	w8, w8, w9
	bic	w9, w3, w9
	mul	w8, w8, w9
Lloh2:
	adrp	x9, _WM_VOL_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WM_VOL_MAX@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w8, w9, w8, lsr #7
Lloh4:
	adrp	x9, _DAC_MIN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DAC_MIN@GOTPAGEOFF]
	ldrb	w9, [x9]
	add	w9, w9, w8
	mov	w10, #256
	bfxil	w10, w9, #0, #8
	tst	w8, #0xff
	csel	w2, w2, w10, eq
	b	_wm8766_spi_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_VOL_MUTE,2,1                ; @WM_VOL_MUTE
	.comm	_WM_VOL_MAX,2,1                 ; @WM_VOL_MAX
	.comm	_DAC_MIN,1,0                    ; @DAC_MIN
	.no_dead_strip	_wm8766_set_vol
.subsections_via_symbols
