	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_nbst_disconnect
_smb_nbst_disconnect:                   ## @smb_nbst_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
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	_NBF_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_soshutdown
	movq	%r14, %rdi
	callq	_soclose
	movq	(%rbx), %rcx
	movq	_NBST_RETARGET@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.4:
	movq	_NBST_CLOSED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_5
LBB0_2:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_NBF_CONNECTED,4,2              ## @NBF_CONNECTED
	.comm	_NBST_RETARGET,8,3              ## @NBST_RETARGET
	.comm	_NBST_CLOSED,8,3                ## @NBST_CLOSED
	.no_dead_strip	_smb_nbst_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_nbst_disconnect
_smb_nbst_disconnect:                   ; @smb_nbst_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
	ldr	x20, [x0]
	cbz	x20, LBB0_4
; %bb.1:
	ldr	x19, [x20, #8]
	cbz	x19, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _NBF_CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBF_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	bic	w8, w9, w8
	str	w8, [x20, #16]
	str	xzr, [x20, #8]
	mov	x0, x19
	mov	w1, #2
	bl	_soshutdown
	mov	x0, x19
	bl	_soclose
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _NBST_RETARGET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NBST_RETARGET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
Lloh9:
	adrp	x8, _NBST_CLOSED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NBST_CLOSED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_NBF_CONNECTED,4,2              ; @NBF_CONNECTED
	.comm	_NBST_RETARGET,8,3              ; @NBST_RETARGET
	.comm	_NBST_CLOSED,8,3                ; @NBST_CLOSED
	.no_dead_strip	_smb_nbst_disconnect
.subsections_via_symbols
