	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function estimate_ln_dweight
LCPI0_0:
	.quad	0x40026bb1bbb55516              ## double 2.3025850929940459
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_estimate_ln_dweight:                   ## @estimate_ln_dweight
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_const_zero_point_nine@GOTPCREL(%rip), %rsi
	callq	_cmp_var
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movq	_const_one_point_one@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cmp_var
	testq	%rax, %rax
	jle	LBB0_2
LBB0_6:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_7
## %bb.8:
	movq	16(%rbx), %rcx
	movl	(%rcx), %eax
	movq	_DEC_DIGITS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	8(%rbx), %ebx
	imull	%edx, %ebx
	cmpq	$1, %rsi
	je	LBB0_10
## %bb.9:
	movq	_NBASE@GOTPCREL(%rip), %rsi
	imull	(%rsi), %eax
	addl	4(%rcx), %eax
	subl	%edx, %ebx
LBB0_10:
	cvtsi2sd	%eax, %xmm0
	callq	_log
	cvtsi2sd	%eax, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	callq	_Abs
	movl	%eax, %edi
	callq	_log10
	movq	%rax, %rbx
	jmp	LBB0_11
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_2:
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_var
	movq	_const_one@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_sub_var
	cmpq	$0, -40(%rbp)
	jle	LBB0_3
## %bb.4:
	movq	_DEC_DIGITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	imull	-32(%rbp), %r14d
	movq	-24(%rbp), %rax
	movl	(%rax), %edi
	callq	_log10
	movq	%rax, %rbx
	addl	%r14d, %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	-40(%rbp), %rdi
	callq	_free_var
LBB0_11:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_const_zero_point_nine,4,2      ## @const_zero_point_nine
	.comm	_const_one_point_one,4,2        ## @const_one_point_one
	.comm	_const_one,4,2                  ## @const_one
	.comm	_DEC_DIGITS,4,2                 ## @DEC_DIGITS
	.comm	_NBASE,4,2                      ## @NBASE
	.no_dead_strip	_estimate_ln_dweight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function estimate_ln_dweight
_estimate_ln_dweight:                   ; @estimate_ln_dweight
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, _const_zero_point_nine@GOTPAGE
Lloh1:
	ldr	x1, [x1, _const_zero_point_nine@GOTPAGEOFF]
	bl	_cmp_var
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, _const_one_point_one@GOTPAGE
Lloh3:
	ldr	x1, [x1, _const_one_point_one@GOTPAGEOFF]
	mov	x0, x19
	bl	_cmp_var
	cmp	x0, #0
	b.le	LBB0_7
LBB0_2:
	ldr	x11, [x19]
	cmp	x11, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x9, [x19, #16]
	ldr	w8, [x9]
	ldr	w12, [x19, #8]
Lloh4:
	adrp	x10, _DEC_DIGITS@GOTPAGE
Lloh5:
	ldr	x10, [x10, _DEC_DIGITS@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	mul	w19, w10, w12
	cmp	x11, #1
	b.eq	LBB0_5
; %bb.4:
Lloh7:
	adrp	x11, _NBASE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _NBASE@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	ldr	w9, [x9, #4]
	madd	w8, w11, w8, w9
	sub	w19, w19, w10
LBB0_5:
	scvtf	d0, w8
	bl	_log
	scvtf	d0, w0
	scvtf	d1, w19
	mov	x8, #21782
	movk	x8, #48053, lsl #16
	movk	x8, #27569, lsl #32
	movk	x8, #16386, lsl #48
	fmov	d2, x8
	fmadd	d0, d1, d2, d0
	bl	_Abs
	bl	_log10
	mov	x19, x0
	b	LBB0_11
LBB0_6:
	mov	w19, #0
	b	LBB0_11
LBB0_7:
	add	x0, sp, #8
	bl	_init_var
Lloh10:
	adrp	x1, _const_one@GOTPAGE
Lloh11:
	ldr	x1, [x1, _const_one@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x19
	bl	_sub_var
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	w19, [sp, #16]
Lloh12:
	adrp	x8, _DEC_DIGITS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEC_DIGITS@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	bl	_log10
	madd	w19, w20, w19, w0
	b	LBB0_10
LBB0_9:
	mov	w19, #0
LBB0_10:
	add	x0, sp, #8
	bl	_free_var
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_const_zero_point_nine,4,2      ; @const_zero_point_nine
	.comm	_const_one_point_one,4,2        ; @const_one_point_one
	.comm	_const_one,4,2                  ; @const_one
	.comm	_DEC_DIGITS,4,2                 ; @DEC_DIGITS
	.comm	_NBASE,4,2                      ; @NBASE
	.no_dead_strip	_estimate_ln_dweight
.subsections_via_symbols
