	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lock_twophase_standby_recover  ## -- Begin function lock_twophase_standby_recover
	.p2align	4, 0x90
_lock_twophase_standby_recover:         ## @lock_twophase_standby_recover
	.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
	movq	%rdx, %r15
	movl	%edi, %r14d
	xorl	%edi, %edi
	cmpl	$32, %ecx
	sete	%dil
	callq	_Assert
	movq	(%r15), %r12
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	jle	LBB0_2
## %bb.1:
	movq	_LockMethods@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_lengthof
	cmpq	%rax, %rbx
	jl	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	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_5
## %bb.4:
	movq	16(%r15), %rax
	movq	_LOCKTAG_RELATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movl	24(%r15), %edx
	movl	28(%r15), %esi
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_StandbyAcquireAccessExclusiveLock ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LockMethods,4,2                ## @LockMethods
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized lock method: %d"

	.comm	_AccessExclusiveLock,8,3        ## @AccessExclusiveLock
	.comm	_LOCKTAG_RELATION,8,3           ## @LOCKTAG_RELATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lock_twophase_standby_recover  ; -- Begin function lock_twophase_standby_recover
	.p2align	2
_lock_twophase_standby_recover:         ; @lock_twophase_standby_recover
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x0
	cmp	w3, #32
	cset	w0, eq
	bl	_Assert
	ldp	x22, x21, [x20]
	cmp	x21, #1
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LockMethods@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LockMethods@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_lengthof
	cmp	x21, x0
	b.lt	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_elog
LBB0_3:
Lloh8:
	adrp	x8, _AccessExclusiveLock@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AccessExclusiveLock@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x20, #16]
Lloh11:
	adrp	x9, _LOCKTAG_RELATION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LOCKTAG_RELATION@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldp	w2, w1, [x20, #24]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_StandbyAcquireAccessExclusiveLock
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LockMethods,4,2                ; @LockMethods
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized lock method: %d"

	.comm	_AccessExclusiveLock,8,3        ; @AccessExclusiveLock
	.comm	_LOCKTAG_RELATION,8,3           ; @LOCKTAG_RELATION
.subsections_via_symbols
