	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WinLdrAddDriverToList          ## -- Begin function WinLdrAddDriverToList
	.p2align	4, 0x90
_WinLdrAddDriverToList:                 ## @WinLdrAddDriverToList
	.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	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_TAG_WLDR_BDE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$4, %edi
	callq	_FrLdrHeapAlloc
	movq	_FALSE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %r13
	movq	$0, 48(%rax)
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_wcslen
	leal	4(,%rax,4), %edi
	movq	$0, 40(%r13)
	movl	%edi, 24(%r13)
	movq	_TAG_WLDR_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FrLdrHeapAlloc
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	movq	%r13, %rdi
	addq	$24, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_RtlAppendUnicodeToString
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	32(%r13), %rdi
	movq	_TAG_WLDR_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_16
LBB0_6:
	movq	%r15, %rdi
	callq	_wcslen
	leal	88(,%rax,4), %edi
	movq	$0, 40(%r13)
	movl	%edi, 24(%r13)
	movq	_TAG_WLDR_NAME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_FrLdrHeapAlloc
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%r13, %rbx
	addq	$24, %rbx
	leaq	l_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RtlAppendUnicodeToString
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_RtlAppendUnicodeToString
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	leaq	l_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RtlAppendUnicodeToString
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_15
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wcslen
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_wcslen
	addl	%ebx, %eax
	leal	4(,%rax,4), %edi
	movq	$0, 16(%r13)
	movl	%edi, (%r13)
	movq	_TAG_WLDR_NAME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_FrLdrHeapAlloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_RtlAppendUnicodeToString
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_20
## %bb.12:
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_RtlAppendUnicodeToString
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_20
## %bb.13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_InsertInBootDriverList
	testl	%eax, %eax
	je	LBB0_21
## %bb.14:
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_20
LBB0_15:
	movq	32(%r13), %rdi
	movq	_TAG_WLDR_NAME@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
LBB0_16:
	callq	_FrLdrHeapFree
	jmp	LBB0_18
LBB0_17:
	movq	%rbx, %r14
LBB0_18:
	movq	_FALSE@GOTPCREL(%rip), %r12
LBB0_19:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_FrLdrHeapFree
LBB0_20:
	movl	(%r12), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	movl	(%rbx), %esi
	callq	_FrLdrHeapFree
LBB0_23:
	movq	8(%r13), %rdi
	movq	_TRUE@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.24:
	movl	(%rbx), %esi
	callq	_FrLdrHeapFree
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_TAG_WLDR_BDE,4,2               ## @TAG_WLDR_BDE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TAG_WLDR_NAME,4,2              ## @TAG_WLDR_NAME
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	115                             ## 0x73
	.long	121                             ## 0x79
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	109                             ## 0x6d
	.long	51                              ## 0x33
	.long	50                              ## 0x32
	.long	92                              ## 0x5c
	.long	100                             ## 0x64
	.long	114                             ## 0x72
	.long	105                             ## 0x69
	.long	118                             ## 0x76
	.long	101                             ## 0x65
	.long	114                             ## 0x72
	.long	115                             ## 0x73
	.long	92                              ## 0x5c
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.1
l_.str.1:
	.long	46                              ## 0x2e
	.long	115                             ## 0x73
	.long	121                             ## 0x79
	.long	115                             ## 0x73
	.long	0                               ## 0x0

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WinLdrAddDriverToList          ; -- Begin function WinLdrAddDriverToList
	.p2align	2
_WinLdrAddDriverToList:                 ; @WinLdrAddDriverToList
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TAG_WLDR_BDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAG_WLDR_BDE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_FrLdrHeapAlloc
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x0
	str	xzr, [x0, #48]
	cbz	x23, LBB0_8
; %bb.2:
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x0, x23
	bl	_wcslen
	lsl	w8, w0, #2
	add	w0, w8, #4
	mov	x24, x19
	str	w0, [x24, #24]!
	str	xzr, [x24, #16]
Lloh3:
	adrp	x25, _TAG_WLDR_NAME@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TAG_WLDR_NAME@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_FrLdrHeapAlloc
	str	x0, [x24, #8]
	cbz	x0, LBB0_6
; %bb.4:
	str	x23, [sp]
	mov	x0, x24
	bl	_RtlAppendUnicodeToString
	bl	_NT_SUCCESS
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	x0, [x19, #32]
	ldr	w1, [x25]
	bl	_FrLdrHeapFree
LBB0_6:
Lloh5:
	adrp	x20, _FALSE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
LBB0_7:
Lloh7:
	adrp	x24, _TAG_WLDR_BDE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TAG_WLDR_BDE@GOTPAGEOFF]
	b	LBB0_20
LBB0_8:
	mov	x0, x21
	bl	_wcslen
	lsl	w8, w0, #2
	add	w0, w8, #88
	mov	x23, x19
	str	w0, [x23, #24]!
	str	xzr, [x23, #16]
Lloh9:
	adrp	x24, _TAG_WLDR_NAME@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TAG_WLDR_NAME@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_FrLdrHeapAlloc
	str	x0, [x23, #8]
	cbz	x0, LBB0_19
; %bb.9:
Lloh11:
	adrp	x8, l_.str@PAGE
Lloh12:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp]
	mov	x0, x23
	bl	_RtlAppendUnicodeToString
	bl	_NT_SUCCESS
	cbz	w0, LBB0_18
; %bb.10:
	str	x21, [sp]
	mov	x0, x23
	bl	_RtlAppendUnicodeToString
	bl	_NT_SUCCESS
	cbz	w0, LBB0_18
; %bb.11:
Lloh13:
	adrp	x8, l_.str.1@PAGE
Lloh14:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	x0, x23
	bl	_RtlAppendUnicodeToString
	bl	_NT_SUCCESS
	cbz	w0, LBB0_18
LBB0_12:
	mov	x0, x22
	bl	_wcslen
	mov	x23, x0
	mov	x0, x21
	bl	_wcslen
	add	w8, w0, w23
	lsl	w8, w8, #2
	add	w0, w8, #4
	str	xzr, [x19, #16]
	str	w0, [x19]
Lloh15:
	adrp	x23, _TAG_WLDR_NAME@GOTPAGE
Lloh16:
	ldr	x23, [x23, _TAG_WLDR_NAME@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_FrLdrHeapAlloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_17
; %bb.13:
	str	x22, [sp]
	mov	x0, x19
	bl	_RtlAppendUnicodeToString
	bl	_NT_SUCCESS
	cbz	w0, LBB0_17
; %bb.14:
	str	x21, [sp]
	mov	x0, x19
	bl	_RtlAppendUnicodeToString
	bl	_NT_SUCCESS
	cbz	w0, LBB0_17
; %bb.15:
	mov	x0, x20
	mov	x1, x19
	bl	_InsertInBootDriverList
	cbz	w0, LBB0_22
; %bb.16:
Lloh17:
	adrp	x20, _TRUE@GOTPAGE
Lloh18:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	b	LBB0_21
LBB0_17:
Lloh19:
	adrp	x20, _FALSE@GOTPAGE
Lloh20:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	ldr	x0, [x19, #32]
	ldr	w1, [x24]
	bl	_FrLdrHeapFree
LBB0_19:
Lloh21:
	adrp	x20, _FALSE@GOTPAGE
Lloh22:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_FrLdrHeapFree
LBB0_21:
	ldr	w0, [x20]
	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
LBB0_22:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_24
; %bb.23:
	ldr	w1, [x23]
	bl	_FrLdrHeapFree
LBB0_24:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_26
; %bb.25:
	ldr	w1, [x23]
	bl	_FrLdrHeapFree
LBB0_26:
Lloh23:
	adrp	x20, _TRUE@GOTPAGE
Lloh24:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_TAG_WLDR_BDE,4,2               ; @TAG_WLDR_BDE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TAG_WLDR_NAME,4,2              ; @TAG_WLDR_NAME
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	115                             ; 0x73
	.long	121                             ; 0x79
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	109                             ; 0x6d
	.long	51                              ; 0x33
	.long	50                              ; 0x32
	.long	92                              ; 0x5c
	.long	100                             ; 0x64
	.long	114                             ; 0x72
	.long	105                             ; 0x69
	.long	118                             ; 0x76
	.long	101                             ; 0x65
	.long	114                             ; 0x72
	.long	115                             ; 0x73
	.long	92                              ; 0x5c
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.1
l_.str.1:
	.long	46                              ; 0x2e
	.long	115                             ; 0x73
	.long	121                             ; 0x79
	.long	115                             ; 0x73
	.long	0                               ; 0x0

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
