	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_client_recover_lock
_nlm_client_recover_lock:               ## @nlm_client_recover_lock
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	4(%rdx), %edi
	callq	_nlm_host_get_state
	cmpl	%eax, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_LK_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vn_lock
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %r13
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nlm_set_creds_for_lock
	movq	_F_SETLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_F_REMOTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, (%rsp)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_nlm_advlock_internal
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_crfree
	movq	%r13, (%r15)
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ERESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_ERESTART,4,2                   ## @ERESTART
	.comm	_LK_SHARED,4,2                  ## @LK_SHARED
	.comm	_F_SETLK,4,2                    ## @F_SETLK
	.comm	_F_REMOTE,4,2                   ## @F_REMOTE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_nlm_client_recover_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_client_recover_lock
_nlm_client_recover_lock:               ; @nlm_client_recover_lock
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	w0, [x2, #4]
	bl	_nlm_host_get_state
	ldr	w8, [x22]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _LK_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LK_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_vn_lock
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x22, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_nlm_set_creds_for_lock
Lloh6:
	adrp	x8, _F_SETLK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F_SETLK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _F_REMOTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F_REMOTE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	x3, x20
	mov	x6, x5
	bl	_nlm_advlock_internal
	mov	x20, x0
	ldr	x0, [x19]
	bl	_crfree
	str	x22, [x19]
	mov	x0, x20
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _ERESTART@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERESTART@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_ERESTART,4,2                   ; @ERESTART
	.comm	_LK_SHARED,4,2                  ; @LK_SHARED
	.comm	_F_SETLK,4,2                    ; @F_SETLK
	.comm	_F_REMOTE,4,2                   ; @F_REMOTE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_nlm_client_recover_lock
.subsections_via_symbols
