	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_one_bytea_to_scalar
_convert_one_bytea_to_scalar:           ## @convert_one_bytea_to_scalar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movl	%ecx, %eax
	subl	%edx, %eax
	incl	%eax
	cvtsi2sd	%eax, %xmm1
	cmpl	$10, %esi
	movl	$10, %r10d
	cmovll	%esi, %r10d
	leal	-1(%rdx), %r8d
	leal	1(%rcx), %r9d
	incl	%r10d
	xorpd	%xmm0, %xmm0
	movapd	%xmm1, %xmm2
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi), %eax
	incq	%rdi
	cmpl	%ecx, %eax
	movl	%eax, %esi
	cmovgl	%r9d, %esi
	cmpl	%edx, %eax
	cmovll	%r8d, %esi
	subl	%edx, %esi
	xorps	%xmm3, %xmm3
	cvtsi2sd	%esi, %xmm3
	divsd	%xmm2, %xmm3
	addsd	%xmm3, %xmm0
	mulsd	%xmm1, %xmm2
	decl	%r10d
	cmpl	$1, %r10d
	ja	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	xorps	%xmm0, %xmm0
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convert_one_bytea_to_scalar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_one_bytea_to_scalar
_convert_one_bytea_to_scalar:           ; @convert_one_bytea_to_scalar
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	sub	w8, w3, w2
	add	w8, w8, #1
	scvtf	d1, w8
	mov	w8, #10
	cmp	w1, #10
	csel	w10, w1, w8, lt
	sub	w8, w2, #1
	add	w9, w3, #1
	add	w10, w10, #1
	movi	d0, #0000000000000000
	fmov	d2, d1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x0], #1
	cmp	w11, w3
	csel	w12, w9, w11, gt
	cmp	w11, w2
	csel	w11, w8, w12, lt
	sub	w11, w11, w2
	scvtf	d3, w11
	fdiv	d3, d3, d2
	fadd	d0, d0, d3
	fmul	d2, d2, d1
	sub	w10, w10, #1
	cmp	w10, #1
	b.hi	LBB0_2
; %bb.3:
	ret
LBB0_4:
	movi	d0, #0000000000000000
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convert_one_bytea_to_scalar
.subsections_via_symbols
