	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetMultiXactIdHintBits
_GetMultiXactIdHintBits:                ## @GetMultiXactIdHintBits
	.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, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	_HEAP_XMAX_IS_MULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_LockTupleKeyShare@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	-56(%rbp), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_GetMultiXactIdMembers
	testl	%eax, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rax
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_HEAP_KEYS_UPDATED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	%r13, %r12
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%r13,4), %edi
	callq	_TUPLOCK_from_mxstatus
	cmpq	%r15, %rax
	cmovgq	%rax, %r15
	movq	-56(%rbp), %rax
	movl	(%rax,%r13,4), %ecx
	cmpl	$128, %ecx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %ecx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$130, %ecx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_HEAP_KEYS_UPDATED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
LBB0_10:
	movq	_LockTupleExclusive@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_12
## %bb.11:
	movq	_LockTupleNoKeyExclusive@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_12
## %bb.13:
	movq	_LockTupleShare@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_15
## %bb.14:
	movq	_HEAP_XMAX_SHR_LOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	movq	_HEAP_XMAX_EXCL_LOCK@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_17
LBB0_15:
	movq	_LockTupleKeyShare@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_18
## %bb.16:
	movq	_HEAP_XMAX_KEYSHR_LOCK@GOTPCREL(%rip), %rax
LBB0_17:
	orl	(%rax), %r12d
LBB0_18:
	movq	_HEAP_XMAX_LOCK_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_20
## %bb.19:
	movq	-56(%rbp), %rdi
	callq	_pfree
LBB0_20:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	cmovel	%r15d, %eax
	orl	%r12d, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_XMAX_IS_MULTI,4,2         ## @HEAP_XMAX_IS_MULTI
	.comm	_LockTupleKeyShare,8,3          ## @LockTupleKeyShare
	.comm	_HEAP_KEYS_UPDATED,4,2          ## @HEAP_KEYS_UPDATED
	.comm	_LockTupleExclusive,8,3         ## @LockTupleExclusive
	.comm	_LockTupleNoKeyExclusive,8,3    ## @LockTupleNoKeyExclusive
	.comm	_HEAP_XMAX_EXCL_LOCK,4,2        ## @HEAP_XMAX_EXCL_LOCK
	.comm	_LockTupleShare,8,3             ## @LockTupleShare
	.comm	_HEAP_XMAX_SHR_LOCK,4,2         ## @HEAP_XMAX_SHR_LOCK
	.comm	_HEAP_XMAX_KEYSHR_LOCK,4,2      ## @HEAP_XMAX_KEYSHR_LOCK
	.comm	_HEAP_XMAX_LOCK_ONLY,4,2        ## @HEAP_XMAX_LOCK_ONLY
	.no_dead_strip	_GetMultiXactIdHintBits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetMultiXactIdHintBits
_GetMultiXactIdHintBits:                ; @GetMultiXactIdHintBits
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _HEAP_XMAX_IS_MULTI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEAP_XMAX_IS_MULTI@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _LockTupleKeyShare@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LockTupleKeyShare@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
	add	x1, sp, #8
	mov	w2, #0
	mov	w3, #0
	bl	_GetMultiXactIdMembers
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x27, #0
	mov	w24, #0
	mov	w23, #0
	mov	w9, w21
	ldr	x8, [sp, #8]
	lsl	x28, x9, #2
Lloh6:
	adrp	x25, _HEAP_KEYS_UPDATED@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HEAP_KEYS_UPDATED@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x25]
	orr	w23, w9, w23
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #4
	cmp	x28, x27
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x27]
	bl	_TUPLOCK_from_mxstatus
	cmp	x0, x26
	csel	x26, x0, x26, gt
	ldr	x8, [sp, #8]
	ldr	w9, [x8, x27]
	cmp	w9, #128
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #129
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #130
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x25]
	orr	w23, w9, w23
	b	LBB0_4
LBB0_9:
	mov	w23, #0
	mov	w24, #0
LBB0_10:
Lloh8:
	adrp	x8, _LockTupleExclusive@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LockTupleExclusive@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _LockTupleNoKeyExclusive@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LockTupleNoKeyExclusive@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x26, x8
	ccmp	x26, x9, #4, ne
	b.ne	LBB0_12
; %bb.11:
Lloh14:
	adrp	x8, _HEAP_XMAX_EXCL_LOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HEAP_XMAX_EXCL_LOCK@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
Lloh16:
	adrp	x8, _LockTupleShare@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LockTupleShare@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_14
; %bb.13:
Lloh19:
	adrp	x8, _HEAP_XMAX_SHR_LOCK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HEAP_XMAX_SHR_LOCK@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh21:
	adrp	x8, _LockTupleKeyShare@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LockTupleKeyShare@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_17
; %bb.15:
Lloh24:
	adrp	x8, _HEAP_XMAX_KEYSHR_LOCK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HEAP_XMAX_KEYSHR_LOCK@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_17:
Lloh26:
	adrp	x8, _HEAP_XMAX_LOCK_ONLY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HEAP_XMAX_LOCK_ONLY@GOTPAGEOFF]
Lloh28:
	ldr	w25, [x8]
	cmp	w21, #1
	b.lt	LBB0_19
; %bb.18:
	ldr	x0, [sp, #8]
	bl	_pfree
LBB0_19:
	cmp	w24, #0
	csel	w8, w25, wzr, eq
	orr	w8, w8, w22
	str	w8, [x20]
	str	w23, [x19]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_XMAX_IS_MULTI,4,2         ; @HEAP_XMAX_IS_MULTI
	.comm	_LockTupleKeyShare,8,3          ; @LockTupleKeyShare
	.comm	_HEAP_KEYS_UPDATED,4,2          ; @HEAP_KEYS_UPDATED
	.comm	_LockTupleExclusive,8,3         ; @LockTupleExclusive
	.comm	_LockTupleNoKeyExclusive,8,3    ; @LockTupleNoKeyExclusive
	.comm	_HEAP_XMAX_EXCL_LOCK,4,2        ; @HEAP_XMAX_EXCL_LOCK
	.comm	_LockTupleShare,8,3             ; @LockTupleShare
	.comm	_HEAP_XMAX_SHR_LOCK,4,2         ; @HEAP_XMAX_SHR_LOCK
	.comm	_HEAP_XMAX_KEYSHR_LOCK,4,2      ; @HEAP_XMAX_KEYSHR_LOCK
	.comm	_HEAP_XMAX_LOCK_ONLY,4,2        ; @HEAP_XMAX_LOCK_ONLY
	.no_dead_strip	_GetMultiXactIdHintBits
.subsections_via_symbols
