	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WinLdrLoadDeviceDriver
_WinLdrLoadDeviceDriver:                ## @WinLdrLoadDeviceDriver
	.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
	pushq	%rax
	movl	$12312, %eax                    ## imm = 0x3018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, -12344(%rbp)              ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, -12340(%rbp)              ## 4-byte Spill
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -12352(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-8240(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_RtlStringCbPrintfA
	movq	%rbx, %rdi
	movl	$92, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdx
	addq	$4, %rdx
	leaq	-12336(%rbp), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_RtlStringCbCopyA
	movq	_ANSI_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_3
LBB0_2:
	leaq	-12336(%rbp), %rdi
	leaq	-8240(%rbp), %rdx
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_RtlStringCbCopyA
	movq	_ANSI_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8240(%rbp)
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	leaq	-8240(%rbp), %rsi
	leaq	-12336(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_TRACE
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_PeLdrCheckForLoadedDll
	movq	_TRUE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	leaq	L_.str.2(%rip), %rdx
	leaq	-4144(%rbp), %r12
	movq	%r12, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movl	-12340(%rbp), %ecx              ## 4-byte Reload
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_RtlStringCbPrintfA
	movq	_LoaderBootDriver@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12352(%rbp), %rdx
	movq	%r12, %rdi
	callq	_PeLdrLoadImage
	movq	_FALSE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	-12352(%rbp), %rcx
	leaq	-12336(%rbp), %rdx
	movl	%r14d, %edi
	movq	%rdx, %rsi
	movq	%r13, %r8
	callq	_PeLdrAllocateDataTableEntry
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r13), %rax
	movl	-12344(%rbp), %ecx              ## 4-byte Reload
	orl	%ecx, (%rax)
	leaq	L_.str.4(%rip), %rdx
	leaq	-4144(%rbp), %r15
	leaq	-8240(%rbp), %r8
	movq	%r15, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movl	-12340(%rbp), %ecx              ## 4-byte Reload
	xorl	%eax, %eax
	callq	_RtlStringCbPrintfA
	movq	(%r13), %rdx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_PeLdrScanImportDescriptorTable
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	leaq	L_.str.5(%rip), %rdi
	leaq	-4144(%rbp), %rsi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_ERR
LBB0_9:
	movq	%r12, %rbx
LBB0_10:
	movq	(%rbx), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$12312, %rsp                    ## imm = 0x3018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%wZ"

	.comm	_ANSI_NULL,4,2                  ## @ANSI_NULL
L_.str.1:                               ## @.str.1
	.asciz	"DriverPath: '%s', DllName: '%s', LPB\n"

	.comm	_TRUE,8,3                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"%s%wZ"

	.comm	_LoaderBootDriver,4,2           ## @LoaderBootDriver
	.comm	_FALSE,8,3                      ## @FALSE
L_.str.3:                               ## @.str.3
	.asciz	"PeLdrAllocateDataTableEntry() failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s%s"

L_.str.5:                               ## @.str.5
	.asciz	"PeLdrScanImportDescriptorTable() failed for %s\n"

	.no_dead_strip	_WinLdrLoadDeviceDriver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WinLdrLoadDeviceDriver
_WinLdrLoadDeviceDriver:                ; @WinLdrLoadDeviceDriver
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	mov	w9, #12320
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #3, lsl #12             ; =12288
	sub	sp, sp, #32
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	str	xzr, [sp, #16]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #1, lsl #12             ; =4096
	add	x0, x0, #24
	mov	w1, #4096
	mov	x3, x23
	bl	_RtlStringCbPrintfA
	add	x0, sp, #1, lsl #12             ; =4096
	add	x0, x0, #24
	mov	w1, #92
	bl	_strrchr
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, x0
	add	x2, x0, #4
	add	x0, sp, #24
	mov	w1, #4096
	bl	_RtlStringCbCopyA
Lloh7:
	adrp	x8, _ANSI_NULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ANSI_NULL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x24, #4]
	b	LBB0_3
LBB0_2:
	add	x0, sp, #24
	add	x2, sp, #1, lsl #12             ; =4096
	add	x2, x2, #24
	mov	w1, #4096
	bl	_RtlStringCbCopyA
Lloh10:
	adrp	x8, _ANSI_NULL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ANSI_NULL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #4120]
LBB0_3:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #1, lsl #12             ; =4096
	add	x1, x1, #24
	add	x2, sp, #24
	bl	_TRACE
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, x19
	bl	_PeLdrCheckForLoadedDll
	cbz	x0, LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
	str	x23, [sp]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #2, lsl #12             ; =8192
	add	x0, x0, #24
	mov	w1, #4096
	mov	x3, x21
	bl	_RtlStringCbPrintfA
Lloh19:
	adrp	x8, _LoaderBootDriver@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LoaderBootDriver@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x0, sp, #2, lsl #12             ; =8192
	add	x0, x0, #24
	add	x2, sp, #16
	bl	_PeLdrLoadImage
	cbz	x0, LBB0_11
; %bb.6:
	ldr	x3, [sp, #16]
	add	x1, sp, #24
	add	x2, sp, #24
	mov	x0, x20
	mov	x4, x19
	bl	_PeLdrAllocateDataTableEntry
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x19]
	ldr	w9, [x8]
	orr	w9, w9, w22
	str	w9, [x8]
	add	x8, sp, #1, lsl #12             ; =4096
	add	x8, x8, #24
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
	str	x8, [sp]
	add	x22, sp, #2, lsl #12            ; =8192
	add	x22, x22, #24
	add	x0, sp, #2, lsl #12             ; =8192
	add	x0, x0, #24
	mov	w1, #4096
	mov	x3, x21
	bl	_RtlStringCbPrintfA
	ldr	x2, [x19]
	add	x1, sp, #2, lsl #12             ; =8192
	add	x1, x1, #24
	mov	x0, x20
	bl	_PeLdrScanImportDescriptorTable
	cbnz	x0, LBB0_4
; %bb.8:
	str	x22, [sp]
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	bl	_ERR
LBB0_11:
Lloh28:
	adrp	x8, _FALSE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_12:
	ldr	x0, [x8]
	ldur	x8, [x29, #-72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #3, lsl #12             ; =12288
	add	sp, sp, #32
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%wZ"

	.comm	_ANSI_NULL,4,2                  ; @ANSI_NULL
l_.str.1:                               ; @.str.1
	.asciz	"DriverPath: '%s', DllName: '%s', LPB\n"

	.comm	_TRUE,8,3                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"%s%wZ"

	.comm	_LoaderBootDriver,4,2           ; @LoaderBootDriver
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.3:                               ; @.str.3
	.asciz	"PeLdrAllocateDataTableEntry() failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s%s"

l_.str.5:                               ; @.str.5
	.asciz	"PeLdrScanImportDescriptorTable() failed for %s\n"

	.no_dead_strip	_WinLdrLoadDeviceDriver
.subsections_via_symbols
