	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function distribute_qual_to_rels
_distribute_qual_to_rels:               ## @distribute_qual_to_rels
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -76(%rbp)                 ## 4-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	16(%rbp), %r12
	movq	%rsi, %rdi
	callq	_pull_varnos
	movq	%rax, %r14
	movq	%rax, -56(%rbp)
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_bms_is_subset
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %rsi
	testq	%rsi, %rsi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	movq	%rsi, %r13
	callq	_bms_is_subset
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_5:
	movq	%r14, %rdi
	callq	_bms_is_empty
	xorl	%ebx, %ebx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%r13, %rdi
	callq	_bms_copy
	movq	%rax, %r14
	movq	%rax, -56(%rbp)
	jmp	LBB0_13
LBB0_1:
	movq	%rbx, %r12
	movl	$48, %edi
	callq	_palloc
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_Assert
	movq	_JOIN_INNER@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpq	%rcx, (%rax)
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_Assert
	movq	%r13, 40(%rbx)
	movq	%r14, 32(%rbx)
	movq	48(%rbp), %r14
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_lappend
	movq	%rax, (%r14)
	jmp	LBB0_49
LBB0_7:
	movq	%rsi, %r13
	movq	%r14, %rdi
	callq	_bms_is_empty
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, %rdi
	callq	_bms_copy
	movq	%rax, %r14
	movq	%rax, -56(%rbp)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_contain_volatile_functions
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	movl	$1, %ebx
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_8:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_13:
	movq	32(%rbp), %rsi
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.14:
	movl	%ebx, %r15d
	movq	40(%rbp), %r14
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_Assert
	movq	32(%rbp), %rbx
	movq	%r14, -104(%rbp)
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	$1, %r12d
	movb	$1, %al
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
LBB0_26:
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_27
LBB0_15:
	movq	%r14, %rdi
	callq	_bms_overlap
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	%ebx, %r15d
	leaq	-56(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_check_outerjoin_delay
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_Assert
	movq	%r13, -56(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_Assert
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
LBB0_24:
	movl	-76(%rbp), %r8d                 ## 4-byte Reload
	movq	32(%rbp), %rbx
LBB0_27:
	movq	-56(%rbp), %r9
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	pushq	-104(%rbp)
	pushq	%rbx
	callq	_make_restrictinfo
	addq	$16, %rsp
	movq	%rax, %r14
	movq	%rax, -96(%rbp)
	movq	-56(%rbp), %rdi
	callq	_bms_membership
	movq	_BMS_MULTIPLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.28:
	movq	_PVC_RECURSE_AGGREGATES@GOTPCREL(%rip), %rax
	movq	_PVC_RECURSE_WINDOWFUNCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_PVC_INCLUDE_PLACEHOLDERS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r13, %rdi
	callq	_pull_var_clause
	movq	%rax, %rbx
	movq	-56(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_add_vars_to_targetlist
	movq	%rbx, %rdi
	callq	_list_free
LBB0_29:
	movq	%r14, %rdi
	callq	_check_mergejoinable
	cmpq	$0, 24(%r14)
	je	LBB0_30
## %bb.31:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_32
## %bb.37:
	cmpb	$0, -68(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_47
## %bb.38:
	cmpq	$0, 16(%r14)
	je	LBB0_47
## %bb.39:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_initialize_mergeclause_eclasses
	movq	(%r14), %rdi
	movq	32(%rbp), %r15
	movq	%r15, %rsi
	callq	_bms_is_subset
	testq	%rax, %rax
	je	LBB0_42
## %bb.40:
	movq	8(%r14), %rdi
	movq	%r15, %rsi
	callq	_bms_overlap
	testq	%rax, %rax
	je	LBB0_41
LBB0_42:
	movq	8(%r14), %rdi
	movq	%r15, %rsi
	callq	_bms_is_subset
	testq	%rax, %rax
	je	LBB0_45
## %bb.43:
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_bms_overlap
	testq	%rax, %rax
	je	LBB0_44
LBB0_45:
	movq	_JOIN_FULL@GOTPCREL(%rip), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_48
## %bb.46:
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_lappend
	movq	%rax, 8(%rbx)
	jmp	LBB0_49
LBB0_30:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_48
LBB0_32:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_check_equivalence_delay
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_process_equivalence
	testq	%rax, %rax
	jne	LBB0_49
## %bb.34:
	movq	-96(%rbp), %r14
LBB0_35:
	cmpq	$0, 24(%r14)
	je	LBB0_48
## %bb.36:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_initialize_mergeclause_eclasses
	movq	-96(%rbp), %r14
	jmp	LBB0_48
LBB0_47:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_initialize_mergeclause_eclasses
LBB0_48:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_distribute_restrictinfo_to_rels
LBB0_49:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	-56(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_check_outerjoin_delay
	testl	%eax, %eax
	je	LBB0_25
## %bb.18:
	movl	%eax, %r14d
	cmpl	$0, (%r15)
	movl	$1, %edi
	jne	LBB0_20
## %bb.19:
	movq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	_bms_is_subset
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_20:
	callq	_Assert
	movl	$1, %r12d
	movl	$1, %edi
	testq	%r13, %r13
	je	LBB0_22
## %bb.21:
	movq	-56(%rbp), %rdi
	movq	%r13, %rsi
	callq	_bms_is_subset
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_22:
	callq	_Assert
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_check_redundant_nullability_qual
	testq	%rax, %rax
	jne	LBB0_49
## %bb.23:
	movl	%ebx, %r15d
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movb	$1, %al
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_24
LBB0_25:
	movl	%ebx, %r15d
	movq	32(%rbp), %rbx
	testq	%rbx, %rbx
	movl	$1, %r12d
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	cmovnel	%r12d, %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movb	$1, %al
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_26
LBB0_12:
	movq	32(%rax), %rax
	movq	(%rax), %rdi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%esi, %esi
	callq	_get_relids_in_jointree
	movq	%rax, %r14
	movq	%rax, -56(%rbp)
	movq	%rax, %rdi
	callq	_bms_copy
	movq	%rax, %r12
	jmp	LBB0_13
LBB0_41:
	movq	24(%rbx), %rdi
	movq	%r14, %rsi
	callq	_lappend
	movq	%rax, 24(%rbx)
	jmp	LBB0_49
LBB0_44:
	movq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_lappend
	movq	%rax, 16(%rbx)
	jmp	LBB0_49
	.cfi_endproc
                                        ## -- End function
	.comm	_JOIN_INNER,8,3                 ## @JOIN_INNER
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"JOIN qualification cannot refer to other relations"

	.comm	_BMS_MULTIPLE,8,3               ## @BMS_MULTIPLE
	.comm	_PVC_RECURSE_AGGREGATES,4,2     ## @PVC_RECURSE_AGGREGATES
	.comm	_PVC_RECURSE_WINDOWFUNCS,4,2    ## @PVC_RECURSE_WINDOWFUNCS
	.comm	_PVC_INCLUDE_PLACEHOLDERS,4,2   ## @PVC_INCLUDE_PLACEHOLDERS
	.comm	_JOIN_FULL,8,3                  ## @JOIN_FULL
	.no_dead_strip	_distribute_qual_to_rels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function distribute_qual_to_rels
_distribute_qual_to_rels:               ; @distribute_qual_to_rels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x7
	mov	x28, x6
	mov	x24, x5
	mov	x26, x4
	mov	x20, x3
	mov	x27, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	bl	_pull_varnos
	mov	x22, x0
	str	x0, [sp, #40]
	mov	x1, x28
	bl	_bms_is_subset
	cbz	x0, LBB0_8
; %bb.1:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	ldr	x21, [x29, #16]
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x22
	cbz	x25, LBB0_9
; %bb.2:
	mov	x1, x25
	bl	_bms_is_subset
	cbnz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_4:
	mov	x0, x22
	bl	_bms_is_empty
	cbz	x0, LBB0_12
; %bb.5:
	mov	x0, x25
	bl	_bms_copy
	mov	x22, x0
	mov	w26, #0
	str	x0, [sp, #40]
	mov	w20, #1
	cbz	w27, LBB0_13
LBB0_6:
	ldr	x20, [x29, #24]
	cmp	x25, #0
	cset	w0, eq
	bl	_Assert
	mov	w22, #0
	str	x20, [sp, #32]
LBB0_7:
	mov	w25, #1
	b	LBB0_15
LBB0_8:
	ldr	x21, [x29, #32]
	mov	w0, #48
	bl	_palloc
	mov	x20, x0
	ldr	w0, [x19]
	bl	_Assert
Lloh5:
	adrp	x8, _JOIN_INNER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JOIN_INNER@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x26
	cset	w0, eq
	bl	_Assert
	cmp	w27, #0
	cset	w0, eq
	bl	_Assert
	stp	x22, x23, [x20, #32]
	ldr	x0, [x21]
	mov	x1, x20
	bl	_lappend
	str	x0, [x21]
	b	LBB0_35
LBB0_9:
	bl	_bms_is_empty
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x28
	bl	_bms_copy
	mov	x22, x0
	str	x0, [sp, #40]
	mov	x0, x23
	bl	_contain_volatile_functions
	mov	w20, #1
	cbz	w0, LBB0_40
; %bb.11:
	mov	w26, #0
	cbnz	w27, LBB0_6
	b	LBB0_13
LBB0_12:
	mov	w26, #0
	mov	w20, #1
	cbnz	w27, LBB0_6
LBB0_13:
	mov	x0, x22
	mov	x1, x21
	bl	_bms_overlap
	add	x1, sp, #40
	add	x2, sp, #32
	cbz	x0, LBB0_36
; %bb.14:
	mov	x0, x19
	mov	w3, #0
	bl	_check_outerjoin_delay
	mov	x22, x0
	mov	x0, x25
	bl	_Assert
	str	x25, [sp, #40]
	mov	x0, x20
	bl	_Assert
	mov	w25, #0
LBB0_15:
	mov	w27, #1
LBB0_16:
	ldp	x7, x5, [sp, #32]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	mov	x3, x26
	mov	x4, x24
	mov	x6, x21
	bl	_make_restrictinfo
	mov	x24, x0
	str	x0, [sp, #24]
	ldr	x0, [sp, #40]
	bl	_bms_membership
Lloh8:
	adrp	x8, _BMS_MULTIPLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BMS_MULTIPLE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.17:
Lloh11:
	adrp	x8, _PVC_RECURSE_AGGREGATES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PVC_RECURSE_AGGREGATES@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PVC_RECURSE_WINDOWFUNCS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PVC_RECURSE_WINDOWFUNCS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _PVC_INCLUDE_PLACEHOLDERS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PVC_INCLUDE_PLACEHOLDERS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x23
	bl	_pull_var_clause
	mov	x20, x0
	ldr	x2, [sp, #40]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_add_vars_to_targetlist
	mov	x0, x20
	bl	_list_free
LBB0_18:
	mov	x0, x24
	bl	_check_mergejoinable
	ldr	x8, [x24, #24]
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_34
; %bb.19:
	tbz	w27, #0, LBB0_28
; %bb.20:
	tbnz	w25, #0, LBB0_33
; %bb.21:
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_33
; %bb.22:
	mov	x0, x19
	mov	x1, x24
	bl	_initialize_mergeclause_eclasses
	ldr	x0, [x24]
	mov	x1, x21
	bl	_bms_is_subset
	cbz	x0, LBB0_24
; %bb.23:
	ldr	x0, [x24, #8]
	mov	x1, x21
	bl	_bms_overlap
	cbz	x0, LBB0_47
LBB0_24:
	ldr	x0, [x24, #8]
	mov	x1, x21
	bl	_bms_is_subset
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x0, [x24]
	mov	x1, x21
	bl	_bms_overlap
	cbz	x0, LBB0_48
LBB0_26:
Lloh20:
	adrp	x8, _JOIN_FULL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _JOIN_FULL@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_34
; %bb.27:
	ldr	x0, [x19, #8]
	mov	x1, x24
	bl	_lappend
	str	x0, [x19, #8]
	b	LBB0_35
LBB0_28:
	mov	x0, x19
	mov	x1, x24
	bl	_check_equivalence_delay
	cbz	x0, LBB0_31
; %bb.29:
	add	x1, sp, #24
	mov	x0, x19
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_process_equivalence
	cbnz	x0, LBB0_35
; %bb.30:
	ldr	x24, [sp, #24]
LBB0_31:
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_34
; %bb.32:
	mov	x0, x19
	mov	x1, x24
	bl	_initialize_mergeclause_eclasses
	ldr	x24, [sp, #24]
	b	LBB0_34
LBB0_33:
	mov	x0, x19
	mov	x1, x24
	bl	_initialize_mergeclause_eclasses
LBB0_34:
	mov	x0, x19
	mov	x1, x24
	bl	_distribute_restrictinfo_to_rels
LBB0_35:
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_36:
	mov	x0, x19
	mov	w3, #1
	bl	_check_outerjoin_delay
	mov	x22, x0
	cbz	w0, LBB0_43
; %bb.37:
	ldr	w8, [x19]
	cbz	w8, LBB0_44
; %bb.38:
	mov	w0, #1
	bl	_Assert
	cbz	x25, LBB0_45
LBB0_39:
	ldr	x0, [sp, #40]
	mov	x1, x25
	bl	_bms_is_subset
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_46
LBB0_40:
	str	w20, [x19, #4]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_42
; %bb.41:
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
	mov	w1, #0
	bl	_get_relids_in_jointree
	mov	x22, x0
	str	x0, [sp, #40]
	bl	_bms_copy
	mov	x28, x0
LBB0_42:
	mov	w20, #0
	mov	w26, #1
	cbnz	w27, LBB0_6
	b	LBB0_13
LBB0_43:
	mov	w27, #0
	cmp	x21, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	csinc	w8, w8, wzr, eq
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w25, #1
	b	LBB0_16
LBB0_44:
	ldr	x0, [sp, #40]
	mov	x1, x28
	bl	_bms_is_subset
	cmp	x0, #0
	cset	w0, ne
	bl	_Assert
	cbnz	x25, LBB0_39
LBB0_45:
	mov	w0, #1
LBB0_46:
	bl	_Assert
	mov	x0, x19
	mov	x1, x23
	bl	_check_redundant_nullability_qual
	cbnz	x0, LBB0_35
	b	LBB0_7
LBB0_47:
	ldr	x0, [x19, #24]
	mov	x1, x24
	bl	_lappend
	str	x0, [x19, #24]
	b	LBB0_35
LBB0_48:
	ldr	x0, [x19, #16]
	mov	x1, x24
	bl	_lappend
	str	x0, [x19, #16]
	b	LBB0_35
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_JOIN_INNER,8,3                 ; @JOIN_INNER
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"JOIN qualification cannot refer to other relations"

	.comm	_BMS_MULTIPLE,8,3               ; @BMS_MULTIPLE
	.comm	_PVC_RECURSE_AGGREGATES,4,2     ; @PVC_RECURSE_AGGREGATES
	.comm	_PVC_RECURSE_WINDOWFUNCS,4,2    ; @PVC_RECURSE_WINDOWFUNCS
	.comm	_PVC_INCLUDE_PLACEHOLDERS,4,2   ; @PVC_INCLUDE_PLACEHOLDERS
	.comm	_JOIN_FULL,8,3                  ; @JOIN_FULL
	.no_dead_strip	_distribute_qual_to_rels
.subsections_via_symbols
