	.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_copy
_snd_ml403_ac97cr_capture_ind2_copy:    ## @snd_ml403_ac97cr_capture_ind2_copy
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	8(%r14), %r13
	addq	(%rax), %r13
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CR_REG
	movl	%eax, %edi
	callq	_in_be32
	movq	_CR_RECEMPTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ecx, %eax
	cmpl	%ecx, %eax
	je	LBB0_6
## %bb.1:
	cmpq	$2, %r12
	jb	LBB0_6
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	addq	$-2, %r12
	xorl	%ebx, %ebx
	movq	_RECFIFO@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>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, (%r13,%rbx,2)
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CR_REG
	movl	%eax, %edi
	callq	_in_be32
	movq	_CR_RECEMPTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ecx, %eax
	addq	$2, %rbx
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-2(%r12), %rdx
	cmpq	$1, %r12
	movq	%rdx, %r12
	ja	LBB0_3
LBB0_5:
	andl	$-2, %ebx
	movl	$1, %edx
	cmpl	%ecx, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
	jmp	LBB0_8
LBB0_6:
	movl	$1, %edx
	xorl	%ebx, %ebx
	cmpl	%ecx, %eax
	jne	LBB0_8
LBB0_7:
	xorl	%edx, %edx
LBB0_8:
	movl	%edx, (%r14)
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%rbx, %rax
	addq	$8, %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_copy
.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_copy
_snd_ml403_ac97cr_capture_ind2_copy:    ; @snd_ml403_ac97cr_capture_ind2_copy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x25, [x8]
	ldr	x26, [x19, #8]
	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]
	and	w9, w8, w0
	cmp	w9, w8
	ccmp	x21, #2, #0, ne
	b.hs	LBB0_3
; %bb.1:
	mov	x21, #0
	cmp	w9, w8
	b.ne	LBB0_6
LBB0_2:
	mov	w8, #0
	b	LBB0_7
LBB0_3:
	mov	x24, #0
	add	x25, x26, x25
	sub	x21, x21, #2
Lloh4:
	adrp	x26, _RECFIFO@GOTPAGE
Lloh5:
	ldr	x26, [x26, _RECFIFO@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x20
	bl	_CR_REG
	bl	_in_be32
	bl	_CR_RECDATA
	str	w0, [x25], #4
	add	x27, x21, x24
	ldr	w1, [x22]
	mov	x0, x20
	bl	_CR_REG
	bl	_in_be32
	ldr	w8, [x23]
	and	w9, w8, w0
	sub	x24, x24, #2
	cmp	w9, w8
	ccmp	x27, #1, #0, ne
	b.hi	LBB0_4
; %bb.5:
	neg	w10, w24
	and	x21, x10, #0xfffffffe
	cmp	w9, w8
	b.eq	LBB0_2
LBB0_6:
	mov	w8, #1
LBB0_7:
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	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_copy
.subsections_via_symbols
