	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_lockmode_for_conflict
_test_lockmode_for_conflict:            ## @test_lockmode_for_conflict
	.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	%r8, %r13
	movq	%rcx, %r14
	movl	%esi, %ebx
	movl	%edi, %r12d
	movl	$0, (%r8)
	movl	%edx, %edi
	xorl	%esi, %esi
	callq	_get_mxact_status_for_lock
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_TransactionIdIsCurrentTransactionId
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_TM_SelfModified@GOTPCREL(%rip), %r14
LBB0_2:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%ebx, %edi
	callq	_TransactionIdIsInProgress
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	%r12d, %edi
	callq	_LOCKMODE_from_mxstatus
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_LOCKMODE_from_mxstatus
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DoLockModesConflict
	movq	_TM_Ok@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movl	$1, (%r13)
	jmp	LBB0_2
LBB0_6:
	movq	%r14, %r13
	movl	%ebx, %edi
	callq	_TransactionIdDidAbort
	movq	_TM_Ok@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.7:
	movl	%ebx, %edi
	callq	_TransactionIdDidCommit
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movl	%r12d, %edi
	callq	_ISUPDATE_from_mxstatus
	testl	%eax, %eax
	je	LBB0_2
## %bb.9:
	movl	%r12d, %edi
	callq	_LOCKMODE_from_mxstatus
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_LOCKMODE_from_mxstatus
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DoLockModesConflict
	testq	%rax, %rax
	je	LBB0_2
## %bb.10:
	leaq	8(%r13), %rdi
	movq	(%r13), %rsi
	callq	_ItemPointerEquals
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	(%r13), %rdi
	callq	_HeapTupleHeaderIndicatesMovedPartitions
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movq	_TM_Deleted@GOTPCREL(%rip), %r14
	jmp	LBB0_2
LBB0_14:
	movq	_TM_Updated@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_TM_SelfModified,4,2            ## @TM_SelfModified
	.comm	_TM_Ok,4,2                      ## @TM_Ok
	.comm	_TM_Updated,4,2                 ## @TM_Updated
	.comm	_TM_Deleted,4,2                 ## @TM_Deleted
	.no_dead_strip	_test_lockmode_for_conflict
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_lockmode_for_conflict
_test_lockmode_for_conflict:            ; @test_lockmode_for_conflict
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x4
	mov	x19, x3
	mov	x23, x1
	mov	x21, x0
	str	wzr, [x4]
	mov	x0, x2
	mov	w1, #0
	bl	_get_mxact_status_for_lock
	mov	x20, x0
	mov	x0, x23
	bl	_TransactionIdIsCurrentTransactionId
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _TM_SelfModified@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TM_SelfModified@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x0, x23
	bl	_TransactionIdIsInProgress
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_LOCKMODE_from_mxstatus
	mov	x19, x0
	mov	x0, x20
	bl	_LOCKMODE_from_mxstatus
	mov	x1, x0
	mov	x0, x19
	bl	_DoLockModesConflict
	cbz	x0, LBB0_6
; %bb.4:
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_6
LBB0_5:
	mov	x0, x23
	bl	_TransactionIdDidAbort
	cbz	x0, LBB0_8
LBB0_6:
Lloh2:
	adrp	x20, _TM_Ok@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TM_Ok@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x23
	bl	_TransactionIdDidCommit
	cbz	x0, LBB0_6
; %bb.9:
	mov	x0, x21
	bl	_ISUPDATE_from_mxstatus
	cbz	w0, LBB0_6
; %bb.10:
	mov	x0, x21
	bl	_LOCKMODE_from_mxstatus
	mov	x21, x0
	mov	x0, x20
	bl	_LOCKMODE_from_mxstatus
	mov	x1, x0
	mov	x0, x21
	bl	_DoLockModesConflict
	cbz	x0, LBB0_6
; %bb.11:
	mov	x0, x19
	ldr	x1, [x0], #8
	bl	_ItemPointerEquals
Lloh4:
	adrp	x20, _TM_Updated@GOTPAGE
Lloh5:
	ldr	x20, [x20, _TM_Updated@GOTPAGEOFF]
	cbz	w0, LBB0_7
; %bb.12:
	ldr	x0, [x19]
	bl	_HeapTupleHeaderIndicatesMovedPartitions
Lloh6:
	adrp	x8, _TM_Deleted@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TM_Deleted@GOTPAGEOFF]
	cmp	x0, #0
	csel	x20, x8, x20, eq
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TM_SelfModified,4,2            ; @TM_SelfModified
	.comm	_TM_Ok,4,2                      ; @TM_Ok
	.comm	_TM_Updated,4,2                 ; @TM_Updated
	.comm	_TM_Deleted,4,2                 ; @TM_Deleted
	.no_dead_strip	_test_lockmode_for_conflict
.subsections_via_symbols
