	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8766_vol_get
_wm8766_vol_get:                        ## @wm8766_vol_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movl	(%rbx), %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	jl	LBB0_19
## %bb.1:
	movl	%ecx, %edx
	movzbl	%cl, %r8d
	shrq	$8, %rcx
	movq	(%rax), %rax
	movq	(%rax), %r9
	movq	(%r14), %rax
	cmpl	$2048, %edx                     ## imm = 0x800
	jb	LBB0_2
## %bb.3:
	leaq	(%r9,%r8,4), %rdx
	movq	%rax, %rsi
	subq	%rdx, %rsi
	cmpq	$32, %rsi
	jae	LBB0_5
LBB0_2:
	xorl	%esi, %esi
LBB0_13:
	movq	%rsi, %r10
	notq	%r10
	addq	%rcx, %r10
	movq	%rcx, %rdi
	andq	$3, %rdi
	je	LBB0_16
## %bb.14:
	leaq	(%r9,%r8,4), %rbx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rsi,4), %edx
	movl	%edx, (%rax,%rsi,4)
	incq	%rsi
	decq	%rdi
	jne	LBB0_15
LBB0_16:
	cmpq	$3, %r10
	jb	LBB0_19
## %bb.17:
	leaq	(%r9,%r8,4), %rdx
	addq	$12, %rdx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	-12(%rdx,%rsi,4), %edi
	movl	%edi, (%rax,%rsi,4)
	movl	-8(%rdx,%rsi,4), %edi
	movl	%edi, 4(%rax,%rsi,4)
	movl	-4(%rdx,%rsi,4), %edi
	movl	%edi, 8(%rax,%rsi,4)
	movl	(%rdx,%rsi,4), %edi
	movl	%edi, 12(%rax,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_18
	jmp	LBB0_19
LBB0_5:
	movl	%ecx, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rdx
	movq	%rdx, %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r10d
	andl	$3, %r10d
	cmpq	$24, %rdx
	jae	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_7:
	andq	$-4, %rbx
	leaq	(%r9,%r8,4), %rdx
	addq	$112, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	-112(%rdx,%rdi,4), %xmm0
	movups	-96(%rdx,%rdi,4), %xmm1
	movups	%xmm0, (%rax,%rdi,4)
	movups	%xmm1, 16(%rax,%rdi,4)
	movups	-80(%rdx,%rdi,4), %xmm0
	movups	-64(%rdx,%rdi,4), %xmm1
	movups	%xmm0, 32(%rax,%rdi,4)
	movups	%xmm1, 48(%rax,%rdi,4)
	movups	-48(%rdx,%rdi,4), %xmm0
	movups	-32(%rdx,%rdi,4), %xmm1
	movups	%xmm0, 64(%rax,%rdi,4)
	movups	%xmm1, 80(%rax,%rdi,4)
	movups	-16(%rdx,%rdi,4), %xmm0
	movups	(%rdx,%rdi,4), %xmm1
	movups	%xmm0, 96(%rax,%rdi,4)
	movups	%xmm1, 112(%rax,%rdi,4)
	addq	$32, %rdi
	addq	$-4, %rbx
	jne	LBB0_8
LBB0_9:
	testq	%r10, %r10
	je	LBB0_12
## %bb.10:
	leaq	(%rax,%rdi,4), %rdx
	addq	$16, %rdx
	addq	%r8, %rdi
	leaq	(%r9,%rdi,4), %rdi
	addq	$16, %rdi
	shlq	$5, %r10
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rdi,%rbx), %xmm0
	movups	(%rdi,%rbx), %xmm1
	movups	%xmm0, -16(%rdx,%rbx)
	movups	%xmm1, (%rdx,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r10
	jne	LBB0_11
LBB0_12:
	cmpq	%rcx, %rsi
	jne	LBB0_13
LBB0_19:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wm8766_vol_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8766_vol_get
_wm8766_vol_get:                        ; @wm8766_vol_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	ldr	w12, [x20]
	cmp	w12, #256
	b.lt	LBB0_6
; %bb.1:
	and	x9, x12, #0xff
	lsr	x8, x12, #8
	ldr	x10, [x0]
	ldr	x11, [x10]
	ldr	x10, [x19]
	cmp	w12, #1, lsl #12                ; =4096
	b.lo	LBB0_3
; %bb.2:
	add	x14, x11, x9, lsl #2
	sub	x12, x10, x14
	cmp	x12, #64
	b.hs	LBB0_7
LBB0_3:
	mov	x12, #0
LBB0_4:
	add	x9, x12, x9
	add	x9, x11, x9, lsl #2
	add	x10, x10, x12, lsl #2
	sub	x8, x8, x12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	str	w11, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	and	x12, x8, #0xfffff0
	add	x13, x10, #32
	add	x14, x14, #32
	mov	x15, x12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x15, x15, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x12, x8
	b.eq	LBB0_6
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wm8766_vol_get
.subsections_via_symbols
