	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_logout                     ## -- Begin function cmd_logout
	.p2align	4, 0x90
_cmd_logout:                            ## @cmd_logout
	.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	%rsi, %r14
	movl	%edi, %ebx
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_logout_usage
LBB0_2:
	movq	_SMB_ST_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-56(%rbp), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movl	$129, %ecx
	movl	$130, %r8d
	callq	_smb_ctx_init
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	leaq	-56(%rbp), %rdi
	callq	_smb_ctx_readrc
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movq	_smb_rc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_rc_close
LBB0_6:
	movq	_STDPARAM_OPT@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_getopt
	movq	_EOF@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_7
LBB0_13:
	movq	_SMBVOPT_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -48(%rbp)
	movq	_SMBSOPT_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -44(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_smb_ctx_resolve
	testq	%rax, %rax
	jne	LBB0_10
## %bb.14:
	movl	-56(%rbp), %ebx
	leaq	-56(%rbp), %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_smb_ctx_lookup
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.16:
	movl	-52(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
LBB0_26:
	xorl	%eax, %eax
	callq	_smb_error
	movl	$1, %edi
	callq	_exit
LBB0_7:
	leaq	-56(%rbp), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_logout_usage
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %edx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_getopt
	cmpl	(%r13), %eax
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$128, %esi
	callq	_smb_ctx_opt
	testl	%eax, %eax
	je	LBB0_12
	jmp	LBB0_10
LBB0_17:
	testl	%eax, %eax
	je	LBB0_18
LBB0_10:
	movl	$1, %edi
	callq	_exit
LBB0_18:
	cmpl	$129, %ebx
	je	LBB0_19
## %bb.20:
	cmpl	$130, %ebx
	jne	LBB0_25
## %bb.21:
	movq	_SMBS_PERMANENT@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	movq	_SMBV_PERMANENT@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_smb_ctx_setflags
	testl	%eax, %eax
	je	LBB0_27
## %bb.23:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_27
## %bb.24:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_smb_error
	movl	$1, %edi
	callq	_exit
LBB0_25:
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	jmp	LBB0_26
LBB0_27:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SMB_ST_ANY,4,2                 ## @SMB_ST_ANY
	.comm	_smb_rc,8,3                     ## @smb_rc
	.comm	_STDPARAM_OPT,4,2               ## @STDPARAM_OPT
	.comm	_EOF,4,2                        ## @EOF
	.comm	_optarg,4,2                     ## @optarg
	.comm	_SMBVOPT_CREATE,4,2             ## @SMBVOPT_CREATE
	.comm	_SMBSOPT_CREATE,4,2             ## @SMBSOPT_CREATE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"There is no connection to %s"

	.comm	_SMBV_PERMANENT,4,2             ## @SMBV_PERMANENT
	.comm	_SMBS_PERMANENT,4,2             ## @SMBS_PERMANENT
L_.str.1:                               ## @.str.1
	.asciz	"unknown connection level %d"

	.comm	_EACCES,4,2                     ## @EACCES
L_.str.2:                               ## @.str.2
	.asciz	"Can't release connection"

	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_str:                                  ## @str
	.asciz	"Connection unmarked as permanent and will be closed when possible"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_logout                     ; -- Begin function cmd_logout
	.p2align	2
_cmd_logout:                            ; @cmd_logout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
	bl	_logout_usage
LBB0_2:
Lloh0:
	adrp	x8, _SMB_ST_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMB_ST_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	add	x0, sp, #16
	mov	x1, x20
	mov	x2, x19
	mov	w3, #129
	mov	w4, #130
	bl	_smb_ctx_init
	cbnz	x0, LBB0_18
; %bb.3:
	add	x0, sp, #16
	bl	_smb_ctx_readrc
	cbnz	x0, LBB0_18
; %bb.4:
Lloh3:
	adrp	x8, _smb_rc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _smb_rc@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_rc_close
LBB0_6:
Lloh6:
	adrp	x21, _STDPARAM_OPT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _STDPARAM_OPT@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_getopt
Lloh8:
	adrp	x22, _EOF@GOTPAGE
Lloh9:
	ldr	x22, [x22, _EOF@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_12
LBB0_7:
Lloh10:
	adrp	x8, _SMBVOPT_CREATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMBVOPT_CREATE@GOTPAGEOFF]
Lloh12:
	adrp	x9, _SMBSOPT_CREATE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SMBSOPT_CREATE@GOTPAGEOFF]
Lloh14:
	ldr	s0, [x8]
	ld1.s	{ v0 }[1], [x9]
	ldr	d1, [sp, #24]
	bic.8b	v0, v1, v0
	str	d0, [sp, #24]
	add	x0, sp, #16
	bl	_smb_ctx_resolve
	cbnz	x0, LBB0_18
; %bb.8:
	ldr	w19, [sp, #16]
	add	x0, sp, #16
	mov	x1, x19
	mov	w2, #0
	bl	_smb_ctx_lookup
	mov	x1, x0
	cbz	w0, LBB0_17
; %bb.9:
Lloh15:
	adrp	x8, _ENOENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_17
; %bb.10:
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_smb_error
	mov	w0, #1
	bl	_exit
LBB0_12:
Lloh20:
	adrp	x23, _optarg@GOTPAGE
Lloh21:
	ldr	x23, [x23, _optarg@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_logout_usage
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_getopt
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_7
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	w0, #128
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w2, [x23]
	add	x0, sp, #16
	mov	w1, #128
	bl	_smb_ctx_opt
	cbz	w0, LBB0_14
	b	LBB0_18
LBB0_17:
	cbz	w1, LBB0_19
LBB0_18:
	mov	w0, #1
	bl	_exit
LBB0_19:
	cmp	w19, #129
	b.eq	LBB0_22
; %bb.20:
	cmp	w19, #130
	b.ne	LBB0_26
; %bb.21:
Lloh22:
	adrp	x8, _SMBS_PERMANENT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SMBS_PERMANENT@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
Lloh24:
	adrp	x8, _SMBV_PERMANENT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMBV_PERMANENT@GOTPAGEOFF]
LBB0_23:
	ldr	w2, [x8]
	add	x0, sp, #16
	mov	x1, x19
	mov	w3, #0
	bl	_smb_ctx_setflags
	cbz	w0, LBB0_27
; %bb.24:
	mov	x1, x0
Lloh26:
	adrp	x8, _EACCES@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_27
; %bb.25:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_26:
	str	x19, [sp]
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	b	LBB0_11
LBB0_27:
Lloh33:
	adrp	x0, l_str@PAGE
Lloh34:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_SMB_ST_ANY,4,2                 ; @SMB_ST_ANY
	.comm	_smb_rc,8,3                     ; @smb_rc
	.comm	_STDPARAM_OPT,4,2               ; @STDPARAM_OPT
	.comm	_EOF,4,2                        ; @EOF
	.comm	_optarg,4,2                     ; @optarg
	.comm	_SMBVOPT_CREATE,4,2             ; @SMBVOPT_CREATE
	.comm	_SMBSOPT_CREATE,4,2             ; @SMBSOPT_CREATE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"There is no connection to %s"

	.comm	_SMBV_PERMANENT,4,2             ; @SMBV_PERMANENT
	.comm	_SMBS_PERMANENT,4,2             ; @SMBS_PERMANENT
l_.str.1:                               ; @.str.1
	.asciz	"unknown connection level %d"

	.comm	_EACCES,4,2                     ; @EACCES
l_.str.2:                               ; @.str.2
	.asciz	"Can't release connection"

	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_str:                                  ; @str
	.asciz	"Connection unmarked as permanent and will be closed when possible"

.subsections_via_symbols
