	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ymfpci_pcm_interrupt
_snd_ymfpci_pcm_interrupt:              ## @snd_ymfpci_pcm_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	%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	8(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.1:
	cmpq	$0, 40(%rbx)
	je	LBB0_16
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	cmpq	$0, 56(%rbx)
	je	LBB0_15
## %bb.3:
	movq	(%r12), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	movl	32(%rax,%rcx,8), %edi
	callq	_le32_to_cpu
	movq	%rax, %rcx
	movq	(%rbx), %rdx
	subq	%rdx, %rax
	jge	LBB0_5
## %bb.4:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	8(%rbx), %rax
LBB0_5:
	addl	52(%rbx), %eax
	movl	%eax, 52(%rbx)
	movq	%rcx, (%rbx)
	movl	48(%rbx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_7
## %bb.6:
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
	movl	%edx, 52(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	40(%rbx), %rdi
	callq	_snd_pcm_period_elapsed
	movq	%r14, %rdi
	callq	_spin_lock
LBB0_7:
	movl	16(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	40(%rbx), %rax
	movl	(%rax), %ecx
	movl	$1, %r13d
	subl	(%r15), %r13d
	movq	(%r12), %r12
	movq	16(%r15), %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,8), %edi
	shll	$15, %edi
	callq	_cpu_to_le32
	leaq	(%r13,%r13,4), %r13
	movq	%rax, 24(%r12,%r13,8)
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rax, 16(%r12,%r13,8)
LBB0_10:
	movq	32(%rbx), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%rax), %r12
LBB0_12:
	movq	16(%r15), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rax,%rcx,8), %edi
	shll	$15, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r12,%r13,8)
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.13:
	movq	%rax, (%r12,%r13,8)
LBB0_14:
	decl	16(%rbx)
LBB0_15:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_ymfpci_pcm_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_interrupt
_snd_ymfpci_pcm_interrupt:              ; @snd_ymfpci_pcm_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x22, [x1, #8]
	cbz	x22, LBB0_16
; %bb.1:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_16
; %bb.2:
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x22, #56]
	cbz	x8, LBB0_15
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x20]
	mov	w10, #40
	madd	x8, x9, x10, x8
	ldr	w0, [x8, #32]
	bl	_le32_to_cpu
	ldr	x8, [x22]
	subs	x8, x0, x8
	b.ge	LBB0_5
; %bb.4:
	ldr	x9, [x22, #8]
	add	x8, x8, x9
LBB0_5:
	ldp	w9, w10, [x22, #48]
	add	w8, w10, w8
	cmp	w8, w9
	str	w8, [x22, #52]
	str	x0, [x22]
	b.lt	LBB0_7
; %bb.6:
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x22, #52]
	mov	x0, x19
	bl	_spin_unlock
	ldr	x0, [x22, #40]
	bl	_snd_pcm_period_elapsed
	mov	x0, x19
	bl	_spin_lock
LBB0_7:
	ldr	w0, [x22, #16]
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.8:
	ldr	x8, [x22, #40]
	ldr	w24, [x8]
	ldr	w8, [x20]
	mov	w9, #1
	sub	w23, w9, w8
	ldr	x21, [x21]
	ldr	x8, [x20, #16]
	lsl	x9, x24, #3
	ldr	w8, [x8, x9]
	lsl	w0, w8, #15
	bl	_cpu_to_le32
	mov	w8, #40
	umaddl	x8, w23, w8, x21
	str	x0, [x8, #24]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_10
; %bb.9:
	mov	w8, #40
	madd	x8, x23, x8, x21
	str	x0, [x8, #16]
LBB0_10:
	ldr	x8, [x22, #32]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x21, [x8]
LBB0_12:
	ldr	x8, [x20, #16]
	add	x8, x8, x24, lsl #3
	ldr	w8, [x8, #4]
	lsl	w0, w8, #15
	bl	_cpu_to_le32
	mov	w8, #40
	madd	x8, x23, x8, x21
	str	x0, [x8, #8]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_14
; %bb.13:
	mov	w8, #40
	mul	x8, x23, x8
	str	x0, [x21, x8]
LBB0_14:
	ldr	w8, [x22, #16]
	sub	w8, w8, #1
	str	w8, [x22, #16]
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_ymfpci_pcm_interrupt
.subsections_via_symbols
