	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MultiXactIdSetOldestVisible
_MultiXactIdSetOldestVisible:           ## @MultiXactIdSetOldestVisible
	.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
	movq	_OldestVisibleMXactId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MyBackendId@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_MultiXactIdIsValid
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_MultiXactGenLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_MultiXactState@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_FirstMultiXactId@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	cmpq	%r14, %rax
	cmovgq	%rax, %r14
	movq	_MaxOldestSlot@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.2:
	xorl	%r12d, %r12d
	movq	_OldestMemberMXactId@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13), %rax
	incq	%r12
	cmpq	%rax, %r12
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	8(%rax,%r12,8), %rbx
	movq	%rbx, %rdi
	callq	_MultiXactIdIsValid
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_MultiXactIdPrecedes
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r14
	jmp	LBB0_6
LBB0_7:
	movq	_OldestVisibleMXactId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MyBackendId@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	%r14, (%rax,%rcx,8)
	movq	_MultiXactGenLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debug_elog4                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OldestVisibleMXactId,8,3       ## @OldestVisibleMXactId
	.comm	_MyBackendId,8,3                ## @MyBackendId
	.comm	_MultiXactGenLock,4,2           ## @MultiXactGenLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_MultiXactState,8,3             ## @MultiXactState
	.comm	_FirstMultiXactId,8,3           ## @FirstMultiXactId
	.comm	_MaxOldestSlot,4,2              ## @MaxOldestSlot
	.comm	_OldestMemberMXactId,8,3        ## @OldestMemberMXactId
	.comm	_DEBUG2,4,2                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MultiXact: setting OldestVisible[%d] = %u"

	.no_dead_strip	_MultiXactIdSetOldestVisible
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MultiXactIdSetOldestVisible
_MultiXactIdSetOldestVisible:           ; @MultiXactIdSetOldestVisible
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x22, _OldestVisibleMXactId@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OldestVisibleMXactId@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x21, _MyBackendId@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MyBackendId@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	bl	_MultiXactIdIsValid
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh4:
	adrp	x23, _MultiXactGenLock@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MultiXactGenLock@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh6:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh9:
	adrp	x8, _MultiXactState@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MultiXactState@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _FirstMultiXactId@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FirstMultiXactId@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x19, x8, x9, gt
Lloh15:
	adrp	x24, _MaxOldestSlot@GOTPAGE
Lloh16:
	ldr	x24, [x24, _MaxOldestSlot@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x25, #0
Lloh17:
	adrp	x26, _OldestMemberMXactId@GOTPAGE
Lloh18:
	ldr	x26, [x26, _OldestMemberMXactId@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x24]
	add	x25, x25, #1
	cmp	x25, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x8, x8, x25, lsl #3
	ldr	x20, [x8, #8]
	mov	x0, x20
	bl	_MultiXactIdIsValid
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_MultiXactIdPrecedes
	cmp	x0, #0
	csel	x19, x19, x20, eq
	b	LBB0_4
LBB0_7:
	ldr	x8, [x22]
	ldr	x9, [x21]
	str	x19, [x8, x9, lsl #3]
	ldr	w0, [x23]
	bl	_LWLockRelease
Lloh19:
	adrp	x8, _DEBUG2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x2, [x21]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_debug_elog4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_OldestVisibleMXactId,8,3       ; @OldestVisibleMXactId
	.comm	_MyBackendId,8,3                ; @MyBackendId
	.comm	_MultiXactGenLock,4,2           ; @MultiXactGenLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_MultiXactState,8,3             ; @MultiXactState
	.comm	_FirstMultiXactId,8,3           ; @FirstMultiXactId
	.comm	_MaxOldestSlot,4,2              ; @MaxOldestSlot
	.comm	_OldestMemberMXactId,8,3        ; @OldestMemberMXactId
	.comm	_DEBUG2,4,2                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MultiXact: setting OldestVisible[%d] = %u"

	.no_dead_strip	_MultiXactIdSetOldestVisible
.subsections_via_symbols
