	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_ctx_init                   ## -- Begin function smb_ctx_init
	.p2align	4, 0x90
_smb_ctx_init:                          ## @smb_ctx_init
	.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
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	$128, %esi
	callq	_bzero
	leaq	24(%r13), %rdi
	callq	_nb_ctx_create
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, (%r13)
	movq	_SMBL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%r13)
	movl	%r14d, 4(%r13)
	movl	%r12d, 8(%r13)
	movq	_SMB_TCP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%r13)
	movq	_SMBVOPT_CREATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 112(%r13)
	movabsq	$17179869199, %rcx              ## imm = 0x40000000F
	movq	%rcx, 72(%r13)
	movq	_SMBM_ANY_OWNER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 104(%r13)
	movq	_SMBM_ANY_GROUP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 96(%r13)
	movq	_SMBM_EXEC@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, 88(%r13)
	movq	_SMBM_DEFAULT@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	%rdi, 80(%r13)
	movq	%rax, 64(%r13)
	movq	%rsi, 56(%r13)
	movq	%rdi, 48(%r13)
	movq	%rcx, 40(%r13)
	movq	%rdx, 32(%r13)
	movl	24(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nb_ctx_setscope
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_geteuid
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_smb_ctx_setuser
	xorl	%eax, %eax
	callq	_endpwent
	testq	%r15, %r15
	je	LBB0_6
LBB0_7:
                                        ## implicit-def: $rbx
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_13
## %bb.8:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r14,8), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_10
LBB0_13:
	movq	%rbx, -56(%rbp)
LBB0_14:
	leaq	L_.str.3(%rip), %r12
	movq	_cf_optarg@GOTPCREL(%rip), %r14
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rdi
	callq	_smb_ctx_setuser
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%eax, %ebx
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_26
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_cf_getopt
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r14), %rsi
	cmpl	$85, %eax
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$76, %eax
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%ebx, %ebx
	cmpl	$69, %eax
	jne	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rdi
	callq	_smb_ctx_setcharset
	testl	%eax, %eax
	je	LBB0_25
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rsi, %rdi
	callq	_nls_setlocale
	jmp	LBB0_24
LBB0_3:
	testq	%r14, %r14
	jne	LBB0_27
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_smb_ctx_setuser
	testq	%r15, %r15
	jne	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_16:
	xorl	%ebx, %ebx
LBB0_26:
	movq	_cf_optreset@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_cf_optind@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_27
LBB0_11:
	movq	%rbx, -56(%rbp)
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_smb_ctx_parseunc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.12:
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r13)
	jmp	LBB0_14
LBB0_21:
	movl	%eax, %ebx
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_SMBL_NONE,4,2                  ## @SMBL_NONE
	.comm	_SMB_TCP_PORT,4,2               ## @SMB_TCP_PORT
	.comm	_SMBVOPT_CREATE,8,3             ## @SMBVOPT_CREATE
	.comm	_SMBM_ANY_OWNER,8,3             ## @SMBM_ANY_OWNER
	.comm	_SMBM_ANY_GROUP,8,3             ## @SMBM_ANY_GROUP
	.comm	_SMBM_EXEC,8,3                  ## @SMBM_EXEC
	.comm	_SMBM_DEFAULT,8,3               ## @SMBM_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"root"

L_.str.2:                               ## @.str.2
	.asciz	"//"

L_.str.3:                               ## @.str.3
	.asciz	":E:L:U:"

	.comm	_cf_optarg,8,3                  ## @cf_optarg
	.comm	_cf_optreset,4,2                ## @cf_optreset
	.comm	_cf_optind,4,2                  ## @cf_optind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function smb_ctx_init
lCPI0_0:
	.long	15                              ; 0xf
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_smb_ctx_init
	.p2align	2
_smb_ctx_init:                          ; @smb_ctx_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w1, #128
	bl	_bzero
	add	x0, x21, #24
	bl	_nb_ctx_create
	cbnz	w0, LBB0_22
; %bb.1:
Lloh0:
	adrp	x8, _SMBL_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMBL_NONE@GOTPAGEOFF]
	mov	w9, #-1
	stp	w9, w24, [x21]
Lloh2:
	ldr	w8, [x8]
	str	w23, [x21, #8]
Lloh3:
	adrp	x9, _SMB_TCP_PORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMB_TCP_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #120]
Lloh6:
	adrp	x8, _SMBVOPT_CREATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMBVOPT_CREATE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x21, #112]
Lloh9:
	adrp	x9, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x21, #72]
Lloh11:
	adrp	x9, _SMBM_ANY_OWNER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SMBM_ANY_OWNER@GOTPAGEOFF]
Lloh13:
	adrp	x10, _SMBM_ANY_GROUP@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SMBM_ANY_GROUP@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	ldr	x10, [x10]
	stp	x10, x9, [x21, #96]
Lloh17:
	adrp	x11, _SMBM_EXEC@GOTPAGE
Lloh18:
	ldr	x11, [x11, _SMBM_EXEC@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
Lloh20:
	adrp	x12, _SMBM_DEFAULT@GOTPAGE
Lloh21:
	ldr	x12, [x12, _SMBM_DEFAULT@GOTPAGEOFF]
Lloh22:
	ldr	x12, [x12]
	stp	x12, x11, [x21, #80]
	stp	x11, x8, [x21, #56]
	stp	x9, x12, [x21, #40]
	str	x10, [x21, #32]
	ldr	w0, [x21, #24]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nb_ctx_setscope
	bl	_geteuid
	mov	x23, x0
	bl	_getpwuid
	cbz	x0, LBB0_18
; %bb.2:
	ldr	x1, [x0]
	mov	x0, x21
	bl	_smb_ctx_setuser
	bl	_endpwent
	cbz	x19, LBB0_19
LBB0_3:
                                        ; implicit-def: $x23
	cmp	w20, #2
	b.lt	LBB0_7
; %bb.4:
	mov	w8, w20
	add	x25, x19, #8
	sub	x26, x8, #1
Lloh25:
	adrp	x24, l_.str.2@PAGE
Lloh26:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x25]
	mov	x0, x23
	mov	x1, x24
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_24
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #8
	subs	x26, x26, #1
	b.ne	LBB0_5
LBB0_7:
	str	x23, [sp, #8]
LBB0_8:
Lloh27:
	adrp	x22, l_.str.3@PAGE
Lloh28:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh29:
	adrp	x23, _cf_optarg@GOTPAGE
Lloh30:
	ldr	x23, [x23, _cf_optarg@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_smb_ctx_setuser
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cbnz	w0, LBB0_21
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_cf_getopt
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [x23]
	cmp	w0, #85
	b.eq	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w0, #76
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w0, #69
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_smb_ctx_setcharset
	cbz	w0, LBB0_10
	b	LBB0_22
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x1
	bl	_nls_setlocale
	b	LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #0
	b	LBB0_10
LBB0_18:
	cbz	x23, LBB0_23
LBB0_19:
	mov	w0, #0
	b	LBB0_22
LBB0_20:
	mov	w0, #0
LBB0_21:
Lloh31:
	adrp	x8, _cf_optreset@GOTPAGE
Lloh32:
	ldr	x8, [x8, _cf_optreset@GOTPAGEOFF]
	mov	w9, #1
Lloh33:
	str	w9, [x8]
Lloh34:
	adrp	x8, _cf_optind@GOTPAGE
Lloh35:
	ldr	x8, [x8, _cf_optind@GOTPAGEOFF]
Lloh36:
	str	w9, [x8]
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_smb_ctx_setuser
	cbnz	x19, LBB0_3
	b	LBB0_19
LBB0_24:
	str	x23, [sp, #8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_smb_ctx_parseunc
	cbnz	w0, LBB0_22
; %bb.25:
	ldr	x8, [sp, #8]
	str	x8, [x21, #16]
	b	LBB0_8
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_SMBL_NONE,4,2                  ; @SMBL_NONE
	.comm	_SMB_TCP_PORT,4,2               ; @SMB_TCP_PORT
	.comm	_SMBVOPT_CREATE,8,3             ; @SMBVOPT_CREATE
	.comm	_SMBM_ANY_OWNER,8,3             ; @SMBM_ANY_OWNER
	.comm	_SMBM_ANY_GROUP,8,3             ; @SMBM_ANY_GROUP
	.comm	_SMBM_EXEC,8,3                  ; @SMBM_EXEC
	.comm	_SMBM_DEFAULT,8,3               ; @SMBM_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"root"

l_.str.2:                               ; @.str.2
	.asciz	"//"

l_.str.3:                               ; @.str.3
	.asciz	":E:L:U:"

	.comm	_cf_optarg,8,3                  ; @cf_optarg
	.comm	_cf_optreset,4,2                ; @cf_optreset
	.comm	_cf_optind,4,2                  ; @cf_optind
.subsections_via_symbols
