	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_proc_read_functions
_snd_ac97_proc_read_functions:          ## @snd_ac97_proc_read_functions
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	leaq	_reltable.snd_ac97_proc_read_functions(%rip), %r12
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_AC97_SENSE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_snd_ac97_read
	movzwl	%ax, %edi
	movslq	(%r12), %rdx
	leaq	_reltable.snd_ac97_proc_read_functions(%rip), %rax
	addq	%rax, %rdx
	movl	%r15d, %ecx
	shrl	$12, %ecx
	andb	$7, %cl
	movzbl	%cl, %esi
	negb	%cl
	testl	$32768, %r15d                   ## imm = 0x8000
	movzbl	%cl, %ecx
	cmovel	%esi, %ecx
	leal	(%rcx,%rcx,2), %ecx
	movl	%ecx, %eax
	shrb	$7, %al
	addb	%cl, %al
	sarb	%al
	movsbl	%al, %ecx
	movl	%r15d, %eax
	shrl	$11, %eax
	andl	$1, %eax
	leal	(%rax,%rax,4), %r8d
	testl	$1024, %r15d                    ## imm = 0x400
	movl	$88, %r9d
	movl	$45, %eax
	cmovel	%eax, %r9d
	shrl	$5, %r15d
	andl	$31, %r15d
	shrq	$13, %rdi
	leaq	_reltable.snd_ac97_proc_read_functions.20(%rip), %rax
	movslq	(%rax,%rdi,4), %r10
	addq	%rax, %r10
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.19(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r15
	callq	_snd_iprintf
	addq	$16, %rsp
	movl	$1, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %r12
	addq	$2, %rbx
	cmpq	$24, %rbx
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_AC97_FUNC_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_snd_ac97_write
	movq	_AC97_FUNC_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_snd_ac97_read
	movzwl	%ax, %r15d
	testb	$1, %r15b
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.18(%rip), %rsi
	xorl	%eax, %eax
	callq	_snd_iprintf
	jmp	LBB0_4
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.snd_ac97_proc_read_functions
_reltable.snd_ac97_proc_read_functions:
	.long	L_.str-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.1-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.2-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.3-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.4-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.5-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.6-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.7-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.8-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.9-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.10-_reltable.snd_ac97_proc_read_functions
	.long	L_.str.11-_reltable.snd_ac97_proc_read_functions

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Master Out"

L_.str.1:                               ## @.str.1
	.asciz	"AUX Out"

L_.str.2:                               ## @.str.2
	.asciz	"Center/LFE Out"

L_.str.3:                               ## @.str.3
	.asciz	"SPDIF Out"

L_.str.4:                               ## @.str.4
	.asciz	"Phone In"

L_.str.5:                               ## @.str.5
	.asciz	"Mic 1"

L_.str.6:                               ## @.str.6
	.asciz	"Mic 2"

L_.str.7:                               ## @.str.7
	.asciz	"Line In"

L_.str.8:                               ## @.str.8
	.asciz	"CD In"

L_.str.9:                               ## @.str.9
	.asciz	"Video In"

L_.str.10:                              ## @.str.10
	.asciz	"Aux In"

L_.str.11:                              ## @.str.11
	.asciz	"Mono Out"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.snd_ac97_proc_read_functions.20
_reltable.snd_ac97_proc_read_functions.20:
	.long	L_.str.12-_reltable.snd_ac97_proc_read_functions.20
	.long	L_.str.13-_reltable.snd_ac97_proc_read_functions.20
	.long	L_.str.14-_reltable.snd_ac97_proc_read_functions.20
	.long	L_.str.15-_reltable.snd_ac97_proc_read_functions.20
	.long	L_.str.16-_reltable.snd_ac97_proc_read_functions.20
	.long	L_.str.16-_reltable.snd_ac97_proc_read_functions.20
	.long	L_.str.16-_reltable.snd_ac97_proc_read_functions.20
	.long	L_.str.17-_reltable.snd_ac97_proc_read_functions.20

	.section	__TEXT,__cstring,cstring_literals
L_.str.12:                              ## @.str.12
	.asciz	"Rear I/O Panel"

L_.str.13:                              ## @.str.13
	.asciz	"Front Panel"

L_.str.14:                              ## @.str.14
	.asciz	"Motherboard"

L_.str.15:                              ## @.str.15
	.asciz	"Dock/External"

L_.str.16:                              ## @.str.16
	.asciz	"reserved"

L_.str.17:                              ## @.str.17
	.asciz	"NC/unused"

	.comm	_AC97_FUNC_SELECT,4,2           ## @AC97_FUNC_SELECT
	.comm	_AC97_FUNC_INFO,4,2             ## @AC97_FUNC_INFO
L_.str.18:                              ## @.str.18
	.asciz	"\n                    Gain     Inverted  Buffer delay  Location\n"

	.comm	_AC97_SENSE_INFO,4,2            ## @AC97_SENSE_INFO
L_.str.19:                              ## @.str.19
	.asciz	"%-17s: %3d.%d dBV    %c      %2d/fs         %s\n"

	.no_dead_strip	_snd_ac97_proc_read_functions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ac97_proc_read_functions
_snd_ac97_proc_read_functions:          ; @snd_ac97_proc_read_functions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x20, x0
	mov	x21, #0
	mov	w28, #0
Lloh0:
	adrp	x25, _snd_ac97_proc_read_functions.function_names@PAGE
Lloh1:
	add	x25, x25, _snd_ac97_proc_read_functions.function_names@PAGEOFF
Lloh2:
	adrp	x26, _AC97_FUNC_SELECT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _AC97_FUNC_SELECT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _AC97_FUNC_INFO@GOTPAGE
Lloh5:
	ldr	x27, [x27, _AC97_FUNC_INFO@GOTPAGEOFF]
	mov	w22, #45
Lloh6:
	adrp	x23, l_.str.19@PAGE
Lloh7:
	add	x23, x23, l_.str.19@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x8, _AC97_SENSE_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AC97_SENSE_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_ac97_read
	ldr	x8, [x25]
	ubfx	w9, w24, #12, #3
	tst	w24, #0x8000
	cneg	w9, w9, ne
	add	w9, w9, w9, lsl #1
	and	w10, w9, #0x80
	add	w9, w9, w10, lsr #7
	ubfx	w10, w24, #11, #1
	bfi	w10, w10, #2, #1
	ubfx	w11, w24, #5, #5
	lsr	w12, w0, #13
Lloh11:
	adrp	x13, _snd_ac97_proc_read_functions.locations@PAGE
Lloh12:
	add	x13, x13, _snd_ac97_proc_read_functions.locations@PAGEOFF
	ldr	x12, [x13, w12, uxtw #3]
	stp	x11, x12, [sp, #32]
	tst	w24, #0x400
	mov	w11, #88
	csel	x11, x22, x11, eq
	stp	x10, x11, [sp, #16]
	sbfx	x9, x9, #1, #31
	stp	x8, x9, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_snd_iprintf
	mov	w28, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #2
	add	x25, x25, #8
	cmp	x21, #24
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x20
	mov	x2, x21
	bl	_snd_ac97_write
	ldr	w1, [x27]
	mov	x0, x20
	bl	_snd_ac97_read
	tbz	w0, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	cbnz	w28, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
Lloh13:
	adrp	x1, l_.str.18@PAGE
Lloh14:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_snd_iprintf
	b	LBB0_1
LBB0_6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @snd_ac97_proc_read_functions.function_names
_snd_ac97_proc_read_functions.function_names:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.8
	.quad	l_.str.9
	.quad	l_.str.10
	.quad	l_.str.11

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Master Out"

l_.str.1:                               ; @.str.1
	.asciz	"AUX Out"

l_.str.2:                               ; @.str.2
	.asciz	"Center/LFE Out"

l_.str.3:                               ; @.str.3
	.asciz	"SPDIF Out"

l_.str.4:                               ; @.str.4
	.asciz	"Phone In"

l_.str.5:                               ; @.str.5
	.asciz	"Mic 1"

l_.str.6:                               ; @.str.6
	.asciz	"Mic 2"

l_.str.7:                               ; @.str.7
	.asciz	"Line In"

l_.str.8:                               ; @.str.8
	.asciz	"CD In"

l_.str.9:                               ; @.str.9
	.asciz	"Video In"

l_.str.10:                              ; @.str.10
	.asciz	"Aux In"

l_.str.11:                              ; @.str.11
	.asciz	"Mono Out"

	.section	__DATA,__const
	.p2align	3                               ; @snd_ac97_proc_read_functions.locations
_snd_ac97_proc_read_functions.locations:
	.quad	l_.str.12
	.quad	l_.str.13
	.quad	l_.str.14
	.quad	l_.str.15
	.quad	l_.str.16
	.quad	l_.str.16
	.quad	l_.str.16
	.quad	l_.str.17

	.section	__TEXT,__cstring,cstring_literals
l_.str.12:                              ; @.str.12
	.asciz	"Rear I/O Panel"

l_.str.13:                              ; @.str.13
	.asciz	"Front Panel"

l_.str.14:                              ; @.str.14
	.asciz	"Motherboard"

l_.str.15:                              ; @.str.15
	.asciz	"Dock/External"

l_.str.16:                              ; @.str.16
	.asciz	"reserved"

l_.str.17:                              ; @.str.17
	.asciz	"NC/unused"

	.comm	_AC97_FUNC_SELECT,4,2           ; @AC97_FUNC_SELECT
	.comm	_AC97_FUNC_INFO,4,2             ; @AC97_FUNC_INFO
l_.str.18:                              ; @.str.18
	.asciz	"\n                    Gain     Inverted  Buffer delay  Location\n"

	.comm	_AC97_SENSE_INFO,4,2            ; @AC97_SENSE_INFO
l_.str.19:                              ; @.str.19
	.asciz	"%-17s: %3d.%d dBV    %c      %2d/fs         %s\n"

	.no_dead_strip	_snd_ac97_proc_read_functions
.subsections_via_symbols
