	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_output
_config_output:                         ## @config_output
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rdi), %rbx
	movq	(%rbx), %rax
	movq	8(%rbx), %r13
	movq	(%rax), %rcx
	movups	16(%rcx), %xmm0
	movl	(%rcx), %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %r15d
	movl	(%r13), %edx
	cmpl	$2, %edx
	jl	LBB0_7
## %bb.1:
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rsi
	movl	(%rsi), %r9d
	movl	4(%rsi), %r8d
	cmpl	%r14d, %r9d
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %r8d
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_2
LBB0_7:
	movaps	%xmm0, -80(%rbp)                ## 16-byte Spill
	movq	%rdi, %r12
	movl	32(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	32(%r12), %edi
	callq	_av_pix_fmt_count_planes
	movl	%eax, 72(%r13)
	movq	56(%r13), %rax
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	movl	$-1, %eax
	shll	%cl, %eax
	movl	%ecx, 4(%r13)
	notl	%eax
	movl	%eax, 8(%r13)
	cmpl	$9, %ecx
	jge	LBB0_10
## %bb.11:
	movq	_median_frames8@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_10:
	movq	_median_frames16@GOTPCREL(%rip), %rax
LBB0_12:
	movq	%rbx, %r12
	movl	(%rax), %eax
	movl	%eax, 68(%r13)
	movl	64(%r13), %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edx
	movl	32(%rbx), %esi
	callq	_av_image_fill_linesizes
	testl	%eax, %eax
	js	LBB0_18
## %bb.13:
	movl	4(%rbx), %edi
	movq	56(%r13), %rax
	movl	4(%rax), %esi
	callq	_AV_CEIL_RSHIFT
	movq	16(%r13), %rcx
	movl	%eax, 8(%rcx)
	movl	%eax, 4(%rcx)
	movl	4(%rbx), %eax
	movl	%eax, 12(%rcx)
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	movq	56(%r13), %rax
	movl	(%rax), %esi
	callq	_AV_CEIL_RSHIFT
	movq	24(%r13), %rcx
	movl	%eax, 8(%rcx)
	movl	%eax, 4(%rcx)
	movl	(%rbx), %eax
	movl	%eax, 12(%rcx)
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, 4(%rax)
	movl	%r14d, (%rax)
	movaps	-80(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 16(%rax)
	leaq	32(%r13), %r15
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ff_framesync_init
	testl	%eax, %eax
	js	LBB0_18
## %bb.14:
	movq	48(%r13), %rax
	movq	%r13, 40(%r13)
	movq	_process_frame@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r13)
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.15:
	movq	(%r12), %rdx
	shlq	$3, %rcx
	xorl	%esi, %esi
	movq	_EXT_STOP@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi), %rbx
	movl	8(%rbx), %ebx
	movl	%ebx, 24(%rax,%rsi,4)
	movl	$1, (%rax,%rsi,4)
	movq	(%rdi), %rbx
	movq	%rbx, 16(%rax,%rsi,4)
	movq	(%rdi), %rbx
	movq	%rbx, 8(%rax,%rsi,4)
	addq	$8, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_16
LBB0_17:
	movq	%r15, %rdi
	callq	_ff_framesync_configure
	movl	(%r15), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 8(%rdx)
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r14d, %r9d
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	pushq	%r14
	pushq	%r15
	pushq	$0
	callq	_av_log
	addq	$32, %rsp
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input %d size (%dx%d) does not match input %d size (%dx%d).\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
	.comm	_median_frames8,4,2             ## @median_frames8
	.comm	_median_frames16,4,2            ## @median_frames16
	.comm	_process_frame,4,2              ## @process_frame
	.comm	_EXT_STOP,8,3                   ## @EXT_STOP
	.no_dead_strip	_config_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_output
_config_output:                         ; @config_output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0, #40]
	ldp	x8, x22, [x20]
	ldr	x26, [x8]
	ldp	x25, x24, [x26, #16]
	ldp	w23, w21, [x26]
	ldr	w9, [x22]
	cmp	w9, #2
	b.lt	LBB0_5
; %bb.1:
	mov	w3, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x3, lsl #3]
	ldp	w5, w4, [x10]
	cmp	w5, w23
	b.ne	LBB0_15
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w4, w21
	b.ne	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x3, x3, #1
	cmp	x9, x3
	b.ne	LBB0_2
LBB0_5:
	ldr	w0, [x19, #32]
	bl	_av_pix_fmt_desc_get
	str	x0, [x22, #56]
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w0, [x19, #32]
	bl	_av_pix_fmt_count_planes
	str	w0, [x22, #72]
	ldr	x8, [x22, #56]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	mov	w9, #-1
	lsl	w9, w9, w8
	mvn	w9, w9
	stp	w8, w9, [x22, #4]
Lloh0:
	adrp	x9, _median_frames8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _median_frames8@GOTPAGEOFF]
Lloh2:
	adrp	x10, _median_frames16@GOTPAGE
Lloh3:
	ldr	x10, [x10, _median_frames16@GOTPAGEOFF]
	cmp	w8, #9
	csel	x8, x9, x10, lt
	ldr	w8, [x8]
	str	w8, [x22, #68]
	ldr	w0, [x22, #64]
	ldr	w1, [x26, #32]
	ldr	w2, [x26, #4]
	bl	_av_image_fill_linesizes
	tbnz	w0, #31, LBB0_13
; %bb.7:
	ldr	w0, [x26, #4]
	ldr	x8, [x22, #56]
	ldr	w1, [x8, #4]
	bl	_AV_CEIL_RSHIFT
	ldr	x8, [x22, #16]
	stp	w0, w0, [x8, #4]
	ldr	w9, [x26, #4]
	str	w9, [x8, #12]
	str	w9, [x8]
	ldr	w0, [x26]
	ldr	x8, [x22, #56]
	ldr	w1, [x8]
	bl	_AV_CEIL_RSHIFT
	ldr	x8, [x22, #24]
	stp	w0, w0, [x8, #4]
	ldr	w9, [x26]
	str	w9, [x8, #12]
	str	w9, [x8]
	stp	w23, w21, [x19]
	stp	x25, x24, [x19, #16]
	add	x21, x22, #32
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_ff_framesync_init
	tbnz	w0, #31, LBB0_13
; %bb.8:
	ldr	x10, [x22, #48]
	str	x22, [x22, #40]
Lloh4:
	adrp	x8, _process_frame@GOTPAGE
Lloh5:
	ldr	x8, [x8, _process_frame@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x22, #36]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	ldr	x9, [x20]
	add	x10, x10, #16
	mov	w11, #1
Lloh7:
	adrp	x12, _EXT_STOP@GOTPAGE
Lloh8:
	ldr	x12, [x12, _EXT_STOP@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9], #8
	ldr	w13, [x13, #8]
	str	w13, [x10, #8]
	stur	w11, [x10, #-16]
	ldr	x13, [x12]
	str	x13, [x10]
	ldr	x13, [x12]
	stur	x13, [x10, #-8]
	add	x10, x10, #32
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x21
	bl	_ff_framesync_configure
	ldr	w8, [x21]
	str	w8, [x19, #8]
	b	LBB0_13
LBB0_12:
Lloh9:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_13:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	mov	x5, x23
LBB0_15:
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	str	w23, [sp]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w6, #0
	mov	x7, x21
	bl	_av_log
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_AVERROR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input %d size (%dx%d) does not match input %d size (%dx%d).\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
	.comm	_median_frames8,4,2             ; @median_frames8
	.comm	_median_frames16,4,2            ; @median_frames16
	.comm	_process_frame,4,2              ; @process_frame
	.comm	_EXT_STOP,8,3                   ; @EXT_STOP
	.no_dead_strip	_config_output
.subsections_via_symbols
