	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function adjust_foreign_grouping_path_cost
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x3fd0000000000000              ## double 0.25
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_adjust_foreign_grouping_path_cost:     ## @adjust_foreign_grouping_path_cost
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movsd	%xmm2, -56(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_grouping_is_sortable
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pathkeys_contained_in
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_DEFAULT_FDW_SORT_MULTIPLIER@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	movsd	(%r12), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, (%r12)
	mulsd	(%r14), %xmm0
	movsd	%xmm0, (%r14)
	jmp	LBB0_4
LBB0_2:
	movsd	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	addsd	(%r14), %xmm0
	movq	_work_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %rdi
	xorps	%xmm3, %xmm3
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-56(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	callq	_cost_sort
	movsd	-72(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r12)
	movsd	-64(%rbp), %xmm1                ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, (%r14)
LBB0_4:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_work_mem,4,2                   ## @work_mem
	.comm	_DEFAULT_FDW_SORT_MULTIPLIER,8,3 ## @DEFAULT_FDW_SORT_MULTIPLIER
	.no_dead_strip	_adjust_foreign_grouping_path_cost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adjust_foreign_grouping_path_cost
_adjust_foreign_grouping_path_cost:     ; @adjust_foreign_grouping_path_cost
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	mov	x19, x3
	mov	x20, x2
	fmov	d8, d2
	fmov	d9, d1
	fmov	d10, d0
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_grouping_is_sortable
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_pathkeys_contained_in
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _DEFAULT_FDW_SORT_MULTIPLIER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_FDW_SORT_MULTIPLIER@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
	fmov	d1, #1.00000000
	fmov	d2, #0.25000000
	fmadd	d0, d0, d2, d1
	ldr	d1, [x20]
	fmul	d1, d1, d0
	str	d1, [x20]
	ldr	d1, [x19]
	fmul	d0, d0, d1
	b	LBB0_4
LBB0_3:
	ldr	d0, [x20]
	ldr	d1, [x19]
	fadd	d0, d0, d1
Lloh3:
	adrp	x8, _work_mem@GOTPAGE
Lloh4:
	ldr	x8, [x8, _work_mem@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, sp
	movi	d3, #0000000000000000
	mov	x1, x22
	mov	x2, x21
	fmov	d1, d10
	fmov	d2, d9
	fmov	d4, d8
	bl	_cost_sort
	ldp	d0, d1, [sp]
	str	d0, [x20]
	fsub	d0, d1, d0
LBB0_4:
	str	d0, [x19]
	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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_work_mem,4,2                   ; @work_mem
	.comm	_DEFAULT_FDW_SORT_MULTIPLIER,8,3 ; @DEFAULT_FDW_SORT_MULTIPLIER
	.no_dead_strip	_adjust_foreign_grouping_path_cost
.subsections_via_symbols
