	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function webnfs_lookup
_webnfs_lookup:                         ## @webnfs_lookup
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	%rsp, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_UDPMSGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_nfs_auth@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 16(%r12)
	jne	LBB0_4
## %bb.3:
	movq	_XLOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_plog
	movq	_NFS_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, 16(%r12)
LBB0_4:
	movl	24(%r12), %edi
	callq	_strlen
	movslq	%eax, %rbx
	leaq	2(%rbx), %rdi
	callq	_xmalloc
	movq	%rax, %r14
	movb	$-128, (%rax)
	leaq	1(%rax), %rdi
	movl	24(%r12), %esi
	incq	%rbx
	movq	%rbx, %rdx
	callq	_xstrlcpy
	movq	_NFSPROC_LOOKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_xdr_diropargs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-120(%rbp), %rdi
	movq	_NFS_FHSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -128(%rbp)
	movq	_XLOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_plog
	movq	_NFS_PROGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rdx
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_rpc_msg_init
	movq	_nfs_auth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-128(%rbp), %r8
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	callq	_make_rpc_packet
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:
	leaq	16(%r12), %rbx
	movq	_RPC_XID_WEBNFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rsi
	callq	_MK_RPC_XID
	movl	8(%r12), %r9d
	subq	$8, %rsp
	movl	%eax, %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	movq	%rbx, %r8
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_fwd_packet
	addq	$16, %rsp
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	callq	_make_nfs_auth
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_2
LBB0_6:
	negl	%r14d
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_XFREE
LBB0_8:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UDPMSGSIZE,4,2                 ## @UDPMSGSIZE
	.comm	_nfs_auth,4,2                   ## @nfs_auth
	.comm	_XLOG_WARNING,4,2               ## @XLOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"webnfs_lookup: port == 0 for nfs on %s, fixed"

	.comm	_NFS_PORT,4,2                   ## @NFS_PORT
	.comm	_NFSPROC_LOOKUP,4,2             ## @NFSPROC_LOOKUP
	.comm	_xdr_diropargs,8,3              ## @xdr_diropargs
	.comm	_NFS_FHSIZE,4,2                 ## @NFS_FHSIZE
	.comm	_XLOG_INFO,4,2                  ## @XLOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"webnfs_lookup: NFS version %d"

	.comm	_NFS_PROGRAM,4,2                ## @NFS_PROGRAM
	.comm	_RPC_XID_WEBNFS,4,2             ## @RPC_XID_WEBNFS
	.comm	_AM_NFSPROC3_LOOKUP,4,2         ## @AM_NFSPROC3_LOOKUP
	.comm	_NFS_VERSION3,8,3               ## @NFS_VERSION3
	.comm	_xdr_am_LOOKUP3args,8,3         ## @xdr_am_LOOKUP3args
	.no_dead_strip	_webnfs_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function webnfs_lookup
_webnfs_lookup:                         ; @webnfs_lookup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x19, x1
	mov	x20, x0
	mov	x27, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _UDPMSGSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UDPMSGSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x28, _nfs_auth@GOTPAGE
Lloh9:
	ldr	x28, [x28, _nfs_auth@GOTPAGEOFF]
	ldr	w8, [x28]
	cbz	w8, LBB0_5
LBB0_1:
	mov	x23, x20
	ldr	x8, [x23, #16]!
	cbnz	x8, LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _XLOG_WARNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XLOG_WARNING@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x20, #32]
	ldr	w2, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_plog
Lloh15:
	adrp	x8, _NFS_PORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NFS_PORT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [x20, #16]
LBB0_3:
	ldr	w0, [x20, #24]
	bl	_strlen
	add	w8, w0, #2
	sxtw	x25, w8
	mov	x0, x25
	bl	_xmalloc
	mov	x24, x0
	mov	w8, #128
	strb	w8, [x0], #1
	ldr	w1, [x20, #24]
	sub	x2, x25, #1
	bl	_xstrlcpy
Lloh18:
	adrp	x8, _NFSPROC_LOOKUP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NFSPROC_LOOKUP@GOTPAGEOFF]
Lloh20:
	ldr	w25, [x8]
Lloh21:
	adrp	x8, _xdr_diropargs@GOTPAGE
Lloh22:
	ldr	x8, [x8, _xdr_diropargs@GOTPAGEOFF]
Lloh23:
	ldr	x26, [x8]
	sub	x8, x29, #128
	add	x0, x8, #8
Lloh24:
	adrp	x8, _NFS_FHSIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NFS_FHSIZE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	stur	x24, [x29, #-128]
Lloh27:
	adrp	x8, _XLOG_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _XLOG_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_plog
Lloh32:
	adrp	x8, _NFS_PROGRAM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NFS_PROGRAM@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	x2, [x20]
	sub	x0, x29, #96
	mov	x3, x25
	bl	_rpc_msg_init
	ldr	w6, [x28]
	sub	x3, x29, #96
	sub	x4, x29, #128
	mov	x0, x21
	mov	x1, x22
	mov	x2, x25
	mov	x5, x26
	bl	_make_rpc_packet
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
Lloh35:
	adrp	x8, _RPC_XID_WEBNFS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RPC_XID_WEBNFS@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x1, [x20, #8]
	bl	_MK_RPC_XID
	ldr	w5, [x20, #8]
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x23
	mov	x6, x19
	bl	_fwd_packet
	mov	x23, x0
	b	LBB0_7
LBB0_5:
	bl	_make_nfs_auth
	mov	x23, x0
	cbnz	w0, LBB0_8
	b	LBB0_1
LBB0_6:
	neg	w23, w22
LBB0_7:
	mov	x0, x24
	bl	_XFREE
LBB0_8:
	mov	sp, x27
	ldur	x8, [x29, #-88]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x23
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_UDPMSGSIZE,4,2                 ; @UDPMSGSIZE
	.comm	_nfs_auth,4,2                   ; @nfs_auth
	.comm	_XLOG_WARNING,4,2               ; @XLOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"webnfs_lookup: port == 0 for nfs on %s, fixed"

	.comm	_NFS_PORT,4,2                   ; @NFS_PORT
	.comm	_NFSPROC_LOOKUP,4,2             ; @NFSPROC_LOOKUP
	.comm	_xdr_diropargs,8,3              ; @xdr_diropargs
	.comm	_NFS_FHSIZE,4,2                 ; @NFS_FHSIZE
	.comm	_XLOG_INFO,4,2                  ; @XLOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"webnfs_lookup: NFS version %d"

	.comm	_NFS_PROGRAM,4,2                ; @NFS_PROGRAM
	.comm	_RPC_XID_WEBNFS,4,2             ; @RPC_XID_WEBNFS
	.comm	_AM_NFSPROC3_LOOKUP,4,2         ; @AM_NFSPROC3_LOOKUP
	.comm	_NFS_VERSION3,8,3               ; @NFS_VERSION3
	.comm	_xdr_am_LOOKUP3args,8,3         ; @xdr_am_LOOKUP3args
	.no_dead_strip	_webnfs_lookup
.subsections_via_symbols
