	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_demux_seek_init
_mpc_demux_seek_init:                   ## @mpc_demux_seek_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	_MPC_STATUS_OK@GOTPCREL(%rip), %r14
	cmpq	$0, 8(%rdi)
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movl	16(%rdi), %eax
	movl	20(%rdi), %r9d
	cmpl	$7, %eax
	movl	$6, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, (%rdi)
	movq	_MPC_FRAME_LENGTH@GOTPCREL(%rip), %r8
	movl	(%r8), %edi
	shll	%cl, %edi
	movq	_MAX_SEEK_TABLE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r9d, %eax
	cltd
	idivl	%edi
	addl	$2, %eax
	movslq	%eax, %rdi
	cmpq	%rdi, %rsi
	jae	LBB0_4
## %bb.2:
	incl	%ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rbx)
	movl	(%r8), %edi
	shll	%cl, %edi
	movl	%r9d, %eax
	cltd
	idivl	%edi
	addl	$2, %eax
	movslq	%eax, %rdi
	incl	%ecx
	cmpq	%rdi, %rsi
	jb	LBB0_3
LBB0_4:
	shlq	$3, %rdi
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_mpc_demux_pos
	cltq
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	$1, 4(%rbx)
	jmp	LBB0_7
LBB0_5:
	movq	_MPC_STATUS_FAIL@GOTPCREL(%rip), %r14
LBB0_7:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC_STATUS_OK,4,2              ## @MPC_STATUS_OK
	.comm	_MPC_FRAME_LENGTH,4,2           ## @MPC_FRAME_LENGTH
	.comm	_MAX_SEEK_TABLE_SIZE,8,3        ## @MAX_SEEK_TABLE_SIZE
	.comm	_MPC_STATUS_FAIL,4,2            ## @MPC_STATUS_FAIL
	.no_dead_strip	_mpc_demux_seek_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_demux_seek_init
_mpc_demux_seek_init:                   ; @mpc_demux_seek_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
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	w9, #6
	ldp	w10, w8, [x0, #16]
	cmp	w10, #6
	csel	w11, w10, w9, gt
	str	w11, [x0]
Lloh0:
	adrp	x9, _MPC_FRAME_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MPC_FRAME_LENGTH@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh2:
	adrp	x12, _MAX_SEEK_TABLE_SIZE@GOTPAGE
Lloh3:
	ldr	x12, [x12, _MAX_SEEK_TABLE_SIZE@GOTPAGEOFF]
	lsl	w13, w10, w11
Lloh4:
	ldr	x10, [x12]
	sdiv	w12, w8, w13
	add	w12, w12, #2
	sxtw	x12, w12
	cmp	x10, x12
	b.hs	LBB0_4
; %bb.2:
	add	w11, w11, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w11, [x19]
	ldr	w12, [x9]
	lsl	w12, w12, w11
	sdiv	w12, w8, w12
	add	w12, w12, #2
	sxtw	x12, w12
	add	w11, w11, #1
	cmp	x10, x12
	b.lo	LBB0_3
LBB0_4:
	lsl	x0, x12, #3
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_mpc_demux_pos
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x19, #8]
	str	x8, [x9]
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_6:
Lloh5:
	adrp	x8, _MPC_STATUS_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPC_STATUS_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh7:
	adrp	x8, _MPC_STATUS_FAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MPC_STATUS_FAIL@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC_STATUS_OK,4,2              ; @MPC_STATUS_OK
	.comm	_MPC_FRAME_LENGTH,4,2           ; @MPC_FRAME_LENGTH
	.comm	_MAX_SEEK_TABLE_SIZE,8,3        ; @MAX_SEEK_TABLE_SIZE
	.comm	_MPC_STATUS_FAIL,4,2            ; @MPC_STATUS_FAIL
	.no_dead_strip	_mpc_demux_seek_init
.subsections_via_symbols
