	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ElLoadConfigFromFolder         ## -- Begin function ElLoadConfigFromFolder
	.p2align	4, 0x90
_ElLoadConfigFromFolder:                ## @ElLoadConfigFromFolder
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_CfgGetInt
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	cmpl	$65534, %ecx                    ## imm = 0xFFFE
	ja	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_4:
	leaq	L_.str.1(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_CfgGetInt64
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_CfgIsItem
	movq	8(%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	testq	%rcx, %rcx
	jne	LBB0_8
	jmp	LBB0_10
LBB0_5:
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.6:
	movq	_DISK_FREE_SPACE_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	testq	%rcx, %rcx
	je	LBB0_10
LBB0_8:
	movq	_DISK_FREE_SPACE_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_CfgGetByte
	cmpl	$4, %eax
	je	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	callq	_Sha0
LBB0_12:
	movq	_ELOG_IS_BETA@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_CfgGetFolder
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_EiLoadLicenseManager
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_CfgGetFolder
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	callq	_LockList
	movq	%rbx, %rdi
	callq	_CfgEnumFolderToTokenList
	movq	%rax, %rdi
	cmpl	$0, (%rax)
	jle	LBB0_20
## %bb.16:
	xorl	%r14d, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rdi), %rax
	cmpq	%rax, %r14
	movq	%r12, %rbx
	jge	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rax
	movq	(%rax,%r14,8), %r13
	movq	%rbx, %r12
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_CfgGetFolder
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %r15
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_Zero
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SiLoadHubLogCfg
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_CfgGetBool
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_ElAddCaptureDevice
	jmp	LBB0_19
LBB0_20:
	callq	_FreeToken
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	callq	_UnlockList
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AdminPort"

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

	.comm	_DISK_FREE_SPACE_DEFAULT,8,3    ## @DISK_FREE_SPACE_DEFAULT
	.comm	_DISK_FREE_SPACE_MIN,8,3        ## @DISK_FREE_SPACE_MIN
L_.str.2:                               ## @.str.2
	.asciz	"AdminPassword"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_ELOG_IS_BETA,4,2               ## @ELOG_IS_BETA
L_.str.4:                               ## @.str.4
	.asciz	"LicenseManager"

L_.str.5:                               ## @.str.5
	.asciz	"Devices"

L_.str.6:                               ## @.str.6
	.asciz	"NoPromiscuousMode"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ElLoadConfigFromFolder         ; -- Begin function ElLoadConfigFromFolder
	.p2align	2
_ElLoadConfigFromFolder:                ; @ElLoadConfigFromFolder
	.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
	cbz	x0, LBB0_21
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_21
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_CfgGetInt
	sub	w8, w0, #1
	mov	w9, #65534
	cmp	w8, w9
	b.hi	LBB0_4
; %bb.3:
	str	w0, [x19]
LBB0_4:
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_CfgGetInt64
	str	x0, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_CfgIsItem
	ldr	x8, [x19, #8]
	cbz	w0, LBB0_6
; %bb.5:
	cbnz	x8, LBB0_8
	b	LBB0_10
LBB0_6:
	cbnz	x8, LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _DISK_FREE_SPACE_DEFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DISK_FREE_SPACE_DEFAULT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	cbz	x8, LBB0_10
LBB0_8:
Lloh7:
	adrp	x9, _DISK_FREE_SPACE_MIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DISK_FREE_SPACE_MIN@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.9:
	str	x9, [x19, #8]
LBB0_10:
	ldr	w2, [x19, #20]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w3, #4
	bl	_CfgGetByte
	cmp	w0, #4
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x19, #20]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #0
	bl	_Sha0
LBB0_12:
Lloh14:
	adrp	x8, _ELOG_IS_BETA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ELOG_IS_BETA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbnz	w8, LBB0_14
; %bb.13:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_CfgGetFolder
	mov	x1, x0
	mov	x0, x19
	bl	_EiLoadLicenseManager
LBB0_14:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_CfgGetFolder
	cbz	x0, LBB0_21
; %bb.15:
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_LockList
	mov	x0, x20
	bl	_CfgEnumFolderToTokenList
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
	mov	x25, #0
Lloh21:
	adrp	x22, l_.str.6@PAGE
Lloh22:
	add	x22, x22, l_.str.6@PAGEOFF
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x21]
	cmp	x25, x8
	b.ge	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x23, [x8, x25, lsl #3]
	mov	x0, x20
	mov	x1, x23
	bl	_CfgGetFolder
	cbz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x24, x0
	add	x0, sp, #12
	mov	w1, #4
	bl	_Zero
	add	x0, sp, #12
	mov	x1, x24
	bl	_SiLoadHubLogCfg
	mov	x0, x24
	mov	x1, x22
	bl	_CfgGetBool
	mov	x3, x0
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x23
	bl	_ElAddCaptureDevice
	b	LBB0_17
LBB0_20:
	mov	x0, x21
	bl	_FreeToken
	ldr	w0, [x19, #16]
	bl	_UnlockList
LBB0_21:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AdminPort"

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

	.comm	_DISK_FREE_SPACE_DEFAULT,8,3    ; @DISK_FREE_SPACE_DEFAULT
	.comm	_DISK_FREE_SPACE_MIN,8,3        ; @DISK_FREE_SPACE_MIN
l_.str.2:                               ; @.str.2
	.asciz	"AdminPassword"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_ELOG_IS_BETA,4,2               ; @ELOG_IS_BETA
l_.str.4:                               ; @.str.4
	.asciz	"LicenseManager"

l_.str.5:                               ; @.str.5
	.asciz	"Devices"

l_.str.6:                               ; @.str.6
	.asciz	"NoPromiscuousMode"

.subsections_via_symbols
