	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nlm_do_test                    ## -- Begin function nlm_do_test
	.p2align	4, 0x90
_nlm_do_test:                           ## @nlm_do_test
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movl	24(%r14), %ebx
	movq	%r13, %rdi
	callq	_svc_getrpccaller
	movl	(%r13), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_nlm_find_host_by_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_NLM_DEBUG
	movq	%r12, %rdi
	callq	_nlm_check_expired_locks
	movl	(%r12), %ebx
	leaq	20(%r14), %rsi
	leaq	-52(%rbp), %rdi
	callq	_nlm_convert_to_fhandle_t
	leaq	24(%r15), %rdi
	leaq	28(%r14), %rsi
	movq	_M_RPC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nlm_copy_netobj
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_nlm_grace_threshold@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.2:
	movq	_nlm4_denied_grace_period@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_4:
	movq	_nlm4_denied_nolocks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_5:
	cmpq	$0, (%r14)
	jne	LBB0_7
## %bb.6:
	movq	_VREAD@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_VWRITE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r8d
	leaq	-52(%rbp), %rdx
	leaq	-120(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_nlm_get_vfs_state
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movl	%eax, %edi
	callq	_nlm_convert_error
LBB0_10:
	movl	%eax, 16(%r15)
LBB0_11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	-120(%rbp), %rdi
	callq	_nlm_release_vfs_state
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_nlm_host_get_rpc
	movq	%rax, (%rbx)
LBB0_13:
	movq	%r12, %rdi
	callq	_nlm_host_release
	xorl	%eax, %eax
LBB0_14:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	16(%r14), %eax
	movl	%eax, -68(%rbp)
	movl	12(%r14), %eax
	movl	%eax, -72(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -64(%rbp)
	movl	%ebx, -88(%rbp)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	cmpq	$0, (%r14)
	jne	LBB0_17
## %bb.16:
	movq	_F_RDLCK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_F_WRLCK@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	-100(%rbp), %edi
	movq	_F_GETLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_F_REMOTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-88(%rbp), %rcx
	xorl	%esi, %esi
	callq	_VOP_ADVLOCK
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	_nlm4_failed@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_20:
	movq	-80(%rbp), %rax
	movq	_F_UNLCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.21:
	movq	_nlm4_granted@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_22:
	movq	_nlm4_denied@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
	movq	_F_WRLCK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, (%r15)
	movl	-64(%rbp), %eax
	movl	%eax, 12(%r15)
	movl	-88(%rbp), %edi
	callq	_nlm_find_host_by_sysid
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rax, %rdi
	callq	_nlm_host_release
LBB0_24:
	movl	-68(%rbp), %eax
	movl	%eax, 8(%r15)
	movl	-72(%rbp), %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_nlm4_denied_nolocks,4,2        ## @nlm4_denied_nolocks
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nlm_do_test(): caller_name = %s (sysid = %d)\n"

	.comm	_M_RPC,4,2                      ## @M_RPC
	.comm	_time_uptime,8,3                ## @time_uptime
	.comm	_nlm_grace_threshold,8,3        ## @nlm_grace_threshold
	.comm	_nlm4_denied_grace_period,4,2   ## @nlm4_denied_grace_period
	.comm	_VWRITE,4,2                     ## @VWRITE
	.comm	_VREAD,4,2                      ## @VREAD
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_F_WRLCK,8,3                    ## @F_WRLCK
	.comm	_F_RDLCK,8,3                    ## @F_RDLCK
	.comm	_F_GETLK,4,2                    ## @F_GETLK
	.comm	_F_REMOTE,4,2                   ## @F_REMOTE
	.comm	_nlm4_failed,4,2                ## @nlm4_failed
	.comm	_F_UNLCK,8,3                    ## @F_UNLCK
	.comm	_nlm4_granted,4,2               ## @nlm4_granted
	.comm	_nlm4_denied,4,2                ## @nlm4_denied
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nlm_do_test                    ; -- Begin function nlm_do_test
	.p2align	2
_nlm_do_test:                           ; @nlm_do_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	ldr	w21, [x22, #24]
	mov	x0, x23
	bl	_svc_getrpccaller
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x21
	bl	_nlm_find_host_by_name
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldp	w3, w2, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_NLM_DEBUG
	mov	x0, x21
	bl	_nlm_check_expired_locks
	ldr	w24, [x21]
	add	x1, x22, #20
	sub	x0, x29, #52
	bl	_nlm_convert_to_fhandle_t
	add	x0, x20, #24
	add	x1, x22, #28
Lloh2:
	adrp	x8, _M_RPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_RPC@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_nlm_copy_netobj
Lloh5:
	adrp	x8, _time_uptime@GOTPAGE
Lloh6:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _nlm_grace_threshold@GOTPAGE
Lloh9:
	ldr	x9, [x9, _nlm_grace_threshold@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.2:
Lloh11:
	adrp	x8, _nlm4_denied_grace_period@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nlm4_denied_grace_period@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	b	LBB0_7
LBB0_4:
Lloh13:
	adrp	x8, _nlm4_denied_nolocks@GOTPAGE
Lloh14:
	ldr	x8, [x8, _nlm4_denied_nolocks@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_5:
Lloh19:
	adrp	x8, _VWRITE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VWRITE@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh21:
	adrp	x10, _VREAD@GOTPAGE
Lloh22:
	ldr	x10, [x10, _VREAD@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w4, [x8]
	sub	x2, x29, #52
	add	x3, sp, #32
	mov	x0, x21
	mov	x1, x23
	bl	_nlm_get_vfs_state
	cbz	w0, LBB0_11
; %bb.6:
	bl	_nlm_convert_error
	str	w0, [x20, #16]
LBB0_7:
	add	x0, sp, #32
	bl	_nlm_release_vfs_state
	cbz	x19, LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _TRUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_nlm_host_get_rpc
	str	x0, [x19]
LBB0_9:
	mov	x0, x21
	bl	_nlm_host_release
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	ldur	d0, [x22, #12]
	str	d0, [sp, #16]
	ldr	w8, [x22, #8]
	str	w24, [sp]
Lloh26:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh29:
	adrp	x8, _F_RDLCK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _F_RDLCK@GOTPAGEOFF]
Lloh31:
	adrp	x23, _F_WRLCK@GOTPAGE
Lloh32:
	ldr	x23, [x23, _F_WRLCK@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x9, #0
	csel	x8, x8, x23, eq
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	w0, [sp, #52]
Lloh33:
	adrp	x8, _F_GETLK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _F_GETLK@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
Lloh36:
	adrp	x8, _F_REMOTE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _F_REMOTE@GOTPAGEOFF]
Lloh38:
	ldr	w4, [x8]
	mov	x3, sp
	mov	x1, #0
	bl	_VOP_ADVLOCK
	cbz	w0, LBB0_13
; %bb.12:
Lloh39:
	adrp	x8, _nlm4_failed@GOTPAGE
Lloh40:
	ldr	x8, [x8, _nlm4_failed@GOTPAGEOFF]
	b	LBB0_3
LBB0_13:
	ldr	x8, [sp, #8]
Lloh41:
	adrp	x9, _F_UNLCK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _F_UNLCK@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
Lloh44:
	adrp	x8, _nlm4_granted@GOTPAGE
Lloh45:
	ldr	x8, [x8, _nlm4_granted@GOTPAGEOFF]
	b	LBB0_3
LBB0_15:
Lloh46:
	adrp	x9, _nlm4_denied@GOTPAGE
Lloh47:
	ldr	x9, [x9, _nlm4_denied@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	ldr	x10, [x23]
	cmp	x8, x10
	cset	w8, eq
	str	w8, [x20]
	ldr	w8, [sp, #24]
	ldr	w0, [sp]
	stp	w8, w9, [x20, #12]
	bl	_nlm_find_host_by_sysid
	cbz	x0, LBB0_17
; %bb.16:
	bl	_nlm_host_release
LBB0_17:
	ldr	d0, [sp, #16]
	stur	d0, [x20, #4]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_nlm4_denied_nolocks,4,2        ; @nlm4_denied_nolocks
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nlm_do_test(): caller_name = %s (sysid = %d)\n"

	.comm	_M_RPC,4,2                      ; @M_RPC
	.comm	_time_uptime,8,3                ; @time_uptime
	.comm	_nlm_grace_threshold,8,3        ; @nlm_grace_threshold
	.comm	_nlm4_denied_grace_period,4,2   ; @nlm4_denied_grace_period
	.comm	_VWRITE,4,2                     ; @VWRITE
	.comm	_VREAD,4,2                      ; @VREAD
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_F_WRLCK,8,3                    ; @F_WRLCK
	.comm	_F_RDLCK,8,3                    ; @F_RDLCK
	.comm	_F_GETLK,4,2                    ; @F_GETLK
	.comm	_F_REMOTE,4,2                   ; @F_REMOTE
	.comm	_nlm4_failed,4,2                ; @nlm4_failed
	.comm	_F_UNLCK,8,3                    ; @F_UNLCK
	.comm	_nlm4_granted,4,2               ; @nlm4_granted
	.comm	_nlm4_denied,4,2                ; @nlm4_denied
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
