	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msnd_fifo_read                 ## -- Begin function msnd_fifo_read
	.p2align	4, 0x90
_msnd_fifo_read:                        ## @msnd_fifo_read
	.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), %rcx
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cqto
	idivq	%rdi
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%rsi, %r15
	movq	%rdx, 16(%r13)
	movslq	%r12d, %rax
	cmpq	%r14, %rax
	jae	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rcx
	movq	16(%r13), %rsi
	subq	%rsi, %rcx
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %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
	movslq	24(%r13), %rax
	subq	%rsi, %rax
	cmpq	%rbx, %rax
	cmovll	%eax, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	28(%r13), %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_memcpy
	addl	%ebx, %r12d
	movslq	%ebx, %rsi
	movq	(%r13), %rcx
	subq	%rsi, %rcx
	movq	%rcx, (%r13)
	movq	16(%r13), %rax
	addq	%rsi, %rax
	movslq	24(%r13), %rdi
	movq	%rax, %rdx
	orq	%rdi, %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	%edi
                                        ## 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_read                 ; -- Begin function msnd_fifo_read
	.p2align	2
_msnd_fifo_read:                        ; @msnd_fifo_read
	.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_7
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x8, #0
	mov	w19, #0
	ldr	x9, [x0]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x20, x8
	cmp	x8, w10, sxtw
	csel	w23, w8, w10, lo
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #28]
	add	w1, w8, w9
	mov	x0, x21
	mov	x2, x23
	bl	_memcpy
	add	w19, w23, w19
	sxtw	x8, w23
	add	x21, x21, x8
	ldr	x9, [x22]
	sub	x9, x9, x8
	str	x9, [x22]
	ldr	x10, [x22, #16]
	add	x8, x10, x8
	ldrsw	x10, [x22, #24]
	sdiv	x11, x8, x10
	msub	x8, x11, x10, x8
	str	x8, [x22, #16]
	sxtw	x8, w19
	cmp	x8, x20
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x10, x9, [x22, #8]
	subs	x10, x10, x9
	b.gt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w20, w19
	ldrsw	x10, [x22, #24]
	sub	x10, x10, x9
	cmp	x10, w8, sxtw
	csel	w23, w10, w8, lt
	b	LBB0_3
LBB0_7:
	mov	w19, #0
LBB0_8:
	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
