	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_AV_CH_LAYOUT_5POINT1_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_AV_CH_LAYOUT_SURROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movaps	L___const.main.sample_rates(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	_AV_CODEC_ID_FLAC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_avcodec_find_encoder
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_avcodec_find_decoder
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	leaq	-64(%rbp), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	leaq	-80(%rbp), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	leaq	-96(%rbp), %rbx
	jle	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-64(%rbp,%r13,4), %edx
	movl	-80(%rbp,%r12,4), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_init_encoder
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	-64(%rbp,%r13,4), %edx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-88(%rbp), %rsi
	callq	_init_decoder
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_run_test
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_close_encoder
	leaq	-88(%rbp), %rdi
	callq	_close_decoder
	incq	%r12
	leaq	-80(%rbp), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %r12
	jl	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	leaq	-64(%rbp), %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	xorl	%r15d, %r15d
	cmpq	%rax, %r13
	jl	LBB0_8
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_av_log
	movl	$1, %r15d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.comm	_AV_CH_LAYOUT_5POINT1_BACK,4,2  ## @AV_CH_LAYOUT_5POINT1_BACK
	.comm	_AV_CH_LAYOUT_SURROUND,4,2      ## @AV_CH_LAYOUT_SURROUND
	.comm	_AV_CH_LAYOUT_STEREO_DOWNMIX,4,2 ## @AV_CH_LAYOUT_STEREO_DOWNMIX
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.main.sample_rates
L___const.main.sample_rates:
	.long	8000                            ## 0x1f40
	.long	44100                           ## 0xac44
	.long	48000                           ## 0xbb80
	.long	192000                          ## 0x2ee00

	.comm	_AV_CODEC_ID_FLAC,4,2           ## @AV_CODEC_ID_FLAC
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't find encoder\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't find decoder\n"

.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, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	stp	xzr, xzr, [sp]
Lloh3:
	adrp	x8, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _AV_CH_LAYOUT_5POINT1_BACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_CH_LAYOUT_5POINT1_BACK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
Lloh9:
	adrp	x8, _AV_CH_LAYOUT_SURROUND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_CH_LAYOUT_SURROUND@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_CH_LAYOUT_STEREO_DOWNMIX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	adrp	x10, l___const.main.sample_rates@PAGE
	add	x10, x10, l___const.main.sample_rates@PAGEOFF
	stp	w8, w9, [sp, #48]
	ldr	q0, [x10]
	str	q0, [sp, #16]
Lloh15:
	adrp	x20, _AV_CODEC_ID_FLAC@GOTPAGE
Lloh16:
	ldr	x20, [x20, _AV_CODEC_ID_FLAC@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_avcodec_find_encoder
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
	bl	_avcodec_find_decoder
	cbz	x0, LBB0_12
; %bb.2:
	mov	x20, x0
	add	x21, sp, #40
	add	x0, sp, #40
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.3:
	mov	x22, #0
	add	x23, sp, #16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x0, sp, #16
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x21, x22, lsl #2]
	ldr	w3, [x23, x24, lsl #2]
	add	x1, sp, #8
	mov	x0, x19
	bl	_init_encoder
	cbnz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w2, [x21, x22, lsl #2]
	mov	x1, sp
	mov	x0, x20
	bl	_init_decoder
	cbnz	x0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldp	x3, x2, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_run_test
	cbnz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x0, sp, #8
	bl	_close_encoder
	mov	x0, sp
	bl	_close_decoder
	add	x24, x24, #1
	add	x0, sp, #16
	bl	_FF_ARRAY_ELEMS
	cmp	x24, w0, sxtw
	b.lt	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	add	x0, sp, #40
	bl	_FF_ARRAY_ELEMS
	mov	x8, x0
	mov	w0, #0
	cmp	x22, w8, sxtw
	b.lt	LBB0_4
	b	LBB0_15
LBB0_11:
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_13:
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_av_log
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldr	x8, [sp, #56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	mov	w0, #0
	b	LBB0_15
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.comm	_AV_CH_LAYOUT_5POINT1_BACK,4,2  ; @AV_CH_LAYOUT_5POINT1_BACK
	.comm	_AV_CH_LAYOUT_SURROUND,4,2      ; @AV_CH_LAYOUT_SURROUND
	.comm	_AV_CH_LAYOUT_STEREO_DOWNMIX,4,2 ; @AV_CH_LAYOUT_STEREO_DOWNMIX
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.main.sample_rates
l___const.main.sample_rates:
	.long	8000                            ; 0x1f40
	.long	44100                           ; 0xac44
	.long	48000                           ; 0xbb80
	.long	192000                          ; 0x2ee00

	.comm	_AV_CODEC_ID_FLAC,4,2           ; @AV_CODEC_ID_FLAC
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't find encoder\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't find decoder\n"

.subsections_via_symbols
