	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_get_volsw
_snd_ac97_get_volsw:                    ## @snd_ac97_get_volsw
	.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	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %rdi
	movl	(%r14), %r12d
	movzbl	%r12b, %r13d
	movl	%r12d, %r15d
	shrl	$8, %r15d
	andl	$15, %r15d
	movl	%r12d, %ebx
	shrl	$12, %ebx
	andl	$15, %ebx
	movl	%r12d, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %esi
	movq	%r14, %rdx
	movq	%rdi, %r14
	callq	_snd_ac97_page_save
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	callq	_snd_ac97_read_cache
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%r15d, %ecx
	sarl	%cl, %eax
	andl	%edi, %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	cmpl	%ebx, %r15d
	jne	LBB0_2
## %bb.1:
	testl	$16777216, %r12d                ## imm = 0x1000000
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movl	%edi, %r15d
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_snd_ac97_read_cache
	movl	%ebx, %ecx
	sarl	%cl, %eax
	andl	%r15d, %eax
	movq	(%r13), %rdx
	movl	%eax, 4(%rdx)
	testl	$16777216, %r12d                ## imm = 0x1000000
	je	LBB0_5
## %bb.3:
	movl	%r15d, %edi
	leaq	4(%rdx), %rcx
	movl	%r15d, %esi
	subl	(%rdx), %esi
	movl	%esi, (%rdx)
LBB0_4:
	subl	%eax, %edi
	movl	%edi, (%rcx)
LBB0_5:
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_snd_ac97_page_restore
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_ac97_get_volsw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ac97_get_volsw
_snd_ac97_get_volsw:                    ; @snd_ac97_get_volsw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w24, [x20]
	ubfx	w26, w24, #8, #4
	and	w22, w24, #0xff
	ubfx	w25, w24, #12, #4
	ubfx	w23, w24, #16, #8
	mov	x1, x22
	mov	x2, x20
	bl	_snd_ac97_page_save
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ac97_read_cache
	asr	w8, w0, w26
	and	w8, w8, w23
	ldr	x9, [x21]
	str	w8, [x9]
	cmp	w26, w25
	b.ne	LBB0_2
; %bb.1:
	tbnz	w24, #24, LBB0_4
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	bl	_snd_ac97_read_cache
	asr	w8, w0, w25
	and	w8, w8, w23
	ldr	x10, [x21]
	mov	x9, x10
	str	w8, [x9, #4]!
	tbz	w24, #24, LBB0_5
; %bb.3:
	ldr	w11, [x10]
	sub	w11, w23, w11
	str	w11, [x10]
LBB0_4:
	sub	w8, w23, w8
	str	w8, [x9]
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ac97_page_restore
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_ac97_get_volsw
.subsections_via_symbols
