	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_progress_end_command    ## -- Begin function pgstat_progress_end_command
	.p2align	4, 0x90
_pgstat_progress_end_command:           ## @pgstat_progress_end_command
	.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	_MyBEEntry@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	_pgstat_track_activities@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	_PROGRESS_COMMAND_INVALID@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_PGSTAT_BEGIN_WRITE_ACTIVITY
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PGSTAT_END_WRITE_ACTIVITY      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyBEEntry,8,3                  ## @MyBEEntry
	.comm	_pgstat_track_activities,4,2    ## @pgstat_track_activities
	.comm	_PROGRESS_COMMAND_INVALID,8,3   ## @PROGRESS_COMMAND_INVALID
	.comm	_InvalidOid,4,2                 ## @InvalidOid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_progress_end_command    ; -- Begin function pgstat_progress_end_command
	.p2align	2
_pgstat_progress_end_command:           ; @pgstat_progress_end_command
	.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	x8, _MyBEEntry@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyBEEntry@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _pgstat_track_activities@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pgstat_track_activities@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x19, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh6:
	adrp	x20, _PROGRESS_COMMAND_INVALID@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PROGRESS_COMMAND_INVALID@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_PGSTAT_BEGIN_WRITE_ACTIVITY
	ldr	x8, [x20]
	str	x8, [x19]
Lloh8:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh9:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PGSTAT_END_WRITE_ACTIVITY
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MyBEEntry,8,3                  ; @MyBEEntry
	.comm	_pgstat_track_activities,4,2    ; @pgstat_track_activities
	.comm	_PROGRESS_COMMAND_INVALID,8,3   ; @PROGRESS_COMMAND_INVALID
	.comm	_InvalidOid,4,2                 ; @InvalidOid
.subsections_via_symbols
