	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs46xx_ac97_read
_snd_cs46xx_ac97_read:                  ## @snd_cs46xx_ac97_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	(%rdi), %ebx
	movq	_CS46XX_PRIMARY_CODEC_INDEX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	setne	%al
	movq	_CS46XX_SECONDARY_CODEC_INDEX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	movq	8(%rdi), %r15
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$65535, %eax                    ## imm = 0xFFFF
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movzwl	%r14w, %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_cs46xx_codec_read          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CS46XX_PRIMARY_CODEC_INDEX,4,2 ## @CS46XX_PRIMARY_CODEC_INDEX
	.comm	_CS46XX_SECONDARY_CODEC_INDEX,4,2 ## @CS46XX_SECONDARY_CODEC_INDEX
	.no_dead_strip	_snd_cs46xx_ac97_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs46xx_ac97_read
_snd_cs46xx_ac97_read:                  ; @snd_cs46xx_ac97_read
	.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, x1
	ldr	x21, [x0, #8]
	ldr	w20, [x0]
Lloh0:
	adrp	x8, _CS46XX_PRIMARY_CODEC_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CS46XX_PRIMARY_CODEC_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
Lloh3:
	adrp	x8, _CS46XX_SECONDARY_CODEC_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CS46XX_SECONDARY_CODEC_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w20, w8, #4, ne
	cset	w0, ne
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #65535
	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
	ret
LBB0_2:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	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	_snd_cs46xx_codec_read
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CS46XX_PRIMARY_CODEC_INDEX,4,2 ; @CS46XX_PRIMARY_CODEC_INDEX
	.comm	_CS46XX_SECONDARY_CODEC_INDEX,4,2 ; @CS46XX_SECONDARY_CODEC_INDEX
	.no_dead_strip	_snd_cs46xx_ac97_read
.subsections_via_symbols
