	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movl	(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_av_pix_fmt_count_planes
	movl	%eax, (%r15)
	movl	(%r14), %ecx
	cmpl	$2, %eax
	setge	%al
	cmpl	$1, %ecx
	sete	%dl
	orb	%al, %dl
	movq	_remap_packed8_nearest_slice@GOTPCREL(%rip), %rax
	cmovneq	_remap_planar8_nearest_slice@GOTPCREL(%rip), %rax
	movq	_remap_packed16_nearest_slice@GOTPCREL(%rip), %rdx
	cmovneq	_remap_planar16_nearest_slice@GOTPCREL(%rip), %rdx
	movl	%ecx, 4(%r15)
	movq	8(%r14), %rcx
	cmpl	$8, (%rcx)
	cmoveq	%rax, %rdx
	movl	(%rdx), %eax
	movl	%eax, 12(%r15)
	movq	%r14, %rdi
	callq	_av_get_padded_bits_per_pixel
	sarl	$3, %eax
	movl	%eax, 8(%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_remap_planar8_nearest_slice,4,2 ## @remap_planar8_nearest_slice
	.comm	_remap_packed8_nearest_slice,4,2 ## @remap_packed8_nearest_slice
	.comm	_remap_planar16_nearest_slice,4,2 ## @remap_planar16_nearest_slice
	.comm	_remap_packed16_nearest_slice,4,2 ## @remap_packed16_nearest_slice
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	w0, [x0]
	bl	_av_pix_fmt_desc_get
	mov	x20, x0
	ldr	w0, [x19]
	bl	_av_pix_fmt_count_planes
	ldr	w8, [x20]
	stp	w0, w8, [x21]
	ldr	x9, [x20, #8]
	cmp	w0, #1
Lloh0:
	adrp	x10, _remap_planar8_nearest_slice@GOTPAGE
Lloh1:
	ldr	x10, [x10, _remap_planar8_nearest_slice@GOTPAGEOFF]
Lloh2:
	adrp	x11, _remap_packed8_nearest_slice@GOTPAGE
Lloh3:
	ldr	x11, [x11, _remap_packed8_nearest_slice@GOTPAGEOFF]
	ccmp	w8, #1, #4, le
	csel	x8, x10, x11, eq
Lloh4:
	adrp	x10, _remap_planar16_nearest_slice@GOTPAGE
Lloh5:
	ldr	x10, [x10, _remap_planar16_nearest_slice@GOTPAGEOFF]
Lloh6:
	adrp	x11, _remap_packed16_nearest_slice@GOTPAGE
Lloh7:
	ldr	x11, [x11, _remap_packed16_nearest_slice@GOTPAGEOFF]
	ldr	w9, [x9]
	csel	x10, x10, x11, eq
	cmp	w9, #8
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	str	w8, [x21, #12]
	mov	x0, x20
	bl	_av_get_padded_bits_per_pixel
	asr	w8, w0, #3
	str	w8, [x21, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_remap_planar8_nearest_slice,4,2 ; @remap_planar8_nearest_slice
	.comm	_remap_packed8_nearest_slice,4,2 ; @remap_packed8_nearest_slice
	.comm	_remap_planar16_nearest_slice,4,2 ; @remap_planar16_nearest_slice
	.comm	_remap_packed16_nearest_slice,4,2 ; @remap_packed16_nearest_slice
	.no_dead_strip	_config_input
.subsections_via_symbols
