	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_partialfilelock           ## -- Begin function test_partialfilelock
	.p2align	4, 0x90
_test_partialfilelock:                  ## @test_partialfilelock
	.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	%rsi, %r14
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_test_nfslock
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_debuglog
	movq	_NFS_GRANTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	je	LBB0_2
## %bb.1:
	movq	_NFS_GRANTED_DUPLICATE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_2
## %bb.6:
	movq	_PFL_NFSDENIED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	%r12, %rdi
	callq	_dump_filelock
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	(%r14), %rdi
	callq	_dump_filelock
	jmp	LBB0_7
LBB0_2:
	cmpl	%eax, %ebx
	jne	LBB0_3
## %bb.4:
	movq	_PFL_GRANTED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_PFL_GRANTED_DUPLICATE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movq	%r12, %rdi
	callq	_dump_filelock
	movq	(%r14), %rdi
	callq	_dump_filelock
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
LBB0_7:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_debuglog
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entering testpartialfilelock...\n"

	.comm	_PFL_DENIED,4,2                 ## @PFL_DENIED
L_.str.1:                               ## @.str.1
	.asciz	"test_partialfilelock: teststatus %d\n"

	.comm	_NFS_GRANTED,4,2                ## @NFS_GRANTED
	.comm	_NFS_GRANTED_DUPLICATE,4,2      ## @NFS_GRANTED_DUPLICATE
	.comm	_PFL_GRANTED,4,2                ## @PFL_GRANTED
	.comm	_PFL_GRANTED_DUPLICATE,4,2      ## @PFL_GRANTED_DUPLICATE
L_.str.2:                               ## @.str.2
	.asciz	"Dumping locks...\n"

L_.str.3:                               ## @.str.3
	.asciz	"Done dumping locks...\n"

	.comm	_PFL_NFSDENIED,4,2              ## @PFL_NFSDENIED
L_.str.4:                               ## @.str.4
	.asciz	"NFS test denied.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Conflicting.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Exiting testpartialfilelock...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_partialfilelock           ; -- Begin function test_partialfilelock
	.p2align	2
_test_partialfilelock:                  ; @test_partialfilelock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debuglog
	mov	x0, x21
	mov	x1, x19
	bl	_test_nfslock
	mov	x20, x0
	str	x20, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debuglog
Lloh4:
	adrp	x8, _NFS_GRANTED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NFS_GRANTED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _NFS_GRANTED_DUPLICATE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NFS_GRANTED_DUPLICATE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x9, _PFL_GRANTED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PFL_GRANTED@GOTPAGEOFF]
Lloh12:
	adrp	x10, _PFL_GRANTED_DUPLICATE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PFL_GRANTED_DUPLICATE@GOTPAGEOFF]
	cmp	w20, w8
	csel	x8, x9, x10, eq
	ldr	w20, [x8]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debuglog
	mov	x0, x21
	bl	_dump_filelock
	ldr	x0, [x19]
	bl	_dump_filelock
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_debuglog
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _PFL_NFSDENIED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PFL_NFSDENIED@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_debuglog
	mov	x0, x21
	bl	_dump_filelock
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_debuglog
	ldr	x0, [x19]
	bl	_dump_filelock
LBB0_3:
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_debuglog
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entering testpartialfilelock...\n"

	.comm	_PFL_DENIED,4,2                 ; @PFL_DENIED
l_.str.1:                               ; @.str.1
	.asciz	"test_partialfilelock: teststatus %d\n"

	.comm	_NFS_GRANTED,4,2                ; @NFS_GRANTED
	.comm	_NFS_GRANTED_DUPLICATE,4,2      ; @NFS_GRANTED_DUPLICATE
	.comm	_PFL_GRANTED,4,2                ; @PFL_GRANTED
	.comm	_PFL_GRANTED_DUPLICATE,4,2      ; @PFL_GRANTED_DUPLICATE
l_.str.2:                               ; @.str.2
	.asciz	"Dumping locks...\n"

l_.str.3:                               ; @.str.3
	.asciz	"Done dumping locks...\n"

	.comm	_PFL_NFSDENIED,4,2              ; @PFL_NFSDENIED
l_.str.4:                               ; @.str.4
	.asciz	"NFS test denied.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Conflicting.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Exiting testpartialfilelock...\n"

.subsections_via_symbols
