	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_iod_disconnect
_smb_iod_disconnect:                    ## @smb_iod_disconnect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_SMBIODEBUG
	movq	(%rbx), %rax
	movq	_SMBIOD_ST_VCACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_smb_smb_ssnclose
	movq	_SMBIOD_ST_TRANACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	_SMB_UID_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_smb_iod_closetran
	movq	_SMBIOD_ST_NOTCONN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_SMBIOD_ST_VCACTIVE,8,3         ## @SMBIOD_ST_VCACTIVE
	.comm	_SMBIOD_ST_TRANACTIVE,8,3       ## @SMBIOD_ST_TRANACTIVE
	.comm	_SMB_UID_UNKNOWN,4,2            ## @SMB_UID_UNKNOWN
	.comm	_SMBIOD_ST_NOTCONN,8,3          ## @SMBIOD_ST_NOTCONN
	.no_dead_strip	_smb_iod_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_iod_disconnect
_smb_iod_disconnect:                    ; @smb_iod_disconnect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SMBIODEBUG
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _SMBIOD_ST_VCACTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SMBIOD_ST_VCACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x1, x19, #8
	mov	x0, x20
	bl	_smb_smb_ssnclose
Lloh5:
	adrp	x8, _SMBIOD_ST_TRANACTIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SMBIOD_ST_TRANACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_2:
Lloh8:
	adrp	x8, _SMB_UID_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SMB_UID_UNKNOWN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	bl	_smb_iod_closetran
Lloh11:
	adrp	x8, _SMBIOD_ST_NOTCONN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SMBIOD_ST_NOTCONN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_SMBIOD_ST_VCACTIVE,8,3         ; @SMBIOD_ST_VCACTIVE
	.comm	_SMBIOD_ST_TRANACTIVE,8,3       ; @SMBIOD_ST_TRANACTIVE
	.comm	_SMB_UID_UNKNOWN,4,2            ; @SMB_UID_UNKNOWN
	.comm	_SMBIOD_ST_NOTCONN,8,3          ; @SMBIOD_ST_NOTCONN
	.no_dead_strip	_smb_iod_disconnect
.subsections_via_symbols
