	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_ak4114_check_rate_and_errors ## -- Begin function snd_ak4114_check_rate_and_errors
	.p2align	4, 0x90
_snd_ak4114_check_rate_and_errors:      ## @snd_ak4114_check_rate_and_errors
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_AK4114_REG_RCS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_reg_read
	movl	%eax, %r13d
	movq	_AK4114_CHECK_NO_STAT@GOTPCREL(%rip), %rax
	movzbl	%r13b, %r15d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	testl	%ebx, (%rax)
	jne	LBB0_15
## %bb.4:
	movq	_AK4114_REG_RCS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_reg_read
	movl	%eax, %ebx
	leaq	24(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_AK4114_PAR@GOTPCREL(%rip), %rax
	testb	%bl, (%rax)
	je	LBB0_6
## %bb.5:
	incl	40(%r12)
LBB0_6:
	movq	_AK4114_V@GOTPCREL(%rip), %rax
	testb	%r13b, (%rax)
	je	LBB0_8
## %bb.7:
	incl	36(%r12)
LBB0_8:
	movq	_AK4114_CCRC@GOTPCREL(%rip), %rax
	testb	%r13b, (%rax)
	je	LBB0_10
## %bb.9:
	incl	32(%r12)
LBB0_10:
	movq	_AK4114_QCRC@GOTPCREL(%rip), %rax
	testb	%r13b, (%rax)
	je	LBB0_12
## %bb.11:
	incl	28(%r12)
LBB0_12:
	movq	_AK4114_QINT@GOTPCREL(%rip), %rcx
	movq	_AK4114_CINT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	(%rcx), %al
	movq	_AK4114_PEM@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	%al, %cl
	movq	_AK4114_AUDION@GOTPCREL(%rip), %rdx
	orb	(%rdx), %cl
	movq	_AK4114_AUTO@GOTPCREL(%rip), %rdx
	orb	(%rdx), %cl
	movq	_AK4114_UNLCK@GOTPCREL(%rip), %rdx
	orb	(%rdx), %cl
	movb	(%r12), %r14b
	xorb	%bl, %r14b
	andb	%cl, %r14b
	xorb	4(%r12), %r13b
	andb	$-16, %r13b
	notb	%al
	andb	%bl, %al
	movb	%al, (%r12)
	movl	%r15d, 4(%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movzbl	%r14b, %ecx
	movl	%ebx, %eax
	movzbl	%r13b, %ebx
	movzbl	%al, %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r8d
	callq	_ak4114_notify
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	orb	%r14b, %r13b
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	*%rax
LBB0_15:
	movl	%r15d, %edi
	callq	_external_rate
	movl	%eax, %ebx
	movq	_AK4114_CHECK_NO_RATE@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	jne	LBB0_21
## %bb.16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	cmpl	%ebx, (%rax)
	je	LBB0_21
## %bb.18:
	movq	8(%r12), %rdi
	callq	_snd_pcm_stream_lock_irqsave
	movq	8(%r12), %rdi
	callq	_snd_pcm_running
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	8(%r12), %rdi
	movq	_SNDRV_PCM_STATE_DRAINING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_snd_pcm_stop
	movl	$1, %ebx
LBB0_20:
	movq	8(%r12), %rdi
	callq	_snd_pcm_stream_unlock_irqrestore
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AK4114_REG_RCS1,4,2            ## @AK4114_REG_RCS1
	.comm	_AK4114_CHECK_NO_STAT,4,2       ## @AK4114_CHECK_NO_STAT
	.comm	_AK4114_REG_RCS0,4,2            ## @AK4114_REG_RCS0
	.comm	_AK4114_PAR,1,0                 ## @AK4114_PAR
	.comm	_AK4114_V,1,0                   ## @AK4114_V
	.comm	_AK4114_CCRC,1,0                ## @AK4114_CCRC
	.comm	_AK4114_QCRC,1,0                ## @AK4114_QCRC
	.comm	_AK4114_QINT,1,0                ## @AK4114_QINT
	.comm	_AK4114_CINT,1,0                ## @AK4114_CINT
	.comm	_AK4114_PEM,1,0                 ## @AK4114_PEM
	.comm	_AK4114_AUDION,1,0              ## @AK4114_AUDION
	.comm	_AK4114_AUTO,1,0                ## @AK4114_AUTO
	.comm	_AK4114_UNLCK,1,0               ## @AK4114_UNLCK
	.comm	_AK4114_CHECK_NO_RATE,4,2       ## @AK4114_CHECK_NO_RATE
	.comm	_SNDRV_PCM_STATE_DRAINING,4,2   ## @SNDRV_PCM_STATE_DRAINING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_ak4114_check_rate_and_errors ; -- Begin function snd_ak4114_check_rate_and_errors
	.p2align	2
_snd_ak4114_check_rate_and_errors:      ; @snd_ak4114_check_rate_and_errors
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x24, [x8]
	b	LBB0_3
LBB0_2:
	mov	x24, #0
LBB0_3:
Lloh0:
	adrp	x8, _AK4114_REG_RCS1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AK4114_REG_RCS1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_read
	mov	x21, x0
Lloh3:
	adrp	x8, _AK4114_CHECK_NO_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AK4114_CHECK_NO_STAT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_15
; %bb.4:
Lloh6:
	adrp	x8, _AK4114_REG_RCS0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AK4114_REG_RCS0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_read
	mov	x22, x0
	add	x23, x19, #24
	mov	x0, x23
	bl	_spin_lock_irqsave
Lloh9:
	adrp	x8, _AK4114_PAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AK4114_PAR@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
LBB0_6:
Lloh11:
	adrp	x8, _AK4114_V@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AK4114_V@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
LBB0_8:
Lloh13:
	adrp	x8, _AK4114_CCRC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AK4114_CCRC@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
LBB0_10:
Lloh15:
	adrp	x8, _AK4114_QCRC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AK4114_QCRC@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_12:
	ldrb	w8, [x19]
Lloh17:
	adrp	x9, _AK4114_QINT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AK4114_QINT@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh19:
	adrp	x10, _AK4114_CINT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _AK4114_CINT@GOTPAGEOFF]
	ldrb	w10, [x10]
	orr	w9, w10, w9
Lloh21:
	adrp	x10, _AK4114_PEM@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AK4114_PEM@GOTPAGEOFF]
	ldrb	w10, [x10]
Lloh23:
	adrp	x11, _AK4114_AUDION@GOTPAGE
Lloh24:
	ldr	x11, [x11, _AK4114_AUDION@GOTPAGEOFF]
	orr	w10, w9, w10
	ldrb	w11, [x11]
	orr	w10, w10, w11
Lloh25:
	adrp	x11, _AK4114_AUTO@GOTPAGE
Lloh26:
	ldr	x11, [x11, _AK4114_AUTO@GOTPAGEOFF]
	ldrb	w11, [x11]
	orr	w10, w10, w11
Lloh27:
	adrp	x11, _AK4114_UNLCK@GOTPAGE
Lloh28:
	ldr	x11, [x11, _AK4114_UNLCK@GOTPAGEOFF]
	ldrb	w11, [x11]
	orr	w10, w10, w11
	eor	w8, w8, w22
	and	w25, w10, w8
	ldr	w8, [x19, #4]
	eor	w26, w21, w8
	bic	w8, w22, w9
	strb	w8, [x19]
	str	w21, [x19, #4]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	and	w3, w25, #0xff
	and	w4, w26, #0xf0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_ak4114_notify
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.13:
	and	w9, w26, #0xfffffff0
	orr	w10, w9, w25
	tst	w10, #0xff
	b.eq	LBB0_15
; %bb.14:
	and	w1, w25, #0xff
	and	w2, w9, #0xff
	mov	x0, x19
	blr	x8
LBB0_15:
	mov	x0, x21
	bl	_external_rate
	mov	x21, x0
Lloh29:
	adrp	x8, _AK4114_CHECK_NO_RATE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AK4114_CHECK_NO_RATE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	and	w8, w8, w20
	cmp	w8, #0
	ccmp	x24, #0, #4, eq
	b.eq	LBB0_20
; %bb.16:
	ldr	w8, [x24]
	cmp	w8, w21
	b.eq	LBB0_20
; %bb.17:
	ldr	x0, [x19, #8]
	bl	_snd_pcm_stream_lock_irqsave
	ldr	x0, [x19, #8]
	bl	_snd_pcm_running
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x0, [x19, #8]
Lloh32:
	adrp	x8, _SNDRV_PCM_STATE_DRAINING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SNDRV_PCM_STATE_DRAINING@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_snd_pcm_stop
	mov	w21, #1
LBB0_19:
	ldr	x0, [x19, #8]
	bl	_snd_pcm_stream_unlock_irqrestore
LBB0_20:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_AK4114_REG_RCS1,4,2            ; @AK4114_REG_RCS1
	.comm	_AK4114_CHECK_NO_STAT,4,2       ; @AK4114_CHECK_NO_STAT
	.comm	_AK4114_REG_RCS0,4,2            ; @AK4114_REG_RCS0
	.comm	_AK4114_PAR,1,0                 ; @AK4114_PAR
	.comm	_AK4114_V,1,0                   ; @AK4114_V
	.comm	_AK4114_CCRC,1,0                ; @AK4114_CCRC
	.comm	_AK4114_QCRC,1,0                ; @AK4114_QCRC
	.comm	_AK4114_QINT,1,0                ; @AK4114_QINT
	.comm	_AK4114_CINT,1,0                ; @AK4114_CINT
	.comm	_AK4114_PEM,1,0                 ; @AK4114_PEM
	.comm	_AK4114_AUDION,1,0              ; @AK4114_AUDION
	.comm	_AK4114_AUTO,1,0                ; @AK4114_AUTO
	.comm	_AK4114_UNLCK,1,0               ; @AK4114_UNLCK
	.comm	_AK4114_CHECK_NO_RATE,4,2       ; @AK4114_CHECK_NO_RATE
	.comm	_SNDRV_PCM_STATE_DRAINING,4,2   ; @SNDRV_PCM_STATE_DRAINING
.subsections_via_symbols
