	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_partitionwise_join_paths ## -- Begin function generate_partitionwise_join_paths
	.p2align	4, 0x90
_generate_partitionwise_join_paths:     ## @generate_partitionwise_join_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rsi, %rdi
	callq	_IS_JOIN_REL
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_PARTITIONED_REL
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_Assert
	xorl	%eax, %eax
	callq	_check_stack_depth
	movl	(%rbx), %r13d
	testl	%r13d, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_8
## %bb.3:
	movq	8(%rbx), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpq	%r15, %r13
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r15,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_generate_partitionwise_join_paths
	movq	%rbx, %rdi
	callq	_set_cheapest
	movq	%rbx, %rdi
	callq	_IS_DUMMY_REL
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_lappend
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_add_paths_to_append_rel
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_list_free                      ## TAILCALL
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mark_dummy_rel                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_partitionwise_join_paths ; -- Begin function generate_partitionwise_join_paths
	.p2align	2
_generate_partitionwise_join_paths:     ; @generate_partitionwise_join_paths
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x1
	bl	_IS_JOIN_REL
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_IS_PARTITIONED_REL
	cbz	w0, LBB0_8
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_Assert
	bl	_check_stack_depth
	ldr	w23, [x19]
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.3:
	ldr	x24, [x19, #8]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #8
	subs	x23, x23, #1
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x24]
	cbz	x22, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_generate_partitionwise_join_paths
	mov	x0, x22
	bl	_set_cheapest
	mov	x0, x22
	bl	_IS_DUMMY_REL
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_lappend
	mov	x21, x0
	b	LBB0_4
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	cbz	x21, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_add_paths_to_append_rel
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_list_free
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mark_dummy_rel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
.subsections_via_symbols
