	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_vol_get
_em28xx_vol_get:                        ## @em28xx_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	%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
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_snd_kcontrol_chip
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	%rax, %r12
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	callq	_mutex_trylock
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%r12, %rdi
	callq	_mutex_lock
LBB0_8:
	movq	(%r15), %rsi
	movq	%r12, %rdi
	callq	_em28xx_read_ac97
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.9:
	movl	%ebx, %r12d
	notl	%r12d
	testl	$32768, %ebx                    ## imm = 0x8000
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	%ebx, %r13d
	shrl	$8, %r13d
	notl	%r13d
	andl	$31, %r13d
	andl	$31, %r12d
	movl	(%r15), %r9d
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_dprintk
	movq	(%r14), %rax
	movl	%r12d, (%rax)
	movl	%r13d, 4(%rax)
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sleft vol %d, right vol %d (0x%04x) from ac97 volume control 0x%04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"muted "

L_.str.2:                               ## @.str.2
	.space	1

	.no_dead_strip	_em28xx_vol_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_vol_get
_em28xx_vol_get:                        ; @em28xx_vol_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_3:
	mov	x22, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x22
	bl	_mutex_trylock
	cbnz	w0, LBB0_8
; %bb.6:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	mov	x0, x22
	bl	_mutex_lock
LBB0_8:
	ldr	x1, [x20]
	mov	x0, x22
	bl	_em28xx_read_ac97
	mov	x21, x0
	mov	x0, x22
	bl	_mutex_unlock
	tbnz	w21, #31, LBB0_10
; %bb.9:
	mvn	w8, w21
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh9:
	adrp	x10, l_.str.2@PAGE
Lloh10:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w21, #0x8000
	csel	x1, x10, x9, eq
	mov	w9, #31
	bic	w22, w9, w21, lsr #8
	and	w23, w8, #0x1f
	ldr	w5, [x20]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	mov	x4, x21
	bl	_dprintk
	mov	w21, #0
	ldr	x8, [x19]
	stp	w23, w22, [x8]
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sleft vol %d, right vol %d (0x%04x) from ac97 volume control 0x%04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"muted "

l_.str.2:                               ; @.str.2
	.space	1

	.no_dead_strip	_em28xx_vol_get
.subsections_via_symbols
