	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_L3IfThread                     ## -- Begin function L3IfThread
	.p2align	4, 0x90
_L3IfThread:                            ## @L3IfThread
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	testq	%r14, %r14
	je	LBB0_8
## %bb.1:
	testq	%r12, %r12
	je	LBB0_8
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_L3_USERNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_StrCpy
	movq	16(%r12), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_StrCat
	movq	16(%r12), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_NewServerConnection
	movq	%rax, %r15
	movq	_CONNECTION_HUB_LAYER3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	xorl	%eax, %eax
	callq	_GetDefaultPolicy
	movl	%eax, %edi
	callq	_ClonePolicy
	movl	$1, (%rax)
	movq	8(%r12), %rdx
	movq	16(%r12), %rcx
	movq	8(%rcx), %rdi
	movq	%r15, %rsi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_NewServerSession
	movq	%rax, %r14
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_ReleaseConnection
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_GetMachineHostName
	movq	16(%r12), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_SERVER_TYPE_STANDALONE@GOTPCREL(%rip), %rdx
	movslq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_Inc
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_Format
	jmp	LBB0_5
LBB0_4:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_Inc
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r15, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_Format
LBB0_5:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_ConvertSafeFileName
	movq	%rbx, %rdi
	callq	_StrUpper
	movq	40(%r14), %rdi
	callq	_Free
	movq	%rbx, %rdi
	callq	_CopyStr
	movq	%rax, 40(%r14)
	movl	$1, (%r14)
	movq	%r12, 32(%r14)
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	callq	_Free
LBB0_7:
	movq	%rbx, %rdi
	callq	_CopyStr
	movq	%rax, 24(%r14)
	movq	8(%r14), %rdi
	movl	$8, %esi
	movq	%rbx, %rdx
	callq	_StrCpy
	movq	%r14, (%r12)
	movl	16(%r14), %edi
	callq	_AddRef
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_NoticeThreadInit
	movq	%r14, %rdi
	callq	_SessionMain
	movq	%r14, %rdi
	callq	_ReleaseSession
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.comm	_L3_USERNAME,8,3                ## @L3_USERNAME
	.comm	_CONNECTION_HUB_LAYER3,4,2      ## @CONNECTION_HUB_LAYER3
	.comm	_SERVER_TYPE_STANDALONE,8,3     ## @SERVER_TYPE_STANDALONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SID-L3-%s-%u"

L_.str.1:                               ## @.str.1
	.asciz	"SID-L3-%s-%s-%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_L3IfThread                     ; -- Begin function L3IfThread
	.p2align	2
_L3IfThread:                            ; @L3IfThread
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x12, x9, #0x1fffffff0
	sub	x25, x8, x12
	mov	sp, x25
	mov	x9, x22
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	mov	x9, x22
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	cbz	x0, LBB0_8
; %bb.1:
	cbz	x20, LBB0_8
; %bb.2:
Lloh12:
	adrp	x8, _L3_USERNAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _L3_USERNAME@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_StrCpy
	ldr	x8, [x20, #16]
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_StrCat
	ldr	x8, [x20, #16]
	ldr	x0, [x8, #8]
	mov	x1, #0
	mov	x2, x19
	bl	_NewServerConnection
	mov	x26, x0
Lloh15:
	adrp	x8, _CONNECTION_HUB_LAYER3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONNECTION_HUB_LAYER3@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	bl	_GetDefaultPolicy
	bl	_ClonePolicy
	mov	x4, x0
	mov	w8, #1
	str	w8, [x0]
	ldp	x2, x8, [x20, #8]
	ldr	x0, [x8, #8]
	mov	x1, x26
	mov	x3, x21
	bl	_NewServerSession
	mov	x24, x0
	str	x0, [x26]
	mov	x0, x26
	bl	_ReleaseConnection
	mov	x0, x25
	mov	x1, x22
	bl	_GetMachineHostName
	ldr	x8, [x20, #16]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _SERVER_TYPE_STANDALONE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SERVER_TYPE_STANDALONE@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	ldrsw	x26, [x8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_Inc
	mov	x4, x0
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	x1, x22
	mov	x3, x26
	bl	_Format
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_Inc
                                        ; kill: def $w0 killed $w0 def $x0
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x0, [sp, #-16]!
	mov	x0, x23
	mov	x1, x22
	mov	x3, x25
	mov	x4, x26
	bl	_Format
	add	sp, sp, #16
LBB0_5:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x23
	bl	_ConvertSafeFileName
	mov	x0, x23
	bl	_StrUpper
	ldr	x0, [x24, #40]
	bl	_Free
	mov	x0, x23
	bl	_CopyStr
	mov	w8, #1
	str	w8, [x24]
	stp	x20, x0, [x24, #32]
	ldr	x0, [x24, #24]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_Free
LBB0_7:
	mov	x0, x21
	bl	_CopyStr
	str	x0, [x24, #24]
	ldr	x0, [x24, #8]
	mov	w1, #8
	mov	x2, x21
	bl	_StrCpy
	str	x24, [x20]
	ldr	w0, [x24, #16]
	bl	_AddRef
	mov	x0, x19
	bl	_NoticeThreadInit
	mov	x0, x24
	bl	_SessionMain
	mov	x0, x24
	bl	_ReleaseSession
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.comm	_L3_USERNAME,8,3                ; @L3_USERNAME
	.comm	_CONNECTION_HUB_LAYER3,4,2      ; @CONNECTION_HUB_LAYER3
	.comm	_SERVER_TYPE_STANDALONE,8,3     ; @SERVER_TYPE_STANDALONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SID-L3-%s-%u"

l_.str.1:                               ; @.str.1
	.asciz	"SID-L3-%s-%s-%u"

.subsections_via_symbols
