	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_new_rpc_auth
_create_new_rpc_auth:                   ## @create_new_rpc_auth
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ERROR_NETWORK_UNREACHABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MAX_SECINFOS@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_15
## %bb.1:
	movq	%rdx, %r12
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	addq	$8, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_eprintf
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	_MAX_SECINFOS@GOTPCREL(%rip), %rbx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%rbx), %rax
	addq	$16, %r12
	cmpq	%rax, %r15
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_14
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RPCSEC_GSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movl	32(%rax), %esi
	movq	(%r12), %rdx
	callq	_authsspi_create_default
	movq	(%r12), %r14
	testq	%rax, %rax
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_gssauth_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_gethostname
	leaq	L_.str.1(%rip), %rdi
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, -1(%rbx,%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movl	28(%rax), %esi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	leaq	-76(%rbp), %r8
	callq	_authsys_create
	leaq	L_.str.2(%rip), %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r13
	movq	_AUTH_SYS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_14:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_15
LBB0_6:
	movq	%rax, %r13
LBB0_11:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_AcquireSRWLockExclusive
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r14, 16(%rdi)
	movq	8(%rdi), %rax
	movq	%r13, (%rax)
	callq	_ReleaseSRWLockExclusive
	xorl	%eax, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_NETWORK_UNREACHABLE,4,2  ## @ERROR_NETWORK_UNREACHABLE
	.comm	_MAX_SECINFOS,4,2               ## @MAX_SECINFOS
	.comm	_RPCSEC_GSS,8,3                 ## @RPCSEC_GSS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handle_wrongsecinfo_noname: authsspi_create_default for gsstype %s failed\n"

	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
L_.str.1:                               ## @.str.1
	.asciz	"nfs41_rpc_clnt_create: gethostname failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"handle_wrongsecinfo_noname: authsys_create failed\n"

	.comm	_AUTH_SYS,8,3                   ## @AUTH_SYS
	.no_dead_strip	_create_new_rpc_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_new_rpc_auth
_create_new_rpc_auth:                   ; @create_new_rpc_auth
	.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, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ERROR_NETWORK_UNREACHABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ERROR_NETWORK_UNREACHABLE@GOTPAGEOFF]
	stur	x8, [x29, #-88]
Lloh5:
	ldr	w0, [x9]
Lloh6:
	adrp	x24, _MAX_SECINFOS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MAX_SECINFOS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	stur	w0, [x29, #-96]                 ; 4-byte Folded Spill
	mov	x25, #0
	add	x26, x2, #8
Lloh8:
	adrp	x27, _RPCSEC_GSS@GOTPAGE
Lloh9:
	ldr	x27, [x27, _RPCSEC_GSS@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
Lloh12:
	adrp	x28, _MAXHOSTNAMELEN@GOTPAGE
Lloh13:
	ldr	x28, [x28, _MAXHOSTNAMELEN@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_eprintf
	mov	sp, x20
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	add	x26, x26, #16
	cmp	x25, x8
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x26, #-8]
	cbnz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x26]
	cbz	x9, LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	ldr	w1, [x8, #32]
	ldr	x2, [x26]
	bl	_authsspi_create_default
	ldr	x23, [x26]
	cbnz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_gssauth_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
	mov	x0, x21
	bl	_eprintf
	add	sp, sp, #16
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, sp
	ldr	w8, [x28]
	add	w23, w8, #1
	mov	x9, x23
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	mov	x0, x22
	mov	x1, x23
	bl	_gethostname
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x23, x22
	sturb	wzr, [x8, #-1]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldp	w2, w1, [x8, #24]
	sub	x4, x29, #92
	mov	x0, x22
	mov	w3, #0
	bl	_authsys_create
	mov	x22, x0
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	cbz	x22, LBB0_3
; %bb.12:
Lloh20:
	adrp	x8, _AUTH_SYS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AUTH_SYS@GOTPAGEOFF]
Lloh22:
	ldr	x23, [x8]
	mov	sp, x20
	b	LBB0_15
LBB0_13:
	ldur	w0, [x29, #-96]                 ; 4-byte Folded Reload
	b	LBB0_16
LBB0_14:
	mov	x22, x0
LBB0_15:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_AcquireSRWLockExclusive
	ldr	x8, [x19]
	ldr	x0, [x8]
	str	x23, [x0, #16]
	ldr	x8, [x0, #8]
	str	x22, [x8]
	bl	_ReleaseSRWLockExclusive
	mov	w0, #0
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	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_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_NETWORK_UNREACHABLE,4,2  ; @ERROR_NETWORK_UNREACHABLE
	.comm	_MAX_SECINFOS,4,2               ; @MAX_SECINFOS
	.comm	_RPCSEC_GSS,8,3                 ; @RPCSEC_GSS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handle_wrongsecinfo_noname: authsspi_create_default for gsstype %s failed\n"

	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
l_.str.1:                               ; @.str.1
	.asciz	"nfs41_rpc_clnt_create: gethostname failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"handle_wrongsecinfo_noname: authsys_create failed\n"

	.comm	_AUTH_SYS,8,3                   ; @AUTH_SYS
	.no_dead_strip	_create_new_rpc_auth
.subsections_via_symbols
