	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_get_stream_type
_mp4_get_stream_type:                   ## @mp4_get_stream_type
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rax
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r12
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rax, %rdi
	callq	_rtp_get_parameter_u32
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	-36(%rbp), %edx
	cmpl	$128, %edx
	jne	LBB0_5
## %bb.2:
	movl	$128, (%r12)
	movq	_VC_CONTAINER_ES_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.4:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r15
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_LOG_ERROR
	jmp	LBB0_6
LBB0_3:
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %r15
LBB0_6:
	movl	(%r15), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"streamType"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ## @VC_CONTAINER_ES_TYPE_AUDIO
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported MPEG-4 stream type: %u"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_get_stream_type
_mp4_get_stream_type:                   ; @mp4_get_stream_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x8, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x9, [x1, #8]
	ldr	x9, [x9]
	ldr	x21, [x9]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x8
	bl	_rtp_get_parameter_u32
Lloh2:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w2, [sp, #12]
	cmp	w2, #128
	b.ne	LBB0_3
; %bb.2:
	mov	w9, #128
	str	w9, [x21]
Lloh4:
	adrp	x9, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	x10, [x19]
	ldr	x10, [x10]
Lloh7:
	adrp	x11, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh8:
	ldr	x11, [x11, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	cmp	x10, x9
	csel	x8, x11, x8, eq
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_LOG_ERROR
Lloh11:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"streamType"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ; @VC_CONTAINER_ES_TYPE_AUDIO
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported MPEG-4 stream type: %u"

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