	.file	"extr_devinst.c_test_install_class.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Expected failure.\n"
.LC1:
	.string	"Got unexpected error %#x.\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to install class, error %#x.\n"
	.align 8
.LC3:
	.string	"Failed to delete class key, error %u.\n"
	.text
	.p2align 4
	.type	test_install_class, @function
test_install_class:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	sub	rsp, 16
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L11:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L11
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L12
.L4:
	lea	r12, 2[rsp]
	mov	eax, 23598
	mov	rdi, r12
	mov	WORD PTR [rsp], ax
	call	get_temp_filename@PLT
	mov	rdi, r12
	call	create_inf_file@PLT
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	xor	edi, edi
	call	SetupDiInstallClassA@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetLastError@PLT
	mov	r13, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rdx, r13
	cmp	QWORD PTR ERROR_INVALID_PARAMETER[rip], rax
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR DI_NOVCP[rip]
	xor	ecx, ecx
	xor	esi, esi
	xor	edi, edi
	call	SetupDiInstallClassA@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetLastError@PLT
	mov	r13, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rdx, r13
	cmp	QWORD PTR ERROR_INVALID_PARAMETER[rip], rax
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR DI_NOVCP[rip]
	xor	ecx, ecx
	mov	rsi, r12
	xor	edi, edi
	call	SetupDiInstallClassA@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetLastError@PLT
	mov	r13, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rdx, r13
	cmp	QWORD PTR ERROR_INVALID_PARAMETER[rip], rax
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, r12
	xor	edi, edi
	call	SetupDiInstallClassA@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetLastError@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rdx, r12
	cmp	QWORD PTR ERROR_FILE_NOT_FOUND[rip], rax
	sete	dil
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	ok@PLT
	xor	ecx, ecx
	xor	edx, edx
	xor	edi, edi
	mov	rsi, rsp
	call	SetupDiInstallClassA@PLT
	mov	r12d, eax
	xor	eax, eax
	call	GetLastError@PLT
	mov	edi, r12d
	lea	rsi, .LC2[rip]
	mov	rdx, rax
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetLastError@PLT
	mov	edi, DWORD PTR HKEY_LOCAL_MACHINE[rip]
	lea	rsi, classKey.1943[rip]
	mov	r12, rax
	call	RegDeleteKeyW@PLT
	xor	edi, edi
	mov	rdx, r12
	lea	rsi, .LC3[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, rsp
	call	DeleteFileA@PLT
	mov	rax, QWORD PTR -24[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	lea	rsp, -16[rbp]
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_install_class, .-test_install_class
	.section	.rodata
	.align 32
	.type	classKey.1943, @object
	.size	classKey.1943, 78
classKey.1943:
	.string	"System\\CurrentControlSet\\Control\\Class\\{6a55b5a4-3f65-11db-b704-0011955c2bdb}"
	.comm	MAX_PATH,4,4
	.comm	HKEY_LOCAL_MACHINE,4,4
	.comm	ERROR_INVALID_PARAMETER,8,8
	.comm	ERROR_FILE_NOT_FOUND,8,8
	.comm	DI_NOVCP,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_devinst.c_test_install_class.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Expected failure.\012\000"
	.align	2
.LC1:
	.ascii	"Got unexpected error %#x.\012\000"
	.align	2
.LC2:
	.ascii	"Failed to install class, error %#x.\012\000"
	.align	2
.LC3:
	.ascii	"Failed to delete class key, error %u.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_install_class, %function
test_install_class:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	mov	r1, #46
	mov	r2, #92
	ldr	r3, .L6
	ldr	r0, .L6+4
	ldr	r3, [r3]
	ldr	r0, [r0]
	str	r0, [fp, #-24]
	mov	r0,#0
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r4, sp, #2
	mov	r0, r4
	strb	r1, [sp]
	strb	r2, [sp, #1]
	bl	get_temp_filename
	mov	r0, r4
	bl	create_inf_file
	mov	r3, #0
	mov	r2, r3
	mov	r1, r3
	mov	r0, r3
	bl	SetupDiInstallClassA
	clz	r0, r0
	ldr	r1, .L6+8
	lsr	r0, r0, #5
	bl	ok
	bl	GetLastError
	ldr	r6, .L6+12
	ldr	r7, .L6+16
	ldr	r5, [r6]
	sub	r5, r5, r0
	clz	r5, r5
	bl	GetLastError
	lsr	r5, r5, #5
	mov	r2, r0
	ldr	r1, .L6+20
	mov	r0, r5
	bl	ok
	mov	r3, #0
	ldr	r2, [r7]
	mov	r1, r3
	mov	r0, r3
	bl	SetupDiInstallClassA
	clz	r0, r0
	ldr	r1, .L6+8
	lsr	r0, r0, #5
	bl	ok
	bl	GetLastError
	ldr	r5, [r6]
	sub	r5, r5, r0
	clz	r5, r5
	bl	GetLastError
	lsr	r5, r5, #5
	mov	r2, r0
	ldr	r1, .L6+20
	mov	r0, r5
	bl	ok
	mov	r3, #0
	ldr	r2, [r7]
	mov	r0, r3
	mov	r1, r4
	bl	SetupDiInstallClassA
	clz	r0, r0
	ldr	r1, .L6+8
	lsr	r0, r0, #5
	bl	ok
	bl	GetLastError
	ldr	r5, [r6]
	sub	r5, r5, r0
	clz	r5, r5
	bl	GetLastError
	lsr	r5, r5, #5
	mov	r2, r0
	ldr	r1, .L6+20
	mov	r0, r5
	bl	ok
	mov	r3, #0
	mov	r1, r4
	mov	r2, r3
	mov	r0, r3
	bl	SetupDiInstallClassA
	clz	r0, r0
	ldr	r1, .L6+8
	lsr	r0, r0, #5
	bl	ok
	bl	GetLastError
	ldr	r3, .L6+24
	ldr	r4, [r3]
	sub	r4, r4, r0
	clz	r4, r4
	bl	GetLastError
	lsr	r4, r4, #5
	mov	r2, r0
	ldr	r1, .L6+20
	mov	r0, r4
	bl	ok
	mov	r3, #0
	mov	r1, sp
	mov	r2, r3
	mov	r0, r3
	bl	SetupDiInstallClassA
	mov	r4, r0
	bl	GetLastError
	ldr	r1, .L6+28
	mov	r2, r0
	mov	r0, r4
	bl	ok
	ldr	r3, .L6+32
	ldr	r1, .L6+36
	ldr	r0, [r3]
	bl	RegDeleteKeyW
	mov	r4, r0
	bl	GetLastError
	mov	r2, r0
	clz	r0, r4
	ldr	r1, .L6+40
	lsr	r0, r0, #5
	bl	ok
	mov	r0, sp
	bl	DeleteFileA
	ldr	r3, .L6+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	MAX_PATH
	.word	.LC4
	.word	.LC0
	.word	ERROR_INVALID_PARAMETER
	.word	DI_NOVCP
	.word	.LC1
	.word	ERROR_FILE_NOT_FOUND
	.word	.LC2
	.word	HKEY_LOCAL_MACHINE
	.word	.LANCHOR0
	.word	.LC3
	.size	test_install_class, .-test_install_class
	.comm	MAX_PATH,4,4
	.comm	HKEY_LOCAL_MACHINE,4,4
	.comm	ERROR_INVALID_PARAMETER,4,4
	.comm	ERROR_FILE_NOT_FOUND,4,4
	.comm	DI_NOVCP,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	classKey.4227, %object
	.size	classKey.4227, 78
classKey.4227:
	.ascii	"System\\CurrentControlSet\\Control\\Class\\{6a55b5a"
	.ascii	"4-3f65-11db-b704-0011955c2bdb}\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
