	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsnd_drain
_rsnd_drain:                            ## @rsnd_drain
	.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, %r14
	cmpq	$0, 40(%rdi)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_rsnd_get_time_usec
	subl	(%r14), %eax
	imull	4(%r14), %eax
	imull	8(%r14), %eax
	imull	12(%r14), %eax
	cltq
	imulq	$-1125899907, %rax, %rbx        ## imm = 0xBCE4217D
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$50, %rbx
	addl	%eax, %ebx
	movl	20(%r14), %edi
	callq	_slock_lock
	movl	24(%r14), %edi
	addl	32(%r14), %ebx
	callq	_fifo_read_avail
	addl	%ebx, %eax
	jmp	LBB0_3
LBB0_2:
	movl	20(%r14), %edi
	callq	_slock_lock
	movl	24(%r14), %edi
	callq	_fifo_read_avail
LBB0_3:
	movl	%eax, 16(%r14)
	movl	20(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_slock_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rsnd_drain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsnd_drain
_rsnd_drain:                            ; @rsnd_drain
	.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	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_rsnd_get_time_usec
	ldp	w8, w9, [x19]
	sub	w8, w0, w8
	ldp	w10, w11, [x19, #8]
	mul	w8, w8, w9
	mul	w8, w8, w10
	mul	w8, w8, w11
	mov	w9, #8573
	movk	w9, #48356, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w20, w8, w9, asr #18
	ldr	w0, [x19, #20]
	bl	_slock_lock
	ldr	w21, [x19, #32]
	ldr	w0, [x19, #24]
	bl	_fifo_read_avail
	add	w8, w20, w21
	add	w0, w8, w0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #20]
	bl	_slock_lock
	ldr	w0, [x19, #24]
	bl	_fifo_read_avail
LBB0_3:
	str	w0, [x19, #16]
	ldr	w0, [x19, #20]
	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	_slock_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rsnd_drain
.subsections_via_symbols
