	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_printQuery                     ## -- Begin function printQuery
	.p2align	4, 0x90
_printQuery:                            ## @printQuery
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cancel_pressed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_27
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	leaq	32(%rsi), %rbx
	movl	44(%rsi), %r14d
	callq	_PQnfields
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_PQntuples
	leaq	-56(%rbp), %rdi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_printTableInit
	cmpq	$0, 24(%r12)
	je	LBB0_2
## %bb.3:
	movl	(%r12), %eax
	xorl	%edi, %edi
	cmpl	-56(%rbp), %eax
	setge	%dil
	jmp	LBB0_4
LBB0_2:
	movl	$1, %edi
LBB0_4:
	callq	_Assert
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_PQfname
	movl	%eax, %r15d
	movl	40(%r12), %r14d
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_PQftype
	movl	%eax, %edi
	callq	_column_type_alignment
	leaq	-56(%rbp), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_printTableAddHeader
	incl	%ebx
	movl	-56(%rbp), %eax
	cmpl	%eax, %ebx
	jl	LBB0_6
LBB0_7:
	movl	-52(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.8:
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-52(%rbp), %ecx
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r15d
	cmpl	%ecx, %r15d
	jge	LBB0_22
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	testl	%eax, %eax
	jle	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=2
	cmpq	$0, (%rax,%r14,8)
	setne	%al
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=2
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_printTableAddCell
	incq	%r14
	movslq	-56(%rbp), %rax
	cmpq	%rax, %r14
	jge	LBB0_20
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_PQgetisnull
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_PQgetvalue
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	xorl	%ecx, %ecx
	cmpb	$114, (%rax,%r14)
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rsi, %rdi
	callq	_format_numeric_locale
	movq	%rax, %rsi
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	24(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=2
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_22:
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.23:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.24:
	addq	$8, %rbx
	leaq	-56(%rbp), %r14
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_printTableAddFooter
	movq	(%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	jne	LBB0_25
LBB0_26:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_printTable
	movq	%rbx, %rdi
	callq	_printTableCleanup
LBB0_27:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cancel_pressed,8,3             ## @cancel_pressed
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_printQuery                     ; -- Begin function printQuery
	.p2align	2
_printQuery:                            ; @printQuery
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _cancel_pressed@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cancel_pressed@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_27
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	add	x24, x1, #32
	ldr	w25, [x1, #44]
	bl	_PQnfields
	mov	x26, x0
	mov	x0, x23
	bl	_PQntuples
	mov	x4, x0
	mov	x0, sp
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	bl	_printTableInit
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x22]
	ldr	w9, [sp]
	cmp	w8, w9
	cset	w0, ge
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	bl	_Assert
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x25
	bl	_PQfname
	mov	x26, x0
	ldr	w27, [x22, #40]
	mov	x0, x23
	mov	x1, x25
	bl	_PQftype
	bl	_column_type_alignment
	mov	x3, x0
	mov	x0, sp
	mov	x1, x26
	mov	x2, x27
	bl	_printTableAddHeader
	add	w25, w25, #1
	ldr	w8, [sp]
	cmp	w25, w8
	b.lt	LBB0_6
LBB0_7:
	ldr	w9, [sp, #4]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.8:
	mov	w25, #0
Lloh3:
	adrp	x27, l_.str@PAGE
Lloh4:
	add	x27, x27, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [sp, #4]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w25, w25, #1
	cmp	w25, w9
	b.ge	LBB0_22
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x26, #0
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	w3, #0
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [x8, x26, lsl #3]
	cmp	x8, #0
	cset	w2, ne
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, sp
	bl	_printTableAddCell
	add	x26, x26, #1
	ldrsw	x8, [sp]
	cmp	x26, x8
	b.ge	LBB0_9
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	x1, x25
	mov	x2, x26
	bl	_PQgetisnull
	cbz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	w3, #0
	ldr	x8, [x22, #8]
	cmp	x8, #0
	csel	x1, x27, x8, eq
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_14
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	w2, #0
	b	LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x23
	mov	x1, x25
	mov	x2, x26
	bl	_PQgetvalue
	mov	x1, x0
	ldr	x8, [sp, #8]
	ldrb	w8, [x8, x26]
	cmp	w8, #114
	b.ne	LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [x24]
	cbz	x8, LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x1
	bl	_format_numeric_locale
	mov	x1, x0
	mov	w3, #1
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_14
	b	LBB0_18
LBB0_22:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_26
; %bb.23:
	ldr	x1, [x8]
	cbz	x1, LBB0_26
; %bb.24:
	add	x22, x8, #8
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	bl	_printTableAddFooter
	ldr	x1, [x22], #8
	cbnz	x1, LBB0_25
LBB0_26:
	mov	x0, sp
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_printTable
	mov	x0, sp
	bl	_printTableCleanup
LBB0_27:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cancel_pressed,8,3             ; @cancel_pressed
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
