	.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	$40, %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), %r12
	movq	(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %r14
	movq	_AV_PIX_FMT_FLAG_PLANAR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	(%r14), %r13d
	movl	8(%rbx), %r15d
	movl	(%rbx), %esi
	movl	4(%rbx), %ebx
	movq	%r12, %rdi
	callq	_ff_av2vs_pixfmt
	leaq	-72(%rbp), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_vsFrameInfoInit
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.1:
	movl	-72(%rbp), %ebx
	movq	%r14, %rdi
	callq	_av_get_bits_per_pixel
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	cmpl	%ecx, %ebx
	jne	LBB0_2
LBB0_4:
	movq	-64(%rbp), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rax
	cmpq	16(%r14), %rax
	jne	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	56(%rbx), %r14
	leaq	16(%rbx), %r15
	movl	$1, 16(%rbx)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 24(%rbx)
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vsMotionDetectInit
	movq	_VS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vsMotionDetectGetConfig
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r13), %esi
	movl	52(%rbx), %ecx
	leaq	L_.str.6(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r13), %esi
	movl	48(%rbx), %ecx
	leaq	L_.str.7(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r13), %esi
	movl	44(%rbx), %ecx
	leaq	L_.str.8(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r13), %esi
	movl	40(%rbx), %ecx
	leaq	L_.str.9(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r13), %esi
	movl	36(%rbx), %ecx
	leaq	L_.str.10(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r13), %esi
	movl	32(%rbx), %ecx
	leaq	L_.str.11(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r13), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.12(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%rbx), %edi
	leaq	L_.str.13(%rip), %rsi
	callq	_fopen
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_vsPrepareFile
	movq	_VS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.15(%rip), %rdx
	jmp	LBB0_14
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_3
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_3:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.14(%rip), %rdx
LBB0_14:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_PLANAR,4,2     ## @AV_PIX_FMT_FLAG_PLANAR
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pixel-format error: wrong bits/per/pixel, please report a BUG"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"pixel-format error: log2_chroma_w, please report a BUG"

L_.str.2:                               ## @.str.2
	.asciz	"pixel-format error: log2_chroma_h, please report a BUG"

L_.str.3:                               ## @.str.3
	.asciz	"vidstabdetect"

	.comm	_VS_OK,8,3                      ## @VS_OK
L_.str.4:                               ## @.str.4
	.asciz	"initialization of Motion Detection failed, please report a BUG"

	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
L_.str.5:                               ## @.str.5
	.asciz	"Video stabilization settings (pass 1/2):\n"

L_.str.6:                               ## @.str.6
	.asciz	"     shakiness = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"      accuracy = %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"      stepsize = %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"   mincontrast = %f\n"

L_.str.10:                              ## @.str.10
	.asciz	"        tripod = %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"          show = %d\n"

L_.str.12:                              ## @.str.12
	.asciz	"        result = %s\n"

L_.str.13:                              ## @.str.13
	.asciz	"w"

L_.str.14:                              ## @.str.14
	.asciz	"cannot open transform file %s\n"

L_.str.15:                              ## @.str.15
	.asciz	"cannot write to transform file %s\n"

	.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, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, [x0, #16]
	ldr	x24, [x19]
	ldr	w0, [x0]
	bl	_av_pix_fmt_desc_get
	mov	x20, x0
Lloh0:
	adrp	x8, _AV_PIX_FMT_FLAG_PLANAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_FLAG_PLANAR@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	ldr	w8, [x8]
	and	w25, w8, w9
	ldp	w23, w22, [x21, #4]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ff_av2vs_pixfmt
	mov	x3, x0
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x23
	bl	_vsFrameInfoInit
	cbnz	w25, LBB0_2
; %bb.1:
	ldr	w21, [sp, #8]
	mov	x0, x20
	bl	_av_get_bits_per_pixel
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	cmp	w21, w8, asr #3
	b.ne	LBB0_10
LBB0_2:
	ldr	x8, [sp, #16]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [sp, #24]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	add	x20, x24, #56
	mov	w8, #1
	mov	x21, x24
	str	w8, [x21, #16]!
Lloh3:
	adrp	x8, l_.str.3@PAGE
Lloh4:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x21, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_vsMotionDetectInit
Lloh5:
	adrp	x22, _VS_OK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _VS_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	_vsMotionDetectGetConfig
Lloh7:
	adrp	x21, _AV_LOG_INFO@GOTPAGE
Lloh8:
	ldr	x21, [x21, _AV_LOG_INFO@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh9:
	adrp	x2, l_.str.5@PAGE
Lloh10:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w1, [x21]
	ldr	w8, [x24, #52]
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str.6@PAGE
Lloh12:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w1, [x21]
	ldr	w8, [x24, #48]
	str	x8, [sp]
Lloh13:
	adrp	x2, l_.str.7@PAGE
Lloh14:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w1, [x21]
	ldr	w8, [x24, #44]
	str	x8, [sp]
Lloh15:
	adrp	x2, l_.str.8@PAGE
Lloh16:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w1, [x21]
	ldr	w8, [x24, #40]
	str	x8, [sp]
Lloh17:
	adrp	x2, l_.str.9@PAGE
Lloh18:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w1, [x21]
	ldr	w8, [x24, #36]
	str	x8, [sp]
Lloh19:
	adrp	x2, l_.str.10@PAGE
Lloh20:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w1, [x21]
	ldr	w8, [x24, #32]
	str	x8, [sp]
Lloh21:
	adrp	x2, l_.str.11@PAGE
Lloh22:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w1, [x21]
	ldr	w8, [x24]
	str	x8, [sp]
Lloh23:
	adrp	x2, l_.str.12@PAGE
Lloh24:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w0, [x24]
Lloh25:
	adrp	x1, l_.str.13@PAGE
Lloh26:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_fopen
	str	x0, [x24, #8]
	cbz	x0, LBB0_12
; %bb.6:
	mov	x1, x0
	mov	x0, x20
	bl	_vsPrepareFile
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.7:
	mov	w0, #0
	b	LBB0_15
LBB0_8:
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_9:
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str.2@PAGE
Lloh36:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_10:
Lloh37:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x2, l_.str@PAGE
Lloh41:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_11:
Lloh42:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x2, l_.str.4@PAGE
Lloh46:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh47:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	ldr	w8, [x24]
	str	x8, [sp]
Lloh50:
	adrp	x2, l_.str.14@PAGE
Lloh51:
	add	x2, x2, l_.str.14@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh52:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	ldr	w8, [x24]
	str	x8, [sp]
Lloh55:
	adrp	x2, l_.str.15@PAGE
Lloh56:
	add	x2, x2, l_.str.15@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_av_log
Lloh57:
	adrp	x8, _EINVAL@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_PLANAR,4,2     ; @AV_PIX_FMT_FLAG_PLANAR
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pixel-format error: wrong bits/per/pixel, please report a BUG"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"pixel-format error: log2_chroma_w, please report a BUG"

l_.str.2:                               ; @.str.2
	.asciz	"pixel-format error: log2_chroma_h, please report a BUG"

l_.str.3:                               ; @.str.3
	.asciz	"vidstabdetect"

	.comm	_VS_OK,8,3                      ; @VS_OK
l_.str.4:                               ; @.str.4
	.asciz	"initialization of Motion Detection failed, please report a BUG"

	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
l_.str.5:                               ; @.str.5
	.asciz	"Video stabilization settings (pass 1/2):\n"

l_.str.6:                               ; @.str.6
	.asciz	"     shakiness = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"      accuracy = %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"      stepsize = %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"   mincontrast = %f\n"

l_.str.10:                              ; @.str.10
	.asciz	"        tripod = %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"          show = %d\n"

l_.str.12:                              ; @.str.12
	.asciz	"        result = %s\n"

l_.str.13:                              ; @.str.13
	.asciz	"w"

l_.str.14:                              ; @.str.14
	.asciz	"cannot open transform file %s\n"

l_.str.15:                              ; @.str.15
	.asciz	"cannot write to transform file %s\n"

	.no_dead_strip	_config_input
.subsections_via_symbols
