	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msnd_fifo_write                ## -- Begin function msnd_fifo_write
	.p2align	4, 0x90
_msnd_fifo_write:                       ## @msnd_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
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rsi
	movq	8(%rdi), %rcx
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cqto
	idivq	%rcx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%rdi, %r15
	movq	%rdx, 24(%r13)
	movslq	%r12d, %rax
	cmpq	%r14, %rax
	jae	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rsi
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r13), %rdx
	movq	24(%r13), %rdi
	subq	%rdi, %rdx
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%edx, %rbx
	movq	%r14, %rcx
	subq	%rax, %rcx
	cmpq	%rcx, %rbx
	cmoval	%ecx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	subl	%r12d, %eax
	movslq	%eax, %rbx
	subq	%rdi, %rcx
	cmpq	%rbx, %rcx
	cmovll	%ecx, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	32(%r13), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addl	%ebx, %r12d
	movslq	%ebx, %rdi
	movq	(%r13), %rsi
	addq	%rdi, %rsi
	movq	%rsi, (%r13)
	movq	24(%r13), %rax
	addq	%rdi, %rax
	movq	8(%r13), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_10
LBB0_1:
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	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	_msnd_fifo_write                ; -- Begin function msnd_fifo_write
	.p2align	2
_msnd_fifo_write:                       ; @msnd_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
	cbz	x2, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x9, #0
	mov	w19, #0
	ldp	x10, x8, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x10, x11, [x22, #16]
	sub	x12, x10, x11
	sub	x9, x20, x9
	cmp	x9, w12, sxtw
	csel	w9, w9, w12, lo
	sub	w12, w20, w19
	sub	x8, x8, x11
	cmp	x8, w12, sxtw
	csel	w8, w8, w12, lt
	cmp	x10, x11
	csel	w23, w9, w8, gt
	ldr	w8, [x22, #32]
	add	w0, w8, w11
	mov	x1, x21
	mov	x2, x23
	bl	_memcpy
	add	w19, w23, w19
	sxtw	x9, w23
	add	x21, x21, x9
	ldp	x10, x8, [x22]
	add	x10, x10, x9
	str	x10, [x22]
	ldr	x11, [x22, #24]
	add	x9, x11, x9
	sdiv	x11, x9, x8
	msub	x9, x11, x8, x9
	str	x9, [x22, #24]
	sxtw	x9, w19
	cmp	x9, x20
	b.lo	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
