	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aaci_ac97_select_codec
_aaci_ac97_select_codec:                ## @aaci_ac97_select_codec
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	movl	(%rsi), %edi
	callq	_MAINCR_SCRA
	movl	%eax, %r14d
	movq	_AACI_SLFR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_SLFR_2RXV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_AACI_SL2RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
LBB0_2:
	movq	_SLFR_1RXV@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_AACI_SL1RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
LBB0_4:
	orl	%r12d, %r14d
	movq	_AACI_MAINCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AACI_SLFR,8,3                  ## @AACI_SLFR
	.comm	_SLFR_2RXV,4,2                  ## @SLFR_2RXV
	.comm	_AACI_SL2RX,8,3                 ## @AACI_SL2RX
	.comm	_SLFR_1RXV,4,2                  ## @SLFR_1RXV
	.comm	_AACI_SL1RX,8,3                 ## @AACI_SL1RX
	.comm	_AACI_MAINCR,8,3                ## @AACI_MAINCR
	.no_dead_strip	_aaci_ac97_select_codec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aaci_ac97_select_codec
_aaci_ac97_select_codec:                ; @aaci_ac97_select_codec
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w22, [x0]
	ldr	w0, [x1]
	bl	_MAINCR_SCRA
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _AACI_SLFR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AACI_SLFR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
Lloh3:
	adrp	x8, _SLFR_2RXV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SLFR_2RXV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _AACI_SL2RX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AACI_SL2RX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
LBB0_2:
Lloh9:
	adrp	x8, _SLFR_1RXV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SLFR_1RXV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _AACI_SL1RX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AACI_SL1RX@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
LBB0_4:
	orr	w0, w20, w22
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _AACI_MAINCR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AACI_MAINCR@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AACI_SLFR,8,3                  ; @AACI_SLFR
	.comm	_SLFR_2RXV,4,2                  ; @SLFR_2RXV
	.comm	_AACI_SL2RX,8,3                 ; @AACI_SL2RX
	.comm	_SLFR_1RXV,4,2                  ; @SLFR_1RXV
	.comm	_AACI_SL1RX,8,3                 ; @AACI_SL1RX
	.comm	_AACI_MAINCR,8,3                ; @AACI_MAINCR
	.no_dead_strip	_aaci_ac97_select_codec
.subsections_via_symbols
