	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgfdw_reject_incomplete_xact_state_change
_pgfdw_reject_incomplete_xact_state_change: ## @pgfdw_reject_incomplete_xact_state_change
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_disconnect_pg_server
	movq	_USERMAPPINGOID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %edi
	callq	_ObjectIdGetDatum
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_4:
	movl	%r14d, %edi
	callq	_GETSTRUCT
	movl	(%rax), %edi
	callq	_GetForeignServer
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_ReleaseSysCache
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_CONNECTION_EXCEPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USERMAPPINGOID,4,2             ## @USERMAPPINGOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for user mapping %u"

	.comm	_ERRCODE_CONNECTION_EXCEPTION,4,2 ## @ERRCODE_CONNECTION_EXCEPTION
L_.str.1:                               ## @.str.1
	.asciz	"connection to server \"%s\" was lost"

	.no_dead_strip	_pgfdw_reject_incomplete_xact_state_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgfdw_reject_incomplete_xact_state_change
_pgfdw_reject_incomplete_xact_state_change: ; @pgfdw_reject_incomplete_xact_state_change
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_disconnect_pg_server
Lloh0:
	adrp	x8, _USERMAPPINGOID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USERMAPPINGOID@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x20
	bl	_SearchSysCache1
	mov	x20, x0
	bl	_HeapTupleIsValid
Lloh3:
	adrp	x21, _ERROR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ERROR@GOTPAGEOFF]
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	ldr	w2, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_4:
	mov	x0, x20
	bl	_GETSTRUCT
	ldr	w0, [x0]
	bl	_GetForeignServer
	mov	x19, x0
	mov	x0, x20
	bl	_ReleaseSysCache
	ldr	w20, [x21]
Lloh7:
	adrp	x8, _ERRCODE_CONNECTION_EXCEPTION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERRCODE_CONNECTION_EXCEPTION@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x19]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ereport
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_USERMAPPINGOID,4,2             ; @USERMAPPINGOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for user mapping %u"

	.comm	_ERRCODE_CONNECTION_EXCEPTION,4,2 ; @ERRCODE_CONNECTION_EXCEPTION
l_.str.1:                               ; @.str.1
	.asciz	"connection to server \"%s\" was lost"

	.no_dead_strip	_pgfdw_reject_incomplete_xact_state_change
.subsections_via_symbols
