	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExecQueryTuples
_ExecQueryTuples:                       ## @ExecQueryTuples
	.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
	movq	%rdi, %r13
	callq	_PQntuples
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_PQnfields
	movl	%eax, %r12d
	movq	_pset@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	incl	%r14d
	cmpl	%r14d, %r12d
	je	LBB0_13
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_PQgetisnull
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_PQgetvalue
	movq	%rax, %r15
	movq	_cancel_pressed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_pset@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	movq	_PSQL_ECHO_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_pset@GOTPCREL(%rip), %rax
	cmpl	$0, 24(%rax)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	callq	_puts
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	callq	_SendQuery
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_pset@GOTPCREL(%rip), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_12
	jmp	LBB0_14
LBB0_1:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_14:
	movq	_pset@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pset,32,3                      ## @pset
	.comm	_cancel_pressed,8,3             ## @cancel_pressed
	.comm	_PSQL_ECHO_ALL,8,3              ## @PSQL_ECHO_ALL
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_ExecQueryTuples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExecQueryTuples
_ExecQueryTuples:                       ; @ExecQueryTuples
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	bl	_PQntuples
	mov	x20, x0
	mov	x0, x19
	bl	_PQnfields
Lloh0:
	adrp	x25, _pset@GOTPAGE
Lloh1:
	ldr	x25, [x25, _pset@GOTPAGEOFF]
	str	wzr, [x25]
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x21, x0
	mov	w22, #0
	mov	w27, #1
Lloh2:
	adrp	x28, _cancel_pressed@GOTPAGE
Lloh3:
	ldr	x28, [x28, _cancel_pressed@GOTPAGEOFF]
Lloh4:
	adrp	x26, _PSQL_ECHO_ALL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PSQL_ECHO_ALL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	mov	x0, x27
	cmp	w22, w20
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w21, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x24
	bl	_SendQuery
	cbz	w0, LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w23, w23, #1
	cmp	w21, w23
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_PQgetisnull
	cbnz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_PQgetvalue
	ldr	x8, [x28]
	cbnz	x8, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x24, x0
	ldr	x8, [x25, #8]
	ldr	x9, [x26]
	ldr	w10, [x25, #24]
	cmp	x8, x9
	ccmp	w10, #0, #0, eq
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x24
	bl	_puts
Lloh6:
	adrp	x8, _stdout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_fflush
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w27, #0
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_6
	b	LBB0_14
LBB0_12:
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	mov	x0, x27
LBB0_14:
	mov	w8, #1
	str	w8, [x25]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pset,32,3                      ; @pset
	.comm	_cancel_pressed,8,3             ; @cancel_pressed
	.comm	_PSQL_ECHO_ALL,8,3              ; @PSQL_ECHO_ALL
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_ExecQueryTuples
.subsections_via_symbols
