	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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
	movq	%rax, %r14
	movl	8(%rbx), %edi
	callq	_av_pix_fmt_count_planes
	movl	%eax, (%r12)
	movl	76(%r12), %edi
	movl	(%rbx), %edx
	movl	8(%rbx), %esi
	callq	_av_image_fill_linesizes
	testl	%eax, %eax
	js	LBB0_28
## %bb.1:
	movl	(%r14), %r15d
	movl	4(%r14), %esi
	movl	4(%rbx), %edi
	callq	_AV_CEIL_RSHIFT
	movq	8(%r12), %rcx
	movl	%eax, 8(%rcx)
	movl	%eax, 4(%rcx)
	movl	4(%rbx), %eax
	movl	%eax, 12(%rcx)
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	movl	%r15d, %esi
	callq	_AV_CEIL_RSHIFT
	movq	16(%r12), %rcx
	movl	%eax, 8(%rcx)
	movl	%eax, 4(%rcx)
	movl	(%rbx), %eax
	movl	%eax, 12(%rcx)
	movl	%eax, (%rcx)
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movl	$-1, %esi
	shll	%cl, %esi
	movl	%ecx, 24(%r12)
	notl	%esi
	movl	%esi, 28(%r12)
	movl	64(%r12), %edi
	callq	_FFMIN
	movl	%eax, 64(%r12)
	cmpl	$8, 24(%r12)
	movq	_getsum16@GOTPCREL(%rip), %rax
	cmoveq	_getsum8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_maskfun16@GOTPCREL(%rip), %rcx
	cmoveq	_maskfun8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 72(%r12)
	movl	%eax, 68(%r12)
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_ff_get_video_buffer
	movq	%rax, 56(%r12)
	testq	%rax, %rax
	je	LBB0_29
## %bb.2:
	movl	(%r12), %edi
	cmpl	$8, 24(%r12)
	jne	LBB0_3
## %bb.14:
	testl	%edi, %edi
	jle	LBB0_26
## %bb.15:
	movq	8(%r12), %rcx
	xorl	%r14d, %r14d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r14
	movslq	%edi, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_21
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	cmpl	$0, (%rcx,%r14,4)
	jle	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%r14,8), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	64(%r12), %esi
	movq	16(%r12), %rax
	movl	(%rax,%r14,4), %edx
	movq	%r15, %rdi
	callq	_memset
	movq	8(%r12), %rcx
	movq	56(%r12), %rax
	movq	(%rax), %rdx
	movslq	(%rdx,%r14,4), %rdx
	leaq	(%r15,%rdx,4), %r15
	incl	%ebx
	cmpl	(%rcx,%r14,4), %ebx
	jl	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r12), %edi
	jmp	LBB0_20
LBB0_29:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	testl	%edi, %edi
	jle	LBB0_26
## %bb.4:
	movq	8(%rax), %r8
	movq	8(%r12), %r9
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edi
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	movslq	%edi, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_21
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movl	(%r9,%rsi,4), %r11d
	testl	%r11d, %r11d
	jle	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r8,%rsi,8), %rdi
	movq	16(%r12), %rbx
	movq	(%rax), %r10
	movl	(%rbx,%rsi,4), %ecx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r10,%rsi,4), %r15d
	movl	%r15d, %edx
	shrl	$31, %edx
	addl	%r15d, %edx
	sarl	%edx
	movslq	%edx, %rdx
	leaq	(%rdi,%rdx,4), %rdi
	incl	%r14d
	cmpl	%r11d, %r14d
	jge	LBB0_12
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	64(%r12), %ecx
	movl	%ecx, (%rdi,%rdx,4)
	incq	%rdx
	movslq	(%rbx,%rsi,4), %rcx
	cmpq	%rcx, %rdx
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r9,%rsi,4), %r11d
	jmp	LBB0_11
LBB0_21:
	movq	$0, 48(%r12)
	testl	%edi, %edi
	jle	LBB0_27
## %bb.22:
	movl	32(%r12), %r8d
	movl	%edi, %ecx
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	je	LBB0_27
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	btl	%esi, %r8d
	jae	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movslq	40(%r12), %rdi
	movq	8(%r12), %rbx
	movq	16(%r12), %rax
	movslq	(%rax,%rsi,4), %rax
	imulq	%rdi, %rax
	movslq	(%rbx,%rsi,4), %rdi
	imulq	%rax, %rdi
	addq	%rdi, %rdx
	movq	%rdx, 48(%r12)
	jmp	LBB0_25
LBB0_26:
	movq	$0, 48(%r12)
LBB0_27:
	xorl	%eax, %eax
LBB0_28:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_maskfun8,4,2                   ## @maskfun8
	.comm	_getsum8,4,2                    ## @getsum8
	.comm	_maskfun16,4,2                  ## @maskfun16
	.comm	_getsum16,4,2                   ## @getsum16
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	ldr	w0, [x0, #8]
	bl	_av_pix_fmt_desc_get
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_av_pix_fmt_count_planes
	str	w0, [x22]
	ldr	w0, [x22, #76]
	ldr	w1, [x19, #8]
	ldr	w2, [x19]
	bl	_av_image_fill_linesizes
	tbnz	w0, #31, LBB0_29
; %bb.1:
	ldp	w21, w1, [x20]
	ldr	w0, [x19, #4]
	bl	_AV_CEIL_RSHIFT
	ldr	x8, [x22, #8]
	stp	w0, w0, [x8, #4]
	ldr	w9, [x19, #4]
	str	w9, [x8, #12]
	str	w9, [x8]
	ldr	w0, [x19]
	mov	x1, x21
	bl	_AV_CEIL_RSHIFT
	ldr	x8, [x22, #16]
	stp	w0, w0, [x8, #4]
	ldr	w9, [x19]
	str	w9, [x8, #12]
	str	w9, [x8]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	mov	w9, #-1
	lsl	w9, w9, w8
	mvn	w1, w9
	stp	w8, w1, [x22, #24]
	ldr	w0, [x22, #64]
	bl	_FFMIN
	str	w0, [x22, #64]
	ldr	w8, [x22, #24]
Lloh0:
	adrp	x9, _getsum8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _getsum8@GOTPAGEOFF]
Lloh2:
	adrp	x10, _getsum16@GOTPAGE
Lloh3:
	ldr	x10, [x10, _getsum16@GOTPAGEOFF]
	cmp	w8, #8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _maskfun8@GOTPAGE
Lloh5:
	ldr	x9, [x9, _maskfun8@GOTPAGEOFF]
Lloh6:
	adrp	x10, _maskfun16@GOTPAGE
Lloh7:
	ldr	x10, [x10, _maskfun16@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	stp	w8, w9, [x22, #68]
	ldp	w1, w2, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	str	x0, [x22, #56]
	cbz	x0, LBB0_10
; %bb.2:
	ldr	w8, [x22, #24]
	ldr	w11, [x22]
	cmp	w8, #8
	b.ne	LBB0_11
; %bb.3:
	cmp	w11, #1
	b.lt	LBB0_28
; %bb.4:
	mov	x20, #0
	ldr	x8, [x22, #8]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	cmp	x20, w11, sxtw
	b.ge	LBB0_22
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w9, [x8, x20, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w21, #0
	ldr	x8, [x0, #8]
	ldr	x19, [x8, x20, lsl #3]
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x22, #64]
	ldr	x8, [x22, #16]
	lsl	x23, x20, #2
	ldr	w2, [x8, x23]
	mov	x0, x19
	bl	_memset
	ldr	x0, [x22, #56]
	ldr	x8, [x0]
	ldrsw	x8, [x8, x23]
	add	x19, x19, x8, lsl #2
	add	w21, w21, #1
	ldr	x8, [x22, #8]
	ldr	w9, [x8, x23]
	cmp	w21, w9
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w11, [x22]
	b	LBB0_5
LBB0_10:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_11:
	cmp	w11, #1
	b.lt	LBB0_28
; %bb.12:
	mov	x8, #0
	ldr	x9, [x0, #8]
	ldr	x10, [x22, #8]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w11, [x22]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x8, #1
	cmp	x8, w11, sxtw
	b.ge	LBB0_22
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
	ldr	w15, [x10, x8, lsl #2]
	cmp	w15, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w11, #0
	ldr	x12, [x9, x8, lsl #3]
	ldr	x13, [x22, #16]
	ldr	x14, [x0]
	ldr	w16, [x13, x8, lsl #2]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w17, [x14, x8, lsl #2]
	cmp	w17, #0
	cinc	w17, w17, lt
	asr	w17, w17, #1
	add	x12, x12, w17, sxtw #2
	add	w11, w11, #1
	cmp	w11, w15
	b.ge	LBB0_13
LBB0_18:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
	cmp	w16, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x15, #0
LBB0_20:                                ;   Parent Loop BB0_15 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w16, [x22, #64]
	str	w16, [x12, x15, lsl #2]
	add	x15, x15, #1
	ldrsw	x16, [x13, x8, lsl #2]
	cmp	x15, x16
	b.lt	LBB0_20
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w15, [x10, x8, lsl #2]
	b	LBB0_17
LBB0_22:
	str	xzr, [x22, #48]
	cmp	w11, #1
	b.lt	LBB0_27
; %bb.23:
	mov	x8, #0
	mov	x9, #0
	ldr	w10, [x22, #32]
	mov	w11, w11
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x9, x9, #1
	cmp	x11, x9
	b.eq	LBB0_27
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	lsr	w12, w10, w9
	tbz	w12, #0, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	lsl	x12, x9, #2
	ldp	x14, x13, [x22, #8]
	ldrsw	x13, [x13, x12]
	ldrsw	x15, [x22, #40]
	mul	x13, x13, x15
	ldrsw	x12, [x14, x12]
	madd	x8, x13, x12, x8
	str	x8, [x22, #48]
	b	LBB0_24
LBB0_27:
	mov	w0, #0
	b	LBB0_29
LBB0_28:
	mov	w0, #0
	str	xzr, [x22, #48]
LBB0_29:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_maskfun8,4,2                   ; @maskfun8
	.comm	_getsum8,4,2                    ; @getsum8
	.comm	_maskfun16,4,2                  ; @maskfun16
	.comm	_getsum16,4,2                   ; @getsum16
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_config_input
.subsections_via_symbols
