	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gbt_var_penalty
LCPI0_0:
	.quad	0x3f70000000000000              ## double 0.00390625
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	1127219200                      ## 0x43300000
	.long	1160773632                      ## 0x45300000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_2:
	.quad	0x4330000000000000              ## double 4503599627370496
	.quad	0x4530000000000000              ## double 1.9342813113834067E+25
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gbt_var_penalty
	.p2align	4, 0x90
_gbt_var_penalty:                       ## @gbt_var_penalty
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r12
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %edi
	callq	_DatumGetPointer
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	callq	_DatumGetPointer
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	$0, (%rbx)
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gbt_var_key_readable
	movq	%rax, %r13
	cmpq	%rdx, %rax
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_gbt_var_leaf2node
	movq	%r13, %r14
	cmpq	%rbx, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rdi
	callq	_gbt_var_key_readable
	movq	%rax, %r13
LBB0_3:
	movq	%rdx, %r14
LBB0_4:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_gbt_var_key_readable
	movq	%rdx, %r15
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_VARSIZE
	movq	_VARHDRSZ@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_VARSIZE
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.6:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_27
LBB0_7:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	*(%r12)
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_gbt_bytea_pf_match
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	*(%r12)
	testq	%rax, %rax
	jle	LBB0_27
## %bb.10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_gbt_bytea_pf_match
	testq	%rax, %rax
	jne	LBB0_27
LBB0_11:
	xorl	%edi, %edi
	callq	_PointerGetDatum
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_gbt_var_bin_union
	movl	-44(%rbp), %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_gbt_var_node_cp_len
	movq	%rbx, %r8
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r12, %rcx
	callq	_gbt_var_bin_union
	movl	-44(%rbp), %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_gbt_var_node_cp_len
	movq	%rax, %r12
	movq	%rbx, %rax
	subq	%r12, %rax
	jbe	LBB0_13
## %bb.12:
	movq	%rax, %xmm1
	punpckldq	LCPI0_1(%rip), %xmm1    ## xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
	subpd	LCPI0_2(%rip), %xmm1
	movapd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm0                    ## xmm0 = xmm0[1],xmm1[1]
	addsd	%xmm1, %xmm0
	jmp	LBB0_26
LBB0_13:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_gbt_var_key_readable
	movq	%rax, %r13
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_VARSIZE
	movq	_VARHDRSZ@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	cmpq	%r12, %rax
	jbe	LBB0_14
## %bb.15:
	movq	%rbx, %rdi
	callq	_VARDATA
	movb	(%rax,%r12,8), %r14b
	jmp	LBB0_16
LBB0_14:
	xorl	%r14d, %r14d
LBB0_16:
	movq	%r13, %rdi
	callq	_VARSIZE
	movq	_VARHDRSZ@GOTPCREL(%rip), %rbx
	subq	(%rbx), %rax
	cmpq	%r12, %rax
	jbe	LBB0_17
## %bb.18:
	movq	%r13, %rdi
	callq	_VARDATA
	movb	(%rax,%r12,8), %al
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_19
LBB0_17:
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_19:
	movq	%r15, %rbx
	movq	%r15, %rdi
	callq	_VARSIZE
	movq	_VARHDRSZ@GOTPCREL(%rip), %r15
	subq	(%r15), %rax
	cmpq	%r12, %rax
	jbe	LBB0_20
## %bb.21:
	movq	%rbx, %rdi
	callq	_VARDATA
	movb	(%rax,%r12,8), %r13b
	jmp	LBB0_22
LBB0_20:
	xorl	%r13d, %r13d
LBB0_22:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_VARSIZE
	subq	(%r15), %rax
	cmpq	%r12, %rax
	jbe	LBB0_23
## %bb.24:
	movq	%rbx, %rdi
	callq	_VARDATA
	movb	(%rax,%r12,8), %bl
	jmp	LBB0_25
LBB0_23:
	xorl	%ebx, %ebx
LBB0_25:
	subb	%r13b, %bl
	subb	-56(%rbp), %r14b                ## 1-byte Folded Reload
	movzbl	%r14b, %edi
	callq	_Abs
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movzbl	%bl, %edi
	callq	_Abs
	addsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	LCPI0_0(%rip), %xmm0
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_26:
	movq	_FLT_MIN@GOTPCREL(%rip), %rax
	xorps	%xmm1, %xmm1
	cvtsi2ssq	(%rax), %xmm1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	addss	(%rsi), %xmm1
	incq	%rbx
	movq	%rbx, %xmm2
	punpckldq	LCPI0_1(%rip), %xmm2    ## xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
	subpd	LCPI0_2(%rip), %xmm2
	movapd	%xmm2, %xmm3
	unpckhpd	%xmm2, %xmm3                    ## xmm3 = xmm3[1],xmm2[1]
	addsd	%xmm2, %xmm3
	divsd	%xmm3, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movq	_FLT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	incl	%ecx
	cltd
	idivl	%ecx
	xorps	%xmm2, %xmm2
	cvtsi2ss	%eax, %xmm2
	addss	%xmm1, %xmm0
	mulss	%xmm0, %xmm2
	movss	%xmm2, (%rsi)
LBB0_27:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
	.comm	_FLT_MIN,8,3                    ## @FLT_MIN
	.comm	_FLT_MAX,4,2                    ## @FLT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gbt_var_penalty                ; -- Begin function gbt_var_penalty
	.p2align	2
_gbt_var_penalty:                       ; @gbt_var_penalty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x23, x5
	mov	x22, x4
	mov	x25, x3
	mov	x20, x2
	mov	x24, x0
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w0, [x1, #8]
	bl	_DatumGetPointer
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_DatumGetPointer
	mov	x26, x0
	str	wzr, [x24]
	bl	_gbt_var_key_readable
	mov	x28, x0
	cmp	x0, x1
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x26
	mov	x1, x22
	mov	x2, x23
	bl	_gbt_var_leaf2node
	mov	x20, x28
	cmp	x0, x26
	b.eq	LBB0_4
; %bb.2:
	bl	_gbt_var_key_readable
	mov	x28, x0
LBB0_3:
	mov	x20, x1
LBB0_4:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x21
	bl	_gbt_var_key_readable
	mov	x27, x0
	mov	x21, x1
	bl	_VARSIZE
Lloh0:
	adrp	x19, _VARHDRSZ@GOTPAGE
Lloh1:
	ldr	x19, [x19, _VARHDRSZ@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_VARSIZE
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x19, x24
	str	wzr, [x24]
	b	LBB0_27
LBB0_7:
	ldr	x8, [x22]
	mov	x0, x28
	mov	x1, x27
	mov	x2, x25
	mov	x3, x23
	blr	x8
	mov	x19, x24
	tbz	x0, #63, LBB0_9
; %bb.8:
	mov	x0, x27
	mov	x1, x28
	mov	x2, x22
	bl	_gbt_bytea_pf_match
	cbz	x0, LBB0_11
LBB0_9:
	ldr	x8, [x22]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	mov	x3, x23
	blr	x8
	cmp	x0, #1
	b.lt	LBB0_27
; %bb.10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_gbt_bytea_pf_match
	cbnz	x0, LBB0_27
LBB0_11:
	mov	w0, #0
	bl	_PointerGetDatum
	str	w0, [sp, #28]
	add	x0, sp, #28
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x25
	mov	x3, x22
	mov	x4, x23
	bl	_gbt_var_bin_union
	ldr	w0, [sp, #28]
	bl	_DatumGetPointer
	mov	x1, x22
	bl	_gbt_var_node_cp_len
	mov	x24, x0
	add	x0, sp, #28
	mov	x1, x26
	mov	x2, x25
	mov	x3, x22
	mov	x4, x23
	bl	_gbt_var_bin_union
	ldr	w0, [sp, #28]
	bl	_DatumGetPointer
	mov	x1, x22
	bl	_gbt_var_node_cp_len
	subs	x8, x24, x0
	b.ls	LBB0_13
; %bb.12:
	ucvtf	d0, x8
	b	LBB0_26
LBB0_13:
	mov	x22, x0
	ldr	w0, [sp, #28]
	bl	_DatumGetPointer
	bl	_gbt_var_key_readable
	mov	x20, x0
	mov	x23, x1
	mov	x0, x27
	bl	_VARSIZE
Lloh2:
	adrp	x26, _VARHDRSZ@GOTPAGE
Lloh3:
	ldr	x26, [x26, _VARHDRSZ@GOTPAGEOFF]
	ldr	x8, [x26]
	sub	x8, x0, x8
	cmp	x8, x22
	b.ls	LBB0_15
; %bb.14:
	mov	x0, x27
	bl	_VARDATA
	ldr	x25, [x0, x22, lsl #3]
	b	LBB0_16
LBB0_15:
	mov	w25, #0
LBB0_16:
	mov	x0, x20
	bl	_VARSIZE
	ldr	x8, [x26]
	sub	x8, x0, x8
	cmp	x8, x22
	b.ls	LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_VARDATA
	ldr	x20, [x0, x22, lsl #3]
	b	LBB0_19
LBB0_18:
	mov	w20, #0
LBB0_19:
	mov	x0, x21
	bl	_VARSIZE
	ldr	x8, [x26]
	sub	x8, x0, x8
	cmp	x8, x22
	b.ls	LBB0_21
; %bb.20:
	mov	x0, x21
	bl	_VARDATA
	ldr	x21, [x0, x22, lsl #3]
	b	LBB0_22
LBB0_21:
	mov	w21, #0
LBB0_22:
	mov	x0, x23
	bl	_VARSIZE
	ldr	x8, [x26]
	sub	x8, x0, x8
	cmp	x8, x22
	b.ls	LBB0_24
; %bb.23:
	mov	x0, x23
	bl	_VARDATA
	ldr	x22, [x0, x22, lsl #3]
	b	LBB0_25
LBB0_24:
	mov	w22, #0
LBB0_25:
	sub	w8, w25, w20
	and	w0, w8, #0xff
	bl	_Abs
	fmov	d8, d0
	sub	w8, w22, w21
	and	w0, w8, #0xff
	bl	_Abs
	fadd	d0, d8, d0
	mov	x8, #4571153621781053440
	fmov	d1, x8
	fmul	d0, d0, d1
LBB0_26:
Lloh4:
	adrp	x8, _FLT_MIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FLT_MIN@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	scvtf	s1, x8
	ldr	s2, [x19]
	fadd	s1, s2, s1
	add	x8, x24, #1
	ucvtf	d2, x8
	fdiv	d0, d0, d2
	fcvt	s0, d0
	fadd	s0, s1, s0
Lloh7:
	adrp	x8, _FLT_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FLT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	w9, [x9]
	add	w9, w9, #1
	sdiv	w8, w8, w9
	scvtf	s1, w8
	fmul	s0, s0, s1
	str	s0, [x19]
LBB0_27:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
	.comm	_FLT_MIN,8,3                    ; @FLT_MIN
	.comm	_FLT_MAX,4,2                    ; @FLT_MAX
.subsections_via_symbols
