	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readCommandResponse
_readCommandResponse:                   ## @readCommandResponse
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_PQgetResult
	testq	%rax, %rax
	je	LBB0_28
## %bb.1:
	movq	%rax, %r15
	xorl	%eax, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_PQclear
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	testq	%rbx, %rbx
	movq	%rbx, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%rbx), %edi
	callq	_PQgetResult
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_PQresultStatus
                                        ## kill: def $eax killed $eax def $rax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_3
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%r13, %r13
	je	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_15
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_27
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r13, %r13
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_PQnfields
	testl	%eax, %eax
	jle	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	incl	%r12d
	movq	%r15, %rdi
	callq	_PQnfields
	cmpl	%eax, %r12d
	jge	LBB0_15
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_PQfname
	movq	%rax, %r14
	cmpb	$0, (%r13)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_psprintf
	movq	%rax, %r14
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_PQgetvalue
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_putVariable
	testl	%eax, %eax
	je	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpb	$0, (%r13)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r14, %rdi
	callq	_pg_free
	jmp	LBB0_14
LBB0_28:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	8(%rbx), %ecx
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_fprintf
	incl	16(%rbx)
	jmp	LBB0_29
LBB0_26:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edx
	movl	4(%r12), %ecx
	movl	8(%r12), %r8d
	movq	%r14, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_20
LBB0_16:
	movl	$1, %r14d
	jmp	LBB0_29
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edx
	movl	4(%r12), %ecx
	movl	8(%r12), %r8d
	movl	$0, (%rsp)
	leaq	L_.str(%rip), %rsi
LBB0_20:
	xorl	%ebx, %ebx
LBB0_21:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	incl	16(%r12)
	movq	%r15, %rdi
	callq	_PQclear
	movq	%rbx, %rdi
	callq	_PQclear
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%r12), %edi
	callq	_PQgetResult
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQclear
	testq	%rbx, %rbx
	jne	LBB0_22
## %bb.23:
	xorl	%r14d, %r14d
LBB0_29:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	callq	_PQerrorMessage
	movq	%rax, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_24:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r12d
	movl	4(%rbx), %r13d
	movl	8(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_PQntuples
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	movq	%rbx, %r12
	xorl	%ebx, %ebx
LBB0_25:
	movl	%r13d, %ecx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"client %d script %d command %d query %d: expected one row, got %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s"

L_.str.2:                               ## @.str.2
	.asciz	"gset"

L_.str.3:                               ## @.str.3
	.asciz	"client %d script %d command %d query %d: error storing into variable %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"client %d script %d aborted in command %d query %d: %s"

L_.str.5:                               ## @.str.5
	.asciz	"client %d command %d: no results\n"

	.no_dead_strip	_readCommandResponse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readCommandResponse
_readCommandResponse:                   ; @readCommandResponse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_PQgetResult
	cbz	x0, LBB0_18
; %bb.1:
	mov	x21, x0
	mov	w27, #0
Lloh0:
	adrp	x23, l_.str.2@PAGE
Lloh1:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_PQclear
	add	w27, w27, #1
	cbz	x21, LBB0_21
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x20, x21
	ldr	w0, [x19, #12]
	bl	_PQgetResult
	mov	x21, x0
	mov	x0, x20
	bl	_PQresultStatus
	sub	w8, w0, #129
	cmp	w8, #2
	b.hs	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x22, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x21, LBB0_2
	b	LBB0_22
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #128
	b.ne	LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x22, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x21, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_PQnfields
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	w25, w25, #1
	mov	x0, x20
	bl	_PQnfields
	cmp	w25, w0
	b.ge	LBB0_2
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x25
	bl	_PQfname
	mov	x26, x0
	ldrb	w8, [x22]
	cbz	w8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x24
	mov	x1, x22
	mov	x2, x26
	bl	_psprintf
	mov	x26, x0
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x20
	mov	w1, #0
	mov	x2, x25
	bl	_PQgetvalue
	mov	x3, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x26
	bl	_putVariable
	cbz	w0, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	ldrb	w8, [x22]
	cbz	w8, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x26
	bl	_pg_free
	b	LBB0_12
LBB0_18:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [x19]
	ldr	w3, [x19, #8]
Lloh7:
	adrp	x1, l_.str.5@PAGE
Lloh8:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	mov	w0, #0
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	b	LBB0_28
LBB0_19:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	w2, w3, [x19]
	ldr	w8, [x19, #8]
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	stp	x27, x26, [sp, #8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_20:
	bl	_fprintf
	mov	x21, #0
	b	LBB0_25
LBB0_21:
	mov	w0, #1
	b	LBB0_28
LBB0_22:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	w2, w3, [x19]
	ldr	w8, [x19, #8]
	stp	x27, xzr, [sp, #8]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
	ldp	w23, w24, [x19]
	ldp	w25, w0, [x19, #8]
	bl	_PQerrorMessage
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	stp	x27, x0, [sp, #8]
	str	x25, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x24
LBB0_24:
	bl	_fprintf
LBB0_25:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_PQclear
	mov	x0, x21
	bl	_PQclear
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	bl	_PQgetResult
	mov	x20, x0
	bl	_PQclear
	cbnz	x20, LBB0_26
; %bb.27:
	mov	w0, #0
LBB0_28:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_29:
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	ldp	w22, w23, [x19]
	ldr	w24, [x19, #8]
	mov	x0, x20
	bl	_PQntuples
                                        ; kill: def $w0 killed $w0 def $x0
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	stp	x27, x0, [sp, #8]
	str	x24, [sp]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	b	LBB0_20
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"client %d script %d command %d query %d: expected one row, got %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s"

l_.str.2:                               ; @.str.2
	.asciz	"gset"

l_.str.3:                               ; @.str.3
	.asciz	"client %d script %d command %d query %d: error storing into variable %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"client %d script %d aborted in command %d query %d: %s"

l_.str.5:                               ; @.str.5
	.asciz	"client %d command %d: no results\n"

	.no_dead_strip	_readCommandResponse
.subsections_via_symbols
