	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connectby
_connectby:                             ## @connectby
	.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	%r9, %rbx
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	40(%rbp), %r15d
	movl	$1, -44(%rbp)
	xorl	%eax, %eax
	callq	_SPI_connect
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_elog
LBB0_2:
	movl	%r15d, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r13d
	movq	_work_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	48(%rbp), %edi
	xorl	%esi, %esi
	callq	_tuplestore_begin_heap
	movq	%rax, %r15
	movl	%r13d, %edi
	callq	_MemoryContextSwitchTo
	subq	$8, %rsp
	leaq	-44(%rbp), %r10
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r9
	pushq	%r15
	pushq	56(%rbp)
	movl	40(%rbp), %eax
	pushq	%rax
	movl	32(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	%r10
	pushq	$0
	pushq	%rbx
	callq	_build_tuplestore_recursively
	addq	$80, %rsp
	xorl	%eax, %eax
	callq	_SPI_finish
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"connectby: SPI_connect returned %d"

	.comm	_work_mem,4,2                   ## @work_mem
	.no_dead_strip	_connectby
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connectby
_connectby:                             ; @connectby
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	str	w7, [sp, #52]                   ; 4-byte Folded Spill
	mov	x23, x6
	mov	x19, x5
	stp	x3, x4, [sp, #56]               ; 16-byte Folded Spill
	mov	x24, x2
	mov	x26, x1
	mov	x25, x0
	ldr	x21, [x29, #32]
	ldp	w27, w28, [x29, #20]
	ldr	w22, [x29, #16]
	mov	w8, #1
	str	w8, [sp, #76]
	bl	_SPI_connect
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	mov	x0, x27
	bl	_MemoryContextSwitchTo
	mov	x20, x0
Lloh5:
	adrp	x8, _work_mem@GOTPAGE
Lloh6:
	ldr	x8, [x8, _work_mem@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x28
	mov	w1, #0
	bl	_tuplestore_begin_heap
	mov	x28, x0
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	stp	x21, x28, [sp, #24]
	stp	w22, w27, [sp, #16]
	add	x8, sp, #76
	ldr	w9, [sp, #52]                   ; 4-byte Folded Reload
	stp	w23, w9, [sp, #8]
	str	x8, [sp]
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	ldp	x3, x4, [sp, #56]               ; 16-byte Folded Reload
	mov	x5, x19
	mov	x6, x19
	mov	w7, #0
	bl	_build_tuplestore_recursively
	bl	_SPI_finish
	mov	x0, x28
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"connectby: SPI_connect returned %d"

	.comm	_work_mem,4,2                   ; @work_mem
	.no_dead_strip	_connectby
.subsections_via_symbols
