	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_grouping_paths
_create_grouping_paths:                 ## @create_grouping_paths
	.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, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movl	16(%r12), %r8d
	callq	_make_grouping_rel
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_is_degenerate_grouping
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_create_degenerate_grouping_paths
	jmp	LBB0_22
LBB0_2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	movq	_NIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_4:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_grouping_is_sortable
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	_GROUPING_CAN_USE_SORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_7
LBB0_5:
	xorl	%ecx, %ecx
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_NIL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.9:
	cmpq	$0, (%r12)
	je	LBB0_10
LBB0_8:
	movq	%r12, %r15
LBB0_15:
	movq	%r13, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_can_partial_agg
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_GROUPING_CAN_PARTIAL_AGG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_17:
	orl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, -96(%rbp)
	movl	%r14d, -92(%rbp)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rcx), %eax
	movl	%eax, -76(%rbp)
	movl	12(%rcx), %eax
	movl	%eax, -80(%rbp)
	movl	$0, -88(%rbp)
	movq	_enable_partitionwise_aggregate@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.18:
	cmpl	$0, 8(%rcx)
	je	LBB0_19
LBB0_20:
	movq	_PARTITIONWISE_AGGREGATE_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	_PARTITIONWISE_AGGREGATE_FULL@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-96(%rbp), %r9
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_create_ordinary_grouping_paths
LBB0_22:
	movq	%rbx, %rdi
	callq	_set_cheapest
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	cmpq	$0, 8(%r15)
	movq	%r12, %r15
	jne	LBB0_14
	jmp	LBB0_15
LBB0_12:
	callq	_grouping_is_hashable
	testq	%rax, %rax
	movq	%r12, %r15
	je	LBB0_15
LBB0_14:
	movq	_GROUPING_CAN_USE_HASH@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_GROUPING_CAN_USE_SORT,4,2      ## @GROUPING_CAN_USE_SORT
	.comm	_GROUPING_CAN_USE_HASH,4,2      ## @GROUPING_CAN_USE_HASH
	.comm	_GROUPING_CAN_PARTIAL_AGG,4,2   ## @GROUPING_CAN_PARTIAL_AGG
	.comm	_enable_partitionwise_aggregate,8,3 ## @enable_partitionwise_aggregate
	.comm	_PARTITIONWISE_AGGREGATE_FULL,4,2 ## @PARTITIONWISE_AGGREGATE_FULL
	.comm	_PARTITIONWISE_AGGREGATE_NONE,4,2 ## @PARTITIONWISE_AGGREGATE_NONE
	.no_dead_strip	_create_grouping_paths
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_grouping_paths
_create_grouping_paths:                 ; @create_grouping_paths
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x24, x3
	mov	x21, x1
	mov	x23, x0
	ldr	x25, [x0]
	ldr	w4, [x25, #16]
	bl	_make_grouping_rel
	mov	x22, x0
	mov	x0, x23
	bl	_is_degenerate_grouping
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_create_degenerate_grouping_paths
	b	LBB0_17
LBB0_2:
Lloh0:
	adrp	x27, _NIL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NIL@GOTPAGEOFF]
	cbz	x19, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	ldr	x0, [x25]
	bl	_grouping_is_sortable
	cbz	x0, LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _GROUPING_CAN_USE_SORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GROUPING_CAN_USE_SORT@GOTPAGEOFF]
Lloh4:
	ldr	w26, [x8]
	b	LBB0_7
LBB0_6:
	mov	w26, #0
LBB0_7:
	ldr	x0, [x25]
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.8:
	ldr	x8, [x20]
	cbnz	x8, LBB0_12
; %bb.9:
	cbz	x19, LBB0_18
; %bb.10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
LBB0_11:
Lloh5:
	adrp	x8, _GROUPING_CAN_USE_HASH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GROUPING_CAN_USE_HASH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w26, w8, w26
LBB0_12:
	mov	x0, x23
	mov	x1, x20
	bl	_can_partial_agg
Lloh8:
	adrp	x8, _GROUPING_CAN_PARTIAL_AGG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GROUPING_CAN_PARTIAL_AGG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w26
	stp	w8, w24, [sp]
	ldur	d0, [x25, #12]
	str	d0, [sp, #16]
	str	wzr, [sp, #8]
Lloh11:
	adrp	x8, _enable_partitionwise_aggregate@GOTPAGE
Lloh12:
	ldr	x8, [x8, _enable_partitionwise_aggregate@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w8, [x25, #8]
	cbz	w8, LBB0_15
LBB0_14:
Lloh14:
	adrp	x8, _PARTITIONWISE_AGGREGATE_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PARTITIONWISE_AGGREGATE_NONE@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh16:
	adrp	x8, _PARTITIONWISE_AGGREGATE_FULL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PARTITIONWISE_AGGREGATE_FULL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	x5, sp
	add	x6, sp, #24
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_create_ordinary_grouping_paths
LBB0_17:
	mov	x0, x22
	bl	_set_cheapest
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	bl	_grouping_is_hashable
	cbnz	x0, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_GROUPING_CAN_USE_SORT,4,2      ; @GROUPING_CAN_USE_SORT
	.comm	_GROUPING_CAN_USE_HASH,4,2      ; @GROUPING_CAN_USE_HASH
	.comm	_GROUPING_CAN_PARTIAL_AGG,4,2   ; @GROUPING_CAN_PARTIAL_AGG
	.comm	_enable_partitionwise_aggregate,8,3 ; @enable_partitionwise_aggregate
	.comm	_PARTITIONWISE_AGGREGATE_FULL,4,2 ; @PARTITIONWISE_AGGREGATE_FULL
	.comm	_PARTITIONWISE_AGGREGATE_NONE,4,2 ; @PARTITIONWISE_AGGREGATE_NONE
	.no_dead_strip	_create_grouping_paths
.subsections_via_symbols
