	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function initial_cost_nestloop
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_initial_cost_nestloop
	.p2align	4, 0x90
_initial_cost_nestloop:                 ## @initial_cost_nestloop
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r13
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r8, %rsi
	callq	_cost_rescan
	movsd	-48(%rbp), %xmm9                ## 8-byte Reload
                                        ## xmm9 = mem[0],zero
	movsd	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	movsd	16(%rbx), %xmm3                 ## xmm3 = mem[0],zero
	movsd	8(%r13), %xmm8                  ## xmm8 = mem[0],zero
	movsd	16(%r13), %xmm0                 ## xmm0 = mem[0],zero
	subsd	%xmm1, %xmm3
	xorpd	%xmm5, %xmm5
	addsd	%xmm3, %xmm5
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	addsd	%xmm9, %xmm3
	movsd	-64(%rbp), %xmm6                ## xmm6 = mem[0],zero
	movapd	%xmm3, %xmm7
	mulsd	%xmm6, %xmm7
	addsd	%xmm5, %xmm7
	movsd	LCPI0_1(%rip), %xmm4            ## xmm4 = mem[0],zero
	cmpltsd	%xmm9, %xmm4
	movapd	%xmm4, %xmm2
	andnpd	%xmm5, %xmm2
	andpd	%xmm7, %xmm4
	orpd	%xmm2, %xmm4
	subsd	%xmm8, %xmm0
	movsd	-56(%rbp), %xmm5                ## xmm5 = mem[0],zero
	subsd	%xmm6, %xmm5
	movq	_JOIN_SEMI@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_JOIN_ANTI@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%r14)
	je	LBB0_4
LBB0_3:
	movsd	%xmm0, (%r12)
	movsd	%xmm5, 8(%r12)
	movapd	%xmm4, %xmm0
LBB0_6:
	addsd	%xmm8, %xmm1
	xorpd	%xmm2, %xmm2
	addsd	%xmm1, %xmm2
	movsd	%xmm2, 16(%r12)
	addsd	%xmm0, %xmm2
	movsd	%xmm2, 24(%r12)
	movsd	%xmm0, 32(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	ucomisd	LCPI0_1(%rip), %xmm9
	addsd	%xmm4, %xmm0
	jbe	LBB0_6
## %bb.5:
	mulsd	%xmm5, %xmm3
	addsd	%xmm3, %xmm0
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_JOIN_SEMI,8,3                  ## @JOIN_SEMI
	.comm	_JOIN_ANTI,8,3                  ## @JOIN_ANTI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_initial_cost_nestloop          ; -- Begin function initial_cost_nestloop
	.p2align	2
_initial_cost_nestloop:                 ; @initial_cost_nestloop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	ldr	d8, [x3]
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, x4
	bl	_cost_rescan
	ldp	d0, d1, [x22, #8]
	fsub	d1, d1, d0
	movi	d2, #0000000000000000
	fadd	d1, d1, d2
	fmov	d2, #-1.00000000
	fadd	d3, d8, d2
	ldp	d6, d4, [sp]
	fmadd	d2, d3, d4, d1
	fmov	d5, #1.00000000
	fcmp	d8, d5
	fcsel	d1, d2, d1, gt
	ldp	d2, d5, [x21, #8]
	fsub	d5, d5, d2
	fsub	d4, d6, d4
Lloh0:
	adrp	x8, _JOIN_SEMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JOIN_SEMI@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _JOIN_ANTI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _JOIN_ANTI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x23
	ccmp	x9, x23, #4, ne
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
LBB0_2:
	str	d5, [x19]
	str	d4, [x19, #8]
LBB0_3:
	fadd	d0, d0, d2
	movi	d2, #0000000000000000
	fadd	d0, d0, d2
	str	d0, [x19, #16]
	fadd	d0, d0, d1
	str	d0, [x19, #24]
	str	d1, [x19, #32]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	fadd	d1, d5, d1
	fmov	d5, #1.00000000
	fcmp	d8, d5
	b.le	LBB0_3
; %bb.5:
	fmadd	d1, d3, d4, d1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_JOIN_SEMI,8,3                  ; @JOIN_SEMI
	.comm	_JOIN_ANTI,8,3                  ; @JOIN_ANTI
.subsections_via_symbols
