	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_ftyp
_mov_read_ftyp:                         ## @mov_read_ftyp
	.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, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movb	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_ffio_read_size
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, (%r12)
LBB0_4:
	movq	8(%r12), %rdi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rcx
	callq	_av_log
	movq	8(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movq	%r15, %rdi
	callq	_avio_rb32
	movq	8(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	cmpl	$7, %r14d
	jg	LBB0_6
## %bb.5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_12
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_6:
	leal	-7(%r14), %edi
	callq	_av_malloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	addl	$-8, %r14d
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_ffio_read_size
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	%r14d, %eax
	movb	$0, (%r13,%rax)
	movq	8(%r12), %rdi
	movq	-56(%rbp), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_av_dict_set
	jmp	LBB0_11
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %ebx
LBB0_11:
	leaq	-56(%rbp), %rdi
	callq	_av_freep
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qt  "

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"ISO: File Type Major Brand: %.4s\n"

L_.str.2:                               ## @.str.2
	.asciz	"major_brand"

L_.str.3:                               ## @.str.3
	.asciz	"minor_version"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"compatible_brands"

	.no_dead_strip	_mov_read_ftyp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_ftyp
_mov_read_ftyp:                         ; @mov_read_ftyp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	strb	wzr, [sp, #4]
	str	wzr, [sp]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #4
	bl	_ffio_read_size
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, sp
	bl	_av_log
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, sp
	mov	w3, #0
	bl	_av_dict_set
	mov	x0, x20
	bl	_avio_rb32
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w3, #0
	bl	_av_dict_set_int
	subs	w0, w21, #7
	b.gt	LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_11
LBB0_5:
	mov	x22, x0
	b	LBB0_11
LBB0_6:
	bl	_av_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_9
; %bb.7:
	mov	x23, x0
	sub	w21, w21, #8
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_ffio_read_size
	tbnz	w0, #31, LBB0_10
; %bb.8:
	strb	wzr, [x23, w21, uxtw]
	ldr	x0, [x19, #8]
	ldr	x2, [sp, #8]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w3, #0
	bl	_av_dict_set
	add	x0, sp, #8
	bl	_av_freep
	mov	w22, #0
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
	b	LBB0_11
LBB0_10:
	mov	x22, x0
	add	x0, sp, #8
	bl	_av_freep
LBB0_11:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qt  "

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"ISO: File Type Major Brand: %.4s\n"

l_.str.2:                               ; @.str.2
	.asciz	"major_brand"

l_.str.3:                               ; @.str.3
	.asciz	"minor_version"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"compatible_brands"

	.no_dead_strip	_mov_read_ftyp
.subsections_via_symbols
