	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	l___const.main.dummy_codec+32(%rip), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.main.dummy_codec+16(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.main.dummy_codec(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	leaq	-72(%rbp), %rbx
	movq	_dummy_v1_encoder@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	callq	_avcodec_register
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_1
## %bb.2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	-80(%rbp), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%r15d, %r15d
	leaq	-80(%rbp), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	%r14, %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r14, %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-80(%rbp,%r15,8), %rdi
	movq	-80(%rbp,%rbx,8), %rsi
	callq	_test_copy
	incq	%rbx
	movq	%r14, %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_7
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_dummy_v1_encoder,4,2           ## @dummy_v1_encoder
	.comm	_dummy_v2_encoder,4,2           ## @dummy_v2_encoder
	.comm	_dummy_v3_encoder,4,2           ## @dummy_v3_encoder
	.comm	_dummy_v4_encoder,4,2           ## @dummy_v4_encoder
	.section	__DATA,__const
	.p2align	4                               ## @__const.main.dummy_codec
l___const.main.dummy_codec:
	.quad	_dummy_v1_encoder
	.quad	_dummy_v2_encoder
	.quad	_dummy_v3_encoder
	.quad	_dummy_v4_encoder
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"testing avcodec_copy_context()"

.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, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l___const.main.dummy_codec@PAGE
Lloh4:
	add	x8, x8, l___const.main.dummy_codec@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	ldr	x8, [x8, #32]
	str	x8, [sp, #32]
	mov	x8, sp
	orr	x19, x8, #0x8
Lloh5:
	adrp	x0, _dummy_v1_encoder@GOTPAGE
Lloh6:
	ldr	x0, [x0, _dummy_v1_encoder@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_avcodec_register
	ldr	x0, [x19], #8
	cbnz	x0, LBB0_1
; %bb.2:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x19, sp
	mov	x0, sp
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	mov	x0, sp
	bl	_FF_ARRAY_ELEMS
	cmp	x20, w0, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, sp
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, x20, lsl #3]
	ldr	x1, [x19, x21, lsl #3]
	bl	_test_copy
	add	x21, x21, #1
	mov	x0, sp
	bl	_FF_ARRAY_ELEMS
	cmp	x21, w0, sxtw
	b.lt	LBB0_7
	b	LBB0_4
LBB0_8:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_dummy_v1_encoder,4,2           ; @dummy_v1_encoder
	.comm	_dummy_v2_encoder,4,2           ; @dummy_v2_encoder
	.comm	_dummy_v3_encoder,4,2           ; @dummy_v3_encoder
	.comm	_dummy_v4_encoder,4,2           ; @dummy_v4_encoder
	.section	__DATA,__const
	.p2align	3                               ; @__const.main.dummy_codec
l___const.main.dummy_codec:
	.quad	_dummy_v1_encoder
	.quad	_dummy_v2_encoder
	.quad	_dummy_v3_encoder
	.quad	_dummy_v4_encoder
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"testing avcodec_copy_context()"

.subsections_via_symbols
