	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emu8k_pcm_timer_func
_emu8k_pcm_timer_func:                  ## @emu8k_pcm_timer_func
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_emu8k_get_curpos
	movl	(%rbx), %ecx
	movl	%eax, %edx
	cmpl	%ecx, %eax
	jge	LBB0_2
## %bb.1:
	movl	4(%rbx), %edx
	addl	%eax, %edx
LBB0_2:
	subl	%ecx, %edx
	addl	%edx, 8(%rbx)
	movl	%eax, (%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	leaq	24(%rbx), %rdi
	movq	%rax, 24(%rbx)
	callq	_add_timer
	movl	8(%rbx), %eax
	movl	12(%rbx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_3:
	cltd
	idivl	%ecx
	movl	%edx, 8(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	20(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_pcm_period_elapsed         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_emu8k_pcm_timer_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emu8k_pcm_timer_func
_emu8k_pcm_timer_func:                  ; @emu8k_pcm_timer_func
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x19
	mov	w1, #0
	bl	_emu8k_get_curpos
	ldr	w8, [x19]
	mov	x9, x0
	cmp	w0, w8
	b.ge	LBB0_2
; %bb.1:
	ldr	w9, [x19, #4]
	add	w9, w9, w0
LBB0_2:
	ldr	w10, [x19, #8]
	sub	w8, w9, w8
	add	w8, w8, w10
	str	w8, [x19, #8]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	str	w0, [x19]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, #1
	mov	x0, x19
	str	x8, [x0, #24]!
	bl	_add_timer
	ldp	w8, w9, [x19, #8]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
LBB0_4:
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_spin_unlock
	ldr	w0, [x19, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_pcm_period_elapsed
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_emu8k_pcm_timer_func
.subsections_via_symbols
