	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_demux_fill
_mpc_demux_fill:                        ## @mpc_demux_fill
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_mpc_unread_bytes_unchecked
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movslq	%eax, %r14
	movq	_DEMUX_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%r12, %r12
	je	LBB0_6
## %bb.3:
	cmpq	%r12, %rcx
	jl	LBB0_6
## %bb.4:
	cmpq	%r12, %r14
	jge	LBB0_7
## %bb.5:
	movq	_MPC_BUFFER_FULL@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	je	LBB0_7
LBB0_6:
	movq	%rcx, %r12
LBB0_7:
	subq	%r14, %r12
	jle	LBB0_24
## %bb.8:
	movq	(%r15), %rsi
	subq	%rsi, %rcx
	movq	_MPC_BUFFER_SWAP@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_9
## %bb.10:
	andq	$-4, %r12
	leal	3(%rax), %edx
	andl	$-4, %edx
	subl	%eax, %edx
	movslq	%edx, %r13
	cmpq	%rcx, %r12
	jle	LBB0_12
LBB0_13:
	cmpl	$0, 24(%r15)
	je	LBB0_15
## %bb.14:
	movq	32(%r15), %rsi
	jmp	LBB0_16
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_24
LBB0_9:
	xorl	%r13d, %r13d
	cmpq	%rcx, %r12
	jg	LBB0_13
LBB0_12:
	movq	8(%r15), %rax
	jmp	LBB0_17
LBB0_15:
	movl	$8, 24(%r15)
	movq	32(%r15), %rsi
	incq	%rsi
	movq	%rsi, 32(%r15)
LBB0_16:
	movq	8(%r15), %rdi
	addq	%r13, %rdi
	movq	%r14, %rdx
	callq	_memmove
	movq	8(%r15), %rax
	leaq	(%rax,%r13), %rcx
	movq	%rcx, 32(%r15)
	addq	%r14, %r13
	movq	%r13, (%r15)
	movq	%r13, %rsi
LBB0_17:
	addq	%rax, %rsi
	movq	16(%r15), %rdi
	movq	%r12, %rdx
	callq	*(%rdi)
	movq	%rax, %rbx
	movq	%r12, %rdx
	subq	%rax, %rdx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jle	LBB0_19
## %bb.18:
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	addq	(%r15), %rdi
	xorl	%esi, %esi
	callq	_memset
LBB0_19:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_MPC_BUFFER_SWAP@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_23
## %bb.20:
	cmpq	$4, %r12
	jl	LBB0_23
## %bb.21:
	movq	(%r15), %rbx
	addq	8(%r15), %rbx
	sarq	$2, %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r13,4), %edi
	callq	_mpc_swap32
	movl	%eax, (%rbx,%r13,4)
	incl	%r13d
	cmpq	%r13, %r12
	jg	LBB0_22
LBB0_23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, (%r15)
	addq	%rax, %r14
LBB0_24:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEMUX_BUFFER_SIZE,8,3          ## @DEMUX_BUFFER_SIZE
	.comm	_MPC_BUFFER_FULL,4,2            ## @MPC_BUFFER_FULL
	.comm	_MPC_BUFFER_SWAP,4,2            ## @MPC_BUFFER_SWAP
	.no_dead_strip	_mpc_demux_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_demux_fill
_mpc_demux_fill:                        ; @mpc_demux_fill
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_mpc_unread_bytes_unchecked
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_10
; %bb.1:
	sxtw	x19, w0
Lloh0:
	adrp	x8, _DEMUX_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEMUX_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x22, LBB0_5
; %bb.2:
	cmp	x8, x22
	b.lt	LBB0_5
; %bb.3:
	cmp	x19, x22
	b.ge	LBB0_6
; %bb.4:
Lloh3:
	adrp	x9, _MPC_BUFFER_FULL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPC_BUFFER_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_6
LBB0_5:
	mov	x22, x8
LBB0_6:
	subs	x10, x22, x19
	b.le	LBB0_21
; %bb.7:
Lloh6:
	adrp	x24, _MPC_BUFFER_SWAP@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MPC_BUFFER_SWAP@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w11, [x24]
	and	x12, x10, #0xfffffffffffffffc
	add	w13, w19, #3
	and	w13, w13, #0xfffffffc
	sub	w13, w13, w19
	sxtw	x13, w13
	tst	w11, w21
	csel	x23, xzr, x13, eq
	csel	x22, x10, x12, eq
	sub	x8, x8, x9
	cmp	x22, x8
	b.le	LBB0_11
; %bb.8:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_12
; %bb.9:
	ldr	x1, [x20, #32]
	b	LBB0_13
LBB0_10:
	mov	x19, #0
	b	LBB0_21
LBB0_11:
	ldr	x8, [x20, #8]
	b	LBB0_14
LBB0_12:
	mov	w8, #8
	str	w8, [x20, #24]
	ldr	x8, [x20, #32]
	add	x1, x8, #1
	str	x1, [x20, #32]
LBB0_13:
	ldr	x8, [x20, #8]
	add	x0, x8, x23
	mov	x2, x19
	bl	_memmove
	ldr	x8, [x20, #8]
	add	x9, x8, x23
	str	x9, [x20, #32]
	add	x9, x23, x19
	str	x9, [x20]
LBB0_14:
	ldr	x0, [x20, #16]
	ldr	x10, [x0]
	add	x1, x9, x8
	mov	x2, x22
	blr	x10
	mov	x23, x0
	subs	x2, x22, x0
	b.le	LBB0_16
; %bb.15:
	ldp	x9, x8, [x20]
	add	x8, x8, x23
	add	x0, x8, x9
	mov	w1, #0
	bl	_memset
LBB0_16:
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_20
; %bb.17:
	cmp	x22, #4
	b.lt	LBB0_20
; %bb.18:
	mov	x21, #0
	ldp	x9, x8, [x20]
	add	x24, x9, x8
	asr	x22, x22, #2
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	lsl	x25, x21, #2
	ldr	w0, [x24, x25]
	bl	_mpc_swap32
	str	w0, [x24, x25]
	add	w21, w21, #1
	cmp	x22, x21
	b.gt	LBB0_19
LBB0_20:
	ldr	x8, [x20]
	add	x8, x8, x23
	str	x8, [x20]
	add	x19, x23, x19
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DEMUX_BUFFER_SIZE,8,3          ; @DEMUX_BUFFER_SIZE
	.comm	_MPC_BUFFER_FULL,4,2            ; @MPC_BUFFER_FULL
	.comm	_MPC_BUFFER_SWAP,4,2            ; @MPC_BUFFER_SWAP
	.no_dead_strip	_mpc_demux_fill
.subsections_via_symbols
