	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_wm87x6_volume
_update_wm87x6_volume:                  ## @update_wm87x6_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	callq	_update_wm8776_volume
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %r15d
	movl	16(%rax), %r12d
	cmpl	%r15d, %edx
	jne	LBB0_12
## %bb.1:
	cmpl	%r12d, %edx
	jne	LBB0_12
## %bb.2:
	movl	%edx, %r12d
	cmpl	20(%rax), %edx
	jne	LBB0_12
## %bb.3:
	movl	%edx, %r12d
	cmpl	24(%rax), %edx
	jne	LBB0_12
## %bb.4:
	movl	%edx, %r12d
	cmpl	28(%rax), %edx
	jne	LBB0_12
## %bb.5:
	movq	(%rbx), %rsi
	cmpl	512(%rsi), %edx
	jne	LBB0_11
## %bb.6:
	movdqu	516(%rsi), %xmm0
	movd	%edx, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pcmpeqd	%xmm0, %xmm1
	movmskps	%xmm1, %ecx
	movl	%ecx, %eax
	andb	$4, %al
	shrb	$2, %al
	je	LBB0_11
## %bb.7:
	testb	$1, %cl
	je	LBB0_11
## %bb.8:
	movl	%ecx, %eax
	shrb	$3, %al
	je	LBB0_11
## %bb.9:
	andb	$2, %cl
	shrb	%cl
	je	LBB0_11
## %bb.10:
	cmpl	532(%rsi), %edx
	je	LBB0_33
LBB0_11:
	movq	_WM8766_MASTDA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_WM8766_UPDATE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_wm8766_write
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	8(%rax), %edx
	movl	%edx, 532(%rcx)
	movl	8(%rax), %edx
	movl	%edx, 520(%rcx)
	movl	8(%rax), %edx
	movl	%edx, 528(%rcx)
	movl	8(%rax), %edx
	movl	%edx, 516(%rcx)
	movl	8(%rax), %edx
	movl	%edx, 524(%rcx)
	movl	8(%rax), %eax
	movl	%eax, 512(%rcx)
	jmp	LBB0_33
LBB0_12:
	movq	(%rbx), %rsi
	movl	532(%rsi), %r8d
	xorl	%edi, %edi
	cmpl	%r8d, %edx
	setne	%dil
	movl	516(%rsi), %r10d
	movl	520(%rsi), %r13d
	xorl	%ebx, %ebx
	cmpl	%r13d, %r15d
	setne	%bl
	leaq	(%rdi,%rbx,2), %rdi
	movl	528(%rsi), %r11d
	xorl	%ebx, %ebx
	cmpl	%r11d, %r12d
	setne	%bl
	leaq	(%rdi,%rbx,4), %r9
	movl	20(%rax), %ecx
	movl	24(%rax), %edi
	xorl	%ebx, %ebx
	movl	%r10d, -56(%rbp)                ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpl	%r10d, %ecx
	setne	%bl
	leaq	(%r9,%rbx,8), %r9
	movl	524(%rsi), %ebx
	xorl	%ecx, %ecx
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %edi
	setne	%cl
	shlq	$4, %rcx
	orq	%r9, %rcx
	movl	28(%rax), %eax
	xorl	%ebx, %ebx
	cmpl	512(%rsi), %eax
	setne	%bl
	shlq	$5, %rbx
	orq	%rcx, %rbx
	cmpl	%r8d, %edx
	jne	LBB0_13
## %bb.16:
	cmpl	%r13d, %r15d
	jne	LBB0_17
LBB0_20:
	cmpl	%r11d, %r12d
	jne	LBB0_21
	jmp	LBB0_24
LBB0_13:
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	testb	$62, %bl
	jne	LBB0_15
## %bb.14:
	movq	_WM8766_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	orl	%edx, %eax
	movl	$133, %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_wm8766_write
	movl	-44(%rbp), %r11d                ## 4-byte Reload
	cmpl	%r13d, %r15d
	je	LBB0_20
LBB0_17:
	movl	%r11d, %r15d
	movq	(%r14), %rax
	xorl	%edx, %edx
	testb	$124, %bl
	jne	LBB0_19
## %bb.18:
	movq	_WM8766_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_19:
	orl	12(%rax), %edx
	movl	$130, %esi
	movq	%r14, %rdi
	callq	_wm8766_write
	movl	%r15d, %r11d
	cmpl	%r11d, %r12d
	je	LBB0_24
LBB0_21:
	movq	(%r14), %rax
	xorl	%edx, %edx
	testb	$-8, %bl
	jne	LBB0_23
## %bb.22:
	movq	_WM8766_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_23:
	orl	16(%rax), %edx
	movl	$132, %esi
	movq	%r14, %rdi
	callq	_wm8766_write
LBB0_24:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_28
## %bb.25:
	movq	(%r14), %rax
	xorl	%edx, %edx
	testl	$496, %ebx                      ## imm = 0x1F0
	jne	LBB0_27
## %bb.26:
	movq	_WM8766_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_27:
	orl	20(%rax), %edx
	movl	$129, %esi
	movq	%r14, %rdi
	callq	_wm8766_write
LBB0_28:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_32
## %bb.29:
	movq	(%r14), %rax
	xorl	%edx, %edx
	testl	$992, %ebx                      ## imm = 0x3E0
	jne	LBB0_31
## %bb.30:
	movq	_WM8766_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_31:
	orl	24(%rax), %edx
	movl	$131, %esi
	movq	%r14, %rdi
	callq	_wm8766_write
LBB0_32:
	testb	$32, %bl
	jne	LBB0_34
LBB0_33:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	(%r14), %rax
	movq	_WM8766_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	28(%rax), %edx
	movl	$128, %esi
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wm8766_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8766_MASTDA,8,3              ## @WM8766_MASTDA
	.comm	_WM8766_UPDATE,4,2              ## @WM8766_UPDATE
	.no_dead_strip	_update_wm87x6_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_wm87x6_volume
_update_wm87x6_volume:                  ; @update_wm87x6_volume
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
	bl	_update_wm8776_volume
	ldr	x9, [x19]
	ldp	w8, w26, [x9, #8]
	ldr	w23, [x9, #16]
	cmp	w8, w26
	ccmp	w8, w23, #0, eq
	b.ne	LBB0_7
; %bb.1:
	ldr	w10, [x9, #20]
	cmp	w8, w10
	b.ne	LBB0_6
; %bb.2:
	ldr	w10, [x9, #24]
	cmp	w8, w10
	b.ne	LBB0_6
; %bb.3:
	ldr	w10, [x9, #28]
	mov	x23, x8
	cmp	w8, w10
	b.ne	LBB0_7
; %bb.4:
	ldr	x9, [x20]
	ldr	w10, [x9, #532]
	ldr	w11, [x9, #520]
	ldr	w12, [x9, #528]
	ldr	w13, [x9, #516]
	ldr	w14, [x9, #524]
	ldr	w9, [x9, #512]
	cmp	w8, w9
	ccmp	w8, w14, #0, eq
	ccmp	w8, w13, #0, eq
	ccmp	w8, w12, #0, eq
	ccmp	w8, w11, #0, eq
	ccmp	w8, w10, #0, eq
	b.eq	LBB0_13
; %bb.5:
Lloh0:
	adrp	x9, _WM8766_MASTDA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WM8766_MASTDA@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x9]
Lloh3:
	adrp	x9, _WM8766_UPDATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WM8766_UPDATE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_wm8766_write
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w10, [x8, #8]
	str	w10, [x9, #532]
	ldr	w10, [x8, #8]
	str	w10, [x9, #520]
	ldr	w10, [x8, #8]
	str	w10, [x9, #528]
	ldr	w10, [x8, #8]
	str	w10, [x9, #516]
	ldr	w10, [x8, #8]
	str	w10, [x9, #524]
	ldr	w8, [x8, #8]
	str	w8, [x9, #512]
	b	LBB0_13
LBB0_6:
	mov	x23, x8
LBB0_7:
	ldr	x10, [x20]
	ldr	w11, [x10, #532]
	ldr	w28, [x10, #520]
	cmp	w26, w28
	cset	w12, ne
	ldr	w27, [x10, #528]
	cmp	w23, w27
	cset	w13, ne
	ldr	w24, [x10, #516]
	ldp	w25, w20, [x9, #20]
	cmp	w25, w24
	cset	w14, ne
	ldr	w21, [x10, #524]
	cmp	w20, w21
	cset	w15, ne
	ldr	w9, [x9, #28]
	ldr	w10, [x10, #512]
	cmp	w9, w10
	cset	w9, ne
	cmp	w8, w11
	cset	w10, ne
	bfi	x10, x12, #1, #1
	bfi	x10, x13, #2, #1
	bfi	x10, x14, #3, #1
	bfi	x10, x15, #4, #1
	orr	x22, x10, x9, lsl #5
	b.ne	LBB0_14
; %bb.8:
	cmp	w26, w28
	b.ne	LBB0_15
LBB0_9:
	cmp	w23, w27
	b.ne	LBB0_16
LBB0_10:
	cmp	w25, w24
	b.ne	LBB0_17
LBB0_11:
	cmp	w20, w21
	b.ne	LBB0_18
LBB0_12:
	tbnz	w22, #5, LBB0_19
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh6:
	adrp	x9, _WM8766_UPDATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WM8766_UPDATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	x22, #0x3e
	csel	w9, w9, wzr, eq
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #133
	bl	_wm8766_write
	cmp	w26, w28
	b.eq	LBB0_9
LBB0_15:
	ldr	x8, [x19]
	ldr	w8, [x8, #12]
Lloh9:
	adrp	x9, _WM8766_UPDATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WM8766_UPDATE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	x22, #0x7c
	csel	w9, w9, wzr, eq
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #130
	bl	_wm8766_write
	cmp	w23, w27
	b.eq	LBB0_10
LBB0_16:
	ldr	x8, [x19]
	ldr	w8, [x8, #16]
Lloh12:
	adrp	x9, _WM8766_UPDATE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WM8766_UPDATE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	x22, #0xf8
	csel	w9, w9, wzr, eq
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #132
	bl	_wm8766_write
	cmp	w25, w24
	b.eq	LBB0_11
LBB0_17:
	ldr	x8, [x19]
	ldr	w8, [x8, #20]
Lloh15:
	adrp	x9, _WM8766_UPDATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WM8766_UPDATE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	x22, #0x1f0
	csel	w9, w9, wzr, eq
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #129
	bl	_wm8766_write
	cmp	w20, w21
	b.eq	LBB0_12
LBB0_18:
	ldr	x8, [x19]
	ldr	w8, [x8, #24]
Lloh18:
	adrp	x9, _WM8766_UPDATE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WM8766_UPDATE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	x22, #0x3e0
	csel	w9, w9, wzr, eq
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #131
	bl	_wm8766_write
	tbz	w22, #5, LBB0_13
LBB0_19:
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _WM8766_UPDATE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WM8766_UPDATE@GOTPAGEOFF]
	ldr	w8, [x8, #28]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #128
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_wm8766_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8766_MASTDA,8,3              ; @WM8766_MASTDA
	.comm	_WM8766_UPDATE,4,2              ; @WM8766_UPDATE
	.no_dead_strip	_update_wm87x6_volume
.subsections_via_symbols
