	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_smb_treedisconnect         ## -- Begin function smb_smb_treedisconnect
	.p2align	4, 0x90
_smb_smb_treedisconnect:                ## @smb_smb_treedisconnect
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_SMB_TID_UNKNOWN@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	cmpq	(%r12), %rax
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_SSTOCP
	movq	_SMB_COM_TREE_DISCONNECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-40(%rbp), %rcx
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_smb_rq_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	-40(%rbp), %rdi
	callq	_smb_rq_wstart
	movq	-40(%rbp), %rdi
	callq	_smb_rq_wend
	movq	-40(%rbp), %rdi
	callq	_smb_rq_bstart
	movq	-40(%rbp), %rdi
	callq	_smb_rq_bend
	movq	-40(%rbp), %rdi
	callq	_smb_rq_simple
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_SMBSDEBUG
	movq	-40(%rbp), %rdi
	callq	_smb_rq_done
	movq	(%r12), %rax
	movq	%rax, (%r14)
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMB_TID_UNKNOWN,8,3            ## @SMB_TID_UNKNOWN
	.comm	_SMB_COM_TREE_DISCONNECT,4,2    ## @SMB_COM_TREE_DISCONNECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_smb_treedisconnect         ; -- Begin function smb_smb_treedisconnect
	.p2align	2
_smb_smb_treedisconnect:                ; @smb_smb_treedisconnect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _SMB_TID_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SMB_TID_UNKNOWN@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	bl	_SSTOCP
Lloh2:
	adrp	x8, _SMB_COM_TREE_DISCONNECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SMB_COM_TREE_DISCONNECT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x2, x20
	bl	_smb_rq_alloc
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x0, [sp, #8]
	bl	_smb_rq_wstart
	ldr	x0, [sp, #8]
	bl	_smb_rq_wend
	ldr	x0, [sp, #8]
	bl	_smb_rq_bstart
	ldr	x0, [sp, #8]
	bl	_smb_rq_bend
	ldr	x0, [sp, #8]
	bl	_smb_rq_simple
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_SMBSDEBUG
	ldr	x0, [sp, #8]
	bl	_smb_rq_done
	ldr	x8, [x21]
	str	x8, [x19]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SMB_TID_UNKNOWN,8,3            ; @SMB_TID_UNKNOWN
	.comm	_SMB_COM_TREE_DISCONNECT,4,2    ; @SMB_COM_TREE_DISCONNECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

.subsections_via_symbols
