	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ymfpci_pcm_capture_interrupt
_snd_ymfpci_pcm_capture_interrupt:      ## @snd_ymfpci_pcm_capture_interrupt
	.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, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	40(%rbx), %r12
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	cmpq	$0, 32(%rbx)
	je	LBB0_5
## %bb.1:
	movq	(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rbx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movb	8(%rbx), %cl
	sarl	%cl, %eax
	movl	12(%rbx), %edx
	movl	%eax, %ecx
	subl	%edx, %ecx
	jge	LBB0_3
## %bb.2:
	movl	%eax, %ecx
	subl	%edx, %ecx
	addl	16(%rbx), %ecx
LBB0_3:
	addl	20(%rbx), %ecx
	movl	%ecx, 20(%rbx)
	movl	%eax, 12(%rbx)
	movl	24(%rbx), %esi
	cmpl	%esi, %ecx
	jl	LBB0_5
## %bb.4:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%edx, 20(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_snd_pcm_period_elapsed
	movq	%r15, %rdi
	callq	_spin_lock
LBB0_5:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_ymfpci_pcm_capture_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ymfpci_pcm_capture_interrupt
_snd_ymfpci_pcm_capture_interrupt:      ; @snd_ymfpci_pcm_capture_interrupt
	.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	x20, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x22, [x21, #40]
	add	x19, x22, #8
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x22, #16]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldp	w8, w9, [x21, #8]
	asr	w8, w0, w8
	subs	w9, w8, w9
	b.ge	LBB0_3
; %bb.2:
	ldr	w10, [x21, #16]
	add	w9, w9, w10
LBB0_3:
	ldp	w11, w10, [x21, #20]
	add	w9, w11, w9
	cmp	w9, w10
	str	w9, [x21, #20]
	str	w8, [x21, #12]
	b.lt	LBB0_5
; %bb.4:
	sdiv	w8, w9, w10
	msub	w8, w8, w10, w9
	str	w8, [x21, #20]
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	bl	_snd_pcm_period_elapsed
	mov	x0, x19
	bl	_spin_lock
LBB0_5:
	mov	x0, x19
	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	_spin_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_ymfpci_pcm_capture_interrupt
.subsections_via_symbols
