	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_pg_abort_backup             ## -- Begin function do_pg_abort_backup
	.p2align	4, 0x90
_do_pg_abort_backup:                    ## @do_pg_abort_backup
	.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
	movq	_sessionBackupState@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_SESSION_BACKUP_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_WALInsertLockAcquireExclusive
	movq	_XLogCtl@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setg	%dil
	callq	_Assert
	movq	(%rbx), %rax
	movq	_SESSION_BACKUP_NON_EXCLUSIVE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	decq	%rcx
	movq	%rcx, (%rax)
	movq	_EXCLUSIVE_BACKUP_NONE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.2:
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:
	movl	$0, 16(%rax)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WALInsertLockRelease           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sessionBackupState,8,3         ## @sessionBackupState
	.comm	_SESSION_BACKUP_NONE,8,3        ## @SESSION_BACKUP_NONE
	.comm	_XLogCtl,8,3                    ## @XLogCtl
	.comm	_SESSION_BACKUP_NON_EXCLUSIVE,8,3 ## @SESSION_BACKUP_NON_EXCLUSIVE
	.comm	_EXCLUSIVE_BACKUP_NONE,8,3      ## @EXCLUSIVE_BACKUP_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_pg_abort_backup             ; -- Begin function do_pg_abort_backup
	.p2align	2
_do_pg_abort_backup:                    ; @do_pg_abort_backup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _sessionBackupState@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sessionBackupState@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _SESSION_BACKUP_NONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SESSION_BACKUP_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_WALInsertLockAcquireExclusive
Lloh5:
	adrp	x20, _XLogCtl@GOTPAGE
Lloh6:
	ldr	x20, [x20, _XLogCtl@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _SESSION_BACKUP_NON_EXCLUSIVE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SESSION_BACKUP_NON_EXCLUSIVE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20]
	ldp	x9, x10, [x8]
	sub	x9, x9, #1
	str	x9, [x8]
Lloh10:
	adrp	x11, _EXCLUSIVE_BACKUP_NONE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _EXCLUSIVE_BACKUP_NONE@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	cmp	x10, x11
	ccmp	x9, #0, #0, eq
	b.ne	LBB0_4
; %bb.3:
	str	wzr, [x8, #16]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WALInsertLockRelease
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_sessionBackupState,8,3         ; @sessionBackupState
	.comm	_SESSION_BACKUP_NONE,8,3        ; @SESSION_BACKUP_NONE
	.comm	_XLogCtl,8,3                    ; @XLogCtl
	.comm	_SESSION_BACKUP_NON_EXCLUSIVE,8,3 ; @SESSION_BACKUP_NON_EXCLUSIVE
	.comm	_EXCLUSIVE_BACKUP_NONE,8,3      ; @EXCLUSIVE_BACKUP_NONE
.subsections_via_symbols
