	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lock_twophase_postcommit       ## -- Begin function lock_twophase_postcommit
	.p2align	4, 0x90
_lock_twophase_postcommit:              ## @lock_twophase_postcommit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movl	$1, %esi
	callq	_TwoPhaseGetDummyProc
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpl	$16, %ebx
	sete	%dil
	callq	_Assert
	leaq	8(%r12), %r15
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_LockMethods@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_lengthof
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_elog
LBB0_3:
	movq	_LockMethods@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r12), %ecx
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	$1, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LockRefindAndRelease           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LockMethods,8,3                ## @LockMethods
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized lock method: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lock_twophase_postcommit       ; -- Begin function lock_twophase_postcommit
	.p2align	2
_lock_twophase_postcommit:              ; @lock_twophase_postcommit
	.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	x21, x3
	mov	x19, x2
	mov	w1, #1
	bl	_TwoPhaseGetDummyProc
	mov	x20, x0
	cmp	w21, #16
	cset	w0, eq
	bl	_Assert
	mov	x21, x19
	ldr	x22, [x21, #8]!
Lloh0:
	adrp	x23, _LockMethods@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LockMethods@GOTPAGEOFF]
	cbz	x22, LBB0_2
; %bb.1:
	ldr	x0, [x23]
	bl	_lengthof
	cmp	x22, x0
	b.lo	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_elog
LBB0_3:
	ldr	x8, [x23]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w3, [x19]
	mov	x1, x20
	mov	x2, x21
	mov	w4, #1
	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
	b	_LockRefindAndRelease
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LockMethods,8,3                ; @LockMethods
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized lock method: %d"

.subsections_via_symbols
