	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ResolveRecoveryConflictWithVirtualXIDs
_ResolveRecoveryConflictWithVirtualXIDs: ## @ResolveRecoveryConflictWithVirtualXIDs
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_VirtualTransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	callq	_VirtualTransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	_update_process_title@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rbx), %edi
	addq	$4, %rbx
	callq	_VirtualTransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_STANDBY_INITIAL_WAIT_US@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_standbyWait_us@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_VirtualXactLock
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	testq	%r12, %r12
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	$500, %edx                      ## imm = 0x1F4
	callq	_TimestampDifferenceExceeds
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	-44(%rbp), %rdi
	callq	_get_ps_display
	movq	%rax, %r13
	movl	-44(%rbp), %edi
	addl	$9, %edi
	callq	_palloc
	movq	%rax, %r12
	movl	-44(%rbp), %edx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_memcpy
	movslq	-44(%rbp), %rdi
	addq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_set_ps_display
	movslq	-44(%rbp), %rax
	movb	$0, (%r12,%rax)
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	callq	_WaitExceedsMaxStandbyDelay
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rbx), %edi
	callq	_VirtualTransactionIdIsValid
	movq	%rax, %rdi
	callq	_Assert
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_CancelVirtualTransaction
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$5000, %edi                     ## imm = 0x1388
	callq	_pg_usleep
	jmp	LBB0_4
LBB0_14:
	testq	%r12, %r12
	je	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_set_ps_display
	movq	%r12, %rdi
	callq	_pfree
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STANDBY_INITIAL_WAIT_US,4,2    ## @STANDBY_INITIAL_WAIT_US
	.comm	_standbyWait_us,4,2             ## @standbyWait_us
	.comm	_update_process_title,8,3       ## @update_process_title
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" waiting"

	.no_dead_strip	_ResolveRecoveryConflictWithVirtualXIDs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ResolveRecoveryConflictWithVirtualXIDs
_ResolveRecoveryConflictWithVirtualXIDs: ; @ResolveRecoveryConflictWithVirtualXIDs
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_VirtualTransactionIdIsValid
	cbz	x0, LBB0_15
; %bb.1:
	bl	_GetCurrentTimestamp
	mov	x21, x0
	ldr	w0, [x20]
	bl	_VirtualTransactionIdIsValid
	cbz	x0, LBB0_15
; %bb.2:
	mov	x23, #0
Lloh0:
	adrp	x25, _STANDBY_INITIAL_WAIT_US@GOTPAGE
Lloh1:
	ldr	x25, [x25, _STANDBY_INITIAL_WAIT_US@GOTPAGEOFF]
Lloh2:
	adrp	x26, _standbyWait_us@GOTPAGE
Lloh3:
	ldr	x26, [x26, _standbyWait_us@GOTPAGEOFF]
Lloh4:
	adrp	x27, _update_process_title@GOTPAGE
Lloh5:
	ldr	x27, [x27, _update_process_title@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #4]!
	bl	_VirtualTransactionIdIsValid
	cbz	x0, LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [x25]
	str	w8, [x26]
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x20]
	mov	w1, #0
	bl	_VirtualXactLock
	cbnz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x27]
	cmp	x8, #0
	ccmp	x23, #0, #0, ne
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	bl	_GetCurrentTimestamp
	mov	x1, x0
	mov	x0, x21
	mov	w2, #500
	bl	_TimestampDifferenceExceeds
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x0, sp, #12
	bl	_get_ps_display
	mov	x24, x0
	ldr	w8, [sp, #12]
	add	w0, w8, #9
	bl	_palloc
	mov	x23, x0
	ldr	w2, [sp, #12]
	mov	x1, x24
	bl	_memcpy
	ldrsw	x8, [sp, #12]
	add	x0, x23, x8
	mov	x1, x22
	bl	_strcpy
	mov	x0, x23
	mov	w1, #0
	bl	_set_ps_display
	ldrsw	x8, [sp, #12]
	strb	wzr, [x23, x8]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	bl	_WaitExceedsMaxStandbyDelay
	cbz	x0, LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w0, [x20]
	bl	_VirtualTransactionIdIsValid
	bl	_Assert
	ldr	w0, [x20]
	mov	x1, x19
	bl	_CancelVirtualTransaction
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	w0, #5000
	bl	_pg_usleep
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x23, #0
	bl	_WaitExceedsMaxStandbyDelay
	cbnz	x0, LBB0_10
	b	LBB0_5
LBB0_13:
	cbz	x23, LBB0_15
; %bb.14:
	mov	x0, x23
	mov	w1, #0
	bl	_set_ps_display
	mov	x0, x23
	bl	_pfree
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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STANDBY_INITIAL_WAIT_US,4,2    ; @STANDBY_INITIAL_WAIT_US
	.comm	_standbyWait_us,4,2             ; @standbyWait_us
	.comm	_update_process_title,8,3       ; @update_process_title
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" waiting"

	.no_dead_strip	_ResolveRecoveryConflictWithVirtualXIDs
.subsections_via_symbols
