	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_share_create               ## -- Begin function smb_share_create
	.p2align	4, 0x90
_smb_share_create:                      ## @smb_share_create
	.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	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rbx
	movq	(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r12
	movq	8(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_smb_suser
	movq	%rax, %r15
	movq	_SMBM_ANY_OWNER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_4
## %bb.1:
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_4
## %bb.2:
	testq	%r15, %r15
	je	LBB0_4
LBB0_3:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_4:
	movq	_SMBM_ANY_GROUP@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_5:
	leaq	-48(%rbp), %rcx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_smb_vc_lookupshare
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movq	_SMBM_ANY_OWNER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmovneq	%r12, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_SMBM_ANY_GROUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	_M_SMBCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %edi
	callq	_smb_zmalloc
	movq	%rax, -48(%rbp)
	movq	%rax, %rdi
	callq	_SSTOCP
	movq	_SMBL_SHARE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movl	%eax, %edi
	callq	_smb_co_init
	movq	_smb_share_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdi
	movl	%eax, 56(%rdi)
	movq	_smb_share_gone@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rdi)
	addq	$48, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_smb_sl_init
	movq	32(%r13), %rdi
	callq	_smb_strdup
	movq	-48(%rbp), %rcx
	movq	%rax, 40(%rcx)
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	cmpq	$0, (%rdi)
	je	LBB0_11
## %bb.10:
	callq	_smb_strdup
	movq	-48(%rbp), %rcx
	movq	%rax, 32(%rcx)
LBB0_11:
	movl	20(%r13), %eax
	movl	%eax, 28(%rcx)
	movq	_SMB_TID_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movq	_SMBM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%r13), %eax
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_VCTOCP
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_SSTOCP
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_smb_co_addchild
	movq	-48(%rbp), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_groupmember
	testl	%eax, %eax
	jne	LBB0_5
## %bb.13:
	testq	%r15, %r15
	jne	LBB0_3
	jmp	LBB0_5
LBB0_14:
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_smb_share_put
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SMBM_ANY_OWNER,8,3             ## @SMBM_ANY_OWNER
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_SMBM_ANY_GROUP,8,3             ## @SMBM_ANY_GROUP
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_M_SMBCONN,4,2                  ## @M_SMBCONN
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_SMBL_SHARE,4,2                 ## @SMBL_SHARE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smbss ilock"

L_.str.1:                               ## @.str.1
	.asciz	"smbss"

	.comm	_smb_share_free,4,2             ## @smb_share_free
	.comm	_smb_share_gone,4,2             ## @smb_share_gone
L_.str.2:                               ## @.str.2
	.asciz	"ssstlock"

	.comm	_SMB_TID_UNKNOWN,4,2            ## @SMB_TID_UNKNOWN
	.comm	_SMBM_MASK,4,2                  ## @SMBM_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_share_create               ; -- Begin function smb_share_create
	.p2align	2
_smb_share_create:                      ; @smb_share_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x2]
	ldr	x26, [x23]
	ldp	x27, x22, [x1]
	mov	x0, x23
	bl	_smb_suser
Lloh0:
	adrp	x28, _SMBM_ANY_OWNER@GOTPAGE
Lloh1:
	ldr	x28, [x28, _SMBM_ANY_OWNER@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x27, x8
	ccmp	x27, x26, #4, ne
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_10
; %bb.1:
	str	x19, [sp]                       ; 8-byte Folded Spill
Lloh2:
	adrp	x19, _SMBM_ANY_GROUP@GOTPAGE
Lloh3:
	ldr	x19, [x19, _SMBM_ANY_GROUP@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x22, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x25, x0
	mov	x0, x22
	mov	x1, x23
	bl	_groupmember
	cmp	w0, #0
	ccmp	x25, #0, #4, eq
	b.ne	LBB0_10
LBB0_3:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_smb_vc_lookupshare
	cbz	w0, LBB0_13
; %bb.4:
	ldr	x8, [x28]
	cmp	x27, x8
	csel	x24, x26, x27, eq
	ldr	x8, [x19]
	cmp	x22, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x23, #8]
	ldr	x22, [x8]
LBB0_6:
Lloh4:
	adrp	x8, _M_SMBCONN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_SMBCONN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w0, #64
	bl	_smb_zmalloc
	str	x0, [sp, #8]
	bl	_SSTOCP
Lloh10:
	adrp	x8, _SMBL_SHARE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMBL_SHARE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
Lloh15:
	adrp	x3, l_.str.1@PAGE
Lloh16:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_smb_co_init
Lloh17:
	adrp	x8, _smb_share_free@GOTPAGE
Lloh18:
	ldr	x8, [x8, _smb_share_free@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
Lloh20:
	adrp	x10, _smb_share_gone@GOTPAGE
Lloh21:
	ldr	x10, [x10, _smb_share_gone@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #52]
	add	x0, x9, #48
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_smb_sl_init
	ldr	x0, [x21, #32]
	bl	_smb_strdup
	ldp	x19, x8, [sp]                   ; 8-byte Folded Reload
	str	x0, [x8, #40]
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x9, [x0]
	cbz	x9, LBB0_9
; %bb.8:
	bl	_smb_strdup
	ldr	x8, [sp, #8]
	str	x0, [x8, #32]
LBB0_9:
Lloh25:
	adrp	x9, _SMB_TID_UNKNOWN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SMB_TID_UNKNOWN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	ldp	w11, w10, [x21, #16]
	stp	w9, w10, [x8, #24]
	stp	x22, x24, [x8, #8]
Lloh28:
	adrp	x9, _SMBM_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SMBM_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	and	w9, w9, w11
	str	w9, [x8]
	mov	x0, x20
	bl	_VCTOCP
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_SSTOCP
	mov	x1, x0
	mov	x0, x20
	bl	_smb_co_addchild
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_12
LBB0_10:
Lloh31:
	adrp	x8, _EPERM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	x0, [sp, #8]
	mov	x1, x24
	bl	_smb_share_put
Lloh33:
	adrp	x8, _EEXIST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_SMBM_ANY_OWNER,8,3             ; @SMBM_ANY_OWNER
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_SMBM_ANY_GROUP,8,3             ; @SMBM_ANY_GROUP
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_M_SMBCONN,4,2                  ; @M_SMBCONN
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_SMBL_SHARE,4,2                 ; @SMBL_SHARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smbss ilock"

l_.str.1:                               ; @.str.1
	.asciz	"smbss"

	.comm	_smb_share_free,4,2             ; @smb_share_free
	.comm	_smb_share_gone,4,2             ; @smb_share_gone
l_.str.2:                               ; @.str.2
	.asciz	"ssstlock"

	.comm	_SMB_TID_UNKNOWN,4,2            ; @SMB_TID_UNKNOWN
	.comm	_SMBM_MASK,4,2                  ; @SMBM_MASK
.subsections_via_symbols
