	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_usr_openshare              ## -- Begin function smb_usr_openshare
	.p2align	4, 0x90
_smb_usr_openshare:                     ## @smb_usr_openshare
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_smb_usr_share2spec
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_smb_vc_lookupshare
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	_SMBSOPT_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_9
## %bb.4:
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_smb_share_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_smb_smb_treeconnect
	movq	-56(%rbp), %rdi
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	%r15, %rsi
	callq	_smb_share_put
	jmp	LBB0_9
LBB0_2:
	movq	-56(%rbp), %rax
	movq	%rax, (%r14)
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rdi, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SMBSOPT_CREATE,4,2             ## @SMBSOPT_CREATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_usr_openshare              ; -- Begin function smb_usr_openshare
	.p2align	2
_smb_usr_openshare:                     ; @smb_usr_openshare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	mov	x1, sp
	mov	x0, x23
	bl	_smb_usr_share2spec
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	mov	x1, sp
	add	x3, sp, #8
	mov	x0, x22
	mov	x2, x20
	bl	_smb_vc_lookupshare
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _SMBSOPT_CREATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMBSOPT_CREATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.4:
	mov	x1, sp
	add	x3, sp, #8
	mov	x0, x22
	mov	x2, x20
	bl	_smb_share_create
	mov	x21, x0
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_smb_smb_treeconnect
	mov	x21, x0
	ldr	x0, [sp, #8]
	cbz	w21, LBB0_8
; %bb.6:
	mov	x1, x20
	bl	_smb_share_put
	b	LBB0_1
LBB0_7:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_1
LBB0_8:
	str	x0, [x19]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMBSOPT_CREATE,4,2             ; @SMBSOPT_CREATE
.subsections_via_symbols
