	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_ctx_parseunc               ## -- Begin function smb_ctx_parseunc
	.p2align	4, 0x90
_smb_ctx_parseunc:                      ## @smb_ctx_parseunc
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SMBL_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdi)
	cmpb	$47, (%rsi)
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %r12
	leaq	2(%rsi), %rdi
	movq	%rdi, -1080(%rbp)
	cmpb	$47, 1(%rsi)
	jne	LBB0_2
## %bb.4:
	movq	%rcx, %r14
	movl	%edx, %r15d
	leaq	-1072(%rbp), %rdx
	leaq	-1080(%rbp), %r8
	movl	$64, %esi
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_getsubstring
	testl	%eax, %eax
	je	LBB0_5
LBB0_9:
	movq	-1080(%rbp), %rdi
	leaq	-1072(%rbp), %rdx
	leaq	-1080(%rbp), %r8
	movl	$47, %esi
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_getsubstring
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movq	-1080(%rbp), %rdi
	leaq	-1072(%rbp), %rdx
	leaq	-1080(%rbp), %r8
	xorl	%esi, %esi
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_getsubstring
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
LBB0_12:
	xorl	%esi, %esi
	callq	_smb_error
	jmp	LBB0_35
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	xorl	%esi, %esi
	callq	_smb_error
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	movl	%ebx, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	cmpb	$0, -1072(%rbp)
	je	LBB0_14
## %bb.15:
	leaq	-1072(%rbp), %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:
	movq	%rax, %r13
	incq	%r13
	movb	$0, (%rax)
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%rax, %rdi
	incq	%rdi
	movb	$0, (%rax)
	callq	_atoi
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_smb_ctx_setnbport
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_12
LBB0_5:
	movq	(%r12), %rax
	movq	_SMBL_VC@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jge	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_7:
	leaq	-1072(%rbp), %rsi
	movq	%r12, %rdi
	callq	_smb_ctx_setuser
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_35
## %bb.8:
	movq	(%r13), %rax
	movq	%rax, 16(%r12)
	jmp	LBB0_9
LBB0_14:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_19:
	movq	%r13, %rdi
	callq	_atoi
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_smb_ctx_setsmbport
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_12
LBB0_21:
	leaq	-1072(%rbp), %rsi
	movq	%r12, %rdi
	callq	_smb_ctx_setserver
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_35
## %bb.22:
	movq	_SMB_ST_NONE@GOTPCREL(%rip), %rax
	movq	-1080(%rbp), %rdi
	cmpl	%r15d, (%rax)
	jne	LBB0_24
## %bb.23:
	movq	%rdi, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_35
LBB0_24:
	cmpb	$0, (%rdi)
	je	LBB0_27
## %bb.25:
	movq	(%r12), %rax
	movq	_SMBL_SHARE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_27
## %bb.26:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_3
LBB0_27:
	leaq	-1072(%rbp), %rdx
	leaq	-1080(%rbp), %r8
	movl	$47, %esi
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_getsubstring
	testl	%eax, %eax
	je	LBB0_30
## %bb.28:
	movq	-1080(%rbp), %rdi
	leaq	-1072(%rbp), %rdx
	leaq	-1080(%rbp), %r8
	xorl	%esi, %esi
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_getsubstring
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_12
LBB0_30:
	cmpb	$0, -1072(%rbp)
	je	LBB0_31
## %bb.34:
	movq	-1080(%rbp), %rax
	movq	%rax, (%r14)
	leaq	-1072(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_smb_ctx_setshare
	movl	%eax, %ebx
	jmp	LBB0_35
LBB0_31:
	movq	8(%r12), %rax
	movq	_SMBL_SHARE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_33
## %bb.32:
	movq	-1080(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_35
LBB0_33:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_3
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SMBL_NONE,8,3                  ## @SMBL_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UNC should start with '//'"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMBL_VC,8,3                    ## @SMBL_VC
L_.str.1:                               ## @.str.1
	.asciz	"no user name required"

L_.str.2:                               ## @.str.2
	.asciz	"no server name found"

L_.str.3:                               ## @.str.3
	.asciz	"empty server name"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid NetBIOS port number"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid SMB port number"

	.comm	_SMB_ST_NONE,4,2                ## @SMB_ST_NONE
	.comm	_SMBL_SHARE,8,3                 ## @SMBL_SHARE
L_.str.6:                               ## @.str.6
	.asciz	"no share name required"

L_.str.7:                               ## @.str.7
	.asciz	"unexpected end of line"

L_.str.8:                               ## @.str.8
	.asciz	"empty share name"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_ctx_parseunc               ; -- Begin function smb_ctx_parseunc
	.p2align	2
_smb_ctx_parseunc:                      ; @smb_ctx_parseunc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _SMBL_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMBL_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x0, #16]
	ldrb	w8, [x1]
	cmp	w8, #47
	b.ne	LBB0_7
; %bb.1:
	mov	x21, x0
	add	x0, x1, #2
	str	x0, [sp]
	ldrb	w8, [x1, #1]
	cmp	w8, #47
	b.ne	LBB0_7
; %bb.2:
	mov	x19, x3
	mov	x20, x2
	add	x2, sp, #8
	mov	x4, sp
	mov	w1, #64
	mov	w3, #1024
	bl	_getsubstring
	cbz	w0, LBB0_16
LBB0_3:
	ldr	x0, [sp]
	add	x2, sp, #8
	mov	x4, sp
	mov	w1, #47
	mov	w3, #1024
	bl	_getsubstring
	cbz	w0, LBB0_11
; %bb.4:
	ldr	x0, [sp]
	add	x2, sp, #8
	mov	x4, sp
	mov	w1, #0
	mov	w3, #1024
	bl	_getsubstring
	cbz	w0, LBB0_11
; %bb.5:
	mov	x22, x0
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	mov	w1, #0
	bl	_smb_error
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	mov	w1, #0
	bl	_smb_error
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.10:
	mov	x0, x22
	add	sp, sp, #1040
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldrb	w8, [sp, #8]
	cbz	w8, LBB0_20
; %bb.12:
	add	x0, sp, #8
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_23
; %bb.13:
	mov	x23, x0
	strb	wzr, [x23], #1
	mov	x0, x23
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_21
; %bb.14:
	strb	wzr, [x0], #1
	bl	_atoi
	mov	x1, x0
	mov	x0, x21
	bl	_smb_ctx_setnbport
	cbz	w0, LBB0_21
; %bb.15:
	mov	x22, x0
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_16:
	ldr	x8, [x21]
Lloh18:
	adrp	x23, _SMBL_VC@GOTPAGE
Lloh19:
	ldr	x23, [x23, _SMBL_VC@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_18
; %bb.17:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_18:
	add	x1, sp, #8
	mov	x0, x21
	bl	_smb_ctx_setuser
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.19:
	ldr	x8, [x23]
	str	x8, [x21, #16]
	b	LBB0_3
LBB0_20:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_21:
	mov	x0, x23
	bl	_atoi
	mov	x1, x0
	mov	x0, x21
	bl	_smb_ctx_setsmbport
	cbz	w0, LBB0_23
; %bb.22:
	mov	x22, x0
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_23:
	add	x1, sp, #8
	mov	x0, x21
	bl	_smb_ctx_setserver
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.24:
Lloh26:
	adrp	x8, _SMB_ST_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SMB_ST_NONE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	x0, [sp]
	cmp	w8, w20
	b.ne	LBB0_26
; %bb.25:
	mov	w22, #0
	str	x0, [x19]
	b	LBB0_9
LBB0_26:
	ldrb	w8, [x0]
	cbz	w8, LBB0_29
; %bb.27:
	ldr	x8, [x21]
Lloh29:
	adrp	x9, _SMBL_SHARE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SMBL_SHARE@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_29
; %bb.28:
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_8
LBB0_29:
	add	x2, sp, #8
	mov	x4, sp
	mov	w1, #47
	mov	w3, #1024
	bl	_getsubstring
	cbz	w0, LBB0_32
; %bb.30:
	ldr	x0, [sp]
	add	x2, sp, #8
	mov	x4, sp
	mov	w1, #0
	mov	w3, #1024
	bl	_getsubstring
	cbz	w0, LBB0_32
; %bb.31:
	mov	x22, x0
Lloh34:
	adrp	x0, l_.str.7@PAGE
Lloh35:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_6
LBB0_32:
	ldrb	w8, [sp, #8]
	cbz	w8, LBB0_34
; %bb.33:
	ldr	x8, [sp]
	str	x8, [x19]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_smb_ctx_setshare
	mov	x22, x0
	b	LBB0_9
LBB0_34:
	ldr	x8, [x21, #8]
Lloh36:
	adrp	x9, _SMBL_SHARE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SMBL_SHARE@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_36
; %bb.35:
	mov	w22, #0
	ldr	x8, [sp]
	str	x8, [x19]
	b	LBB0_9
LBB0_36:
Lloh39:
	adrp	x0, l_.str.8@PAGE
Lloh40:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_8
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_SMBL_NONE,8,3                  ; @SMBL_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UNC should start with '//'"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMBL_VC,8,3                    ; @SMBL_VC
l_.str.1:                               ; @.str.1
	.asciz	"no user name required"

l_.str.2:                               ; @.str.2
	.asciz	"no server name found"

l_.str.3:                               ; @.str.3
	.asciz	"empty server name"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid NetBIOS port number"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid SMB port number"

	.comm	_SMB_ST_NONE,4,2                ; @SMB_ST_NONE
	.comm	_SMBL_SHARE,8,3                 ; @SMBL_SHARE
l_.str.6:                               ; @.str.6
	.asciz	"no share name required"

l_.str.7:                               ; @.str.7
	.asciz	"unexpected end of line"

l_.str.8:                               ; @.str.8
	.asciz	"empty share name"

.subsections_via_symbols
