	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ProcArrayGroupClearXid
_ProcArrayGroupClearXid:                ## @ProcArrayGroupClearXid
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_ProcGlobal@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_allPgXact@GOTPCREL(%rip), %rax
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	$1, 8(%r13)
	movl	%r15d, 20(%r13)
	movq	%r14, %rdi
	callq	_pg_atomic_read_u32
	movq	%rax, %rsi
	movq	%rax, -56(%rbp)
	leaq	16(%r13), %r15
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_pg_atomic_write_u32
	movq	(%r13), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_pg_atomic_compare_exchange_u32
	movq	-56(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_INVALID_PGPROCNO@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rsi
	jne	LBB0_3
## %bb.8:
	movq	_ProcArrayLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_pg_atomic_exchange_u32
	movq	%rax, -56(%rbp)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	(%r12), %rax
	je	LBB0_11
## %bb.9:
	movq	%rbx, %r14
	movq	_allProcs@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rbx
	leaq	(%rax,%rax,2), %r15
	leaq	(%rbx,%r15,8), %rdi
	shlq	$2, %rax
	addq	(%r14), %rax
	movl	20(%rbx,%r15,8), %edx
	movq	%rax, %rsi
	callq	_ProcArrayEndTransactionInternal
	leaq	(%rbx,%r15,8), %rdi
	addq	$16, %rdi
	callq	_pg_atomic_read_u32
	movq	%rax, -56(%rbp)
	cmpq	(%r12), %rax
	jne	LBB0_10
LBB0_11:
	movq	_ProcArrayLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_INVALID_PGPROCNO@GOTPCREL(%rip), %r12
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%r12), %rax
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_allProcs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	leaq	(%rax,%rax,2), %r13
	movq	%r12, %rbx
	leaq	(%r15,%r13,8), %r12
	leaq	(%r15,%r13,8), %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_pg_atomic_read_u32
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_pg_atomic_write_u32
	xorl	%eax, %eax
	callq	_pg_write_barrier
	movl	$0, 8(%r15,%r13,8)
	movq	_MyProc@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	12(%r15,%r13,8), %edi
	callq	_PGSemaphoreUnlock
	jmp	LBB0_15
LBB0_3:
	movq	_WAIT_EVENT_PROCARRAY_GROUP_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgstat_report_wait_start
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r13), %edi
	callq	_PGSemaphoreLock
	incl	%ebx
	cmpl	$0, 8(%r13)
	jne	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_pgstat_report_wait_end
	movq	%r15, %rdi
	callq	_pg_atomic_read_u32
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_Assert
	cmpl	$1, %ebx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r13), %edi
	callq	_PGSemaphoreUnlock
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ProcGlobal,8,3                 ## @ProcGlobal
	.comm	_allPgXact,8,3                  ## @allPgXact
	.comm	_INVALID_PGPROCNO,8,3           ## @INVALID_PGPROCNO
	.comm	_WAIT_EVENT_PROCARRAY_GROUP_UPDATE,4,2 ## @WAIT_EVENT_PROCARRAY_GROUP_UPDATE
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_allProcs,8,3                   ## @allProcs
	.comm	_MyProc,8,3                     ## @MyProc
	.no_dead_strip	_ProcArrayGroupClearXid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ProcArrayGroupClearXid
_ProcArrayGroupClearXid:                ; @ProcArrayGroupClearXid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ProcGlobal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ProcGlobal@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x23, _allPgXact@GOTPAGE
Lloh4:
	ldr	x23, [x23, _allPgXact@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x0]
	ldr	w0, [x8, x9, lsl #2]
	bl	_TransactionIdIsValid
	bl	_Assert
	mov	w8, #1
	str	w8, [x19, #8]
	str	w21, [x19, #20]
	mov	x0, x20
	bl	_pg_atomic_read_u32
	mov	x1, x0
	str	x0, [sp, #8]
	add	x21, x19, #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_pg_atomic_write_u32
	ldr	x2, [x19]
	add	x1, sp, #8
	mov	x0, x20
	bl	_pg_atomic_compare_exchange_u32
	ldr	x1, [sp, #8]
	cbz	x0, LBB0_1
; %bb.2:
Lloh5:
	adrp	x22, _INVALID_PGPROCNO@GOTPAGE
Lloh6:
	ldr	x22, [x22, _INVALID_PGPROCNO@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x1, x8
	b.ne	LBB0_11
; %bb.3:
Lloh7:
	adrp	x21, _ProcArrayLock@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ProcArrayLock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh9:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x1, [x22]
	mov	x0, x20
	bl	_pg_atomic_exchange_u32
	mov	x19, x0
	str	x0, [sp, #8]
	ldr	x8, [x22]
Lloh12:
	adrp	x24, _allProcs@GOTPAGE
Lloh13:
	ldr	x24, [x24, _allProcs@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.4:
	mov	w25, #24
	mov	x0, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	madd	x20, x0, x25, x8
	ldr	x8, [x23]
	add	x1, x8, x0, lsl #2
	ldr	w2, [x20, #20]
	mov	x0, x20
	bl	_ProcArrayEndTransactionInternal
	add	x0, x20, #16
	bl	_pg_atomic_read_u32
	str	x0, [sp, #8]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_6:
	ldr	w0, [x21]
	bl	_LWLockRelease
	ldr	x8, [x22]
	cmp	x19, x8
	b.eq	LBB0_15
; %bb.7:
	mov	w23, #24
Lloh14:
	adrp	x25, _MyProc@GOTPAGE
Lloh15:
	ldr	x25, [x25, _MyProc@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x22]
	mov	x19, x20
	cmp	x20, x8
	b.eq	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x24]
	madd	x27, x19, x23, x26
	add	x21, x27, #16
	mov	x0, x21
	bl	_pg_atomic_read_u32
	mov	x20, x0
	ldr	x1, [x22]
	mov	x0, x21
	bl	_pg_atomic_write_u32
	bl	_pg_write_barrier
	str	wzr, [x27, #8]
	ldr	x8, [x25]
	cmp	x27, x8
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	madd	x8, x19, x23, x26
	ldr	w0, [x8, #12]
	bl	_PGSemaphoreUnlock
	b	LBB0_8
LBB0_11:
Lloh16:
	adrp	x8, _WAIT_EVENT_PROCARRAY_GROUP_UPDATE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WAIT_EVENT_PROCARRAY_GROUP_UPDATE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_pgstat_report_wait_start
	mov	w20, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	bl	_PGSemaphoreLock
	ldr	w8, [x19, #8]
	add	w20, w20, #1
	cbnz	w8, LBB0_12
; %bb.13:
	bl	_pgstat_report_wait_end
	mov	x0, x21
	bl	_pg_atomic_read_u32
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_Assert
	cmp	w20, #1
	b.eq	LBB0_15
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	bl	_PGSemaphoreUnlock
	sub	w20, w20, #1
	cmp	w20, #1
	b.gt	LBB0_14
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ProcGlobal,8,3                 ; @ProcGlobal
	.comm	_allPgXact,8,3                  ; @allPgXact
	.comm	_INVALID_PGPROCNO,8,3           ; @INVALID_PGPROCNO
	.comm	_WAIT_EVENT_PROCARRAY_GROUP_UPDATE,4,2 ; @WAIT_EVENT_PROCARRAY_GROUP_UPDATE
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_allProcs,8,3                   ; @allProcs
	.comm	_MyProc,8,3                     ; @MyProc
	.no_dead_strip	_ProcArrayGroupClearXid
.subsections_via_symbols
