	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgfdw_subxact_callback
_pgfdw_subxact_callback:                ## @pgfdw_subxact_callback
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SUBXACT_EVENT_PRE_COMMIT_SUB@GOTPCREL(%rip), %r13
	cmpq	%rdi, (%r13)
	setne	%al
	movq	_SUBXACT_EVENT_ABORT_SUB@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	setne	%cl
	testb	%cl, %al
	jne	LBB0_20
## %bb.1:
	movq	_xact_got_connection@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.2:
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_GetCurrentTransactionNestLevel
	movl	%eax, %r15d
	movq	_ConnectionHash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-164(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_hash_seq_init
	movq	%rbx, %rdi
	callq	_hash_seq_search
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:
	movq	%rax, %rbx
	leaq	-164(%rbp), %r12
	jmp	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_pgfdw_reject_incomplete_xact_state_change
	movq	%r14, %r12
	movq	%r13, %r14
	leaq	-160(%rbp), %r13
	movq	%r13, %rdi
	movl	$100, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movl	$1, 4(%rbx)
	movq	16(%rbx), %rdi
	movq	%r13, %rsi
	movq	%r14, %r13
	movq	%r12, %r14
	leaq	-164(%rbp), %r12
	callq	_do_sql_command
	movl	$0, 4(%rbx)
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	decl	(%rbx)
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_hash_seq_search
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_20
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edx
	cmpl	%r15d, %edx
	jl	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r14, (%r13)
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_in_error_recursion_trouble
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, 4(%rbx)
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, 4(%rbx)
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%rbx)
	movq	16(%rbx), %rdi
	callq	_PQtransactionStatus
	movq	_PQTRANS_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rdi
	callq	_pgfdw_cancel_query
	testl	%eax, %eax
	je	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %r12
	movq	%r13, %r14
	leaq	-160(%rbp), %r13
	movq	%r13, %rdi
	movl	$100, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r15d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	movq	16(%rbx), %rdi
	movq	%r13, %rsi
	movq	%r14, %r13
	movq	%r12, %r14
	leaq	-164(%rbp), %r12
	xorl	%edx, %edx
	callq	_pgfdw_exec_cleanup_query
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, 4(%rbx)
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %ecx
	jmp	LBB0_17
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SUBXACT_EVENT_PRE_COMMIT_SUB,8,3 ## @SUBXACT_EVENT_PRE_COMMIT_SUB
	.comm	_SUBXACT_EVENT_ABORT_SUB,8,3    ## @SUBXACT_EVENT_ABORT_SUB
	.comm	_xact_got_connection,4,2        ## @xact_got_connection
	.comm	_ConnectionHash,4,2             ## @ConnectionHash
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missed cleaning up remote subtransaction at level %d"

L_.str.1:                               ## @.str.1
	.asciz	"RELEASE SAVEPOINT s%d"

	.comm	_PQTRANS_ACTIVE,8,3             ## @PQTRANS_ACTIVE
L_.str.2:                               ## @.str.2
	.asciz	"ROLLBACK TO SAVEPOINT s%d; RELEASE SAVEPOINT s%d"

	.no_dead_strip	_pgfdw_subxact_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgfdw_subxact_callback
_pgfdw_subxact_callback:                ; @pgfdw_subxact_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	d9, d8, [sp, #128]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
Lloh3:
	adrp	x25, _SUBXACT_EVENT_PRE_COMMIT_SUB@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SUBXACT_EVENT_PRE_COMMIT_SUB@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh5:
	adrp	x9, _SUBXACT_EVENT_ABORT_SUB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SUBXACT_EVENT_ABORT_SUB@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x0
	ccmp	x8, x0, #4, ne
Lloh8:
	adrp	x8, _xact_got_connection@GOTPAGE
Lloh9:
	ldr	x8, [x8, _xact_got_connection@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_19
; %bb.1:
	mov	x19, x0
	bl	_GetCurrentTransactionNestLevel
	mov	x20, x0
Lloh11:
	adrp	x8, _ConnectionHash@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ConnectionHash@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_hash_seq_init
	add	x0, sp, #16
	bl	_hash_seq_search
	cbz	x0, LBB0_19
; %bb.2:
	mov	x21, x0
Lloh14:
	adrp	x26, _ERROR@GOTPAGE
Lloh15:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
Lloh16:
	adrp	x22, l_.str@PAGE
Lloh17:
	add	x22, x22, l_.str@PAGEOFF
Lloh18:
	adrp	x23, l_.str.1@PAGE
Lloh19:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	w27, #1
	movi.2s	v8, #1
Lloh20:
	adrp	x28, _PQTRANS_ACTIVE@GOTPAGE
Lloh21:
	ldr	x28, [x28, _PQTRANS_ACTIVE@GOTPAGEOFF]
Lloh22:
	adrp	x24, l_.str.2@PAGE
Lloh23:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_pgfdw_reject_incomplete_xact_state_change
	add	x0, sp, #20
	mov	w1, #100
	mov	x2, x23
	mov	x3, x20
	bl	_snprintf
	str	w27, [x21, #4]
	ldr	x0, [x21, #16]
	add	x1, sp, #20
	bl	_do_sql_command
	str	wzr, [x21, #4]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #16
	bl	_hash_seq_search
	mov	x21, x0
	cbz	x0, LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x21]
	cmp	w2, w20
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	b.le	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x26]
	mov	x1, x22
	bl	_elog
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	cmp	x8, x19
	b.eq	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_in_error_recursion_trouble
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w27, [x21, #4]
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21, #4]
	cbnz	w8, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	stur	d8, [x21, #4]
	ldr	x0, [x21, #16]
	bl	_PQtransactionStatus
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x21, #16]
	bl	_pgfdw_cancel_query
	cbz	w0, LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x20, [sp]
	add	x0, sp, #20
	mov	w1, #100
	mov	x2, x24
	mov	x3, x20
	bl	_snprintf
	ldr	x0, [x21, #16]
	add	x1, sp, #20
	mov	w2, #0
	bl	_pgfdw_exec_cleanup_query
	cmp	w0, #0
	cset	w8, eq
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w8, [x21, #4]
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	b	LBB0_17
LBB0_19:
	ldur	x8, [x29, #-104]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #128]              ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SUBXACT_EVENT_PRE_COMMIT_SUB,8,3 ; @SUBXACT_EVENT_PRE_COMMIT_SUB
	.comm	_SUBXACT_EVENT_ABORT_SUB,8,3    ; @SUBXACT_EVENT_ABORT_SUB
	.comm	_xact_got_connection,4,2        ; @xact_got_connection
	.comm	_ConnectionHash,4,2             ; @ConnectionHash
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missed cleaning up remote subtransaction at level %d"

l_.str.1:                               ; @.str.1
	.asciz	"RELEASE SAVEPOINT s%d"

	.comm	_PQTRANS_ACTIVE,8,3             ; @PQTRANS_ACTIVE
l_.str.2:                               ; @.str.2
	.asciz	"ROLLBACK TO SAVEPOINT s%d; RELEASE SAVEPOINT s%d"

	.no_dead_strip	_pgfdw_subxact_callback
.subsections_via_symbols
