	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MultiXactIdExpand              ## -- Begin function MultiXactIdExpand
	.p2align	4, 0x90
_MultiXactIdExpand:                     ## @MultiXactIdExpand
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_MultiXactIdIsValid
	movl	%eax, %edi
	callq	_AssertArg
	movq	%r12, %rdi
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_AssertArg
	movq	_OldestMemberMXactId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MyBackendId@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_MultiXactIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_mxstatus_to_string
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_debug_elog5
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_GetMultiXactIdMembers
	testl	%eax, %eax
	js	LBB0_17
## %bb.1:
	movl	%eax, %r13d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	je	LBB0_7
## %bb.2:
	movq	%r14, %r15
	shlq	$4, %r15
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %r15
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax,%rbx), %rdi
	movq	%r12, %rsi
	callq	_TransactionIdEquals
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax,%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_debug_elog4
	movq	-48(%rbp), %rdi
	callq	_pfree
	jmp	LBB0_16
LBB0_7:
	movl	%r13d, %edi
	shll	$4, %edi
	addl	$16, %edi
	callq	_palloc
	movq	%rax, %r15
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.9:
	shlq	$4, %r14
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax,%rbx), %rax
	movslq	%r13d, %r13
	movq	%r13, %rcx
	shlq	$4, %rcx
	movq	%rax, 8(%r15,%rcx)
	movq	-48(%rbp), %rax
	movq	(%rax,%rbx), %rax
	incl	%r13d
	movq	%rax, (%r15,%rcx)
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %r14
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_TransactionIdIsInProgress
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax
	movq	(%rax,%rbx), %rdi
	callq	_ISUPDATE_from_mxstatus
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_TransactionIdDidCommit
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_17:
	movq	%r12, -72(%rbp)
	movq	%r14, -80(%rbp)
	leaq	-80(%rbp), %rsi
	movl	$1, %edi
	callq	_MultiXactIdCreateFromMembers
	movq	%rax, %rbx
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_debug_elog4
	jmp	LBB0_16
LBB0_8:
	xorl	%r13d, %r13d
LBB0_15:
	movslq	%r13d, %rdi
	movq	%rdi, %rax
	shlq	$4, %rax
	movq	%r12, 8(%r15,%rax)
	incl	%edi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%r15,%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r15, %rsi
	callq	_MultiXactIdCreateFromMembers
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	callq	_pfree
	movq	%r15, %rdi
	callq	_pfree
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_debug_elog3
LBB0_16:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OldestMemberMXactId,8,3        ## @OldestMemberMXactId
	.comm	_MyBackendId,8,3                ## @MyBackendId
	.comm	_DEBUG2,4,2                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expand: received multi %u, xid %u status %s"

L_.str.1:                               ## @.str.1
	.asciz	"Expand: %u has no members, create singleton %u"

L_.str.2:                               ## @.str.2
	.asciz	"Expand: %u is already a member of %u"

L_.str.3:                               ## @.str.3
	.asciz	"Expand: returning new multi %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MultiXactIdExpand              ; -- Begin function MultiXactIdExpand
	.p2align	2
_MultiXactIdExpand:                     ; @MultiXactIdExpand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_MultiXactIdIsValid
	bl	_AssertArg
	mov	x0, x19
	bl	_TransactionIdIsValid
	bl	_AssertArg
Lloh0:
	adrp	x8, _OldestMemberMXactId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OldestMemberMXactId@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MyBackendId@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MyBackendId@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	bl	_MultiXactIdIsValid
	bl	_Assert
Lloh6:
	adrp	x24, _DEBUG2@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DEBUG2@GOTPAGEOFF]
	ldr	w22, [x24]
	mov	x0, x20
	bl	_mxstatus_to_string
	mov	x4, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	bl	_debug_elog5
	add	x1, sp, #24
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_GetMultiXactIdMembers
	tbnz	w0, #31, LBB0_14
; %bb.1:
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.2:
	mov	x22, #0
	mov	w8, w23
	lsl	x25, x8, #4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #16
	cmp	x25, x22
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	add	x8, x8, x22
	ldr	x0, [x8, #8]
	mov	x1, x19
	bl	_TransactionIdEquals
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #24]
	ldr	x8, [x8, x22]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.6:
	ldr	w0, [x24]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_debug_elog4
	ldr	x0, [sp, #24]
	bl	_pfree
	b	LBB0_17
LBB0_7:
	lsl	w8, w23, #4
	add	w0, w8, #16
	bl	_palloc
	mov	x22, x0
	cmp	w23, #1
	b.lt	LBB0_15
; %bb.8:
	mov	x25, #0
	mov	w21, #0
	mov	w8, w23
	lsl	x23, x8, #4
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #24]
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	add	x9, x22, w21, sxtw #4
	str	x8, [x9, #8]
	ldr	x8, [sp, #24]
	ldr	x8, [x8, x25]
	add	w21, w21, #1
	str	x8, [x9]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x25, x25, #16
	cmp	x23, x25
	b.eq	LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	add	x8, x8, x25
	ldr	x0, [x8, #8]
	bl	_TransactionIdIsInProgress
	cbnz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #24]
	ldr	x0, [x8, x25]
	bl	_ISUPDATE_from_mxstatus
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #24]
	add	x8, x8, x25
	ldr	x0, [x8, #8]
	bl	_TransactionIdDidCommit
	cbnz	x0, LBB0_9
	b	LBB0_10
LBB0_14:
	stp	x20, x19, [sp, #8]
	add	x1, sp, #8
	mov	w0, #1
	bl	_MultiXactIdCreateFromMembers
	mov	x19, x0
	ldr	w0, [x24]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_debug_elog4
	mov	x21, x19
	b	LBB0_17
LBB0_15:
	mov	w21, #0
LBB0_16:
	add	x8, x22, w21, sxtw #4
	add	w0, w21, #1
	stp	x20, x19, [x8]
	mov	x1, x22
	bl	_MultiXactIdCreateFromMembers
	mov	x21, x0
	ldr	x0, [sp, #24]
	bl	_pfree
	mov	x0, x22
	bl	_pfree
	ldr	w0, [x24]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_debug_elog3
LBB0_17:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_OldestMemberMXactId,8,3        ; @OldestMemberMXactId
	.comm	_MyBackendId,8,3                ; @MyBackendId
	.comm	_DEBUG2,4,2                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expand: received multi %u, xid %u status %s"

l_.str.1:                               ; @.str.1
	.asciz	"Expand: %u has no members, create singleton %u"

l_.str.2:                               ; @.str.2
	.asciz	"Expand: %u is already a member of %u"

l_.str.3:                               ; @.str.3
	.asciz	"Expand: returning new multi %u"

.subsections_via_symbols
