	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_video_info
_parse_video_info:                      ## @parse_video_info
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_avio_rl32
	movq	(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movq	%r14, %rdi
	callq	_avio_rl32
	movq	(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	callq	_avio_rl16
	movl	%eax, %r15d
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ff_get_bmp_header
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_ff_codec_bmp_tags@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_ff_codec_get_id
	movq	(%rbx), %rcx
	movl	%eax, 24(%rcx)
	movq	-32(%rbp), %rsi
	movl	%r15d, %edi
	callq	_FFMAX
	movq	%rax, -32(%rbp)
	movq	_BMP_HEADER_SIZE@GOTPCREL(%rip), %rdx
	movq	%rax, %rcx
	subq	(%rdx), %rcx
	jle	LBB0_5
## %bb.1:
	movq	_INT_MAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	subq	%rdi, %rdx
	cmpq	%rdx, %rax
	jge	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	movq	%rcx, 8(%rax)
	addq	%rcx, %rdi
	callq	_av_malloc
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	addq	8(%rcx), %rax
	movq	(%r15), %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	(%rbx), %rax
	movq	8(%rax), %rdx
	movq	16(%rax), %rsi
	movq	%r14, %rdi
	callq	_avio_read
	testl	%eax, %eax
	js	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	$0, 8(%rcx)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_codec_bmp_tags,4,2          ## @ff_codec_bmp_tags
	.comm	_BMP_HEADER_SIZE,8,3            ## @BMP_HEADER_SIZE
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_parse_video_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_video_info
_parse_video_info:                      ; @parse_video_info
	.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	x20, x1
	mov	x19, x0
	bl	_avio_rl32
	ldr	x8, [x20]
	str	x0, [x8, #40]
	mov	x0, x19
	bl	_avio_rl32
	ldr	x8, [x20]
	str	x0, [x8, #32]
	mov	x0, x19
	mov	w1, #1
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl16
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_ff_get_bmp_header
	mov	x1, x0
	ldr	x8, [x20]
	str	w0, [x8]
Lloh0:
	adrp	x8, _ff_codec_bmp_tags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_codec_bmp_tags@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ff_codec_get_id
	ldr	x8, [x20]
	str	w0, [x8, #24]
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_FFMAX
	str	x0, [sp, #8]
Lloh3:
	adrp	x8, _BMP_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMP_HEADER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	subs	x8, x0, x8
	b.le	LBB0_4
; %bb.1:
Lloh6:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x9]
Lloh9:
	adrp	x21, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x9, [x21]
	sub	x10, x10, x9
	cmp	x0, x10
	b.ge	LBB0_4
; %bb.2:
	ldr	x10, [x20]
	str	x8, [x10, #8]
	add	x0, x9, x8
	bl	_av_malloc
	ldr	x8, [x20]
	str	x0, [x8, #16]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x8, #8]
	add	x0, x8, x0
	ldr	x2, [x21]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20]
	ldp	x2, x1, [x8, #8]
	mov	x0, x19
	bl	_avio_read
	tbnz	w0, #31, LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
LBB0_6:
	str	xzr, [x8, #8]
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_codec_bmp_tags,4,2          ; @ff_codec_bmp_tags
	.comm	_BMP_HEADER_SIZE,8,3            ; @BMP_HEADER_SIZE
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_parse_video_info
.subsections_via_symbols
