	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_lateral_ref_ok
_check_lateral_ref_ok:                  ## @check_lateral_ref_ok
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 16(%rsi)
	je	LBB0_6
## %bb.1:
	cmpl	$0, 8(%rsi)
	je	LBB0_2
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	(%rsi), %r13
	movq	(%r13), %rax
	movq	(%rax), %r12
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INVALID_COLUMN_REFERENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_errmsg
	cmpq	(%rbx), %r13
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_errdetail
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_errhint
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_parser_errposition
	movl	%r15d, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_COLUMN_REFERENCE,4,2 ## @ERRCODE_INVALID_COLUMN_REFERENCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid reference to FROM-clause entry for table \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"There is an entry for table \"%s\", but it cannot be referenced from this part of the query."

L_.str.2:                               ## @.str.2
	.asciz	"The combining JOIN type must be INNER or LEFT for a LATERAL reference."

	.no_dead_strip	_check_lateral_ref_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_lateral_ref_ok
_check_lateral_ref_ok:                  ; @check_lateral_ref_ok
	.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
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x1, #8]
	cbz	w8, LBB0_3
LBB0_2:
	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_3:
	mov	x19, x2
	mov	x20, x0
	ldr	x23, [x1]
	ldr	x8, [x23]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _ERRCODE_INVALID_COLUMN_REFERENCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_INVALID_COLUMN_REFERENCE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_errmsg
	ldr	x8, [x20]
	cmp	x23, x8
	b.eq	LBB0_5
; %bb.4:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errdetail
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_errhint
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_parser_errposition
	mov	x1, x0
	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	_ereport
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_COLUMN_REFERENCE,4,2 ; @ERRCODE_INVALID_COLUMN_REFERENCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid reference to FROM-clause entry for table \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"There is an entry for table \"%s\", but it cannot be referenced from this part of the query."

l_.str.2:                               ; @.str.2
	.asciz	"The combining JOIN type must be INNER or LEFT for a LATERAL reference."

	.no_dead_strip	_check_lateral_ref_ok
.subsections_via_symbols
