	.file	"extr_driver.c_ScmLoadDriver.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str4.8,"aMS",@progbits,4
	.align 8
.LC0:
	.string	"\\"
	.string	""
	.string	""
	.string	"R"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"g"
	.string	""
	.string	""
	.string	"i"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	"t"
	.string	""
	.string	""
	.string	"r"
	.string	""
	.string	""
	.string	"y"
	.string	""
	.string	""
	.string	"\\"
	.string	""
	.string	""
	.string	"M"
	.string	""
	.string	""
	.string	"a"
	.string	""
	.string	""
	.string	"c"
	.string	""
	.string	""
	.string	"h"
	.string	""
	.string	""
	.string	"i"
	.string	""
	.string	""
	.string	"n"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"\\"
	.string	""
	.string	""
	.string	"S"
	.string	""
	.string	""
	.string	"y"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	"t"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"m"
	.string	""
	.string	""
	.string	"\\"
	.string	""
	.string	""
	.string	"C"
	.string	""
	.string	""
	.string	"u"
	.string	""
	.string	""
	.string	"r"
	.string	""
	.string	""
	.string	"r"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"n"
	.string	""
	.string	""
	.string	"t"
	.string	""
	.string	""
	.string	"C"
	.string	""
	.string	""
	.string	"o"
	.string	""
	.string	""
	.string	"n"
	.string	""
	.string	""
	.string	"t"
	.string	""
	.string	""
	.string	"r"
	.string	""
	.string	""
	.string	"o"
	.string	""
	.string	""
	.string	"l"
	.string	""
	.string	""
	.string	"S"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"t"
	.string	""
	.string	""
	.string	"\\"
	.string	""
	.string	""
	.string	"S"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"r"
	.string	""
	.string	""
	.string	"v"
	.string	""
	.string	""
	.string	"i"
	.string	""
	.string	""
	.string	"c"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	"\\"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"  Path: %wZ\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"SERVICES: Cannot acquire driver-loading privilege, Status = 0x%08lx\n"
	.text
	.p2align 4
	.type	ScmLoadDriver, @function
ScmLoadDriver:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR FALSE[rip]
	mov	DWORD PTR [rsp], eax
	call	wcslen@PLT
	mov	r13d, DWORD PTR HEAP_ZERO_MEMORY[rip]
	mov	r12d, eax
	xor	eax, eax
	call	GetProcessHeap@PLT
	lea	edx, 212[0+r12*4]
	mov	esi, r13d
	mov	edi, eax
	call	HeapAlloc@PLT
	test	rax, rax
	je	.L9
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	r12, rax
	mov	r14, rsp
	call	wcscpy@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r12
	lea	r13, 4[rsp]
	call	wcscat@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	RtlInitUnicodeString@PLT
	mov	rsi, r13
	lea	rdi, .LC1[rip]
	call	DPRINT@PLT
	mov	edi, DWORD PTR SE_LOAD_DRIVER_PRIVILEGE[rip]
	mov	edx, DWORD PTR FALSE[rip]
	mov	rcx, r14
	mov	esi, DWORD PTR TRUE[rip]
	call	RtlAdjustPrivilege@PLT
	mov	edi, eax
	mov	ebp, eax
	call	NT_SUCCESS@PLT
	test	eax, eax
	je	.L10
	mov	rdi, r13
	call	NtLoadDriver@PLT
	mov	edx, DWORD PTR FALSE[rip]
	mov	esi, DWORD PTR [rsp]
	mov	rcx, r14
	mov	edi, DWORD PTR SE_LOAD_DRIVER_PRIVILEGE[rip]
	mov	ebp, eax
	call	RtlAdjustPrivilege@PLT
.L5:
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	edi, ebp
	call	RtlNtStatusToDosError@PLT
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, ebp
	lea	rdi, .LC2[rip]
	call	DPRINT1@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR ERROR_NOT_ENOUGH_MEMORY[rip]
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ScmLoadDriver, .-ScmLoadDriver
	.comm	TRUE,4,4
	.comm	STATUS_SUCCESS,4,4
	.comm	SE_LOAD_DRIVER_PRIVILEGE,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	FALSE,4,4
	.comm	ERROR_NOT_ENOUGH_MEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_driver.c_ScmLoadDriver.c"
	.text
	.section	.rodata.str4.4,"aMS",%progbits,4
	.align	2
.LC0:
	.ascii	"\\\000\000\000R\000\000\000e\000\000\000g\000\000\000"
	.ascii	"i\000\000\000s\000\000\000t\000\000\000r\000\000\000"
	.ascii	"y\000\000\000\\\000\000\000M\000\000\000a\000\000\000"
	.ascii	"c\000\000\000h\000\000\000i\000\000\000n\000\000\000"
	.ascii	"e\000\000\000\\\000\000\000S\000\000\000y\000\000\000"
	.ascii	"s\000\000\000t\000\000\000e\000\000\000m\000\000\000"
	.ascii	"\\\000\000\000C\000\000\000u\000\000\000r\000\000\000"
	.ascii	"r\000\000\000e\000\000\000n\000\000\000t\000\000\000"
	.ascii	"C\000\000\000o\000\000\000n\000\000\000t\000\000\000"
	.ascii	"r\000\000\000o\000\000\000l\000\000\000S\000\000\000"
	.ascii	"e\000\000\000t\000\000\000\\\000\000\000S\000\000\000"
	.ascii	"e\000\000\000r\000\000\000v\000\000\000i\000\000\000"
	.ascii	"c\000\000\000e\000\000\000s\000\000\000\\\000\000\000"
	.ascii	"\000\000\000\000"
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"  Path: %wZ\012\000"
	.align	2
.LC2:
	.ascii	"SERVICES: Cannot acquire driver-loading privilege, "
	.ascii	"Status = 0x%08lx\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ScmLoadDriver, %function
ScmLoadDriver:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, .L12
	ldr	r2, .L12+4
	ldr	r3, [r6]
	sub	sp, sp, #20
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r5, r0
	str	r3, [sp, #4]
	bl	GetProcessHeap
	ldr	r3, .L12+8
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r7, [r3]
	bl	wcslen
	add	r2, r0, #53
	mov	r1, r7
	mov	r0, r4
	lsl	r2, r2, #2
	bl	HeapAlloc
	subs	r4, r0, #0
	beq	.L9
	ldr	r1, .L12+12
	bl	wcscpy
	ldr	r1, [r5]
	mov	r0, r4
	bl	wcscat
	mov	r1, r4
	add	r0, sp, #8
	bl	RtlInitUnicodeString
	add	r1, sp, #8
	ldr	r0, .L12+16
	bl	DPRINT
	ldr	r7, .L12+20
	ldr	r3, .L12+24
	ldr	r2, [r6]
	ldr	r1, [r3]
	ldr	r0, [r7]
	add	r3, sp, #4
	bl	RtlAdjustPrivilege
	mov	r5, r0
	bl	NT_SUCCESS
	cmp	r0, #0
	beq	.L10
	add	r0, sp, #8
	bl	NtLoadDriver
	ldr	r2, [r6]
	mov	r5, r0
	ldr	r1, [sp, #4]
	ldr	r0, [r7]
	add	r3, sp, #4
	bl	RtlAdjustPrivilege
.L5:
	bl	GetProcessHeap
	mov	r2, r4
	mov	r1, #0
	bl	HeapFree
	mov	r0, r5
	bl	RtlNtStatusToDosError
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	mov	r1, r5
	ldr	r0, .L12+28
	bl	DPRINT1
	b	.L5
.L9:
	ldr	r3, .L12+32
	ldr	r0, [r3]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	FALSE
	.word	.LC3
	.word	HEAP_ZERO_MEMORY
	.word	.LC0
	.word	.LC1
	.word	SE_LOAD_DRIVER_PRIVILEGE
	.word	TRUE
	.word	.LC2
	.word	ERROR_NOT_ENOUGH_MEMORY
	.size	ScmLoadDriver, .-ScmLoadDriver
	.comm	TRUE,4,4
	.comm	STATUS_SUCCESS,4,4
	.comm	SE_LOAD_DRIVER_PRIVILEGE,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	FALSE,4,4
	.comm	ERROR_NOT_ENOUGH_MEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
