	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_determine_spdif_rates
_snd_ac97_determine_spdif_rates:        ## @snd_ac97_determine_spdif_rates
	.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, -56(%rbp)                 ## 8-byte Spill
	leaq	_snd_ac97_determine_spdif_rates.ctl_bits(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	leaq	_snd_ac97_determine_spdif_rates.rate_bits(%rip), %r13
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	leaq	_snd_ac97_determine_spdif_rates.ctl_bits(%rip), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r13
	addq	$2, %r14
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_AC97_SPDIF@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AC97_SC_SPSR_MASK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edx
	movzwl	(%r14), %ecx
	movq	%r12, %rdi
	callq	_snd_ac97_update_bits
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_snd_ac97_read
	movq	_AC97_SC_SPSR_MASK@GOTPCREL(%rip), %rcx
	andw	(%rcx), %ax
	cmpw	(%r14), %ax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	1                               ## @snd_ac97_determine_spdif_rates.ctl_bits
_snd_ac97_determine_spdif_rates.ctl_bits:
	.short	132                             ## 0x84
	.short	133                             ## 0x85
	.short	131                             ## 0x83

	.section	__TEXT,__const
	.p2align	2                               ## @snd_ac97_determine_spdif_rates.rate_bits
_snd_ac97_determine_spdif_rates.rate_bits:
	.long	129                             ## 0x81
	.long	130                             ## 0x82
	.long	128                             ## 0x80

	.comm	_AC97_SPDIF,4,2                 ## @AC97_SPDIF
	.comm	_AC97_SC_SPSR_MASK,2,1          ## @AC97_SC_SPSR_MASK
	.no_dead_strip	_snd_ac97_determine_spdif_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ac97_determine_spdif_rates
_snd_ac97_determine_spdif_rates:        ; @snd_ac97_determine_spdif_rates
	.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	x19, x0
Lloh0:
	adrp	x20, _snd_ac97_determine_spdif_rates.ctl_bits@PAGE
Lloh1:
	add	x20, x20, _snd_ac97_determine_spdif_rates.ctl_bits@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
	mov	w21, #0
Lloh2:
	adrp	x23, _AC97_SPDIF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AC97_SPDIF@GOTPAGEOFF]
Lloh4:
	adrp	x24, _AC97_SC_SPSR_MASK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _AC97_SC_SPSR_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x25, _snd_ac97_determine_spdif_rates.rate_bits@PAGE
Lloh7:
	add	x25, x25, _snd_ac97_determine_spdif_rates.rate_bits@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldrh	w2, [x24]
	lsl	x26, x22, #1
	ldrh	w3, [x20, x26]
	mov	x0, x19
	bl	_snd_ac97_update_bits
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_ac97_read
	ldrh	w8, [x24]
	and	w8, w8, w0
	ldrh	w9, [x20, x26]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25, x22, lsl #2]
	orr	w21, w8, w21
	b	LBB0_2
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	1                               ; @snd_ac97_determine_spdif_rates.ctl_bits
_snd_ac97_determine_spdif_rates.ctl_bits:
	.short	132                             ; 0x84
	.short	133                             ; 0x85
	.short	131                             ; 0x83

	.section	__TEXT,__const
	.p2align	2                               ; @snd_ac97_determine_spdif_rates.rate_bits
_snd_ac97_determine_spdif_rates.rate_bits:
	.long	129                             ; 0x81
	.long	130                             ; 0x82
	.long	128                             ; 0x80

	.comm	_AC97_SPDIF,4,2                 ; @AC97_SPDIF
	.comm	_AC97_SC_SPSR_MASK,2,1          ; @AC97_SC_SPSR_MASK
	.no_dead_strip	_snd_ac97_determine_spdif_rates
.subsections_via_symbols
