	.file	"extr_devenum.c_MMDevPropStore_OpenPropKey.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Opening key %s failed with %u\n"
	.text
	.p2align 4
	.type	MMDevPropStore_OpenPropKey, @function
MMDevPropStore_OpenPropKey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	mov	edx, 39
	sub	rsp, 192
	.cfi_def_cfa_offset 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 184[rsp], rax
	xor	eax, eax
	lea	rbp, 16[rsp]
	mov	rsi, rbp
	call	StringFromGUID2@PLT
	mov	ecx, DWORD PTR KEY_READ[rip]
	or	ecx, DWORD PTR KEY_WRITE[rip]
	or	ecx, DWORD PTR KEY_WOW64_64KEY[rip]
	cmp	QWORD PTR eRender[rip], r12
	mov	edi, DWORD PTR key_capture[rip]
	jne	.L3
	mov	edi, DWORD PTR key_render[rip]
.L3:
	xor	edx, edx
	lea	r8, 12[rsp]
	mov	rsi, rbp
	call	RegOpenKeyExW@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	rdi, rbp
	mov	r12, rax
	jne	.L9
	mov	rsi, QWORD PTR reg_properties[rip]
	mov	edi, DWORD PTR 12[rsp]
	xor	edx, edx
	mov	r8, rbx
	mov	ecx, DWORD PTR KEY_READ[rip]
	or	ecx, DWORD PTR KEY_WRITE[rip]
	or	ecx, DWORD PTR KEY_WOW64_64KEY[rip]
	call	RegOpenKeyExW@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	r12, rax
	call	RegCloseKey@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], r12
	mov	eax, DWORD PTR S_OK[rip]
	jne	.L11
.L1:
	mov	rbx, QWORD PTR 184[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 192
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, QWORD PTR reg_properties[rip]
.L9:
	call	debugstr_w@PLT
	mov	rdx, r12
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	WARN@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	MMDevPropStore_OpenPropKey, .-MMDevPropStore_OpenPropKey
	.comm	reg_properties,8,8
	.comm	key_render,4,4
	.comm	key_capture,4,4
	.comm	eRender,8,8
	.comm	S_OK,4,4
	.comm	KEY_WRITE,4,4
	.comm	KEY_WOW64_64KEY,4,4
	.comm	KEY_READ,4,4
	.comm	E_FAIL,4,4
	.comm	ERROR_SUCCESS,8,8
	.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_devenum.c_MMDevPropStore_OpenPropKey.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Opening key %s failed with %u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	MMDevPropStore_OpenPropKey, %function
MMDevPropStore_OpenPropKey:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r1
	sub	sp, sp, #180
	ldr	r3, .L13
	add	r1, sp, #16
	mov	r5, r2
	mov	r2, #39
	ldr	r3, [r3]
	str	r3, [sp, #172]
	mov	r3,#0
	bl	StringFromGUID2
	ldr	r3, .L13+4
	ldr	r8, .L13+8
	ldr	r3, [r3]
	ldr	r7, .L13+12
	cmp	r3, r4
	ldreq	r3, .L13+16
	ldrne	r3, .L13+20
	ldr	r6, .L13+24
	ldr	r0, [r3]
	ldr	r1, [r8]
	ldr	r3, [r7]
	ldr	ip, [r6]
	orr	r3, r1, r3
	add	r2, sp, #12
	orr	r3, r3, ip
	str	r2, [sp]
	add	r1, sp, #16
	mov	r2, #0
	bl	RegOpenKeyExW
	ldr	r9, .L13+28
	mov	r4, r0
	ldr	r3, [r9]
	cmp	r3, r0
	addne	r0, sp, #16
	bne	.L9
	ldr	r2, [r8]
	ldr	r3, [r7]
	ldr	r1, [r6]
	ldr	r6, .L13+32
	orr	r3, r2, r3
	str	r5, [sp]
	orr	r3, r3, r1
	mov	r2, #0
	ldr	r1, [r6]
	ldr	r0, [sp, #12]
	bl	RegOpenKeyExW
	mov	r4, r0
	ldr	r0, [sp, #12]
	bl	RegCloseKey
	ldr	r3, [r9]
	cmp	r3, r4
	ldreq	r3, .L13+36
	ldreq	r0, [r3]
	beq	.L1
.L11:
	ldr	r0, [r6]
.L9:
	bl	debugstr_w
	mov	r2, r4
	mov	r1, r0
	ldr	r0, .L13+40
	bl	WARN
	ldr	r3, .L13+44
	ldr	r0, [r3]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #172]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #180
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	eRender
	.word	KEY_READ
	.word	KEY_WRITE
	.word	key_render
	.word	key_capture
	.word	KEY_WOW64_64KEY
	.word	ERROR_SUCCESS
	.word	reg_properties
	.word	S_OK
	.word	.LC0
	.word	E_FAIL
	.size	MMDevPropStore_OpenPropKey, .-MMDevPropStore_OpenPropKey
	.comm	reg_properties,4,4
	.comm	key_render,4,4
	.comm	key_capture,4,4
	.comm	eRender,4,4
	.comm	S_OK,4,4
	.comm	KEY_WRITE,4,4
	.comm	KEY_WOW64_64KEY,4,4
	.comm	KEY_READ,4,4
	.comm	E_FAIL,4,4
	.comm	ERROR_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
