	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LLVMFuzzerTestOneInput         ## -- Begin function LLVMFuzzerTestOneInput
	.p2align	4, 0x90
_LLVMFuzzerTestOneInput:                ## @LLVMFuzzerTestOneInput
	.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	$1128, %rsp                     ## imm = 0x468
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_avformat_alloc_context
	movq	%rax, %rbx
	movq	%rax, -1104(%rbp)
	leaq	-1088(%rbp), %rdi
	movl	$1025, %esi                     ## imm = 0x401
	callq	___bzero
	movq	$0, -1096(%rbp)
	cmpb	$0, _LLVMFuzzerTestOneInput.c(%rip)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_av_register_all
	xorl	%eax, %eax
	callq	_avcodec_register_all
	movq	_AV_LOG_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_log_set_level
	movb	$1, _LLVMFuzzerTestOneInput.c(%rip)
LBB0_2:
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_4:
	movq	%rbx, -1128(%rbp)               ## 8-byte Spill
	cmpq	$2049, %r14                     ## imm = 0x801
	movq	%r15, -1120(%rbp)               ## 8-byte Spill
	jb	LBB0_5
## %bb.6:
	leaq	(%r15,%r14,4), %rsi
	addq	$-4096, %rsi                    ## imm = 0xF000
	leaq	-1088(%rbp), %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memcpy
	leaq	(%r15,%r14,4), %rsi
	addq	$-8192, %rsi                    ## imm = 0xE000
	leaq	-1160(%rbp), %r15
	movq	%r15, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_bytestream2_init
	addq	$-2048, %r14                    ## imm = 0xF800
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %ebx
	andl	$268435455, %ebx                ## imm = 0xFFFFFFF
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %r13d
	andl	$1, %r13d
	movq	%r15, %rdi
	callq	_bytestream2_get_le64
	movl	%eax, %r12d
	jmp	LBB0_7
LBB0_5:
	xorl	%r13d, %r13d
	movl	$32768, %ebx                    ## imm = 0x8000
	movq	%r14, %r12
LBB0_7:
	movl	%ebx, %edi
	callq	_av_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_9:
	movl	%r12d, -1160(%rbp)
	movq	$0, -1136(%rbp)
	movq	-1120(%rbp), %rax               ## 8-byte Reload
	movq	%rax, -1144(%rbp)
	movq	%r14, -1152(%rbp)
	movq	_io_read@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$0, %eax
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.10:
	movq	_io_seek@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_11:
	movq	%rax, (%rsp)
	leaq	-1160(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_avio_alloc_context
	movq	%rax, %rbx
	movq	%rax, -1096(%rbp)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_13:
	movq	-1128(%rbp), %rax               ## 8-byte Reload
	movq	%rbx, (%rax)
	leaq	-1104(%rbp), %rdi
	leaq	-1088(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_avformat_open_input
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movq	-1104(%rbp), %rdi
	xorl	%esi, %esi
	callq	_avformat_find_stream_info
	leaq	-1108(%rbp), %rdi
	callq	_av_init_packet
	movq	_maxiteration@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jle	LBB0_19
## %bb.16:
	xorl	%ebx, %ebx
	leaq	-1108(%rbp), %r15
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-1104(%rbp), %rdi
	movq	%r15, %rsi
	callq	_av_read_frame
	testl	%eax, %eax
	js	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rdi
	callq	_av_packet_unref
	incq	%rbx
	cmpq	(%r14), %rbx
	jl	LBB0_17
LBB0_19:
	movq	-1096(%rbp), %rdi
	callq	_av_freep
	leaq	-1096(%rbp), %rdi
	callq	_av_freep
	leaq	-1104(%rbp), %rdi
	callq	_avformat_close_input
	jmp	LBB0_20
LBB0_14:
	movq	-1096(%rbp), %rdi
	callq	_av_freep
	leaq	-1096(%rbp), %rdi
	callq	_av_freep
	movq	-1104(%rbp), %rdi
	callq	_avformat_free_context
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	addq	$1128, %rsp                     ## imm = 0x468
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FUZZ_TAG,4,2                   ## @FUZZ_TAG
.zerofill __DATA,__bss,_LLVMFuzzerTestOneInput.c,1,2 ## @LLVMFuzzerTestOneInput.c
	.comm	_AV_LOG_PANIC,4,2               ## @AV_LOG_PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed avformat_alloc_context()"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate io_buffer"

	.comm	_io_read,4,2                    ## @io_read
	.comm	_io_seek,8,3                    ## @io_seek
L_.str.2:                               ## @.str.2
	.asciz	"avio_alloc_context failed"

	.comm	_maxiteration,8,3               ## @maxiteration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LLVMFuzzerTestOneInput         ; -- Begin function LLVMFuzzerTestOneInput
	.p2align	2
_LLVMFuzzerTestOneInput:                ; @LLVMFuzzerTestOneInput
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #1104
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_avformat_alloc_context
	mov	x19, x0
	str	x0, [sp, #56]
	add	x0, sp, #71
	mov	w1, #1025
	bl	_bzero
	str	xzr, [sp, #40]
	adrp	x22, _LLVMFuzzerTestOneInput.c@PAGE
	ldrb	w8, [x22, _LLVMFuzzerTestOneInput.c@PAGEOFF]
	tbz	w8, #0, LBB0_4
; %bb.1:
	cbz	x19, LBB0_5
LBB0_2:
	cmp	x20, #2049
	b.lo	LBB0_6
LBB0_3:
	add	x22, x21, x20, lsl #2
	sub	x1, x22, #1, lsl #12            ; =4096
	add	x0, sp, #71
	mov	w2, #1024
	bl	_memcpy
	sub	x1, x22, #2, lsl #12            ; =8192
	add	x0, sp, #8
	mov	w2, #1024
	bl	_bytestream2_init
	sub	x20, x20, #2048
	add	x0, sp, #8
	bl	_bytestream2_get_le32
	and	w22, w0, #0xfffffff
	add	x0, sp, #8
	bl	_bytestream2_get_byte
	and	w24, w0, #0x1
	add	x0, sp, #8
	bl	_bytestream2_get_le64
	mov	w25, w0
	b	LBB0_7
LBB0_4:
	bl	_av_register_all
	bl	_avcodec_register_all
Lloh3:
	adrp	x8, _AV_LOG_PANIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_PANIC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_av_log_set_level
	mov	w8, #1
	strb	w8, [x22, _LLVMFuzzerTestOneInput.c@PAGEOFF]
	cbnz	x19, LBB0_2
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	cmp	x20, #2049
	b.hs	LBB0_3
LBB0_6:
	mov	w24, #0
	mov	w22, #32768
	mov	x25, x20
LBB0_7:
	mov	x0, x22
	bl	_av_malloc
	mov	x23, x0
	cbnz	x0, LBB0_9
; %bb.8:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_9:
	str	w25, [sp, #8]
	stp	x21, xzr, [sp, #24]
	str	x20, [sp, #16]
Lloh10:
	adrp	x8, _io_read@GOTPAGE
Lloh11:
	ldr	x8, [x8, _io_read@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
Lloh13:
	adrp	x8, _io_seek@GOTPAGE
Lloh14:
	ldr	x8, [x8, _io_seek@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	w24, #0
	csel	x6, xzr, x8, eq
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	w2, #0
	mov	x5, #0
	bl	_avio_alloc_context
	mov	x20, x0
	str	x0, [sp, #40]
	cbnz	x0, LBB0_11
; %bb.10:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_11:
	str	x20, [x19]
	add	x0, sp, #56
	add	x1, sp, #71
	mov	x2, #0
	mov	x3, #0
	bl	_avformat_open_input
	tbnz	w0, #31, LBB0_17
; %bb.12:
	ldr	x0, [sp, #56]
	mov	x1, #0
	bl	_avformat_find_stream_info
	add	x0, sp, #52
	bl	_av_init_packet
Lloh18:
	adrp	x19, _maxiteration@GOTPAGE
Lloh19:
	ldr	x19, [x19, _maxiteration@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_16
; %bb.13:
	mov	x20, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #56]
	add	x1, sp, #52
	bl	_av_read_frame
	tbnz	w0, #31, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #52
	bl	_av_packet_unref
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_14
LBB0_16:
	ldr	x0, [sp, #40]
	bl	_av_freep
	add	x0, sp, #40
	bl	_av_freep
	add	x0, sp, #56
	bl	_avformat_close_input
	b	LBB0_18
LBB0_17:
	ldr	x0, [sp, #40]
	bl	_av_freep
	add	x0, sp, #40
	bl	_av_freep
	ldr	x0, [sp, #56]
	bl	_avformat_free_context
LBB0_18:
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	w0, #0
	add	sp, sp, #1104
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FUZZ_TAG,4,2                   ; @FUZZ_TAG
.zerofill __DATA,__bss,_LLVMFuzzerTestOneInput.c,1,2 ; @LLVMFuzzerTestOneInput.c
	.comm	_AV_LOG_PANIC,4,2               ; @AV_LOG_PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed avformat_alloc_context()"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate io_buffer"

	.comm	_io_read,4,2                    ; @io_read
	.comm	_io_seek,8,3                    ; @io_seek
l_.str.2:                               ; @.str.2
	.asciz	"avio_alloc_context failed"

	.comm	_maxiteration,8,3               ; @maxiteration
.subsections_via_symbols
