	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ml403_ac97cr_capture_ind2_null
_snd_ml403_ac97cr_capture_ind2_null:    ## @snd_ml403_ac97cr_capture_ind2_null
	.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	%rsi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_spin_lock
	movq	_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_CR_REG
	movl	%eax, %edi
	callq	_in_be32
	movq	_CR_RECEMPTY@GOTPCREL(%rip), %r13
	notl	%eax
	xorl	%ebx, %ebx
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_RECFIFO@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_CR_REG
	movl	%eax, %edi
	callq	_in_be32
	movl	%eax, %edi
	callq	_CR_RECDATA
	movl	%eax, -44(%rbp)
	incl	-44(%rbp)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_CR_REG
	movl	%eax, %edi
	callq	_in_be32
	notl	%eax
	addl	$2, %ebx
	testl	%eax, (%r13)
	jne	LBB0_2
## %bb.3:
	movl	%ebx, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_4:
	movq	$0, (%r14)
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_CR_RECEMPTY,4,2                ## @CR_RECEMPTY
	.comm	_RECFIFO,4,2                    ## @RECFIFO
	.no_dead_strip	_snd_ml403_ac97cr_capture_ind2_null
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ml403_ac97cr_capture_ind2_null
_snd_ml403_ac97cr_capture_ind2_null:    ; @snd_ml403_ac97cr_capture_ind2_null
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	bl	_spin_lock
Lloh0:
	adrp	x22, _STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_CR_REG
	bl	_in_be32
Lloh2:
	adrp	x23, _CR_RECEMPTY@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CR_RECEMPTY@GOTPAGEOFF]
	ldr	w8, [x23]
	bics	wzr, w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	x21, #0
	b	LBB0_4
LBB0_2:
	mov	w21, #0
Lloh4:
	adrp	x24, _RECFIFO@GOTPAGE
Lloh5:
	ldr	x24, [x24, _RECFIFO@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_CR_REG
	bl	_in_be32
	bl	_CR_RECDATA
	str	w0, [sp, #12]
	ldr	w8, [sp, #12]
	add	w8, w8, #1
	str	w8, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_CR_REG
	bl	_in_be32
	ldr	w8, [x23]
	add	w21, w21, #2
	bics	wzr, w8, w0
	b.ne	LBB0_3
LBB0_4:
	str	xzr, [x19]
	mov	x0, x20
	bl	_spin_unlock
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_CR_RECEMPTY,4,2                ; @CR_RECEMPTY
	.comm	_RECFIFO,4,2                    ; @RECFIFO
	.no_dead_strip	_snd_ml403_ac97cr_capture_ind2_null
.subsections_via_symbols
