	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_make_join_rel                  ## -- Begin function make_join_rel
	.p2align	4, 0x90
_make_join_rel:                         ## @make_join_rel
	.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	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	movl	(%rdx), %esi
	callq	_bms_overlap
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movl	(%rbx), %edi
	movl	(%r13), %esi
	callq	_bms_union
	movl	%eax, %r15d
	leaq	-48(%rbp), %r8
	leaq	-52(%rbp), %r9
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_join_is_legal
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$0, -52(%rbp)
	movq	%rbx, %r12
	cmoveq	%r13, %r12
	cmoveq	%rbx, %r13
	movq	-48(%rbp), %r8
	testq	%r8, %r8
	jne	LBB0_4
## %bb.3:
	leaq	-128(%rbp), %r8
	movq	%r8, -48(%rbp)
	movq	_T_SpecialJoinInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	(%r13), %eax
	movl	%eax, -80(%rbp)
	movl	(%r12), %ecx
	movl	%ecx, -84(%rbp)
	movl	%eax, -88(%rbp)
	movl	%ecx, -92(%rbp)
	movq	_JOIN_INNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -128(%rbp)
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movq	%rax, -112(%rbp)
LBB0_4:
	leaq	-64(%rbp), %r9
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_build_join_rel
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is_dummy_rel
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	-48(%rbp), %r8
	movq	-64(%rbp), %r9
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_populate_joinrel_with_paths
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%r15d, %edi
	callq	_bms_free
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T_SpecialJoinInfo,4,2          ## @T_SpecialJoinInfo
	.comm	_JOIN_INNER,4,2                 ## @JOIN_INNER
	.comm	_NIL,8,3                        ## @NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_make_join_rel                  ; -- Begin function make_join_rel
	.p2align	2
_make_join_rel:                         ; @make_join_rel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x1]
	ldr	w1, [x2]
	bl	_bms_overlap
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x23]
	ldr	w1, [x22]
	bl	_bms_union
	mov	x20, x0
	sub	x4, x29, #56
	sub	x5, x29, #60
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_join_is_legal
	cbz	w0, LBB0_5
; %bb.1:
	ldur	w8, [x29, #-60]
	cmp	w8, #0
	csel	x21, x22, x23, eq
	csel	x22, x23, x22, eq
	ldur	x4, [x29, #-56]
	cbnz	x4, LBB0_3
; %bb.2:
	add	x4, sp, #8
	stur	x4, [x29, #-56]
Lloh0:
	adrp	x8, _T_SpecialJoinInfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T_SpecialJoinInfo@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22]
	stp	w9, w8, [sp, #56]
	ldr	w8, [x21]
	stp	w9, w8, [sp, #48]
Lloh3:
	adrp	x9, _JOIN_INNER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _JOIN_INNER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
	stp	xzr, xzr, [sp, #8]
Lloh6:
	adrp	x8, _NIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #24]
LBB0_3:
	mov	x5, sp
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_build_join_rel
	mov	x23, x0
	bl	_is_dummy_rel
	cbnz	x0, LBB0_6
; %bb.4:
	ldur	x4, [x29, #-56]
	ldr	x5, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	_populate_joinrel_with_paths
	b	LBB0_6
LBB0_5:
	mov	x23, #0
LBB0_6:
	mov	x0, x20
	bl	_bms_free
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_T_SpecialJoinInfo,4,2          ; @T_SpecialJoinInfo
	.comm	_JOIN_INNER,4,2                 ; @JOIN_INNER
	.comm	_NIL,8,3                        ; @NIL
.subsections_via_symbols
