	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_check_parameters
_mp4_check_parameters:                  ## @mp4_check_parameters
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	cmpl	$6, %edx
	jne	LBB0_7
## %bb.5:
	cmpl	$2, %ecx
	jne	LBB0_7
## %bb.6:
	movl	$2, %ecx
	cmpl	$2, 12(%rax)
	je	LBB0_17
LBB0_7:
	movl	12(%rax), %r8d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_13:
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	cmpl	$32, %edx
	jg	LBB0_16
## %bb.14:
	cmpl	$32, %ecx
	jg	LBB0_16
## %bb.15:
	cmpl	$33, 12(%rax)
	jl	LBB0_17
LBB0_16:
	movl	12(%rax), %r8d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_2:
	cmpl	$0, 24(%rax)
	jne	LBB0_17
## %bb.3:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_21
LBB0_9:
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	cmpl	$13, %edx
	jne	LBB0_12
## %bb.10:
	cmpl	$3, %ecx
	jne	LBB0_12
## %bb.11:
	movl	$3, %ecx
	cmpl	$3, 12(%rax)
	jne	LBB0_12
LBB0_17:
	movl	16(%rax), %edx
	movl	20(%rax), %ecx
	cmpl	$32, %edx
	jg	LBB0_20
## %bb.18:
	cmpl	$33, %ecx
	jge	LBB0_20
## %bb.19:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_21
LBB0_12:
	movl	12(%rax), %r8d
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_21:
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MPEG-4: CELP-cbr requires constantSize parameter."

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
L_.str.1:                               ## @.str.1
	.asciz	"MPEG-4: CELP-vbr/AAC-lbr invalid lengths (%u/%u/%u)"

L_.str.2:                               ## @.str.2
	.asciz	"MPEG-4: AAC-hbr invalid lengths (%u/%u/%u)"

L_.str.3:                               ## @.str.3
	.asciz	"MPEG-4: generic invalid lengths (%u/%u/%u)"

L_.str.4:                               ## @.str.4
	.asciz	"MPEG-4: CTS/DTS invalid lengths (%u/%u)"

	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_mp4_check_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_check_parameters
_mp4_check_parameters:                  ; @mp4_check_parameters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w9, [x8]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_12
; %bb.1:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldp	w9, w10, [x8, #4]
	cmp	w9, #6
	ccmp	w10, #2, #0, eq
	b.ne	LBB0_5
; %bb.3:
	ldr	w10, [x8, #12]
	cmp	w10, #2
	b.eq	LBB0_16
; %bb.4:
	mov	w10, #2
LBB0_5:
	ldr	w8, [x8, #12]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_6:
	ldr	w9, [x8, #24]
	cbnz	w9, LBB0_16
; %bb.7:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_8:
	ldp	w9, w10, [x8, #4]
	cmp	w9, #13
	ccmp	w10, #3, #0, eq
	b.ne	LBB0_11
; %bb.9:
	ldr	w10, [x8, #12]
	cmp	w10, #3
	b.eq	LBB0_16
; %bb.10:
	mov	w10, #3
LBB0_11:
	ldr	w8, [x8, #12]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_12:
	ldp	w9, w10, [x8, #4]
	cmp	w9, #32
	b.gt	LBB0_15
; %bb.13:
	cmp	w10, #32
	b.gt	LBB0_15
; %bb.14:
	ldr	w11, [x8, #12]
	cmp	w11, #33
	b.lt	LBB0_16
LBB0_15:
	ldr	w8, [x8, #12]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_16:
	ldp	w9, w8, [x8, #16]
	cmp	w9, #32
	b.gt	LBB0_19
; %bb.17:
	cmp	w8, #33
	b.ge	LBB0_19
; %bb.18:
Lloh10:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
	stp	x9, x8, [sp]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_20:
	bl	_LOG_ERROR
Lloh14:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MPEG-4: CELP-cbr requires constantSize parameter."

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
l_.str.1:                               ; @.str.1
	.asciz	"MPEG-4: CELP-vbr/AAC-lbr invalid lengths (%u/%u/%u)"

l_.str.2:                               ; @.str.2
	.asciz	"MPEG-4: AAC-hbr invalid lengths (%u/%u/%u)"

l_.str.3:                               ; @.str.3
	.asciz	"MPEG-4: generic invalid lengths (%u/%u/%u)"

l_.str.4:                               ; @.str.4
	.asciz	"MPEG-4: CTS/DTS invalid lengths (%u/%u)"

	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_mp4_check_parameters
.subsections_via_symbols
