	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_partitionwise_grouping_paths
_create_partitionwise_grouping_paths:   ## @create_partitionwise_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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -128(%rbp)                 ## 8-byte Spill
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r14
	movl	(%rsi), %r13d
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	32(%rdx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_PARTITIONWISE_AGGREGATE_NONE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r14, (%rax)
	setne	%dil
	callq	_Assert
	movq	_PARTITIONWISE_AGGREGATE_PARTIAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorq	%r14, %rax
	xorl	%edi, %edi
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	orq	%rbx, %rax
	movq	%r13, %rbx
	setne	%dil
	callq	_Assert
	testl	%ebx, %ebx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, %rax
	xorl	%r15d, %r15d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	callq	_pfree
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpq	%r15, %rbx
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%r15,8), %r13
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_copy_pathtarget
	testq	%r13, %r13
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_IS_DUMMY_REL
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-176(%rbp), %rdi
	movq	24(%rbp), %rsi
	movl	$32, %edx
	callq	_memcpy
	movl	16(%r13), %esi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	leaq	-48(%rbp), %rdx
	callq	_find_appinfos_by_relids
	movq	%rax, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	movq	%rbx, %rcx
	callq	_adjust_appendrel_attrs
	movq	%rax, (%r14)
	movq	24(%rbp), %rax
	movq	(%rax), %rsi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	movq	%rbx, %rcx
	callq	_adjust_appendrel_attrs
	movq	%rax, -176(%rbp)
	movq	24(%rbp), %rax
	movq	24(%rax), %rsi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_adjust_appendrel_attrs
	movq	%rax, -152(%rbp)
	movq	16(%rbp), %rax
	movq	%rax, -160(%rbp)
	movq	24(%rbp), %rax
	movl	8(%rax), %ecx
	movq	-176(%rbp), %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_make_grouping_rel
	movq	%rax, %r14
	leaq	-144(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	leaq	-176(%rbp), %r9
	callq	_create_ordinary_grouping_paths
	movq	-144(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_lappend
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbp), %rax
	movq	_PARTITIONWISE_AGGREGATE_FULL@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_set_cheapest
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_lappend
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_1:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
LBB0_12:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.14:
	xorl	%edi, %edi
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	cmpq	(%rax), %r14
	setne	%dil
	callq	_Assert
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_add_paths_to_append_rel
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_set_cheapest
LBB0_16:
	movq	_PARTITIONWISE_AGGREGATE_FULL@GOTPCREL(%rip), %rax
	movq	16(%rbp), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_18
## %bb.17:
	xorl	%edi, %edi
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	(%rax), %rbx
	setne	%dil
	callq	_Assert
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_add_paths_to_append_rel
LBB0_18:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_PARTITIONWISE_AGGREGATE_NONE,8,3 ## @PARTITIONWISE_AGGREGATE_NONE
	.comm	_PARTITIONWISE_AGGREGATE_PARTIAL,8,3 ## @PARTITIONWISE_AGGREGATE_PARTIAL
	.comm	_PARTITIONWISE_AGGREGATE_FULL,8,3 ## @PARTITIONWISE_AGGREGATE_FULL
	.no_dead_strip	_create_partitionwise_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_partitionwise_grouping_paths
_create_partitionwise_grouping_paths:   ; @create_partitionwise_grouping_paths
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x24, x7
	mov	x21, x6
	stp	x4, x5, [sp, #32]               ; 16-byte Folded Spill
	mov	x23, x3
	mov	x28, x1
	mov	x20, x0
	ldr	w22, [x1]
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x19, [x2, #32]
Lloh3:
	adrp	x8, _PARTITIONWISE_AGGREGATE_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PARTITIONWISE_AGGREGATE_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x6
	cset	w0, ne
	bl	_Assert
Lloh6:
	adrp	x8, _PARTITIONWISE_AGGREGATE_PARTIAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PARTITIONWISE_AGGREGATE_PARTIAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	cmp	x23, #0
	ccmp	x8, x21, #0, eq
	cset	w0, ne
	bl	_Assert
	cmp	w22, #1
	str	x25, [sp, #56]                  ; 8-byte Folded Spill
	b.lt	LBB0_11
; %bb.1:
	mov	x8, x25
	mov	x25, #0
	lsl	x23, x22, #3
	mov	w9, #1
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_pfree
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #8
	cmp	x23, x25
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28, #24]
	ldr	x26, [x8, x25]
	mov	x0, x19
	bl	_copy_pathtarget
	cbz	x26, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	mov	x0, x26
	bl	_IS_DUMMY_REL
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #72
	mov	x1, x24
	mov	w2, #32
	bl	_memcpy
	ldr	w1, [x26, #16]
	sub	x2, x29, #84
	mov	x0, x20
	bl	_find_appinfos_by_relids
	mov	x22, x0
	ldr	x1, [x19]
	ldur	w2, [x29, #-84]
	mov	x0, x20
	mov	x3, x22
	bl	_adjust_appendrel_attrs
	str	x0, [x27]
	ldr	x1, [x24]
	ldur	w2, [x29, #-84]
	mov	x0, x20
	mov	x3, x22
	bl	_adjust_appendrel_attrs
	str	x0, [sp, #72]
	ldr	x1, [x24, #24]
	ldur	w2, [x29, #-84]
	mov	x0, x20
	mov	x3, x22
	bl	_adjust_appendrel_attrs
	stp	x21, x0, [sp, #88]
	ldr	w3, [x24, #8]
	ldr	x4, [sp, #72]
	mov	x0, x20
	mov	x1, x26
	mov	x2, x27
	bl	_make_grouping_rel
	mov	x27, x0
	add	x5, sp, #72
	add	x6, sp, #64
	mov	x0, x20
	mov	x1, x26
	mov	x2, x27
	ldp	x3, x4, [sp, #32]               ; 16-byte Folded Reload
	bl	_create_ordinary_grouping_paths
	ldr	x1, [sp, #64]
	cbz	x1, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_lappend
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _PARTITIONWISE_AGGREGATE_FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PARTITIONWISE_AGGREGATE_FULL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_set_cheapest
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	mov	x1, x27
	bl	_lappend
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	b	LBB0_2
LBB0_11:
	mov	w8, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	str	x25, [sp, #48]                  ; 8-byte Folded Spill
LBB0_12:
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x19, LBB0_16
; %bb.13:
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_16
; %bb.14:
Lloh12:
	adrp	x8, _NIL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x22, [sp, #56]                  ; 8-byte Folded Reload
	cmp	x22, x8
	cset	w0, ne
	bl	_Assert
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_add_paths_to_append_rel
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_set_cheapest
LBB0_16:
Lloh15:
	adrp	x8, _PARTITIONWISE_AGGREGATE_FULL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PARTITIONWISE_AGGREGATE_FULL@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.17:
Lloh18:
	adrp	x8, _NIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x19, [sp, #48]                  ; 8-byte Folded Reload
	cmp	x19, x8
	cset	w0, ne
	bl	_Assert
	mov	x0, x20
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x19
	bl	_add_paths_to_append_rel
LBB0_18:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_PARTITIONWISE_AGGREGATE_NONE,8,3 ; @PARTITIONWISE_AGGREGATE_NONE
	.comm	_PARTITIONWISE_AGGREGATE_PARTIAL,8,3 ; @PARTITIONWISE_AGGREGATE_PARTIAL
	.comm	_PARTITIONWISE_AGGREGATE_FULL,8,3 ; @PARTITIONWISE_AGGREGATE_FULL
	.no_dead_strip	_create_partitionwise_grouping_paths
.subsections_via_symbols
