	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function exp_var
LCPI0_0:
	.quad	0x3fdbcb7b1526e511              ## double 0.43429448190325198
LCPI0_1:
	.quad	0x3f847ae147ae147b              ## double 0.01
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_3:
	.quad	0x3fd34413509f79fb              ## double 0.30102999566398098
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_exp_var:                               ## @exp_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_var
	leaq	-80(%rbp), %rdi
	callq	_init_var
	leaq	-128(%rbp), %rdi
	callq	_init_var
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_set_var_from_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
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %eax
	cvtsi2sd	%eax, %xmm1
	ucomisd	%xmm1, %xmm0
	jb	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %r14d
	callq	_Abs
	xorl	%r15d, %r15d
	ucomisd	LCPI0_1(%rip), %xmm0
	jbe	LBB0_7
## %bb.3:
	leaq	-152(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_var
	movq	_const_two@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_set_var_from_var
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	LCPI0_2(%rip), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_Abs
	movl	$1, %r15d
	ucomisd	LCPI0_1(%rip), %xmm0
	jbe	LBB0_6
## %bb.4:
	movl	$1, %r15d
	leaq	-152(%rbp), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_add_var
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	LCPI0_2(%rip), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_Abs
	ucomisd	LCPI0_1(%rip), %xmm0
	ja	LBB0_5
LBB0_6:
	movl	-104(%rbp), %ecx
	addl	%r15d, %ecx
	leaq	-152(%rbp), %rbx
	leaq	-104(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%rdi, %rdx
	movl	$1, %r8d
	callq	_div_var_fast
	movq	%rbx, %rdi
	callq	_free_var
LBB0_7:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15d, %xmm0
	mulsd	LCPI0_3(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	addl	%r13d, %r14d
	leal	(%rax,%r14), %edi
	incl	%edi
	xorl	%esi, %esi
	callq	_Max
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	7(%rax), %r13d
	movq	_const_one@GOTPCREL(%rip), %rdi
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_add_var
	leaq	-80(%rbp), %r14
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_mul_var
	movq	_const_two@GOTPCREL(%rip), %rdi
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_set_var_from_var
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	movl	$1, %r8d
	callq	_div_var_fast
	cmpq	$0, -72(%rbp)
	je	LBB0_10
## %bb.8:
	leaq	-80(%rbp), %rbx
	leaq	-128(%rbp), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_add_var
	movq	%rbx, %rdi
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	callq	_mul_var
	movq	%r14, %rdi
	movq	_const_one@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_add_var
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	movl	$1, %r8d
	callq	_div_var_fast
	cmpq	$0, -72(%rbp)
	jne	LBB0_9
LBB0_10:
	testl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_13
## %bb.11:
	addl	$8, %ebx
	incl	%r15d
	movq	_DEC_DIGITS@GOTPCREL(%rip), %r14
	movq	_NUMERIC_MIN_DISPLAY_SCALE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %eax
	imull	(%r14), %eax
	addl	%eax, %eax
	movl	%ebx, %edi
	subl	%eax, %edi
	movl	(%r13), %esi
	callq	_Max
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_mul_var
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_12
LBB0_13:
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_round_var
	leaq	-104(%rbp), %rdi
	callq	_free_var
	leaq	-80(%rbp), %rdi
	callq	_free_var
	leaq	-128(%rbp), %rdi
	callq	_free_var
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUMERIC_MAX_RESULT_SCALE,4,2   ## @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"

	.comm	_const_two,24,3                 ## @const_two
	.comm	_const_one,24,3                 ## @const_one
	.comm	_DEC_DIGITS,4,2                 ## @DEC_DIGITS
	.comm	_NUMERIC_MIN_DISPLAY_SCALE,4,2  ## @NUMERIC_MIN_DISPLAY_SCALE
	.no_dead_strip	_exp_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exp_var
_exp_var:                               ; @exp_var
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #72
	bl	_init_var
	add	x0, sp, #48
	bl	_init_var
	add	x0, sp, #24
	bl	_init_var
	add	x1, sp, #72
	mov	x0, x21
	bl	_set_var_from_var
	add	x0, sp, #72
	bl	_numericvar_to_double_no_overflow
	fmov	d8, d0
	bl	_Abs
Lloh0:
	adrp	x8, _NUMERIC_MAX_RESULT_SCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUMERIC_MAX_RESULT_SCALE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #1
	scvtf	d1, w8
	fcmp	d0, d1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	mov	x8, #58641
	movk	x8, #5414, lsl #16
	movk	x8, #52091, lsl #32
	movk	x8, #16347, lsl #48
	fmov	d0, x8
	fmul	d0, d8, d0
	fcvtzs	w21, d0
	fmov	d0, d8
	bl	_Abs
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16260, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.le	LBB0_7
; %bb.3:
	mov	x0, sp
	bl	_init_var
Lloh11:
	adrp	x0, _const_two@GOTPAGE
Lloh12:
	ldr	x0, [x0, _const_two@GOTPAGEOFF]
	mov	x1, sp
	bl	_set_var_from_var
	fmov	d9, #0.50000000
	fmul	d8, d8, d9
	fmov	d0, d8
	bl	_Abs
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16260, lsl #48
	fmov	d1, x8
	mov	w24, #1
	fcmp	d0, d1
	b.le	LBB0_6
; %bb.4:
	mov	x22, #5243
	movk	x22, #18350, lsl #16
	movk	x22, #31457, lsl #32
	movk	x22, #16260, lsl #48
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w24, w24, #1
	mov	x0, sp
	mov	x1, sp
	mov	x2, sp
	bl	_add_var
	fmul	d8, d8, d9
	fmov	d0, d8
	bl	_Abs
	fmov	d1, x22
	fcmp	d0, d1
	b.gt	LBB0_5
LBB0_6:
	ldr	w8, [sp, #72]
	add	w3, w8, w24
	add	x0, sp, #72
	mov	x1, sp
	add	x2, sp, #72
	mov	w4, #1
	bl	_div_var_fast
	mov	x0, sp
	bl	_free_var
	b	LBB0_8
LBB0_7:
	mov	w24, #0
LBB0_8:
	scvtf	d0, w24
	mov	x8, #31227
	movk	x8, #20639, lsl #16
	movk	x8, #17427, lsl #32
	movk	x8, #16339, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	add	w9, w19, w21
	add	w8, w9, w8
	add	w0, w8, #1
	mov	w1, #0
	bl	_Max
	mov	x21, x0
	add	w22, w0, #7
Lloh13:
	adrp	x0, _const_one@GOTPAGE
Lloh14:
	ldr	x0, [x0, _const_one@GOTPAGEOFF]
	add	x1, sp, #72
	mov	x2, x20
	bl	_add_var
	add	x0, sp, #72
	add	x1, sp, #72
	add	x2, sp, #48
	mov	x3, x22
	bl	_mul_var
Lloh15:
	adrp	x0, _const_two@GOTPAGE
Lloh16:
	ldr	x0, [x0, _const_two@GOTPAGEOFF]
	add	x1, sp, #24
	bl	_set_var_from_var
	add	x0, sp, #48
	add	x1, sp, #24
	add	x2, sp, #48
	mov	x3, x22
	mov	w4, #1
	bl	_div_var_fast
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_11
; %bb.9:
Lloh17:
	adrp	x23, _const_one@GOTPAGE
Lloh18:
	ldr	x23, [x23, _const_one@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #48
	mov	x0, x20
	mov	x2, x20
	bl	_add_var
	add	x0, sp, #48
	add	x1, sp, #72
	add	x2, sp, #48
	mov	x3, x22
	bl	_mul_var
	add	x0, sp, #24
	add	x2, sp, #24
	mov	x1, x23
	bl	_add_var
	add	x0, sp, #48
	add	x1, sp, #24
	add	x2, sp, #48
	mov	x3, x22
	mov	w4, #1
	bl	_div_var_fast
	ldr	x8, [sp, #56]
	cbnz	x8, LBB0_10
LBB0_11:
	cmp	w24, #1
	b.lt	LBB0_14
; %bb.12:
	add	w21, w21, #8
	add	w22, w24, #1
Lloh19:
	adrp	x23, _DEC_DIGITS@GOTPAGE
Lloh20:
	ldr	x23, [x23, _DEC_DIGITS@GOTPAGEOFF]
Lloh21:
	adrp	x24, _NUMERIC_MIN_DISPLAY_SCALE@GOTPAGE
Lloh22:
	ldr	x24, [x24, _NUMERIC_MIN_DISPLAY_SCALE@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #16]
	ldr	w9, [x23]
	mul	w8, w8, w9
	sub	w0, w21, w8, lsl #1
	ldr	w1, [x24]
	bl	_Max
	mov	x3, x0
	mov	x0, x20
	mov	x1, x20
	mov	x2, x20
	bl	_mul_var
	sub	w22, w22, #1
	cmp	w22, #1
	b.hi	LBB0_13
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_round_var
	add	x0, sp, #72
	bl	_free_var
	add	x0, sp, #48
	bl	_free_var
	add	x0, sp, #24
	bl	_free_var
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NUMERIC_MAX_RESULT_SCALE,4,2   ; @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"

	.comm	_const_two,24,3                 ; @const_two
	.comm	_const_one,24,3                 ; @const_one
	.comm	_DEC_DIGITS,4,2                 ; @DEC_DIGITS
	.comm	_NUMERIC_MIN_DISPLAY_SCALE,4,2  ; @NUMERIC_MIN_DISPLAY_SCALE
	.no_dead_strip	_exp_var
.subsections_via_symbols
