	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExtendMultiXactMember
_ExtendMultiXactMember:                 ## @ExtendMultiXactMember
	.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
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_MultiXactMemberControlLock@GOTPCREL(%rip), %r12
	movq	_MAX_MEMBERS_IN_LAST_MEMBERS_PAGE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r13)
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MULTIXACT_MEMBERS_PER_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	subl	%edx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%ecx, %ebx
	subl	%ecx, %r14d
	jle	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_MXOffsetToFlagsOffset
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_MXOffsetToFlagsBitShift
	orl	%r15d, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_MXOffsetToMemberPage
	movl	%eax, %r15d
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_ZeroMultiXactMemberPage
	movl	(%r12), %edi
	callq	_LWLockRelease
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MaxMultiXactOffset@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subl	%ebx, %ecx
	incl	%ecx
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MultiXactMemberControlLock,4,2 ## @MultiXactMemberControlLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_MAX_MEMBERS_IN_LAST_MEMBERS_PAGE,4,2 ## @MAX_MEMBERS_IN_LAST_MEMBERS_PAGE
	.comm	_MaxMultiXactOffset,4,2         ## @MaxMultiXactOffset
	.comm	_MULTIXACT_MEMBERS_PER_PAGE,4,2 ## @MULTIXACT_MEMBERS_PER_PAGE
	.no_dead_strip	_ExtendMultiXactMember
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExtendMultiXactMember
_ExtendMultiXactMember:                 ; @ExtendMultiXactMember
	.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
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MultiXactMemberControlLock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MultiXactMemberControlLock@GOTPAGEOFF]
Lloh2:
	adrp	x23, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _MAX_MEMBERS_IN_LAST_MEMBERS_PAGE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MAX_MEMBERS_IN_LAST_MEMBERS_PAGE@GOTPAGEOFF]
Lloh6:
	adrp	x25, _MaxMultiXactOffset@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MaxMultiXactOffset@GOTPAGEOFF]
Lloh8:
	adrp	x26, _MULTIXACT_MEMBERS_PER_PAGE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MULTIXACT_MEMBERS_PER_PAGE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	sdiv	w9, w20, w8
	neg	w10, w20
	madd	w9, w9, w8, w10
	add	w8, w8, w9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w19, w19, w8
	add	w20, w8, w20
	cmp	w19, #0
	b.le	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_MXOffsetToFlagsOffset
	mov	x21, x0
	mov	x0, x20
	bl	_MXOffsetToFlagsBitShift
	orr	w8, w21, w0
	cbnz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_MXOffsetToMemberPage
	mov	x21, x0
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_LWLockAcquire
	mov	x0, x21
	mov	w1, #1
	bl	_ZeroMultiXactMemberPage
	ldr	w0, [x22]
	bl	_LWLockRelease
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	sub	w8, w8, w20
	add	w8, w8, #1
	b	LBB0_4
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MultiXactMemberControlLock,4,2 ; @MultiXactMemberControlLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_MAX_MEMBERS_IN_LAST_MEMBERS_PAGE,4,2 ; @MAX_MEMBERS_IN_LAST_MEMBERS_PAGE
	.comm	_MaxMultiXactOffset,4,2         ; @MaxMultiXactOffset
	.comm	_MULTIXACT_MEMBERS_PER_PAGE,4,2 ; @MULTIXACT_MEMBERS_PER_PAGE
	.no_dead_strip	_ExtendMultiXactMember
.subsections_via_symbols
