	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_input
_config_input:                          ## @config_input
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	movl	8(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movl	(%rbx), %r14d
	movl	4(%rbx), %r13d
	movl	4(%rax), %ecx
	movl	%ecx, 120(%r12)
	movl	(%rax), %eax
	movl	%eax, 116(%r12)
	movl	8(%rbx), %edi
	callq	_av_pix_fmt_count_planes
	movl	%eax, 112(%r12)
	movl	4(%r12), %edi
	callq	_av_ceil_log2_c
	movl	%eax, %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movl	%r13d, %edx
	sarl	%cl, %edx
	movl	%ecx, (%r12)
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	movl	%eax, 4(%r12)
	movl	%edx, 8(%r12)
	movl	%edi, 12(%r12)
	imull	%edx, %edi
	movl	%edi, 16(%r12)
	movq	_NB_FRAMES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.1:
	movq	80(%r12), %rbx
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r12), %edi
	movq	80(%r12), %r14
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, (%r14,%rbx,8)
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_7:
	movq	24(%r12), %rax
	movq	_MI_MODE_MCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.8:
	movl	%r13d, %ebx
	imull	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, 72(%r12)
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	leaq	64(%r12), %r14
	movq	%rax, 64(%r12)
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, 56(%r12)
	cmpq	$0, 72(%r12)
	je	LBB0_11
## %bb.9:
	cmpq	$0, (%r14)
	je	LBB0_11
## %bb.10:
	testq	%rax, %rax
	je	LBB0_11
## %bb.15:
	movq	32(%r12), %rax
	movq	_ME_MODE_BILAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movl	16(%r12), %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, 104(%r12)
	testq	%rax, %rax
	je	LBB0_5
LBB0_17:
	movq	40(%r12), %rax
	movq	_AV_ME_METHOD_EPZS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.18:
	movl	16(%r12), %edi
	movl	$1, %esi
	callq	_av_mallocz_array
	movq	96(%r12), %rcx
	movq	%rax, (%rcx)
	movq	96(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.19:
	movl	16(%r12), %edi
	movl	$1, %esi
	callq	_av_mallocz_array
	movq	96(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	96(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.20:
	movl	16(%r12), %edi
	movl	$1, %esi
	callq	_av_mallocz_array
	movq	96(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	96(%r12), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_5
LBB0_21:
	movq	48(%r12), %rax
	movq	_SCD_METHOD_FDIFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.22:
	movl	$8, %edi
	callq	_ff_scene_sad_get_fn
	movl	%eax, 92(%r12)
	testl	%eax, %eax
	je	LBB0_23
LBB0_24:
	leaq	128(%r12), %r14
	movl	4(%r12), %esi
	movl	88(%r12), %edx
	movl	8(%r12), %eax
	decl	%eax
	movb	(%r12), %cl
	shll	%cl, %eax
	movl	12(%r12), %ebx
	decl	%ebx
	shll	%cl, %ebx
	subq	$8, %rsp
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%r13d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	$0
	pushq	%rax
	callq	_ff_me_init_context
	addq	$32, %rsp
	movq	32(%r12), %rax
	movq	_ME_MODE_BIDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	movq	_get_sad_ob@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_11:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	72(%r12), %r13
	leaq	56(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%r15)
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	80(%r12), %rdi
	addq	%rbx, %rdi
	callq	_av_freep
	incq	%r14
	movslq	(%r15), %rax
	addq	$8, %rbx
	cmpq	%rax, %r14
	jl	LBB0_13
LBB0_14:
	movq	%r13, %rdi
	callq	_av_freep
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_freep
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_freep
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_29
LBB0_26:
	movq	_ME_MODE_BILAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.27:
	movq	_get_sbad_ob@GOTPCREL(%rip), %rax
LBB0_28:
	movq	%rax, (%r14)
LBB0_29:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_FRAMES,4,2                  ## @NB_FRAMES
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MI_MODE_MCI,8,3                ## @MI_MODE_MCI
	.comm	_ME_MODE_BILAT,8,3              ## @ME_MODE_BILAT
	.comm	_AV_ME_METHOD_EPZS,8,3          ## @AV_ME_METHOD_EPZS
	.comm	_SCD_METHOD_FDIFF,8,3           ## @SCD_METHOD_FDIFF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ME_MODE_BIDIR,8,3              ## @ME_MODE_BIDIR
	.comm	_get_sad_ob,4,2                 ## @get_sad_ob
	.comm	_get_sbad_ob,4,2                ## @get_sbad_ob
	.no_dead_strip	_config_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_input
_config_input:                          ; @config_input
	.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	x21, x0
	ldr	x8, [x0, #16]
	ldr	x24, [x8]
	ldr	w0, [x0, #8]
	bl	_av_pix_fmt_desc_get
	ldp	w19, w20, [x21]
	ldr	d0, [x0]
	stur	d0, [x24, #116]
	ldr	w0, [x21, #8]
	bl	_av_pix_fmt_count_planes
	str	w0, [x24, #112]
	ldr	w0, [x24, #4]
	bl	_av_ceil_log2_c
	mov	w8, #1
	lsl	w8, w8, w0
	stp	w0, w8, [x24]
	asr	w8, w20, w0
	asr	w9, w19, w0
	stp	w8, w9, [x24, #8]
	mul	w0, w8, w9
	str	w0, [x24, #16]
Lloh0:
	adrp	x25, _NB_FRAMES@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NB_FRAMES@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x21, [x24, #80]
	mov	w1, #4
	bl	_av_mallocz_array
	str	x0, [x21]
	cbz	x0, LBB0_5
; %bb.2:
	mov	w21, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x25]
	cmp	x21, x8
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24, #16]
	ldr	x22, [x24, #80]
	mov	w1, #4
	bl	_av_mallocz_array
	str	x0, [x22, x21, lsl #3]
	add	x21, x21, #1
	cbnz	x0, LBB0_3
LBB0_5:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	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
LBB0_7:
	ldr	x8, [x24, #24]
Lloh4:
	adrp	x9, _MI_MODE_MCI@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MI_MODE_MCI@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.8:
	mul	w23, w20, w19
	mov	x0, x23
	mov	w1, #4
	bl	_av_mallocz_array
	mov	x21, x24
	str	x0, [x21, #72]!
	mov	x0, x23
	mov	w1, #4
	bl	_av_mallocz_array
	mov	x22, x24
	str	x0, [x22, #64]!
	mov	x0, x23
	mov	w1, #4
	bl	_av_mallocz_array
	mov	x23, x24
	str	x0, [x23, #56]!
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x22]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_14
LBB0_10:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x20, #0
	mov	x26, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #80]
	add	x0, x8, x20
	bl	_av_freep
	add	x26, x26, #1
	ldrsw	x8, [x25]
	add	x20, x20, #8
	cmp	x26, x8
	b.lt	LBB0_12
LBB0_13:
	mov	x0, x21
	bl	_av_freep
	mov	x0, x22
	bl	_av_freep
	mov	x0, x23
	bl	_av_freep
	b	LBB0_28
LBB0_14:
	ldr	x8, [x24, #32]
Lloh10:
	adrp	x9, _ME_MODE_BILAT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ME_MODE_BILAT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldr	w0, [x24, #16]
	mov	w1, #4
	bl	_av_mallocz_array
	str	x0, [x24, #104]
	cbz	x0, LBB0_5
LBB0_16:
	ldr	x8, [x24, #40]
Lloh13:
	adrp	x9, _AV_ME_METHOD_EPZS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AV_ME_METHOD_EPZS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.17:
	ldr	w0, [x24, #16]
	mov	w1, #1
	bl	_av_mallocz_array
	ldr	x8, [x24, #96]
	str	x0, [x8]
	ldr	x8, [x24, #96]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.18:
	ldr	w0, [x24, #16]
	mov	w1, #1
	bl	_av_mallocz_array
	ldr	x8, [x24, #96]
	str	x0, [x8, #8]
	ldr	x8, [x24, #96]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.19:
	ldr	w0, [x24, #16]
	mov	w1, #1
	bl	_av_mallocz_array
	ldr	x8, [x24, #96]
	str	x0, [x8, #16]
	ldr	x8, [x24, #96]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_5
LBB0_20:
	ldr	x8, [x24, #48]
Lloh16:
	adrp	x9, _SCD_METHOD_FDIFF@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SCD_METHOD_FDIFF@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:
	mov	w0, #8
	bl	_ff_scene_sad_get_fn
	str	w0, [x24, #92]
	cbz	w0, LBB0_29
LBB0_22:
	add	x21, x24, #128
	ldr	w2, [x24, #88]
	ldp	w8, w9, [x24, #8]
	sub	w8, w8, #1
	ldp	w10, w1, [x24]
	lsl	w6, w8, w10
	sub	w8, w9, #1
	lsl	w8, w8, w10
	str	w8, [sp]
	mov	x0, x21
	mov	x3, x20
	mov	x4, x19
	mov	w5, #0
	mov	w7, #0
	bl	_ff_me_init_context
	ldr	x8, [x24, #32]
Lloh19:
	adrp	x9, _ME_MODE_BIDIR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ME_MODE_BIDIR@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.23:
	mov	w19, #0
Lloh22:
	adrp	x8, _get_sad_ob@GOTPAGE
Lloh23:
	ldr	x8, [x8, _get_sad_ob@GOTPAGEOFF]
	b	LBB0_26
LBB0_24:
Lloh24:
	adrp	x9, _ME_MODE_BILAT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ME_MODE_BILAT@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.25:
	mov	w19, #0
Lloh27:
	adrp	x8, _get_sbad_ob@GOTPAGE
Lloh28:
	ldr	x8, [x8, _get_sbad_ob@GOTPAGEOFF]
LBB0_26:
	str	x8, [x21]
	b	LBB0_28
LBB0_27:
	mov	w19, #0
LBB0_28:
	mov	x0, x19
	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_29:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_FRAMES,4,2                  ; @NB_FRAMES
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MI_MODE_MCI,8,3                ; @MI_MODE_MCI
	.comm	_ME_MODE_BILAT,8,3              ; @ME_MODE_BILAT
	.comm	_AV_ME_METHOD_EPZS,8,3          ; @AV_ME_METHOD_EPZS
	.comm	_SCD_METHOD_FDIFF,8,3           ; @SCD_METHOD_FDIFF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ME_MODE_BIDIR,8,3              ; @ME_MODE_BIDIR
	.comm	_get_sad_ob,4,2                 ; @get_sad_ob
	.comm	_get_sbad_ob,4,2                ; @get_sbad_ob
	.no_dead_strip	_config_input
.subsections_via_symbols
