	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gistcostestimate
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
LCPI0_1:
	.quad	0x4049000000000000              ## double 50
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gistcostestimate
	.p2align	4, 0x90
_gistcostestimate:                      ## @gistcostestimate
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %r13
	leaq	-120(%rbp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_MemSet
	movq	%r15, %rdi
	movq	%r14, %rsi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movq	%r12, %rdx
	callq	_genericcostestimate
	movl	(%r13), %esi
	testl	%esi, %esi
	jns	LBB0_4
## %bb.1:
	movl	4(%r13), %eax
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.2:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	callq	_log
	movl	%eax, %ebx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_log
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, (%r13)
	movl	%ebx, %esi
LBB0_4:
	movq	16(%rbp), %rbx
	movl	8(%r13), %eax
	cmpl	$1, %eax
	jle	LBB0_5
## %bb.6:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	callq	_log
	movl	%eax, %edi
	callq	_ceil
	movq	_cpu_operator_cost@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	imull	%edi, %eax
	movl	-120(%rbp), %ecx
	addl	%eax, %ecx
	movl	-112(%rbp), %edx
	imull	%edx, %eax
	addl	-116(%rbp), %eax
	movl	(%r13), %esi
	jmp	LBB0_7
LBB0_5:
	movq	_cpu_operator_cost@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-120(%rbp), %ecx
	movl	-116(%rbp), %eax
	movl	-112(%rbp), %edx
LBB0_7:
	incl	%esi
	xorps	%xmm0, %xmm0
	cvtsi2sd	%esi, %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	cvtsi2sd	%edi, %xmm1
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %esi
	addl	%esi, %ecx
	imull	%esi, %edx
	addl	%eax, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	movl	-88(%rbp), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movsd	-104(%rbp), %xmm0               ## xmm0 = mem[0],zero
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movsd	%xmm0, (%rax)
	movsd	-96(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx)
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_operator_cost,4,2          ## @cpu_operator_cost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistcostestimate               ; -- Begin function gistcostestimate
	.p2align	2
_gistcostestimate:                      ; @gistcostestimate
	.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, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	fmov	d8, d0
	mov	x24, x1
	mov	x25, x0
	ldr	x26, [x1]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_MemSet
	add	x2, sp, #8
	mov	x0, x25
	mov	x1, x24
	fmov	d0, d8
	bl	_genericcostestimate
	ldr	w8, [x26]
	tbz	w8, #31, LBB0_5
; %bb.1:
	ldr	w8, [x26, #4]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
	scvtf	d0, w8
	bl	_log
	mov	x24, x0
	mov	x8, #4636737291354636288
	fmov	d0, x8
	bl	_log
	sdiv	w8, w24, w0
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	str	w8, [x26]
LBB0_5:
	ldr	w9, [x26, #8]
	cmp	w9, #1
	b.le	LBB0_7
; %bb.6:
	scvtf	d0, w9
	bl	_log
	bl	_ceil
Lloh0:
	adrp	x8, _cpu_operator_cost@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_operator_cost@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	mul	w8, w9, w0
	ldp	w10, w12, [sp, #8]
	add	w11, w10, w8
	ldr	w10, [sp, #16]
	madd	w12, w10, w8, w12
	ldr	w8, [x26]
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x9, _cpu_operator_cost@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cpu_operator_cost@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldp	w12, w10, [sp, #12]
	ldr	w11, [sp, #8]
LBB0_8:
	add	w8, w8, #1
	scvtf	d0, w8
	mov	x8, #4632233691727265792
	fmov	d1, x8
	fmul	d0, d0, d1
	scvtf	d1, w9
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	add	w9, w11, w8
	madd	w8, w10, w8, w12
	str	w9, [x23]
	str	w8, [x22]
	ldr	w8, [sp, #40]
	str	w8, [x21]
	ldp	d0, d1, [sp, #24]
	str	d0, [x20]
	str	d1, [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	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_operator_cost,4,2          ; @cpu_operator_cost
.subsections_via_symbols
