	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WinLdrLoadBootDrivers          ## -- Begin function WinLdrLoadBootDrivers
	.p2align	4, 0x90
_WinLdrLoadBootDrivers:                 ## @WinLdrLoadBootDrivers
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %rax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r15
	jne	LBB0_1
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_ERR
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_UiMessageBox
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_RemoveEntryList
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %r15
	cmpq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_BOOT_DRIVER_LIST_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_CONTAINING_RECORD
	movq	%rax, %r13
	leaq	8(%rax), %r12
	leaq	16(%rax), %r14
	movq	16(%rax), %rdx
	leaq	24(%rax), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	callq	_TRACE
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_WinLdrLoadDeviceDriver
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	callq	_PaToVa
	movq	%rax, (%rbx)
	movq	(%r12), %rdi
	callq	_PaToVa
	movq	%rax, (%r12)
	movq	(%r14), %rdi
	callq	_PaToVa
	movq	%rax, (%r14)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_BOOT_DRIVER_LIST_ENTRY,4,2     ## @BOOT_DRIVER_LIST_ENTRY
	.comm	_Link,4,2                       ## @Link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BootDriver %wZ DTE %08X RegPath: %wZ\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't load boot driver '%wZ'!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Can't load boot driver '%wZ'!"

	.comm	_FALSE,8,3                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WinLdrLoadBootDrivers          ; -- Begin function WinLdrLoadBootDrivers
	.p2align	2
_WinLdrLoadBootDrivers:                 ; @WinLdrLoadBootDrivers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x0
	ldr	x26, [x20, #8]!
	cmp	x26, x20
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x24, x0
Lloh3:
	adrp	x21, _Link@GOTPAGE
Lloh4:
	ldr	x21, [x21, _Link@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x27
	bl	_ERR
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x27
	bl	_UiMessageBox
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x26
	bl	_RemoveEntryList
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [x25]
	cmp	x26, x20
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
Lloh14:
	adrp	x8, _BOOT_DRIVER_LIST_ENTRY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BOOT_DRIVER_LIST_ENTRY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x26
	bl	_CONTAINING_RECORD
	mov	x25, x0
	add	x27, x0, #8
	mov	x28, x0
	ldr	x2, [x28, #16]!
	add	x23, x0, #24
	mov	x0, x22
	mov	x1, x27
	mov	x3, x23
	bl	_TRACE
	mov	x0, x24
	mov	x1, x19
	mov	x2, x27
	mov	w3, #0
	mov	x4, x28
	bl	_WinLdrLoadDeviceDriver
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	bl	_PaToVa
	str	x0, [x23]
	ldr	x0, [x27]
	bl	_PaToVa
	str	x0, [x27]
	ldr	x0, [x28]
	bl	_PaToVa
	str	x0, [x28]
	b	LBB0_3
LBB0_6:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_BOOT_DRIVER_LIST_ENTRY,4,2     ; @BOOT_DRIVER_LIST_ENTRY
	.comm	_Link,4,2                       ; @Link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BootDriver %wZ DTE %08X RegPath: %wZ\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't load boot driver '%wZ'!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Can't load boot driver '%wZ'!"

	.comm	_FALSE,8,3                      ; @FALSE
.subsections_via_symbols
