	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frm_read_header
_frm_read_header:                       ## @frm_read_header
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 32(%rcx)
	movq	_AV_CODEC_ID_RAWVIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rcx)
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_avio_skip
	movq	_frm_pix_fmt_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_avio_r8
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_avpriv_find_pix_fmt
	movq	(%rbx), %rcx
	movl	%eax, 24(%rcx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	$0, 16(%rcx)
	movq	%r14, %rdi
	callq	_avio_rl16
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	%r14, %rdi
	callq	_avio_rl16
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_RAWVIDEO,4,2       ## @AV_CODEC_ID_RAWVIDEO
	.comm	_frm_pix_fmt_tags,4,2           ## @frm_pix_fmt_tags
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_frm_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frm_read_header
_frm_read_header:                       ; @frm_read_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x19, [x0]
	mov	w1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _AV_CODEC_ID_RAWVIDEO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CODEC_ID_RAWVIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #28]
	mov	x0, x19
	mov	w1, #3
	bl	_avio_skip
Lloh6:
	adrp	x8, _frm_pix_fmt_tags@GOTPAGE
Lloh7:
	ldr	x8, [x8, _frm_pix_fmt_tags@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_avio_r8
	mov	x1, x0
	mov	x0, x21
	bl	_avpriv_find_pix_fmt
	ldr	x8, [x20]
	str	w0, [x8, #24]
	cbz	w0, LBB0_4
; %bb.2:
	str	xzr, [x8, #16]
	mov	x0, x19
	bl	_avio_rl16
	ldr	x8, [x20]
	str	x0, [x8, #8]
	mov	x0, x19
	bl	_avio_rl16
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20]
	str	x8, [x9]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_4:
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_RAWVIDEO,4,2       ; @AV_CODEC_ID_RAWVIDEO
	.comm	_frm_pix_fmt_tags,4,2           ; @frm_pix_fmt_tags
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_frm_read_header
.subsections_via_symbols
