	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-32(%rbp), %rdi
	callq	_initializations
	testq	%rax, %rax
	js	LBB0_10
## %bb.1:
	leaq	-32(%rbp), %rdi
	callq	_av_packet_clone
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$20, %esi
	callq	_av_grow_packet
	testq	%rax, %rax
	js	LBB0_12
## %bb.3:
	movq	_INT_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_av_grow_packet
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_str.7(%rip), %rdi
	callq	_puts
	movl	$1, %r14d
LBB0_5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_av_new_packet
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	movl	$1, %r14d
LBB0_7:
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_av_packet_from_data
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %r14d
LBB0_9:
	leaq	-40(%rbp), %rdi
	callq	_av_packet_free
	leaq	-32(%rbp), %rdi
	callq	_av_packet_unref
	jmp	LBB0_15
LBB0_10:
	leaq	L_str.8(%rip), %rdi
	callq	_puts
	jmp	LBB0_14
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_13
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_13:
	xorl	%edi, %edi
	callq	_av_log
LBB0_14:
	movl	$1, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"av_packet_clone failed to clone AVPacket\n"

L_.str.2:                               ## @.str.2
	.asciz	"av_grow_packet failed\n"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
L_str:                                  ## @str
	.asciz	"av_packet_from_data failed to return error when \"size\" parameter is too large."

L_str.6:                                ## @str.6
	.asciz	"av_new_packet failed to return error when \"size\" parameter is too large."

L_str.7:                                ## @str.7
	.asciz	"av_grow_packet failed to return error when \"grow_by\" parameter is too large."

L_str.8:                                ## @str.8
	.asciz	"failed to initialize variables"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	add	x0, sp, #8
	bl	_initializations
	tbnz	x0, #63, LBB0_5
; %bb.1:
	add	x0, sp, #8
	bl	_av_packet_clone
	str	x0, [sp]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	mov	w1, #20
	bl	_av_grow_packet
	tbnz	x0, #63, LBB0_7
; %bb.3:
Lloh0:
	adrp	x21, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INT_MAX@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_av_grow_packet
	cbz	x0, LBB0_9
; %bb.4:
	mov	w20, #0
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x0, l_str.8@PAGE
Lloh3:
	add	x0, x0, l_str.8@PAGEOFF
	bl	_puts
	mov	w20, #1
	b	LBB0_15
LBB0_6:
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
LBB0_8:
	bl	_av_log
	mov	w20, #1
	b	LBB0_15
LBB0_9:
Lloh14:
	adrp	x0, l_str.7@PAGE
Lloh15:
	add	x0, x0, l_str.7@PAGEOFF
	bl	_puts
	mov	w20, #1
LBB0_10:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_av_new_packet
	cbnz	x0, LBB0_12
; %bb.11:
Lloh16:
	adrp	x0, l_str.6@PAGE
Lloh17:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	mov	w20, #1
LBB0_12:
	ldr	w1, [x19]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_av_packet_from_data
	cbnz	x0, LBB0_14
; %bb.13:
Lloh18:
	adrp	x0, l_str@PAGE
Lloh19:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w20, #1
LBB0_14:
	mov	x0, sp
	bl	_av_packet_free
	add	x0, sp, #8
	bl	_av_packet_unref
LBB0_15:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"av_packet_clone failed to clone AVPacket\n"

l_.str.2:                               ; @.str.2
	.asciz	"av_grow_packet failed\n"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
l_str:                                  ; @str
	.asciz	"av_packet_from_data failed to return error when \"size\" parameter is too large."

l_str.6:                                ; @str.6
	.asciz	"av_new_packet failed to return error when \"size\" parameter is too large."

l_str.7:                                ; @str.7
	.asciz	"av_grow_packet failed to return error when \"grow_by\" parameter is too large."

l_str.8:                                ; @str.8
	.asciz	"failed to initialize variables"

.subsections_via_symbols
