	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function power_var
LCPI0_0:
	.quad	0x4008147ae147ae14              ## double 3.0099999999999998
LCPI0_1:
	.quad	0x3fdbcb7b1526e511              ## double 0.43429448190325198
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_power_var:                             ## @power_var
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jg	LBB0_5
LBB0_2:
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_numericvar_to_int64
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	-80(%rbp), %rbx
	movslq	%ebx, %rax
	cmpq	%rbx, %rax
	jne	LBB0_5
## %bb.4:
	movq	_NUMERIC_MIN_SIG_DIGITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	_Max
	movq	_NUMERIC_MIN_DISPLAY_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_Max
	movq	_NUMERIC_MAX_DISPLAY_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_Min
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_power_var_int
	jmp	LBB0_10
LBB0_5:
	movq	_const_zero@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_cmp_var
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_var
	leaq	-104(%rbp), %rdi
	callq	_init_var
	movq	%r15, %rdi
	callq	_estimate_ln_dweight
	movl	$8, %ebx
	subl	%eax, %ebx
	movq	_NUMERIC_MIN_DISPLAY_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_Max
	movq	_NUMERIC_MAX_DISPLAY_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_Min
	movl	%eax, %r13d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ln_var
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	-104(%rbp), %r14
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_mul_var
	movq	%r14, %rdi
	callq	_numericvar_to_double_no_overflow
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_Abs
	movq	_NUMERIC_MAX_RESULT_SCALE@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	LCPI0_1(%rip), %xmm0
	movq	_NUMERIC_MIN_SIG_DIGITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cvttsd2si	%xmm0, %r13d
	subl	%r13d, %edi
	movl	16(%r15), %esi
	callq	_Max
	movl	16(%r12), %esi
	movl	%eax, %edi
	callq	_Max
	movq	_NUMERIC_MIN_DISPLAY_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_Max
	movq	_NUMERIC_MAX_DISPLAY_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_Min
	movl	%eax, %r14d
	addl	%r13d, %ebx
	addl	%eax, %ebx
	movq	_NUMERIC_MIN_DISPLAY_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_Max
	movl	%eax, %ebx
	leaq	-80(%rbp), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_ln_var
	leaq	-104(%rbp), %r15
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_mul_var
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_exp_var
	movq	%r15, %rdi
	callq	_free_var
	movq	%r13, %rdi
	callq	_free_var
	jmp	LBB0_10
LBB0_6:
	movq	_const_zero@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_set_var_from_var
	movq	_NUMERIC_MIN_SIG_DIGITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_10:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUMERIC_MIN_SIG_DIGITS,4,2     ## @NUMERIC_MIN_SIG_DIGITS
	.comm	_NUMERIC_MIN_DISPLAY_SCALE,4,2  ## @NUMERIC_MIN_DISPLAY_SCALE
	.comm	_NUMERIC_MAX_DISPLAY_SCALE,4,2  ## @NUMERIC_MAX_DISPLAY_SCALE
	.comm	_const_zero,4,2                 ## @const_zero
	.comm	_NUMERIC_MAX_RESULT_SCALE,8,3   ## @NUMERIC_MAX_RESULT_SCALE
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,2 ## @ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"value overflows numeric format"

	.no_dead_strip	_power_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power_var
_power_var:                             ; @power_var
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x21, #8]
	add	x9, x9, #1
	cmp	x8, x9
	b.gt	LBB0_5
LBB0_2:
	add	x1, sp, #24
	mov	x0, x21
	bl	_numericvar_to_int64
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x22, [sp, #24]
	cmp	x22, w22, sxtw
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _NUMERIC_MIN_SIG_DIGITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUMERIC_MIN_SIG_DIGITS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_Max
Lloh3:
	adrp	x8, _NUMERIC_MIN_DISPLAY_SCALE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUMERIC_MIN_DISPLAY_SCALE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_Max
Lloh6:
	adrp	x8, _NUMERIC_MAX_DISPLAY_SCALE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUMERIC_MAX_DISPLAY_SCALE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_Min
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_power_var_int
	b	LBB0_10
LBB0_5:
Lloh9:
	adrp	x1, _const_zero@GOTPAGE
Lloh10:
	ldr	x1, [x1, _const_zero@GOTPAGEOFF]
	mov	x0, x20
	bl	_cmp_var
	cbz	x0, LBB0_9
; %bb.6:
	add	x0, sp, #24
	bl	_init_var
	mov	x0, sp
	bl	_init_var
	mov	x0, x20
	bl	_estimate_ln_dweight
	mov	w8, #8
	sub	w22, w8, w0
Lloh11:
	adrp	x24, _NUMERIC_MIN_DISPLAY_SCALE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _NUMERIC_MIN_DISPLAY_SCALE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_Max
Lloh13:
	adrp	x25, _NUMERIC_MAX_DISPLAY_SCALE@GOTPAGE
Lloh14:
	ldr	x25, [x25, _NUMERIC_MAX_DISPLAY_SCALE@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_Min
	mov	x23, x0
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, x23
	bl	_ln_var
	add	x0, sp, #24
	mov	x2, sp
	mov	x1, x21
	mov	x3, x23
	bl	_mul_var
	mov	x0, sp
	bl	_numericvar_to_double_no_overflow
	fmov	d8, d0
	bl	_Abs
Lloh15:
	adrp	x8, _NUMERIC_MAX_RESULT_SCALE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NUMERIC_MAX_RESULT_SCALE@GOTPAGEOFF]
Lloh17:
	ldr	d1, [x8]
	mov	x8, #44564
	movk	x8, #57671, lsl #16
	movk	x8, #5242, lsl #32
	movk	x8, #16392, lsl #48
	fmov	d2, x8
	fmul	d1, d1, d2
	fcmp	d0, d1
	b.le	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
Lloh21:
	adrp	x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_8:
	mov	x8, #58641
	movk	x8, #5414, lsl #16
	movk	x8, #52091, lsl #32
	movk	x8, #16347, lsl #48
	fmov	d0, x8
Lloh26:
	adrp	x8, _NUMERIC_MIN_SIG_DIGITS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NUMERIC_MIN_SIG_DIGITS@GOTPAGEOFF]
	fmul	d0, d8, d0
Lloh28:
	ldr	w8, [x8]
	fcvtzs	w26, d0
	sub	w0, w8, w26
	ldr	w1, [x20, #16]
	bl	_Max
	ldr	w1, [x21, #16]
	bl	_Max
	ldr	w1, [x24]
	bl	_Max
	ldr	w1, [x25]
	bl	_Min
	mov	x23, x0
	add	w8, w22, w26
	add	w0, w8, w0
	ldr	w1, [x24]
	bl	_Max
	mov	x22, x0
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, x22
	bl	_ln_var
	add	x0, sp, #24
	mov	x2, sp
	mov	x1, x21
	mov	x3, x22
	bl	_mul_var
	mov	x0, sp
	mov	x1, x19
	mov	x2, x23
	bl	_exp_var
	mov	x0, sp
	bl	_free_var
	add	x0, sp, #24
	bl	_free_var
	b	LBB0_10
LBB0_9:
Lloh29:
	adrp	x0, _const_zero@GOTPAGE
Lloh30:
	ldr	x0, [x0, _const_zero@GOTPAGEOFF]
	mov	x1, x19
	bl	_set_var_from_var
Lloh31:
	adrp	x8, _NUMERIC_MIN_SIG_DIGITS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NUMERIC_MIN_SIG_DIGITS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_10:
	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	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_NUMERIC_MIN_SIG_DIGITS,4,2     ; @NUMERIC_MIN_SIG_DIGITS
	.comm	_NUMERIC_MIN_DISPLAY_SCALE,4,2  ; @NUMERIC_MIN_DISPLAY_SCALE
	.comm	_NUMERIC_MAX_DISPLAY_SCALE,4,2  ; @NUMERIC_MAX_DISPLAY_SCALE
	.comm	_const_zero,4,2                 ; @const_zero
	.comm	_NUMERIC_MAX_RESULT_SCALE,8,3   ; @NUMERIC_MAX_RESULT_SCALE
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE,4,2 ; @ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"value overflows numeric format"

	.no_dead_strip	_power_var
.subsections_via_symbols
