	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_test                        ## -- Begin function do_test
	.p2align	4, 0x90
_do_test:                               ## @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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_debuglog
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_test_partialfilelock
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	leaq	L_.str.5(%rip), %rdi
	callq	_debuglog
	movq	%r14, %rdi
	callq	_dump_filelock
	movq	(%rbx), %rdi
	callq	_dump_filelock
	movq	_nlm_denied_nolocks@GOTPCREL(%rip), %rax
	movq	_nlm4_denied_nolocks@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	callq	_debuglog
	movq	%r14, %rdi
	callq	_dump_filelock
	movq	(%rbx), %rdi
	callq	_dump_filelock
	movq	_nlm_denied@GOTPCREL(%rip), %rax
	movq	_nlm4_denied@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.6(%rip), %rdi
	callq	_debuglog
	movq	%r14, %rdi
	callq	_dump_filelock
	movq	(%rbx), %rdi
	callq	_dump_filelock
	movq	_nlm_denied@GOTPCREL(%rip), %rax
	movq	_nlm4_failed@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_debuglog
	movq	%r14, %rdi
	callq	_dump_filelock
	movq	(%rbx), %rdi
	callq	_dump_filelock
	jmp	LBB0_3
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_debuglog
	movq	%r14, %rdi
	callq	_dump_filelock
	movq	(%rbx), %rdi
	callq	_dump_filelock
	leaq	L_.str.3(%rip), %rdi
	callq	_debuglog
	movq	$0, (%rbx)
LBB0_3:
	movq	_nlm_granted@GOTPCREL(%rip), %rax
	movq	_nlm4_granted@GOTPCREL(%rip), %rcx
LBB0_8:
	movq	_LOCK_V4@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%r14), %edx
	cmoveq	%rax, %rcx
	movl	(%rcx), %ebx
	leaq	L_.str.7(%rip), %rdi
	callq	_debuglog
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entering do_test...\n"

L_.str.1:                               ## @.str.1
	.asciz	"PFL test lock granted\n"

	.comm	_LOCK_V4,4,2                    ## @LOCK_V4
	.comm	_nlm4_granted,4,2               ## @nlm4_granted
	.comm	_nlm_granted,4,2                ## @nlm_granted
L_.str.2:                               ## @.str.2
	.asciz	"PFL test lock granted--duplicate id detected\n"

L_.str.3:                               ## @.str.3
	.asciz	"Clearing conflicting_fl for call semantics\n"

L_.str.4:                               ## @.str.4
	.asciz	"PFL test lock denied\n"

	.comm	_nlm4_denied,4,2                ## @nlm4_denied
	.comm	_nlm_denied,4,2                 ## @nlm_denied
L_.str.5:                               ## @.str.5
	.asciz	"PFL test lock resource fail\n"

	.comm	_nlm4_denied_nolocks,4,2        ## @nlm4_denied_nolocks
	.comm	_nlm_denied_nolocks,4,2         ## @nlm_denied_nolocks
L_.str.6:                               ## @.str.6
	.asciz	"PFL test lock *FAILED*\n"

	.comm	_nlm4_failed,4,2                ## @nlm4_failed
L_.str.7:                               ## @.str.7
	.asciz	"Exiting do_test...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_test                        ; -- Begin function do_test
	.p2align	2
_do_test:                               ; @do_test
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	mov	x1, x20
	bl	_test_partialfilelock
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x0, l_.str.5@PAGE
Lloh5:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	bl	_dump_filelock
	ldr	x0, [x20]
	bl	_dump_filelock
Lloh6:
	adrp	x8, _nlm_denied_nolocks@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nlm_denied_nolocks@GOTPAGEOFF]
Lloh8:
	adrp	x9, _nlm4_denied_nolocks@GOTPAGE
Lloh9:
	ldr	x9, [x9, _nlm4_denied_nolocks@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	bl	_dump_filelock
	ldr	x0, [x20]
	bl	_dump_filelock
Lloh12:
	adrp	x8, _nlm_denied@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nlm_denied@GOTPAGEOFF]
Lloh14:
	adrp	x9, _nlm4_denied@GOTPAGE
Lloh15:
	ldr	x9, [x9, _nlm4_denied@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	bl	_dump_filelock
	ldr	x0, [x20]
	bl	_dump_filelock
Lloh18:
	adrp	x8, _nlm_denied@GOTPAGE
Lloh19:
	ldr	x8, [x8, _nlm_denied@GOTPAGEOFF]
Lloh20:
	adrp	x9, _nlm4_failed@GOTPAGE
Lloh21:
	ldr	x9, [x9, _nlm4_failed@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	bl	_dump_filelock
	ldr	x0, [x20]
	bl	_dump_filelock
	b	LBB0_7
LBB0_6:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	bl	_dump_filelock
	ldr	x0, [x20]
	bl	_dump_filelock
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_debuglog
	str	xzr, [x20]
LBB0_7:
Lloh28:
	adrp	x8, _nlm_granted@GOTPAGE
Lloh29:
	ldr	x8, [x8, _nlm_granted@GOTPAGEOFF]
Lloh30:
	adrp	x9, _nlm4_granted@GOTPAGE
Lloh31:
	ldr	x9, [x9, _nlm4_granted@GOTPAGEOFF]
LBB0_8:
	ldr	w10, [x19]
Lloh32:
	adrp	x11, _LOCK_V4@GOTPAGE
Lloh33:
	ldr	x11, [x11, _LOCK_V4@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	tst	w11, w10
	csel	x8, x8, x9, eq
	ldr	w19, [x8]
Lloh35:
	adrp	x0, l_.str.7@PAGE
Lloh36:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_debuglog
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entering do_test...\n"

l_.str.1:                               ; @.str.1
	.asciz	"PFL test lock granted\n"

	.comm	_LOCK_V4,4,2                    ; @LOCK_V4
	.comm	_nlm4_granted,4,2               ; @nlm4_granted
	.comm	_nlm_granted,4,2                ; @nlm_granted
l_.str.2:                               ; @.str.2
	.asciz	"PFL test lock granted--duplicate id detected\n"

l_.str.3:                               ; @.str.3
	.asciz	"Clearing conflicting_fl for call semantics\n"

l_.str.4:                               ; @.str.4
	.asciz	"PFL test lock denied\n"

	.comm	_nlm4_denied,4,2                ; @nlm4_denied
	.comm	_nlm_denied,4,2                 ; @nlm_denied
l_.str.5:                               ; @.str.5
	.asciz	"PFL test lock resource fail\n"

	.comm	_nlm4_denied_nolocks,4,2        ; @nlm4_denied_nolocks
	.comm	_nlm_denied_nolocks,4,2         ; @nlm_denied_nolocks
l_.str.6:                               ; @.str.6
	.asciz	"PFL test lock *FAILED*\n"

	.comm	_nlm4_failed,4,2                ; @nlm4_failed
l_.str.7:                               ; @.str.7
	.asciz	"Exiting do_test...\n"

.subsections_via_symbols
