	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_deparseSelectStmtForRel        ## -- Begin function deparseSelectStmtForRel
	.p2align	4, 0x90
_deparseSelectStmtForRel:               ## @deparseSelectStmtForRel
	.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
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	(%rdx), %r12
	movq	%rdx, %rdi
	callq	_IS_JOIN_REL
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_SIMPLE_REL
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_IS_UPPER_REL
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
LBB0_3:
	movl	%r15d, %edi
	callq	_Assert
	movl	%r13d, %r15d
	movl	%r13d, -48(%rbp)
	movq	%r14, -56(%rbp)
	movq	%rbx, -64(%rbp)
	movq	%rbx, %rdi
	callq	_IS_UPPER_REL
	movq	%rbx, %rcx
	testq	%rax, %rax
	movq	%r12, %r13
	je	LBB0_5
## %bb.4:
	movq	8(%r13), %rcx
LBB0_5:
	movq	%rcx, -72(%rbp)
	movq	48(%rbp), %rax
	movq	%rax, -80(%rbp)
	leaq	-80(%rbp), %rcx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	32(%rbp), %esi
	movq	40(%rbp), %rdx
	callq	_deparseSelectSql
	movq	%rbx, %rdi
	callq	_IS_UPPER_REL
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
LBB0_7:
	leaq	-80(%rbp), %rsi
	callq	_deparseFromExpr
	movq	%rbx, %rdi
	callq	_IS_UPPER_REL
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_appendGroupByClause
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_appendStringInfoString
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_appendConditions
LBB0_10:
	movl	24(%rbp), %ebx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movl	16(%rbp), %esi
	leaq	-80(%rbp), %rdx
	callq	_appendOrderByClause
LBB0_12:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.13:
	leaq	-80(%rbp), %rdi
	callq	_appendLimitClause
LBB0_14:
	leaq	-80(%rbp), %rdi
	callq	_deparseLockingClause
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HAVING "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_deparseSelectStmtForRel        ; -- Begin function deparseSelectStmtForRel
	.p2align	2
_deparseSelectStmtForRel:               ; @deparseSelectStmtForRel
	.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
	stp	w6, w7, [sp]                    ; 8-byte Folded Spill
	mov	x21, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x28, x1
	mov	x23, x0
	ldr	x26, [x29, #24]
	ldr	w27, [x29, #16]
	ldr	x20, [x2]
	mov	x0, x2
	bl	_IS_JOIN_REL
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x25
	bl	_IS_SIMPLE_REL
	cbz	x0, LBB0_15
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldr	x19, [x29, #32]
	bl	_Assert
	str	w23, [sp, #40]
	stp	x25, x28, [sp, #24]
	mov	x0, x25
	bl	_IS_UPPER_REL
	mov	x8, x25
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
LBB0_5:
	stp	x19, x8, [sp, #8]
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x27
	mov	x2, x26
	bl	_deparseSelectSql
	mov	x0, x25
	bl	_IS_UPPER_REL
	mov	x8, x0
	mov	x0, x22
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x0, [x8]
LBB0_7:
	add	x1, sp, #8
	bl	_deparseFromExpr
	mov	x0, x25
	bl	_IS_UPPER_REL
	cbz	x0, LBB0_10
; %bb.8:
	add	x1, sp, #8
	mov	x0, x24
	bl	_appendGroupByClause
	cbz	x22, LBB0_10
; %bb.9:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_appendStringInfoString
	add	x1, sp, #8
	mov	x0, x22
	bl	_appendConditions
LBB0_10:
	cbz	x21, LBB0_12
; %bb.11:
	add	x2, sp, #8
	mov	x0, x21
	ldr	w1, [sp]                        ; 4-byte Folded Reload
	bl	_appendOrderByClause
LBB0_12:
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_14
; %bb.13:
	add	x0, sp, #8
	bl	_appendLimitClause
LBB0_14:
	add	x0, sp, #8
	bl	_deparseLockingClause
	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_15:
	mov	x0, x25
	bl	_IS_UPPER_REL
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HAVING "

.subsections_via_symbols
