	.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, %r14
	movq	24(%rdi), %rax
	movq	(%rax), %rbx
	movl	16(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %r12
	movl	16(%r14), %edi
	callq	_av_pix_fmt_count_planes
	movl	%eax, (%rbx)
	movl	(%r12), %esi
	movl	%esi, 4(%rbx)
	movq	_displace_planar@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpl	$1, %esi
	je	LBB0_2
## %bb.1:
	movq	_displace_packed@GOTPCREL(%rip), %rdx
LBB0_2:
	cmpl	$2, %eax
	cmovgeq	%rcx, %rdx
	movl	(%rdx), %eax
	movl	%eax, 40(%rbx)
	movq	_AV_PIX_FMT_FLAG_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movl	$128, 8(%rax)
	movabsq	$549755813904, %rcx             ## imm = 0x8000000010
	movq	%rcx, (%rax)
LBB0_4:
	movq	%r12, %rdi
	callq	_av_get_padded_bits_per_pixel
	sarl	$3, %eax
	movl	%eax, 16(%rbx)
	movl	8(%r12), %r15d
	movl	12(%r12), %esi
	movq	8(%r14), %rdi
	callq	_AV_CEIL_RSHIFT
	movq	32(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	32(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r14), %rax
	movq	32(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	32(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rdi
	movl	%r15d, %esi
	callq	_AV_CEIL_RSHIFT
	movq	24(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r14), %rax
	movq	24(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_displace_planar,4,2            ## @displace_planar
	.comm	_displace_packed,4,2            ## @displace_packed
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ## @AV_PIX_FMT_FLAG_RGB
	.no_dead_strip	_config_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function config_input
lCPI0_0:
	.long	16                              ; 0x10
	.long	128                             ; 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_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, #24]
	ldr	x22, [x8]
	ldr	w0, [x0, #16]
	bl	_av_pix_fmt_desc_get
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_av_pix_fmt_count_planes
	ldr	w8, [x20]
	stp	w0, w8, [x22]
	cmp	w8, #1
	ccmp	w0, #1, #0, ne
Lloh0:
	adrp	x8, _displace_planar@GOTPAGE
Lloh1:
	ldr	x8, [x8, _displace_planar@GOTPAGEOFF]
Lloh2:
	adrp	x9, _displace_packed@GOTPAGE
Lloh3:
	ldr	x9, [x9, _displace_packed@GOTPAGEOFF]
	csel	x8, x8, x9, gt
	ldr	w8, [x8]
	str	w8, [x22, #40]
	ldr	w8, [x20, #4]
Lloh4:
	adrp	x9, _AV_PIX_FMT_FLAG_RGB@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AV_PIX_FMT_FLAG_RGB@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
	mov	w9, #128
	str	w9, [x8, #8]
Lloh7:
	adrp	x9, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
LBB0_2:
	mov	x0, x20
	bl	_av_get_padded_bits_per_pixel
	asr	w8, w0, #3
	str	w8, [x22, #16]
	ldp	w21, w1, [x20, #8]
	ldr	x0, [x19, #8]
	bl	_AV_CEIL_RSHIFT
	ldr	x8, [x22, #32]
	str	x0, [x8, #16]
	ldr	x8, [x22, #32]
	str	x0, [x8, #8]
	ldr	x8, [x19, #8]
	ldr	x9, [x22, #32]
	str	x8, [x9, #24]
	ldr	x9, [x22, #32]
	str	x8, [x9]
	ldr	x0, [x19]
	mov	x1, x21
	bl	_AV_CEIL_RSHIFT
	ldr	x8, [x22, #24]
	str	x0, [x8, #16]
	ldr	x8, [x22, #24]
	str	x0, [x8, #8]
	ldr	x8, [x19]
	ldr	x9, [x22, #24]
	str	x8, [x9, #24]
	ldr	x9, [x22, #24]
	str	x8, [x9]
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_displace_planar,4,2            ; @displace_planar
	.comm	_displace_packed,4,2            ; @displace_packed
	.comm	_AV_PIX_FMT_FLAG_RGB,4,2        ; @AV_PIX_FMT_FLAG_RGB
	.no_dead_strip	_config_input
.subsections_via_symbols
