	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_header
_read_header:                           ## @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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%r13, %rdi
	callq	_avio_rb32
	cmpl	$80, %eax
	jne	LBB0_1
## %bb.3:
	movq	%r13, %rdi
	movl	$20, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	_AVSTREAM_PARSE_HEADERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	$0, 24(%r14)
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	%rax, 8(%r14)
	movq	%rax, 16(%r14)
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	%rax, %rdi
	callq	_av_int2float
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_av_d2q
	movq	%rax, %r15
	movq	%rax, %r12
	shrq	$32, %r12
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	(%r14), %rcx
	movq	%rax, 24(%rcx)
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	%r13, %rdi
	movl	$12, %esi
	callq	_avio_skip
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 12(%rcx)
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_ff_codec_bmp_tags@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_ff_codec_get_id
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	movq	%r14, %rdi
	movl	$64, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_avpriv_set_pts_info
	movq	%r13, %rdi
	movl	$20, %esi
	callq	_avio_skip
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ## @AVSTREAM_PARSE_HEADERS
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_ff_codec_bmp_tags,4,2          ## @ff_codec_bmp_tags
	.no_dead_strip	_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_header
_read_header:                           ; @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
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rb32
	cmp	w0, #80
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #20
	bl	_avio_skip
	mov	x0, x20
	mov	w1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _AVSTREAM_PARSE_HEADERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSTREAM_PARSE_HEADERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	str	xzr, [x0, #24]
	mov	x0, x19
	bl	_avio_rb32
	stp	x0, x0, [x20, #8]
	mov	x0, x19
	bl	_avio_rb32
	bl	_av_int2float
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_av_d2q
	mov	x21, x0
	lsr	x22, x0, #32
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20]
	str	x0, [x8, #24]
	mov	x0, x19
	bl	_avio_rb32
	ldr	x8, [x20]
	str	x0, [x8, #16]
	mov	x0, x19
	mov	w1, #12
	bl	_avio_skip
Lloh6:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, #12]
	mov	x0, x19
	bl	_avio_rb32
	mov	x1, x0
	ldr	x8, [x20]
	str	x0, [x8]
Lloh9:
	adrp	x8, _ff_codec_bmp_tags@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ff_codec_bmp_tags@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_ff_codec_get_id
	ldr	x8, [x20]
	str	w0, [x8, #8]
	mov	x0, x20
	mov	w1, #64
	mov	x2, x22
	mov	x3, x21
	bl	_avpriv_set_pts_info
	mov	x0, x19
	mov	w1, #20
	bl	_avio_skip
	mov	w0, #0
	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
LBB0_3:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ; @AVSTREAM_PARSE_HEADERS
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_ff_codec_bmp_tags,4,2          ; @ff_codec_bmp_tags
	.no_dead_strip	_read_header
.subsections_via_symbols
