	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_close
_handle_close:                          ## @handle_close
	.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	%rdi, %rbx
	movq	_NFS4_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rdi), %r14
	movq	(%r14), %rax
	movq	_NF4REG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	36(%r14), %edi
	movq	24(%rbx), %rdx
	movq	%r14, %rsi
	callq	_pnfs_layout_state_close
LBB0_2:
	movq	8(%r14), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_4
## %bb.3:
	movl	36(%r14), %edi
	leaq	24(%r14), %rsi
	callq	_nfs41_delegation_remove_srvopen
LBB0_4:
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.6:
	leaq	24(%r14), %r13
	leaq	28(%r14), %r12
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.8:
	movl	28(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintf
	leaq	40(%r14), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_create_silly_rename
	movq	%r14, %rdi
	callq	_do_nfs41_close
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.9:
	movq	$0, 16(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	movl	%r15d, %ebx
	cmpq	$0, 16(%r14)
	jne	LBB0_19
	jmp	LBB0_21
LBB0_7:
	movl	%r15d, %ebx
LBB0_10:
	movl	36(%r14), %edi
	movq	_OPEN_DELEGATE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	callq	_nfs41_delegation_return
	movl	28(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_dprintf
	leaq	32(%r14), %r13
	movl	24(%r14), %ecx
	movl	36(%r14), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_nfs41_remove
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r15d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_NFS4ERR_FILE_OPEN@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_17
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_do_nfs41_close
	testl	%eax, %eax
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	$0, 16(%r14)
	movl	24(%r14), %ecx
	movl	36(%r14), %edi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_nfs41_remove
	testl	%eax, %eax
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%eax, %r15d
	cmpl	(%r12), %eax
	je	LBB0_13
## %bb.16:
	xorl	%ebx, %ebx
LBB0_17:
	movl	%r15d, %edi
	callq	_nfs_error_string
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_dprintf
	movq	_ERROR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_nfs_to_windows_error
	movl	%eax, %r15d
	cmpq	$0, 16(%r14)
	jne	LBB0_19
	jmp	LBB0_21
LBB0_11:
	xorl	%r15d, %r15d
	cmpq	$0, 16(%r14)
	jne	LBB0_19
	jmp	LBB0_21
LBB0_22:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	cmpq	$0, 16(%r14)
	je	LBB0_21
LBB0_19:
	movq	%r14, %rdi
	callq	_do_nfs41_close
LBB0_20:
	movl	%eax, %ebx
LBB0_21:
	movq	%r14, %rdi
	callq	_client_state_remove
	testl	%r15d, %r15d
	cmovel	%ebx, %r15d
	testl	%ebx, %ebx
	cmovnel	%ebx, %r15d
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFS4_OK,4,2                    ## @NFS4_OK
	.comm	_NF4REG,8,3                     ## @NF4REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"removing a renamed file %s\n"

	.comm	_OPEN_DELEGATE_WRITE,4,2        ## @OPEN_DELEGATE_WRITE
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"calling nfs41_remove for %s\n"

	.comm	_NFS4ERR_FILE_OPEN,4,2          ## @NFS4ERR_FILE_OPEN
L_.str.2:                               ## @.str.2
	.asciz	"nfs41_remove() failed with error %s.\n"

	.comm	_ERROR_INTERNAL_ERROR,4,2       ## @ERROR_INTERNAL_ERROR
	.no_dead_strip	_handle_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_close
_handle_close:                          ; @handle_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
Lloh0:
	adrp	x8, _NFS4_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFS4_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x19, [x0]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _NF4REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NF4REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #36]
	ldr	x2, [x21, #24]
	mov	x1, x19
	bl	_pnfs_layout_state_close
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #36]
	add	x1, x19, #24
	bl	_nfs41_delegation_remove_srvopen
LBB0_4:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_8
; %bb.5:
	add	x23, x19, #24
	add	x22, x19, #28
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	w2, [x19, #28]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintf
	add	x0, x19, #40
	mov	x1, x23
	mov	x2, x22
	bl	_create_silly_rename
	mov	x0, x19
	bl	_do_nfs41_close
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.7:
	str	xzr, [x19, #16]
	b	LBB0_10
LBB0_8:
	mov	x21, x20
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_18
	b	LBB0_20
LBB0_9:
	mov	x21, x20
LBB0_10:
	ldr	w0, [x19, #36]
Lloh8:
	adrp	x8, _OPEN_DELEGATE_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPEN_DELEGATE_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x1, x23
	bl	_nfs41_delegation_return
	ldr	w2, [x19, #28]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintf
	add	x23, x19, #32
	ldr	w0, [x19, #36]
	ldr	w3, [x19, #24]
	mov	x1, x23
	mov	x2, x22
	bl	_nfs41_remove
	mov	x20, x0
	cbz	w0, LBB0_17
; %bb.11:
Lloh16:
	adrp	x24, _NFS4ERR_FILE_OPEN@GOTPAGE
Lloh17:
	ldr	x24, [x24, _NFS4ERR_FILE_OPEN@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w20, w8
	b.ne	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_do_nfs41_close
	cbnz	w0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	str	xzr, [x19, #16]
	ldr	w0, [x19, #36]
	ldr	w3, [x19, #24]
	mov	x1, x23
	mov	x2, x22
	bl	_nfs41_remove
	mov	x20, x0
	cbz	w0, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x24]
	cmp	w20, w8
	b.eq	LBB0_12
; %bb.15:
	mov	w21, #0
LBB0_16:
	mov	x0, x20
	bl	_nfs_error_string
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_dprintf
Lloh20:
	adrp	x8, _ERROR_INTERNAL_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_nfs_to_windows_error
	mov	x20, x0
LBB0_17:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_20
LBB0_18:
	mov	x0, x19
	bl	_do_nfs41_close
LBB0_19:
	mov	x21, x0
LBB0_20:
	mov	x0, x19
	bl	_client_state_remove
	cmp	w20, #0
	ccmp	w21, #0, #0, ne
	csel	w0, w20, w21, eq
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	w21, #0
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_18
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NFS4_OK,4,2                    ; @NFS4_OK
	.comm	_NF4REG,8,3                     ; @NF4REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"removing a renamed file %s\n"

	.comm	_OPEN_DELEGATE_WRITE,4,2        ; @OPEN_DELEGATE_WRITE
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"calling nfs41_remove for %s\n"

	.comm	_NFS4ERR_FILE_OPEN,4,2          ; @NFS4ERR_FILE_OPEN
l_.str.2:                               ; @.str.2
	.asciz	"nfs41_remove() failed with error %s.\n"

	.comm	_ERROR_INTERNAL_ERROR,4,2       ; @ERROR_INTERNAL_ERROR
	.no_dead_strip	_handle_close
.subsections_via_symbols
