	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgfdw_exec_cleanup_query
_pgfdw_exec_cleanup_query:              ## @pgfdw_exec_cleanup_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movl	%eax, %edi
	movl	$30000, %esi                    ## imm = 0x7530
	callq	_TimestampTzPlusMilliseconds
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_PQsendQuery
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_pgfdw_get_cleanup_result
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	-48(%rbp), %rdi
	callq	_PQresultStatus
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rdi
	callq	_PQclear
	movl	$1, %r12d
	jmp	LBB0_6
LBB0_1:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_pgfdw_report_error
	jmp	LBB0_6
LBB0_4:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	movq	%r14, %r8
	callq	_pgfdw_report_error
	movl	%r15d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WARNING,4,2                    ## @WARNING
	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
	.no_dead_strip	_pgfdw_exec_cleanup_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgfdw_exec_cleanup_query
_pgfdw_exec_cleanup_query:              ; @pgfdw_exec_cleanup_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	bl	_GetCurrentTimestamp
	mov	w1, #30000
	bl	_TimestampTzPlusMilliseconds
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_PQsendQuery
	cbz	w0, LBB0_3
; %bb.1:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_pgfdw_get_cleanup_result
	cbz	x0, LBB0_4
; %bb.2:
	mov	w19, #0
	b	LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, x21
	mov	w3, #0
	mov	x4, x20
	bl	_pgfdw_report_error
	mov	w19, #0
	b	LBB0_7
LBB0_4:
	ldr	x0, [sp, #8]
	bl	_PQresultStatus
Lloh3:
	adrp	x8, _PGRES_COMMAND_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [sp, #8]
	bl	_PQclear
	mov	w19, #1
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]
	mov	x2, x21
	mov	w3, #1
	mov	x4, x20
	bl	_pgfdw_report_error
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WARNING,4,2                    ; @WARNING
	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
	.no_dead_strip	_pgfdw_exec_cleanup_query
.subsections_via_symbols
