	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LoadOSList
_LoadOSList:                            ## @LoadOSList
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	leaq	-40(%rbp), %rdi
	callq	_GetSystemDrive
	movq	_FALSE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	4(%r15), %edi
	movq	-40(%rbp), %rsi
	callq	_wcscpy
	movl	4(%r15), %edi
	leaq	l_.str(%rip), %rsi
	callq	_wcscat
	movl	4(%r15), %edi
	callq	_PathFileExistsW
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-40(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movl	4(%r15), %edi
	movq	_INF_STYLE_OLDNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_SetupOpenInfFileW
	movq	%rax, %rbx
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_LoadFreeldrSettings
	movl	$1, %r14d
	jmp	LBB0_7
LBB0_4:
	movl	4(%r15), %edi
	movq	-40(%rbp), %rsi
	callq	_wcscpy
	movl	4(%r15), %edi
	leaq	l_.str.1(%rip), %rsi
	callq	_wcscat
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-40(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movl	4(%r15), %edi
	callq	_PathFileExistsW
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	4(%r15), %edi
	movq	_INF_STYLE_OLDNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_SetupOpenInfFileW
	movq	%rax, %rbx
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_LoadBootSettings
	movl	$2, %r14d
LBB0_7:
	movq	%rbx, %rdi
	callq	_SetupCloseInfFile
	movl	%r14d, (%r15)
	movq	_TRUE@GOTPCREL(%rip), %r12
LBB0_8:
	movl	(%r12), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	92                              ## 0x5c
	.long	102                             ## 0x66
	.long	114                             ## 0x72
	.long	101                             ## 0x65
	.long	101                             ## 0x65
	.long	108                             ## 0x6c
	.long	100                             ## 0x64
	.long	114                             ## 0x72
	.long	46                              ## 0x2e
	.long	105                             ## 0x69
	.long	110                             ## 0x6e
	.long	105                             ## 0x69
	.long	0                               ## 0x0

	.comm	_INF_STYLE_OLDNT,4,2            ## @INF_STYLE_OLDNT
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_TRUE,4,2                       ## @TRUE
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	92                              ## 0x5c
	.long	98                              ## 0x62
	.long	111                             ## 0x6f
	.long	111                             ## 0x6f
	.long	116                             ## 0x74
	.long	46                              ## 0x2e
	.long	105                             ## 0x69
	.long	110                             ## 0x6e
	.long	105                             ## 0x69
	.long	0                               ## 0x0

	.no_dead_strip	_LoadOSList
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LoadOSList
_LoadOSList:                            ; @LoadOSList
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_GetSystemDrive
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x19, #4]
	ldr	x1, [sp, #8]
	bl	_wcscpy
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wcscat
	ldr	w0, [x19, #4]
	bl	_PathFileExistsW
	cbz	x0, LBB0_4
; %bb.2:
	bl	_GetProcessHeap
	ldr	x2, [sp, #8]
	mov	w1, #0
	bl	_HeapFree
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _INF_STYLE_OLDNT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INF_STYLE_OLDNT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, #0
	mov	x3, #0
	bl	_SetupOpenInfFileW
Lloh5:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.3:
	mov	x21, x0
	mov	x1, x20
	bl	_LoadFreeldrSettings
	mov	w20, #1
	b	LBB0_8
LBB0_4:
	ldr	w0, [x19, #4]
	ldr	x1, [sp, #8]
	bl	_wcscpy
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wcscat
	bl	_GetProcessHeap
	ldr	x2, [sp, #8]
	mov	w1, #0
	bl	_HeapFree
	ldr	w0, [x19, #4]
	bl	_PathFileExistsW
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x8, _INF_STYLE_OLDNT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INF_STYLE_OLDNT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x1, #0
	mov	x3, #0
	bl	_SetupOpenInfFileW
Lloh13:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	x21, x0
	mov	x1, x20
	bl	_LoadBootSettings
	mov	w20, #2
LBB0_8:
	mov	x0, x21
	bl	_SetupCloseInfFile
	str	w20, [x19]
Lloh18:
	adrp	x8, _TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	92                              ; 0x5c
	.long	102                             ; 0x66
	.long	114                             ; 0x72
	.long	101                             ; 0x65
	.long	101                             ; 0x65
	.long	108                             ; 0x6c
	.long	100                             ; 0x64
	.long	114                             ; 0x72
	.long	46                              ; 0x2e
	.long	105                             ; 0x69
	.long	110                             ; 0x6e
	.long	105                             ; 0x69
	.long	0                               ; 0x0

	.comm	_INF_STYLE_OLDNT,4,2            ; @INF_STYLE_OLDNT
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_TRUE,4,2                       ; @TRUE
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	92                              ; 0x5c
	.long	98                              ; 0x62
	.long	111                             ; 0x6f
	.long	111                             ; 0x6f
	.long	116                             ; 0x74
	.long	46                              ; 0x2e
	.long	105                             ; 0x69
	.long	110                             ; 0x6e
	.long	105                             ; 0x69
	.long	0                               ; 0x0

	.no_dead_strip	_LoadOSList
.subsections_via_symbols
