	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_start_backup_callback
_pg_start_backup_callback:              ## @pg_start_backup_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %edi
	callq	_DatumGetBool
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_WALInsertLockAcquireExclusive
	movq	_XLogCtl@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movq	_EXCLUSIVE_BACKUP_STARTING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	_EXCLUSIVE_BACKUP_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r14), %rax
	movq	%rcx, (%rax)
	jmp	LBB0_3
LBB0_2:
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	setg	%dil
	callq	_Assert
	movq	(%r14), %rax
	decq	8(%rax)
	movq	(%rax), %rcx
LBB0_3:
	movq	_EXCLUSIVE_BACKUP_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 8(%rax)
	jne	LBB0_6
## %bb.5:
	movl	$0, 16(%rax)
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WALInsertLockRelease           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XLogCtl,8,3                    ## @XLogCtl
	.comm	_EXCLUSIVE_BACKUP_STARTING,8,3  ## @EXCLUSIVE_BACKUP_STARTING
	.comm	_EXCLUSIVE_BACKUP_NONE,8,3      ## @EXCLUSIVE_BACKUP_NONE
	.no_dead_strip	_pg_start_backup_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_start_backup_callback
_pg_start_backup_callback:              ; @pg_start_backup_callback
	.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
	mov	x0, x1
	bl	_DatumGetBool
	mov	x19, x0
	bl	_WALInsertLockAcquireExclusive
Lloh0:
	adrp	x21, _XLogCtl@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XLogCtl@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x20, _EXCLUSIVE_BACKUP_NONE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _EXCLUSIVE_BACKUP_NONE@GOTPAGEOFF]
	cbz	w19, LBB0_2
; %bb.1:
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _EXCLUSIVE_BACKUP_STARTING@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EXCLUSIVE_BACKUP_STARTING@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x9, [x20]
	ldr	x8, [x21]
	str	x9, [x8]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x21]
	ldp	x9, x10, [x8]
	sub	x10, x10, #1
	str	x10, [x8, #8]
LBB0_3:
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_6
; %bb.5:
	str	wzr, [x8, #16]
LBB0_6:
	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	_WALInsertLockRelease
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_XLogCtl,8,3                    ; @XLogCtl
	.comm	_EXCLUSIVE_BACKUP_STARTING,8,3  ; @EXCLUSIVE_BACKUP_STARTING
	.comm	_EXCLUSIVE_BACKUP_NONE,8,3      ; @EXCLUSIVE_BACKUP_NONE
	.no_dead_strip	_pg_start_backup_callback
.subsections_via_symbols
