	.file	"extr_devenum.c_MMDevEnum_Create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	MMDevEnum_Create
	.type	MMDevEnum_Create, @function
MMDevEnum_Create:
.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
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR MMDevEnumerator[rip]
	test	rbx, rbx
	je	.L8
.L2:
	lea	rdi, 8[rbx]
	mov	rdx, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	IMMDeviceEnumerator_QueryInterface@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, 16
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	QWORD PTR [r12], 0
	mov	rbx, rax
	test	rax, rax
	je	.L9
	mov	DWORD PTR [rax], 1
	lea	rax, MMDevEnumVtbl[rip]
	mov	QWORD PTR 8[rbx], rax
	xor	eax, eax
	mov	QWORD PTR MMDevEnumerator[rip], rbx
	call	load_devices_from_reg@PLT
	mov	edi, DWORD PTR eRender[rip]
	call	load_driver_devices@PLT
	mov	edi, DWORD PTR eCapture[rip]
	call	load_driver_devices@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR E_OUTOFMEMORY[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	MMDevEnum_Create, .-MMDevEnum_Create
	.comm	eRender,4,4
	.comm	eCapture,4,4
	.comm	MMDevEnumerator,8,8
	.comm	MMDevEnumVtbl,4,4
	.comm	E_OUTOFMEMORY,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_devenum.c_MMDevEnum_Create.c"
	.text
	.align	2
	.global	MMDevEnum_Create
	.syntax unified
	.arm
	.fpu softvfp
	.type	MMDevEnum_Create, %function
MMDevEnum_Create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L10
	mov	r6, r0
	ldr	r4, [r7]
	mov	r5, r1
	cmp	r4, #0
	beq	.L8
.L2:
	mov	r2, r5
	mov	r1, r6
	add	r0, r4, #4
	pop	{r4, r5, r6, r7, r8, lr}
	b	IMMDeviceEnumerator_QueryInterface
.L8:
	bl	GetProcessHeap
	mov	r1, r4
	mov	r2, #8
	bl	HeapAlloc
	mov	r3, #0
	subs	r4, r0, #0
	str	r3, [r5]
	beq	.L9
	mov	r2, #1
	ldr	r3, .L10+4
	stm	r4, {r2, r3}
	str	r4, [r7]
	bl	load_devices_from_reg
	ldr	r3, .L10+8
	ldr	r0, [r3]
	bl	load_driver_devices
	ldr	r3, .L10+12
	ldr	r0, [r3]
	bl	load_driver_devices
	b	.L2
.L9:
	ldr	r3, .L10+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	MMDevEnumerator
	.word	MMDevEnumVtbl
	.word	eRender
	.word	eCapture
	.word	E_OUTOFMEMORY
	.size	MMDevEnum_Create, .-MMDevEnum_Create
	.comm	eRender,4,4
	.comm	eCapture,4,4
	.comm	MMDevEnumerator,4,4
	.comm	MMDevEnumVtbl,4,4
	.comm	E_OUTOFMEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
