	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fifo_write                     ## -- Begin function fifo_write
	.p2align	4, 0x90
_fifo_write:                            ## @fifo_write
	.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, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	8(%r14), %rax
	leaq	(%rdi,%rdx), %rcx
	movq	%rax, %rbx
	subq	%rdi, %rbx
	subq	%rbx, %rdx
	xorl	%r12d, %r12d
	cmpq	%rax, %rcx
	cmovbeq	%r15, %rbx
	cmovaq	%rdx, %r12
	movq	%rsi, %r13
	addq	16(%r14), %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	16(%r14), %rdi
	addq	%r13, %rbx
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	addq	(%r14), %r15
	movq	8(%r14), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fifo_write                     ; -- Begin function fifo_write
	.p2align	2
_fifo_write:                            ; @fifo_write
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x8, x9, [x0]
	sub	x10, x9, x8
	sub	x11, x2, x10
	add	x12, x8, x2
	cmp	x12, x9
	csel	x22, x10, x2, hi
	csel	x23, x11, xzr, hi
	ldr	x9, [x0, #16]
	add	x0, x9, x8
	mov	x2, x22
	bl	_memcpy
	ldr	x0, [x21, #16]
	add	x1, x20, x22
	mov	x2, x23
	bl	_memcpy
	ldp	x8, x9, [x21]
	add	x8, x8, x19
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x21]
	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
.subsections_via_symbols
