	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ln_var
_ln_var:                                ## @ln_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_const_zero@GOTPCREL(%rip), %rsi
	callq	_cmp_var
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	jns	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %r14
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INVALID_ARGUMENT_FOR_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r14, %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_var
	leaq	-136(%rbp), %rdi
	callq	_init_var
	leaq	-120(%rbp), %rdi
	callq	_init_var
	leaq	-88(%rbp), %rdi
	callq	_init_var
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_var
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_set_var_from_var
	movq	_const_two@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_set_var_from_var
	movq	_const_zero_point_nine@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_cmp_var
	testl	%eax, %eax
	jg	LBB0_8
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	8(%rax), %r13d
	leaq	-64(%rbp), %rbx
	movq	_const_two@GOTPCREL(%rip), %r14
	leaq	-104(%rbp), %r15
	movq	_const_zero_point_nine@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DEC_DIGITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	-64(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%r13d, %edi
	subl	%ecx, %edi
	movq	_NUMERIC_MIN_DISPLAY_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Max
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_sqrt_var
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_mul_var
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_cmp_var
	testl	%eax, %eax
	jle	LBB0_7
LBB0_8:
	movq	_const_one_point_one@GOTPCREL(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_cmp_var
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	8(%rax), %r15d
	leaq	-64(%rbp), %rbx
	movq	_const_two@GOTPCREL(%rip), %r14
	leaq	-104(%rbp), %r12
	movq	_const_one_point_one@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_DEC_DIGITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	-64(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%r15d, %edi
	subl	%ecx, %edi
	movq	_NUMERIC_MIN_DISPLAY_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Max
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_sqrt_var
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_mul_var
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_cmp_var
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_12
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	8(%rax), %r15d
LBB0_12:
	movq	_const_one@GOTPCREL(%rip), %r13
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_sub_var
	leaq	-88(%rbp), %r14
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_add_var
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_div_var_fast
	leaq	-136(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_set_var_from_var
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_mul_var
	leaq	-120(%rbp), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_set_var_from_var
	leal	(%r15,%r15), %r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	_const_two@GOTPCREL(%rip), %rsi
	movq	%r12, %rdx
	callq	_add_var
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_mul_var
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	-88(%rbp), %rdx
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_div_var_fast
	cmpq	$0, -80(%rbp)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_add_var
	movl	-88(%rbp), %ecx
	movl	(%rbx), %esi
	movl	%r13d, %eax
	cltd
	movq	_DEC_DIGITS@GOTPCREL(%rip), %rdi
	idivl	(%rdi)
	subl	%eax, %esi
	cmpl	%esi, %ecx
	jge	LBB0_13
LBB0_15:
	leaq	-104(%rbp), %rbx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rdi, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mul_var
	leaq	-64(%rbp), %rdi
	callq	_free_var
	leaq	-136(%rbp), %rdi
	callq	_free_var
	leaq	-120(%rbp), %rdi
	callq	_free_var
	leaq	-88(%rbp), %rdi
	callq	_free_var
	movq	%rbx, %rdi
	callq	_free_var
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_const_zero,4,2                 ## @const_zero
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_ARGUMENT_FOR_LOG,4,2 ## @ERRCODE_INVALID_ARGUMENT_FOR_LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot take logarithm of zero"

L_.str.1:                               ## @.str.1
	.asciz	"cannot take logarithm of a negative number"

	.comm	_const_two,16,3                 ## @const_two
	.comm	_const_zero_point_nine,4,2      ## @const_zero_point_nine
	.comm	_DEC_DIGITS,4,2                 ## @DEC_DIGITS
	.comm	_NUMERIC_MIN_DISPLAY_SCALE,4,2  ## @NUMERIC_MIN_DISPLAY_SCALE
	.comm	_const_one_point_one,4,2        ## @const_one_point_one
	.comm	_const_one,16,3                 ## @const_one
	.no_dead_strip	_ln_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ln_var
_ln_var:                                ; @ln_var
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x1, _const_zero@GOTPAGE
Lloh1:
	ldr	x1, [x1, _const_zero@GOTPAGEOFF]
	bl	_cmp_var
	cbz	w0, LBB0_3
; %bb.1:
	tbz	w0, #31, LBB0_5
; %bb.2:
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_4:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x8, _ERRCODE_INVALID_ARGUMENT_FOR_LOG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_INVALID_ARGUMENT_FOR_LOG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x22
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_5:
	add	x0, sp, #64
	bl	_init_var
	add	x0, sp, #48
	bl	_init_var
	add	x0, sp, #32
	bl	_init_var
	add	x0, sp, #16
	bl	_init_var
	mov	x0, sp
	bl	_init_var
	add	x1, sp, #64
	mov	x0, x21
	bl	_set_var_from_var
Lloh12:
	adrp	x0, _const_two@GOTPAGE
Lloh13:
	ldr	x0, [x0, _const_two@GOTPAGEOFF]
	mov	x1, sp
	bl	_set_var_from_var
Lloh14:
	adrp	x1, _const_zero_point_nine@GOTPAGE
Lloh15:
	ldr	x1, [x1, _const_zero_point_nine@GOTPAGEOFF]
	add	x0, sp, #64
	bl	_cmp_var
Lloh16:
	adrp	x24, _DEC_DIGITS@GOTPAGE
Lloh17:
	ldr	x24, [x24, _DEC_DIGITS@GOTPAGEOFF]
Lloh18:
	adrp	x25, _NUMERIC_MIN_DISPLAY_SCALE@GOTPAGE
Lloh19:
	ldr	x25, [x25, _NUMERIC_MIN_DISPLAY_SCALE@GOTPAGEOFF]
	cmp	w0, #0
	b.gt	LBB0_8
; %bb.6:
	add	w23, w19, #8
Lloh20:
	adrp	x21, _const_two@GOTPAGE
Lloh21:
	ldr	x21, [x21, _const_two@GOTPAGEOFF]
Lloh22:
	adrp	x22, _const_zero_point_nine@GOTPAGE
Lloh23:
	ldr	x22, [x22, _const_zero_point_nine@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #64]
	ldr	w9, [x24]
	mul	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w0, w23, w8, asr #1
	ldr	w1, [x25]
	bl	_Max
	mov	x2, x0
	add	x0, sp, #64
	add	x1, sp, #64
	bl	_sqrt_var
	mov	x0, sp
	mov	x2, sp
	mov	x1, x21
	mov	w3, #0
	bl	_mul_var
	add	x0, sp, #64
	mov	x1, x22
	bl	_cmp_var
	cmp	w0, #1
	b.lt	LBB0_7
LBB0_8:
Lloh24:
	adrp	x1, _const_one_point_one@GOTPAGE
Lloh25:
	ldr	x1, [x1, _const_one_point_one@GOTPAGEOFF]
	add	x0, sp, #64
	bl	_cmp_var
	add	w21, w19, #8
	tbnz	w0, #31, LBB0_11
; %bb.9:
Lloh26:
	adrp	x22, _const_two@GOTPAGE
Lloh27:
	ldr	x22, [x22, _const_two@GOTPAGEOFF]
Lloh28:
	adrp	x23, _const_one_point_one@GOTPAGE
Lloh29:
	ldr	x23, [x23, _const_one_point_one@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #64]
	ldr	w9, [x24]
	mul	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w0, w21, w8, asr #1
	ldr	w1, [x25]
	bl	_Max
	mov	x2, x0
	add	x0, sp, #64
	add	x1, sp, #64
	bl	_sqrt_var
	mov	x0, sp
	mov	x2, sp
	mov	x1, x22
	mov	w3, #0
	bl	_mul_var
	add	x0, sp, #64
	mov	x1, x23
	bl	_cmp_var
	tbz	w0, #31, LBB0_10
LBB0_11:
Lloh30:
	adrp	x22, _const_one@GOTPAGE
Lloh31:
	ldr	x22, [x22, _const_one@GOTPAGEOFF]
	add	x0, sp, #64
	mov	x1, x22
	mov	x2, x20
	bl	_sub_var
	add	x0, sp, #64
	add	x2, sp, #16
	mov	x1, x22
	bl	_add_var
	add	x1, sp, #16
	mov	x0, x20
	mov	x2, x20
	mov	x3, x21
	mov	w4, #1
	bl	_div_var_fast
	add	x1, sp, #48
	mov	x0, x20
	bl	_set_var_from_var
	add	x2, sp, #64
	mov	x0, x20
	mov	x1, x20
	mov	x3, x21
	bl	_mul_var
	add	x1, sp, #32
	mov	x0, x22
	bl	_set_var_from_var
	lsl	w23, w21, #1
Lloh32:
	adrp	x22, _const_two@GOTPAGE
Lloh33:
	ldr	x22, [x22, _const_two@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	add	x2, sp, #32
	mov	x1, x22
	bl	_add_var
	add	x0, sp, #48
	add	x1, sp, #64
	add	x2, sp, #48
	mov	x3, x21
	bl	_mul_var
	add	x0, sp, #48
	add	x1, sp, #32
	add	x2, sp, #16
	mov	x3, x21
	mov	w4, #1
	bl	_div_var_fast
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x1, sp, #16
	mov	x0, x20
	mov	x2, x20
	bl	_add_var
	ldr	w8, [sp, #16]
	ldr	w9, [x20]
	ldr	w10, [x24]
	sdiv	w10, w23, w10
	sub	w9, w9, w10
	cmp	w8, w9
	b.ge	LBB0_12
LBB0_14:
	mov	x1, sp
	mov	x0, x20
	mov	x2, x20
	mov	x3, x19
	bl	_mul_var
	add	x0, sp, #64
	bl	_free_var
	add	x0, sp, #48
	bl	_free_var
	add	x0, sp, #32
	bl	_free_var
	add	x0, sp, #16
	bl	_free_var
	mov	x0, sp
	bl	_free_var
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_const_zero,4,2                 ; @const_zero
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_ARGUMENT_FOR_LOG,4,2 ; @ERRCODE_INVALID_ARGUMENT_FOR_LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot take logarithm of zero"

l_.str.1:                               ; @.str.1
	.asciz	"cannot take logarithm of a negative number"

	.comm	_const_two,16,3                 ; @const_two
	.comm	_const_zero_point_nine,4,2      ; @const_zero_point_nine
	.comm	_DEC_DIGITS,4,2                 ; @DEC_DIGITS
	.comm	_NUMERIC_MIN_DISPLAY_SCALE,4,2  ; @NUMERIC_MIN_DISPLAY_SCALE
	.comm	_const_one_point_one,4,2        ; @const_one_point_one
	.comm	_const_one,16,3                 ; @const_one
	.no_dead_strip	_ln_var
.subsections_via_symbols
