	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libpqrcv_processTuples
_libpqrcv_processTuples:                ## @libpqrcv_processTuples
	.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	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_PQnfields
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_errdetail
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	_work_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_tuplestore_begin_heap
	movl	%eax, (%r15)
	movl	%ebx, %edi
	callq	_CreateTemplateTupleDesc
	movl	%eax, %r12d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, 4(%r15)
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.3:
	movl	%ebx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r13, %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rbx), %r13
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_PQfname
	movl	(%r15,%rbx,4), %ecx
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_TupleDescInitEntry
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r12d
	movq	%r13, %rbx
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
LBB0_5:
	movl	%r12d, %edi
	callq	_TupleDescGetAttInMetadata
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_DEFAULT_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_AllocSetContextCreate
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_PQntuples
	testl	%eax, %eax
	jle	LBB0_15
## %bb.7:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	xorl	%r15d, %r15d
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_BuildTupleFromCStrings
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_tuplestore_puttuple
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_MemoryContextReset
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	incl	%r15d
	movq	%r14, %rdi
	callq	_PQntuples
	cmpl	%eax, %r15d
	jge	LBB0_15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MaxTupleAttributeNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%eax, %eax
	callq	_ProcessWalRcvInterrupts
	movl	%r13d, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_PQgetvalue
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, (%r12,%r13,8)
	incq	%r13
	cmpq	%r13, %rbx
	je	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_PQgetisnull
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_15:
	movl	%r13d, %edi
	callq	_MemoryContextDelete
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid query response"

L_.str.1:                               ## @.str.1
	.asciz	"Expected %d fields, got %d fields."

	.comm	_work_mem,4,2                   ## @work_mem
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
L_.str.2:                               ## @.str.2
	.asciz	"libpqrcv query result context"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
	.comm	_MaxTupleAttributeNumber,4,2    ## @MaxTupleAttributeNumber
	.no_dead_strip	_libpqrcv_processTuples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libpqrcv_processTuples
_libpqrcv_processTuples:                ; @libpqrcv_processTuples
	.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
	sub	sp, sp, #16
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_PQnfields
	stur	w0, [x29, #-92]                 ; 4-byte Folded Spill
	cmp	w0, w23
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	ldur	w2, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_errdetail
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_2:
Lloh10:
	adrp	x8, _work_mem@GOTPAGE
Lloh11:
	ldr	x8, [x8, _work_mem@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w0, #1
	mov	w1, #0
	bl	_tuplestore_begin_heap
	str	w0, [x19]
	mov	x0, x23
	bl	_CreateTemplateTupleDesc
	mov	x24, x0
	str	w0, [x19, #4]
	cmp	w23, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x25, #0
	mov	w21, w23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x25, #1
	mov	x0, x20
	mov	x1, x25
	bl	_PQfname
	mov	x2, x0
	ldr	w3, [x22, x25, lsl #2]
	mov	x0, x24
	mov	x1, x23
	mov	w4, #-1
	mov	w5, #0
	bl	_TupleDescInitEntry
	ldr	w24, [x19, #4]
	mov	x25, x23
	cmp	x21, x23
	b.ne	LBB0_4
LBB0_5:
	mov	x0, x24
	bl	_TupleDescGetAttInMetadata
	mov	x22, x0
	mov	x0, x20
	bl	_PQntuples
	cbz	w0, LBB0_16
; %bb.6:
Lloh13:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_AllocSetContextCreate
	mov	x23, x0
	mov	x0, x20
	bl	_PQntuples
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.7:
	mov	w24, #0
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	mov	w28, w8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_BuildTupleFromCStrings
	mov	x1, x0
	ldr	w0, [x19]
	bl	_tuplestore_puttuple
	mov	x0, x26
	bl	_MemoryContextSwitchTo
	mov	x0, x23
	bl	_MemoryContextReset
	mov	sp, x21
	add	w24, w24, #1
	mov	x0, x20
	bl	_PQntuples
	cmp	w24, w0
	b.ge	LBB0_15
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x21, sp
Lloh21:
	adrp	x8, _MaxTupleAttributeNumber@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MaxTupleAttributeNumber@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh24:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh25:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x25, x9, x8
	mov	sp, x25
	bl	_ProcessWalRcvInterrupts
	mov	x0, x23
	bl	_MemoryContextSwitchTo
	mov	x26, x0
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, #0
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x20
	mov	x1, x24
	mov	x2, x27
	bl	_PQgetvalue
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	str	x0, [x25, x27, lsl #3]
	add	x27, x27, #1
	cmp	x28, x27
	b.eq	LBB0_8
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x24
	mov	x2, x27
	bl	_PQgetisnull
	cbz	x0, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, #0
	b	LBB0_12
LBB0_15:
	mov	x0, x23
	bl	_MemoryContextDelete
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	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
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid query response"

l_.str.1:                               ; @.str.1
	.asciz	"Expected %d fields, got %d fields."

	.comm	_work_mem,4,2                   ; @work_mem
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
l_.str.2:                               ; @.str.2
	.asciz	"libpqrcv query result context"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
	.comm	_MaxTupleAttributeNumber,4,2    ; @MaxTupleAttributeNumber
	.no_dead_strip	_libpqrcv_processTuples
.subsections_via_symbols
