	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_view                       ## -- Begin function cmd_view
	.p2align	4, 0x90
_cmd_view:                              ## @cmd_view
	.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	$40, %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	_view_usage
LBB0_2:
	movq	_SMBL_VC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SMB_ST_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movl	%ecx, %r8d
	callq	_smb_ctx_init
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	leaq	-48(%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), %r13
	movl	(%r13), %edx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_getopt
	movq	_EOF@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_7
LBB0_13:
	movq	_SMB_ST_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_smb_ctx_setshare
	movq	%rbx, %rdi
	callq	_smb_ctx_resolve
	testq	%rax, %rax
	jne	LBB0_10
## %bb.14:
	movq	_SMBL_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SMBLK_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	callq	_smb_ctx_lookup
	testl	%eax, %eax
	jne	LBB0_23
## %bb.15:
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.8(%rip), %rdi
	callq	_puts
	movl	$65504, %edi                    ## imm = 0xFFE0
	callq	_malloc
	leaq	-48(%rbp), %rdi
	leaq	-52(%rbp), %r8
	leaq	-68(%rbp), %r9
	movl	$1, %esi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	movl	$65504, %ecx                    ## imm = 0xFFE0
	callq	_smb_rap_NetShareEnum
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	_SMB_ERROR_MORE_DATA@GOTPCREL(%rip), %rcx
	movq	_SMB_RAP_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	cmpl	%edx, %eax
	jne	LBB0_24
LBB0_17:
	movl	-52(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_22
## %bb.18:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	12(%rax), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	L_.str.5(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_printf
	incl	%r15d
	movl	-52(%rbp), %esi
	addq	$16, %r14
	cmpl	%esi, %r15d
	jge	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_le16toh
	movl	%eax, %r13d
	movl	-4(%r14), %edi
	callq	_le32toh
	movl	%eax, %ebx
	movq	-12(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_shtype@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_min
	movq	(%r12,%rax,8), %r13
	leaq	L_.str.6(%rip), %rcx
	andl	$65535, %ebx                    ## imm = 0xFFFF
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%ebx, %edi
	addq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	movq	%rdi, %rsi
	callq	_nls_str_toloc
	movq	%rax, %rcx
	jmp	LBB0_21
LBB0_22:
	movl	-68(%rbp), %edx
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-48(%rbp), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_view_usage
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %edx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_getopt
	cmpl	(%r12), %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
LBB0_10:
	movl	$1, %edi
	callq	_exit
LBB0_23:
	movl	-48(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_smb_error
	movl	$1, %edi
	callq	_exit
LBB0_24:
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_smb_error
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SMBL_VC,4,2                    ## @SMBL_VC
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IPC$"

	.comm	_SMBL_SHARE,4,2                 ## @SMBL_SHARE
	.comm	_SMBLK_CREATE,4,2               ## @SMBLK_CREATE
L_.str.1:                               ## @.str.1
	.asciz	"could not login to server %s"

	.comm	_SMB_ERROR_MORE_DATA,4,2        ## @SMB_ERROR_MORE_DATA
	.comm	_SMB_RAP_ERROR,4,2              ## @SMB_RAP_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"unable to list resources"

L_.str.5:                               ## @.str.5
	.asciz	"%-12s %-10s %s\n"

	.comm	_shtype,8,3                     ## @shtype
L_.str.6:                               ## @.str.6
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"\n%d shares listed from %d available\n"

	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_str:                                  ## @str
	.asciz	"Share        Type       Comment"

L_str.8:                                ## @str.8
	.asciz	"-------------------------------"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_view                       ; -- Begin function cmd_view
	.p2align	2
_cmd_view:                              ; @cmd_view
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
	bl	_view_usage
LBB0_2:
Lloh0:
	adrp	x8, _SMBL_VC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMBL_VC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x21, _SMB_ST_ANY@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SMB_ST_ANY@GOTPAGEOFF]
	ldr	w5, [x21]
	add	x0, sp, #40
	mov	x1, x20
	mov	x2, x19
	mov	x4, x3
	bl	_smb_ctx_init
	cbnz	x0, LBB0_23
; %bb.3:
	add	x0, sp, #40
	bl	_smb_ctx_readrc
	cbnz	x0, LBB0_23
; %bb.4:
Lloh5:
	adrp	x8, _smb_rc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _smb_rc@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_rc_close
LBB0_6:
Lloh8:
	adrp	x22, _STDPARAM_OPT@GOTPAGE
Lloh9:
	ldr	x22, [x22, _STDPARAM_OPT@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_getopt
Lloh10:
	adrp	x23, _EOF@GOTPAGE
Lloh11:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_18
LBB0_7:
	ldr	w2, [x21]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #40
	bl	_smb_ctx_setshare
	add	x0, sp, #40
	bl	_smb_ctx_resolve
	cbnz	x0, LBB0_23
; %bb.8:
Lloh14:
	adrp	x8, _SMBL_SHARE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SMBL_SHARE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _SMBLK_CREATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SMBLK_CREATE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x0, sp, #40
	bl	_smb_ctx_lookup
	cbnz	w0, LBB0_24
; %bb.9:
Lloh20:
	adrp	x0, l_str@PAGE
Lloh21:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh22:
	adrp	x0, l_str.8@PAGE
Lloh23:
	add	x0, x0, l_str.8@PAGEOFF
	bl	_puts
	mov	w0, #65504
	bl	_malloc
	mov	x19, x0
	add	x0, sp, #40
	add	x4, sp, #36
	add	x5, sp, #32
	mov	w1, #1
	mov	x2, x19
	mov	w3, #65504
	bl	_smb_rap_NetShareEnum
	cbz	w0, LBB0_11
; %bb.10:
	mov	x1, x0
Lloh24:
	adrp	x8, _SMB_ERROR_MORE_DATA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMB_ERROR_MORE_DATA@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _SMB_RAP_ERROR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SMB_RAP_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w0, w8
	b.ne	LBB0_25
LBB0_11:
	ldr	w8, [sp, #36]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.12:
	mov	w22, #0
	add	x23, x19, #12
Lloh30:
	adrp	x24, _shtype@GOTPAGE
Lloh31:
	ldr	x24, [x24, _shtype@GOTPAGEOFF]
Lloh32:
	adrp	x25, l_.str.6@PAGE
Lloh33:
	add	x25, x25, l_.str.6@PAGEOFF
Lloh34:
	adrp	x20, l_.str.5@PAGE
Lloh35:
	add	x20, x20, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x0, x19, w27, uxtw
	mov	x1, x0
	bl	_nls_str_toloc
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	stp	x21, x0, [sp, #8]
	str	x26, [sp]
	mov	x0, x20
	bl	_printf
	add	w22, w22, #1
	ldr	w8, [sp, #36]
	add	x23, x23, #16
	cmp	w22, w8
	b.ge	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_le16toh
	mov	x21, x0
	ldur	w0, [x23, #-4]
	bl	_le32toh
	and	w27, w0, #0xffff
	ldur	x26, [x23, #-12]
	ldr	x28, [x24]
	mov	x0, x21
	mov	w1, #0
	bl	_min
	ldr	x21, [x28, x0, lsl #3]
	cbnz	w27, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x25
	b	LBB0_14
LBB0_17:
	ldr	w9, [sp, #32]
	stp	x8, x9, [sp]
Lloh36:
	adrp	x0, l_.str.7@PAGE
Lloh37:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_free
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
Lloh38:
	adrp	x24, _optarg@GOTPAGE
Lloh39:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	bl	_view_usage
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_getopt
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_7
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	cmp	w0, #128
	b.ne	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w2, [x24]
	add	x0, sp, #40
	mov	w1, #128
	bl	_smb_ctx_opt
	cbz	w0, LBB0_20
LBB0_23:
	mov	w0, #1
	bl	_exit
LBB0_24:
	mov	x1, x0
	ldr	w8, [sp, #40]
	str	x8, [sp]
Lloh40:
	adrp	x0, l_.str.1@PAGE
Lloh41:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_26
LBB0_25:
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_26:
	bl	_smb_error
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_SMBL_VC,4,2                    ; @SMBL_VC
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IPC$"

	.comm	_SMBL_SHARE,4,2                 ; @SMBL_SHARE
	.comm	_SMBLK_CREATE,4,2               ; @SMBLK_CREATE
l_.str.1:                               ; @.str.1
	.asciz	"could not login to server %s"

	.comm	_SMB_ERROR_MORE_DATA,4,2        ; @SMB_ERROR_MORE_DATA
	.comm	_SMB_RAP_ERROR,4,2              ; @SMB_RAP_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"unable to list resources"

l_.str.5:                               ; @.str.5
	.asciz	"%-12s %-10s %s\n"

	.comm	_shtype,8,3                     ; @shtype
l_.str.6:                               ; @.str.6
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"\n%d shares listed from %d available\n"

	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_str:                                  ; @str
	.asciz	"Share        Type       Comment"

l_str.8:                                ; @str.8
	.asciz	"-------------------------------"

.subsections_via_symbols
