	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_read_covr
_mov_read_covr:                         ## @mov_read_covr
	.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
	movl	%ecx, %r14d
	movq	%rsi, %r15
	cmpl	$13, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %ecx
	cmpl	$27, %edx
	je	LBB0_6
## %bb.3:
	cmpl	$14, %ecx
	jne	LBB0_5
## %bb.4:
	movq	_AV_CODEC_ID_PNG@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_AV_CODEC_ID_MJPEG@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_AV_CODEC_ID_BMP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r12d
	movl	(%rdi), %edi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movq	%rax, %rbx
	movl	$4, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	%rax, 32(%rbx)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	cmpl	$8, -48(%rbp)
	jl	LBB0_13
## %bb.11:
	movq	_AV_CODEC_ID_BMP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_13
## %bb.12:
	movl	-36(%rbp), %edi
	callq	_AV_RB64
	movq	_AV_CODEC_ID_MJPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_13:
	movq	_AV_DISPOSITION_ATTACHED_PIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%rbx)
	movups	-48(%rbp), %xmm0
	movups	%xmm0, 8(%rbx)
	movl	24(%rbx), %eax
	movl	%eax, 16(%rbx)
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	%r12d, (%rcx)
	jmp	LBB0_14
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movl	(%rdi), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_avio_skip
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_MJPEG,4,2          ## @AV_CODEC_ID_MJPEG
	.comm	_AV_CODEC_ID_PNG,4,2            ## @AV_CODEC_ID_PNG
	.comm	_AV_CODEC_ID_BMP,4,2            ## @AV_CODEC_ID_BMP
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown cover type: 0x%x.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_DISPOSITION_ATTACHED_PIC,4,2 ## @AV_DISPOSITION_ATTACHED_PIC
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.no_dead_strip	_mov_read_covr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_read_covr
_mov_read_covr:                         ; @mov_read_covr
	.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	x19, x3
	mov	x20, x1
Lloh0:
	adrp	x22, _AV_CODEC_ID_MJPEG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_CODEC_ID_MJPEG@GOTPAGEOFF]
	cmp	w2, #13
	b.eq	LBB0_4
; %bb.1:
	mov	x3, x2
	cmp	w2, #27
	b.eq	LBB0_5
; %bb.2:
	cmp	w3, #14
	b.ne	LBB0_14
; %bb.3:
Lloh2:
	adrp	x8, _AV_CODEC_ID_PNG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_CODEC_ID_PNG@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	x8, x22
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _AV_CODEC_ID_BMP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_CODEC_ID_BMP@GOTPAGEOFF]
LBB0_6:
	ldr	w23, [x8]
	ldr	w0, [x0]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_13
; %bb.7:
	mov	x21, x0
	mov	w0, #4
	bl	_av_mallocz
	cbz	x0, LBB0_13
; %bb.8:
	str	x0, [x21, #32]
	mov	x1, sp
	mov	x0, x20
	mov	x2, x19
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_15
; %bb.9:
	ldr	w8, [sp]
	cmp	w8, #8
	b.lt	LBB0_12
; %bb.10:
Lloh6:
	adrp	x8, _AV_CODEC_ID_BMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_CODEC_ID_BMP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w23, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [sp, #12]
	bl	_AV_RB64
	ldr	w23, [x22]
LBB0_12:
	mov	w0, #0
Lloh9:
	adrp	x8, _AV_DISPOSITION_ATTACHED_PIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_DISPOSITION_ATTACHED_PIC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldp	w10, w9, [x21, #24]
	orr	w8, w9, w8
	str	w8, [x21, #28]
	ldr	q0, [sp]
Lloh12:
	adrp	x8, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
	stur	q0, [x21, #8]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x21, #12]
	orr	w8, w9, w8
	stp	w8, w10, [x21, #12]
Lloh15:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	x9, [x21]
	stp	w23, w8, [x9]
	b	LBB0_15
LBB0_13:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_14:
	ldr	w0, [x0]
Lloh21:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	x0, x20
	mov	x1, x19
	bl	_avio_skip
	mov	w0, #0
LBB0_15:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_MJPEG,4,2          ; @AV_CODEC_ID_MJPEG
	.comm	_AV_CODEC_ID_PNG,4,2            ; @AV_CODEC_ID_PNG
	.comm	_AV_CODEC_ID_BMP,4,2            ; @AV_CODEC_ID_BMP
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown cover type: 0x%x.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_DISPOSITION_ATTACHED_PIC,4,2 ; @AV_DISPOSITION_ATTACHED_PIC
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.no_dead_strip	_mov_read_covr
.subsections_via_symbols
