	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_sm_lookup                  ## -- Begin function smb_sm_lookup
	.p2align	4, 0x90
_smb_sm_lookup:                         ## @smb_sm_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, (%rcx)
	xorl	%eax, %eax
	callq	_smb_sm_lockvclist
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_smb_sm_lookupint
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_SMBV_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.4:
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_smb_sm_lookupint
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_smb_vc_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_smb_vc_connect
	movl	%eax, %ebx
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	testl	%ebx, %ebx
	je	LBB0_11
LBB0_8:
	xorl	%eax, %eax
	callq	_smb_sm_unlockvclist
	testl	%ebx, %ebx
	jne	LBB0_17
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
	callq	_smb_sm_unlockvclist
	jmp	LBB0_19
LBB0_10:
	testq	%r13, %r13
	je	LBB0_14
LBB0_11:
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rcx
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_smb_share_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	-56(%rbp), %rdi
	movq	%r14, %rsi
	callq	_smb_smb_treeconnect
	movq	-56(%rbp), %rdi
	testl	%eax, %eax
	je	LBB0_13
## %bb.15:
	movl	%eax, %ebx
	movq	%r14, %rsi
	callq	_smb_share_put
LBB0_16:
	xorl	%eax, %eax
	callq	_smb_sm_unlockvclist
LBB0_17:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_smb_vc_lock
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_smb_vc_put
	jmp	LBB0_19
LBB0_13:
	movq	%rdi, 8(%r15)
LBB0_14:
	xorl	%eax, %eax
	callq	_smb_sm_unlockvclist
LBB0_9:
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMBV_CREATE,4,2                ## @SMBV_CREATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_sm_lookup                  ; -- Begin function smb_sm_lookup
	.p2align	2
_smb_sm_lookup:                         ; @smb_sm_lookup
	.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	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	stp	xzr, xzr, [sp]
	str	xzr, [x3]
	bl	_smb_sm_lockvclist
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.1:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	mov	x3, x20
	bl	_smb_sm_lookupint
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.2:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _SMBV_CREATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMBV_CREATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, #0
	mov	x2, x19
	bl	_smb_sm_lookupint
	cbz	w0, LBB0_9
; %bb.4:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_smb_vc_create
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_smb_vc_connect
	mov	x22, x0
	cbz	x23, LBB0_7
; %bb.6:
	cbz	w22, LBB0_10
LBB0_7:
	bl	_smb_sm_unlockvclist
	cbnz	w22, LBB0_14
	b	LBB0_18
LBB0_8:
	bl	_smb_sm_unlockvclist
	b	LBB0_19
LBB0_9:
	cbz	x23, LBB0_17
LBB0_10:
	ldr	x0, [sp, #8]
	mov	x3, sp
	mov	x1, x23
	mov	x2, x19
	bl	_smb_share_create
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.11:
	ldr	x0, [sp]
	mov	x1, x19
	bl	_smb_smb_treeconnect
	mov	x22, x0
	ldr	x0, [sp]
	cbz	w22, LBB0_16
; %bb.12:
	mov	x1, x19
	bl	_smb_share_put
LBB0_13:
	bl	_smb_sm_unlockvclist
LBB0_14:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_19
; %bb.15:
	bl	_smb_vc_lock
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_smb_vc_put
	b	LBB0_19
LBB0_16:
	str	x0, [x21, #8]
LBB0_17:
	bl	_smb_sm_unlockvclist
LBB0_18:
	mov	w22, #0
	ldr	x8, [sp, #8]
	str	x8, [x20]
LBB0_19:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMBV_CREATE,4,2                ; @SMBV_CREATE
.subsections_via_symbols
