	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgfdw_cancel_query
_pgfdw_cancel_query:                    ## @pgfdw_cancel_query
	.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	%r12
	pushq	%rbx
	subq	$288, %rsp                      ## imm = 0x120
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -312(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movl	%eax, %edi
	movl	$30000, %esi                    ## imm = 0x7530
	callq	_TimestampTzPlusMilliseconds
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_PQgetCancel
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	leaq	-304(%rbp), %rsi
	movq	%rax, %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	_PQcancel
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_PQfreeCancel
LBB0_4:
	leaq	-312(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_pgfdw_get_cleanup_result
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	-312(%rbp), %rdi
	callq	_PQclear
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_2:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_CONNECTION_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	leaq	-304(%rbp), %rsi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	%rbx, %rdi
	callq	_PQfreeCancel
	xorl	%r14d, %r14d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$288, %rsp                      ## imm = 0x120
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WARNING,4,2                    ## @WARNING
	.comm	_ERRCODE_CONNECTION_FAILURE,4,2 ## @ERRCODE_CONNECTION_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not send cancel request: %s"

	.no_dead_strip	_pgfdw_cancel_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgfdw_cancel_query
_pgfdw_cancel_query:                    ; @pgfdw_cancel_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp]
	bl	_GetCurrentTimestamp
	mov	w1, #30000
	bl	_TimestampTzPlusMilliseconds
	mov	x21, x0
	mov	x0, x19
	bl	_PQgetCancel
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x1, sp, #8
	mov	w2, #256
	bl	_PQcancel
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_PQfreeCancel
LBB0_3:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_pgfdw_get_cleanup_result
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	x0, [sp]
	bl	_PQclear
	mov	w0, #1
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
Lloh6:
	adrp	x8, _ERRCODE_CONNECTION_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_CONNECTION_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	mov	x0, x20
	bl	_PQfreeCancel
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WARNING,4,2                    ; @WARNING
	.comm	_ERRCODE_CONNECTION_FAILURE,4,2 ; @ERRCODE_CONNECTION_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not send cancel request: %s"

	.no_dead_strip	_pgfdw_cancel_query
.subsections_via_symbols
