	.file	"extr_hivetest.c_test8.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\t\t\t\tStatus =%x\n"
.LC1:
	.string	"\t\t\t\tbRes =%x\n"
	.section	.rodata.str4.4,"aMS",@progbits,4
	.align 4
.LC2:
	.string	"t"
	.string	""
	.string	""
	.string	"e"
	.string	""
	.string	""
	.string	"s"
	.string	""
	.string	""
	.string	"t"
	.string	""
	.string	""
	.string	"5"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.section	.rodata.str1.1
.LC3:
	.string	"test5"
.LC4:
	.string	"def"
.LC5:
	.string	"\t\t\t\tdwError =%x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC6:
	.string	"NtOpenKey \\Registry\\Machine : "
	.section	.rodata.str4.8,"aMS",@progbits,4
	.align 8
.LC7:
	.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	""
	.section	.rodata.str1.1
.LC8:
	.string	"\t\t\tStatus =%x\n"
	.text
	.p2align 4
	.globl	test8
	.type	test8, @function
test8:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	ebp, DWORD PTR TOKEN_ADJUST_PRIVILEGES[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	call	GetCurrentProcess@PLT
	lea	rdx, 8[rsp]
	mov	esi, ebp
	mov	rbp, rsp
	mov	edi, eax
	call	NtOpenProcessToken@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	xor	eax, eax
	call	dprintf@PLT
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR 8[rsp]
	xor	ecx, ecx
	mov	edx, DWORD PTR SE_PRIVILEGE_ENABLED[rip]
	mov	esi, DWORD PTR FALSE[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	DWORD PTR 16[rsp], 1
	mov	DWORD PTR 4[rax], 0
	mov	DWORD PTR [rax], edx
	lea	rdx, 16[rsp]
	call	AdjustTokenPrivileges@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	dprintf@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	RtlRosInitUnicodeStringFromLiteral@PLT
	mov	edx, DWORD PTR OBJ_CASE_INSENSITIVE[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rsi, r12
	mov	rdi, rbp
	call	InitializeObjectAttributes@PLT
	mov	edi, DWORD PTR HKEY_LOCAL_MACHINE[rip]
	mov	rsi, rbp
	call	NtLoadKey@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	xor	eax, eax
	call	dprintf@PLT
	mov	rdi, QWORD PTR HKEY_LOCAL_MACHINE[rip]
	lea	rdx, .LC3[rip]
	lea	rsi, .LC4[rip]
	call	RegLoadKey@PLT
	lea	rdi, .LC5[rip]
	mov	esi, eax
	xor	eax, eax
	call	dprintf@PLT
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	dprintf@PLT
	lea	rsi, .LC7[rip]
	mov	rdi, r12
	call	RtlRosInitUnicodeStringFromLiteral@PLT
	mov	edx, DWORD PTR OBJ_CASE_INSENSITIVE[rip]
	xor	ecx, ecx
	xor	r8d, r8d
	mov	rsi, r12
	mov	rdi, rbp
	call	InitializeObjectAttributes@PLT
	mov	esi, DWORD PTR MAXIMUM_ALLOWED[rip]
	mov	rdx, rbp
	lea	rdi, 12[rsp]
	call	NtOpenKey@PLT
	lea	rdi, .LC8[rip]
	mov	esi, eax
	xor	eax, eax
	call	dprintf@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	RtlRosInitUnicodeStringFromLiteral@PLT
	xor	r8d, r8d
	mov	edx, DWORD PTR OBJ_CASE_INSENSITIVE[rip]
	xor	ecx, ecx
	mov	rsi, r12
	mov	rdi, rbp
	call	InitializeObjectAttributes@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	rsi, rbp
	call	NtLoadKey@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	xor	eax, eax
	call	dprintf@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test8, .-test8
	.comm	TOKEN_ADJUST_PRIVILEGES,4,4
	.comm	SE_PRIVILEGE_ENABLED,4,4
	.comm	OBJ_CASE_INSENSITIVE,4,4
	.comm	MAXIMUM_ALLOWED,4,4
	.comm	HKEY_LOCAL_MACHINE,8,8
	.comm	FALSE,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_hivetest.c_test8.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\011\011\011\011Status =%x\012\000"
	.align	2
.LC1:
	.ascii	"\011\011\011\011bRes =%x\012\000"
	.section	.rodata.str4.4,"aMS",%progbits,4
	.align	2
.LC2:
	.ascii	"t\000\000\000e\000\000\000s\000\000\000t\000\000\000"
	.ascii	"5\000\000\000\000\000\000\000"
	.section	.rodata.str1.4
	.align	2
.LC3:
	.ascii	"test5\000"
	.align	2
.LC4:
	.ascii	"def\000"
	.align	2
.LC5:
	.ascii	"\011\011\011\011dwError =%x\012\000"
	.align	2
.LC6:
	.ascii	"NtOpenKey \\Registry\\Machine : \000"
	.section	.rodata.str4.4
	.align	2
.LC7:
	.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\000\000"
	.section	.rodata.str1.4
	.align	2
.LC8:
	.ascii	"\011\011\011Status =%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test8
	.syntax unified
	.arm
	.fpu softvfp
	.type	test8, %function
test8:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L6
	sub	sp, sp, #40
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	GetCurrentProcess
	ldr	r3, .L6+4
	add	r2, sp, #20
	ldr	r1, [r3]
	bl	NtOpenProcessToken
	mov	r1, r0
	ldr	r0, .L6+8
	bl	dprintf
	mov	r4, #0
	mov	r0, #1
	ldr	r2, .L6+12
	ldr	r3, [sp, #32]
	ldr	r1, [r2]
	ldr	r2, .L6+16
	str	r0, [sp, #28]
	stm	r3, {r1, r4}
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r3, r4
	ldr	r1, [r2]
	ldr	r0, [sp, #20]
	add	r2, sp, #28
	bl	AdjustTokenPrivileges
	ldr	r5, .L6+20
	mov	r1, r0
	ldr	r0, .L6+24
	bl	dprintf
	ldr	r6, .L6+28
	ldr	r1, .L6+32
	add	r0, sp, #16
	bl	RtlRosInitUnicodeStringFromLiteral
	mov	r3, r4
	ldr	r2, [r5]
	add	r1, sp, #16
	str	r4, [sp]
	add	r0, sp, #12
	bl	InitializeObjectAttributes
	add	r1, sp, #12
	ldr	r0, [r6]
	bl	NtLoadKey
	mov	r1, r0
	ldr	r0, .L6+8
	bl	dprintf
	ldr	r2, .L6+36
	ldr	r1, .L6+40
	ldr	r0, [r6]
	bl	RegLoadKey
	mov	r1, r0
	ldr	r0, .L6+44
	bl	dprintf
	ldr	r0, .L6+48
	bl	dprintf
	ldr	r1, .L6+52
	add	r0, sp, #16
	bl	RtlRosInitUnicodeStringFromLiteral
	mov	r3, r4
	ldr	r2, [r5]
	add	r1, sp, #16
	str	r4, [sp]
	add	r0, sp, #12
	bl	InitializeObjectAttributes
	ldr	r3, .L6+56
	add	r2, sp, #12
	ldr	r1, [r3]
	add	r0, sp, #24
	bl	NtOpenKey
	mov	r1, r0
	ldr	r0, .L6+60
	bl	dprintf
	ldr	r1, .L6+32
	add	r0, sp, #16
	bl	RtlRosInitUnicodeStringFromLiteral
	mov	r3, r4
	ldr	r2, [r5]
	add	r1, sp, #16
	str	r4, [sp]
	add	r0, sp, #12
	bl	InitializeObjectAttributes
	add	r1, sp, #12
	ldr	r0, [sp, #24]
	bl	NtLoadKey
	mov	r1, r0
	ldr	r0, .L6+8
	bl	dprintf
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC9
	.word	TOKEN_ADJUST_PRIVILEGES
	.word	.LC0
	.word	SE_PRIVILEGE_ENABLED
	.word	FALSE
	.word	OBJ_CASE_INSENSITIVE
	.word	.LC1
	.word	HKEY_LOCAL_MACHINE
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	MAXIMUM_ALLOWED
	.word	.LC8
	.size	test8, .-test8
	.comm	TOKEN_ADJUST_PRIVILEGES,4,4
	.comm	SE_PRIVILEGE_ENABLED,4,4
	.comm	OBJ_CASE_INSENSITIVE,4,4
	.comm	MAXIMUM_ALLOWED,4,4
	.comm	HKEY_LOCAL_MACHINE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
