	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgfdw_report_error             ## -- Begin function pgfdw_report_error
	.p2align	4, 0x90
_pgfdw_report_error:                    ## @pgfdw_report_error
	.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	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_PG_TRY
	movq	_PG_DIAG_SQLSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_PQresultErrorField
	movq	%rax, %r13
	movq	_PG_DIAG_MESSAGE_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_PQresultErrorField
	movq	%rax, %r12
	movq	_PG_DIAG_MESSAGE_DETAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_PQresultErrorField
	movq	%rax, %r15
	movq	_PG_DIAG_MESSAGE_HINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_PQresultErrorField
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_PG_DIAG_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_PQresultErrorField
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movsbl	(%r13), %edi
	movsbl	1(%r13), %esi
	movsbl	2(%r13), %edx
	movsbl	3(%r13), %ecx
	movsbl	4(%r13), %r8d
	callq	_MAKE_SQLSTATE
	movl	%eax, %ebx
	testq	%r12, %r12
	je	LBB0_5
LBB0_4:
	movl	%ebx, %edi
	callq	_errcode
	jmp	LBB0_6
LBB0_2:
	movq	_ERRCODE_CONNECTION_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%r12, %r12
	jne	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_PQerrorMessage
	movl	%eax, %edi
	callq	_pchomp
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_errcode
	testq	%r12, %r12
	je	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_errmsg_internal
	testq	%r15, %r15
	je	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_errdetail_internal
LBB0_10:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rdi
	callq	_errhint
LBB0_12:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rdi
	callq	_errcontext
LBB0_14:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.16:
	leaq	L_.str.2(%rip), %rdi
	callq	_errcontext
	movl	%eax, %esi
	jmp	LBB0_17
LBB0_15:
	xorl	%esi, %esi
LBB0_17:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ereport
	xorl	%eax, %eax
	callq	_PG_FINALLY
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_PQclear
LBB0_19:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PG_END_TRY                     ## TAILCALL
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	testq	%r15, %r15
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_DIAG_SQLSTATE,4,2           ## @PG_DIAG_SQLSTATE
	.comm	_PG_DIAG_MESSAGE_PRIMARY,4,2    ## @PG_DIAG_MESSAGE_PRIMARY
	.comm	_PG_DIAG_MESSAGE_DETAIL,4,2     ## @PG_DIAG_MESSAGE_DETAIL
	.comm	_PG_DIAG_MESSAGE_HINT,4,2       ## @PG_DIAG_MESSAGE_HINT
	.comm	_PG_DIAG_CONTEXT,4,2            ## @PG_DIAG_CONTEXT
	.comm	_ERRCODE_CONNECTION_FAILURE,4,2 ## @ERRCODE_CONNECTION_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"could not obtain message string for remote error"

L_.str.2:                               ## @.str.2
	.asciz	"remote SQL command: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgfdw_report_error             ; -- Begin function pgfdw_report_error
	.p2align	2
_pgfdw_report_error:                    ; @pgfdw_report_error
	.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	x22, x4
	mov	x20, x3
	mov	x26, x2
	mov	x19, x1
	mov	x21, x0
	bl	_PG_TRY
Lloh0:
	adrp	x8, _PG_DIAG_SQLSTATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PG_DIAG_SQLSTATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PQresultErrorField
	mov	x28, x0
Lloh3:
	adrp	x8, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PQresultErrorField
	mov	x27, x0
Lloh6:
	adrp	x8, _PG_DIAG_MESSAGE_DETAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PG_DIAG_MESSAGE_DETAIL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PQresultErrorField
	mov	x25, x0
Lloh9:
	adrp	x8, _PG_DIAG_MESSAGE_HINT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PG_DIAG_MESSAGE_HINT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PQresultErrorField
	mov	x24, x0
Lloh12:
	adrp	x8, _PG_DIAG_CONTEXT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PG_DIAG_CONTEXT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PQresultErrorField
	mov	x23, x0
	cbz	x28, LBB0_3
; %bb.1:
	ldrsb	w0, [x28]
	ldrsb	w1, [x28, #1]
	ldrsb	w2, [x28, #2]
	ldrsb	w3, [x28, #3]
	ldrsb	w4, [x28, #4]
	bl	_MAKE_SQLSTATE
	mov	x28, x0
	cbz	x27, LBB0_4
LBB0_2:
	mov	x0, x28
	bl	_errcode
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _ERRCODE_CONNECTION_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_CONNECTION_FAILURE@GOTPAGEOFF]
Lloh17:
	ldr	w28, [x8]
	cbnz	x27, LBB0_2
LBB0_4:
	mov	x0, x26
	bl	_PQerrorMessage
	bl	_pchomp
	mov	x27, x0
	mov	x0, x28
	bl	_errcode
	cbz	x27, LBB0_17
LBB0_5:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x27
	bl	_errmsg_internal
	cbz	x25, LBB0_7
LBB0_6:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	bl	_errdetail_internal
LBB0_7:
	cbz	x24, LBB0_9
; %bb.8:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_errhint
LBB0_9:
	cbz	x23, LBB0_11
; %bb.10:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_errcontext
LBB0_11:
	cbz	x22, LBB0_13
; %bb.12:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_errcontext
	mov	x1, x0
	b	LBB0_14
LBB0_13:
	mov	w1, #0
LBB0_14:
	mov	x0, x21
	bl	_ereport
	bl	_PG_FINALLY
	cbz	w20, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_PQclear
LBB0_16:
	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
	b	_PG_END_TRY
LBB0_17:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	cbnz	x25, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_DIAG_SQLSTATE,4,2           ; @PG_DIAG_SQLSTATE
	.comm	_PG_DIAG_MESSAGE_PRIMARY,4,2    ; @PG_DIAG_MESSAGE_PRIMARY
	.comm	_PG_DIAG_MESSAGE_DETAIL,4,2     ; @PG_DIAG_MESSAGE_DETAIL
	.comm	_PG_DIAG_MESSAGE_HINT,4,2       ; @PG_DIAG_MESSAGE_HINT
	.comm	_PG_DIAG_CONTEXT,4,2            ; @PG_DIAG_CONTEXT
	.comm	_ERRCODE_CONNECTION_FAILURE,4,2 ; @ERRCODE_CONNECTION_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"could not obtain message string for remote error"

l_.str.2:                               ; @.str.2
	.asciz	"remote SQL command: %s"

.subsections_via_symbols
