	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc_demux_init                 ## -- Begin function mpc_demux_init
	.p2align	4, 0x90
_mpc_demux_init:                        ## @mpc_demux_init
	.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
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r14, 24(%rbx)
	movl	$-1, (%rbx)
	movq	%rbx, %rdi
	callq	_mpc_demux_clear_buff
	movq	%rbx, %rdi
	callq	_mpc_demux_header
	movq	_MPC_STATUS_OK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_mpc_demux_seek_init
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_mpc_decoder_init
	movl	%eax, 20(%rbx)
	jmp	LBB0_8
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_free
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC_STATUS_OK,8,3              ## @MPC_STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc_demux_init                 ; -- Begin function mpc_demux_init
	.p2align	2
_mpc_demux_init:                        ; @mpc_demux_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	mov	w0, #32
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	x20, [x19, #24]
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x19
	bl	_mpc_demux_clear_buff
	mov	x0, x19
	bl	_mpc_demux_header
Lloh0:
	adrp	x20, _MPC_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MPC_STATUS_OK@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_mpc_demux_seek_init
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	add	x0, x19, #16
	bl	_mpc_decoder_init
	str	w0, [x19, #20]
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_free
LBB0_6:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC_STATUS_OK,8,3              ; @MPC_STATUS_OK
.subsections_via_symbols
