	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nlm4_test_4_svc                ## -- Begin function nlm4_test_4_svc
	.p2align	4, 0x90
_nlm4_test_4_svc:                       ## @nlm4_test_4_svc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_debug_level@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_log_from_addr
	cmpl	$6, (%r14)
	jl	LBB0_3
## %bb.2:
	movq	_LOG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movq	%rbx, %rdi
	callq	_log_netobj
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	(%r14), %edi
	movq	16(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	leaq	52(%rbx), %rdi
	callq	_log_netobj
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	leaq	48(%rbx), %rdi
	callq	_log_netobj
	movl	(%r14), %edi
	movq	24(%rbx), %rdx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	(%r14), %edi
	movq	40(%rbx), %rdx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	(%r14), %edi
	movq	32(%rbx), %rdx
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	(%r14), %edi
	cmpq	$0, 8(%rbx)
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.10(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
LBB0_3:
	leaq	16(%rbx), %rdi
	movq	8(%rbx), %rsi
	movq	_LOCK_V4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_testlock
	movl	(%rbx), %ecx
	movl	%ecx, _nlm4_test_4_svc.res+8(%rip)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_nlm4_denied@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, _nlm4_test_4_svc.res+4(%rip)
	leaq	_nlm4_test_4_svc.res(%rip), %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_6
LBB0_4:
	movq	_nlm4_granted@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, _nlm4_test_4_svc.res+4(%rip)
LBB0_6:
	leaq	_nlm4_test_4_svc.res(%rip), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_nlm4_test_4_svc.res,12,2 ## @nlm4_test_4_svc.res
	.comm	_debug_level,4,2                ## @debug_level
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nlm4_test"

	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Locking arguments:\n"

L_.str.2:                               ## @.str.2
	.asciz	"Alock arguments:\n"

L_.str.3:                               ## @.str.3
	.asciz	"Caller Name: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"File Handle:\n"

L_.str.5:                               ## @.str.5
	.asciz	"Owner Handle:\n"

L_.str.6:                               ## @.str.6
	.asciz	"SVID:        %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Lock Offset: %llu\n"

L_.str.8:                               ## @.str.8
	.asciz	"Lock Length: %llu\n"

L_.str.9:                               ## @.str.9
	.asciz	"Exclusive:   %s\n"

L_.str.10:                              ## @.str.10
	.asciz	"true"

L_.str.11:                              ## @.str.11
	.asciz	"false"

	.comm	_LOCK_V4,4,2                    ## @LOCK_V4
	.comm	_nlm4_granted,4,2               ## @nlm4_granted
	.comm	_nlm4_denied,4,2                ## @nlm4_denied
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nlm4_test_4_svc                ; -- Begin function nlm4_test_4_svc
	.p2align	2
_nlm4_test_4_svc:                       ; @nlm4_test_4_svc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _debug_level@GOTPAGE
Lloh1:
	ldr	x20, [x20, _debug_level@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_from_addr
	ldr	w8, [x20]
	cmp	w8, #6
	b.lt	LBB0_3
; %bb.2:
Lloh4:
	adrp	x20, _LOG_DEBUG@GOTPAGE
Lloh5:
	ldr	x20, [x20, _LOG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
	mov	x0, x19
	bl	_log_netobj
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_syslog
	ldr	w0, [x20]
	ldr	x8, [x19, #16]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_syslog
	ldr	w0, [x20]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_syslog
	add	x0, x19, #52
	bl	_log_netobj
	ldr	w0, [x20]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_syslog
	add	x0, x19, #48
	bl	_log_netobj
	ldr	w0, [x20]
	ldr	x8, [x19, #24]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_syslog
	ldr	w0, [x20]
	ldr	x8, [x19, #40]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_syslog
	ldr	w0, [x20]
	ldr	x8, [x19, #32]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.8@PAGE
Lloh21:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_syslog
	ldr	w0, [x20]
	ldr	x8, [x19, #8]
Lloh22:
	adrp	x9, l_.str.10@PAGE
Lloh23:
	add	x9, x9, l_.str.10@PAGEOFF
Lloh24:
	adrp	x10, l_.str.11@PAGE
Lloh25:
	add	x10, x10, l_.str.11@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_syslog
LBB0_3:
	add	x0, x19, #16
	ldr	x1, [x19, #8]
Lloh28:
	adrp	x8, _LOCK_V4@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LOCK_V4@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	bl	_testlock
	ldr	w8, [x19]
	adrp	x9, _nlm4_test_4_svc.res@PAGE+8
	str	w8, [x9, _nlm4_test_4_svc.res@PAGEOFF+8]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
Lloh31:
	adrp	x8, _nlm4_denied@GOTPAGE
Lloh32:
	ldr	x8, [x8, _nlm4_denied@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x0, _nlm4_test_4_svc.res@PAGE
Lloh35:
	add	x0, x0, _nlm4_test_4_svc.res@PAGEOFF
	str	w8, [x0, #4]
	mov	w2, #4
	bl	_memcpy
	b	LBB0_6
LBB0_5:
Lloh36:
	adrp	x8, _nlm4_granted@GOTPAGE
Lloh37:
	ldr	x8, [x8, _nlm4_granted@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	adrp	x9, _nlm4_test_4_svc.res@PAGE+4
	str	w8, [x9, _nlm4_test_4_svc.res@PAGEOFF+4]
LBB0_6:
Lloh39:
	adrp	x0, _nlm4_test_4_svc.res@PAGE
Lloh40:
	add	x0, x0, _nlm4_test_4_svc.res@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_nlm4_test_4_svc.res,12,2 ; @nlm4_test_4_svc.res
	.comm	_debug_level,4,2                ; @debug_level
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nlm4_test"

	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Locking arguments:\n"

l_.str.2:                               ; @.str.2
	.asciz	"Alock arguments:\n"

l_.str.3:                               ; @.str.3
	.asciz	"Caller Name: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"File Handle:\n"

l_.str.5:                               ; @.str.5
	.asciz	"Owner Handle:\n"

l_.str.6:                               ; @.str.6
	.asciz	"SVID:        %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Lock Offset: %llu\n"

l_.str.8:                               ; @.str.8
	.asciz	"Lock Length: %llu\n"

l_.str.9:                               ; @.str.9
	.asciz	"Exclusive:   %s\n"

l_.str.10:                              ; @.str.10
	.asciz	"true"

l_.str.11:                              ; @.str.11
	.asciz	"false"

	.comm	_LOCK_V4,4,2                    ; @LOCK_V4
	.comm	_nlm4_granted,4,2               ; @nlm4_granted
	.comm	_nlm4_denied,4,2                ; @nlm4_denied
.subsections_via_symbols
