	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Do_MultiXactIdWait
_Do_MultiXactIdWait:                    ## @Do_MultiXactIdWait
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	24(%rbp), %r15
	movl	%edx, %edi
	callq	_HEAP_LOCKED_UPGRADED
	movl	$1, %r13d
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	callq	_HEAP_XMAX_IS_LOCKED_ONLY
	leaq	-72(%rbp), %rsi
	xorl	%r12d, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_GetMultiXactIdMembers
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	je	LBB0_3
## %bb.4:
	movl	%eax, %r13d
	xorl	%r15d, %r15d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	cmpq	%r15, %r13
	je	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	movl	(%rax,%r15,8), %ebx
	movl	4(%rax,%r15,8), %r14d
	movl	%r14d, %edi
	callq	_TransactionIdIsCurrentTransactionId
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_LOCKMODE_from_mxstatus
	movl	%eax, %ebx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_LOCKMODE_from_mxstatus
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DoLockModesConflict
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	callq	_ConditionalXactLockTableWait
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 24(%rbp)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	callq	_TransactionIdIsInProgress
	cmpq	$1, %rax
	sbbl	$-1, %r12d
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	16(%rbp), %ecx
	callq	_XactLockTableWait
	jmp	LBB0_14
LBB0_3:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
LBB0_15:
	movq	-72(%rbp), %rdi
	callq	_pfree
	movq	24(%rbp), %r15
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_16:
	testq	%r15, %r15
	je	LBB0_18
## %bb.17:
	movl	%r12d, (%r15)
LBB0_18:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_Do_MultiXactIdWait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Do_MultiXactIdWait
_Do_MultiXactIdWait:                    ; @Do_MultiXactIdWait
	.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, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x26, x2
	mov	x25, x1
	mov	x24, x0
	mov	x0, x2
	bl	_HEAP_LOCKED_UPGRADED
	cbz	x0, LBB0_4
LBB0_1:
	mov	w28, #0
	mov	w24, #1
	cbz	x19, LBB0_3
LBB0_2:
	str	w28, [x19]
LBB0_3:
	mov	x0, x24
	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
LBB0_4:
	mov	x0, x26
	bl	_HEAP_XMAX_IS_LOCKED_ONLY
	mov	x3, x0
	add	x1, sp, #8
	mov	x0, x24
	mov	w2, #0
	bl	_GetMultiXactIdMembers
	tbnz	w0, #31, LBB0_1
; %bb.5:
	cbz	w0, LBB0_16
; %bb.6:
	stp	w21, w20, [sp]                  ; 8-byte Folded Spill
	mov	x20, #0
	mov	w28, #0
	mov	w8, w0
	lsl	x21, x8, #3
	mov	w24, #1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w28, w28, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x20, x20, #8
	cmp	x21, x20
	b.eq	LBB0_17
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x8, x8, x20
	ldp	w27, w26, [x8]
	mov	x0, x26
	bl	_TransactionIdIsCurrentTransactionId
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x27
	bl	_LOCKMODE_from_mxstatus
	mov	x27, x0
	mov	x0, x25
	bl	_LOCKMODE_from_mxstatus
	mov	x1, x0
	mov	x0, x27
	bl	_DoLockModesConflict
	cbz	w0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	cbz	w23, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_ConditionalXactLockTableWait
	mov	x24, x0
	cbnz	w0, LBB0_8
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	x19, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x26
	bl	_TransactionIdIsInProgress
	cmp	x0, #0
	cinc	w28, w28, ne
	b	LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x22
	ldp	w2, w3, [sp]                    ; 8-byte Folded Reload
	bl	_XactLockTableWait
	b	LBB0_8
LBB0_16:
	mov	w28, #0
	mov	w24, #1
LBB0_17:
	ldr	x0, [sp, #8]
	bl	_pfree
	cbnz	x19, LBB0_2
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_Do_MultiXactIdWait
.subsections_via_symbols
