	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HeapTupleHeaderIsOnlyLocked    ## -- Begin function HeapTupleHeaderIsOnlyLocked
	.p2align	4, 0x90
_HeapTupleHeaderIsOnlyLocked:           ## @HeapTupleHeaderIsOnlyLocked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	movq	_HEAP_XMAX_INVALID@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.1:
	movq	_HEAP_XMAX_LOCK_ONLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	callq	_HeapTupleHeaderGetRawXmax
	movl	%eax, %edi
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	_HEAP_XMAX_IS_MULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_HeapTupleGetUpdateXid
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	%ebx, %edi
	callq	_TransactionIdIsCurrentTransactionId
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movl	%ebx, %edi
	callq	_TransactionIdIsInProgress
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %edi
	callq	_TransactionIdDidCommit
	xorl	%r14d, %r14d
	testq	%rax, %rax
	sete	%r14b
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAP_XMAX_INVALID,4,2          ## @HEAP_XMAX_INVALID
	.comm	_HEAP_XMAX_LOCK_ONLY,4,2        ## @HEAP_XMAX_LOCK_ONLY
	.comm	_HEAP_XMAX_IS_MULTI,4,2         ## @HEAP_XMAX_IS_MULTI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HeapTupleHeaderIsOnlyLocked    ; -- Begin function HeapTupleHeaderIsOnlyLocked
	.p2align	2
_HeapTupleHeaderIsOnlyLocked:           ; @HeapTupleHeaderIsOnlyLocked
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HEAP_XMAX_INVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HEAP_XMAX_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _HEAP_XMAX_LOCK_ONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HEAP_XMAX_LOCK_ONLY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x0
	bl	_HeapTupleHeaderGetRawXmax
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_2
; %bb.5:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _HEAP_XMAX_IS_MULTI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HEAP_XMAX_IS_MULTI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_HeapTupleGetUpdateXid
	mov	x19, x0
	bl	_TransactionIdIsValid
	bl	_Assert
	mov	x0, x19
	bl	_TransactionIdIsCurrentTransactionId
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_TransactionIdIsInProgress
	cbz	x0, LBB0_9
LBB0_8:
	mov	w0, #0
	b	LBB0_3
LBB0_9:
	mov	x0, x19
	bl	_TransactionIdDidCommit
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAP_XMAX_INVALID,4,2          ; @HEAP_XMAX_INVALID
	.comm	_HEAP_XMAX_LOCK_ONLY,4,2        ; @HEAP_XMAX_LOCK_ONLY
	.comm	_HEAP_XMAX_IS_MULTI,4,2         ; @HEAP_XMAX_IS_MULTI
.subsections_via_symbols
