	.file	"extr_reentrancy.c_InitEntrypointMutexes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	InitEntrypointMutexes
	.type	InitEntrypointMutexes, @function
InitEntrypointMutexes:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rcx, QWORD PTR SOUND_DEVICE_TYPES[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR MMSYSERR_NOERROR[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	rcx, rcx
	je	.L1
	mov	rdx, QWORD PTR EntrypointMutexes[rip]
	mov	rax, rdx
	lea	rcx, [rdx+rcx*8]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR [rax], 0
	add	rax, 8
	cmp	rcx, rax
	jne	.L3
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	QWORD PTR SOUND_DEVICE_TYPES[rip], rbx
	jbe	.L1
.L5:
	mov	esi, DWORD PTR FALSE[rip]
	lea	rbp, [rdx+rbx*8]
	xor	edi, edi
	xor	edx, edx
	call	CreateMutex@PLT
	mov	rdx, QWORD PTR EntrypointMutexes[rip]
	mov	QWORD PTR 0[rbp], rax
	cmp	QWORD PTR [rdx+rbx*8], 0
	jne	.L4
	xor	eax, eax
	call	GetLastError@PLT
	mov	edi, eax
	call	Win32ErrorToMmResult@PLT
	mov	r12d, eax
	xor	eax, eax
	call	CleanupEntrypointMutexes@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	InitEntrypointMutexes, .-InitEntrypointMutexes
	.comm	SOUND_DEVICE_TYPES,8,8
	.comm	MMSYSERR_NOERROR,4,4
	.comm	FALSE,4,4
	.comm	EntrypointMutexes,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_reentrancy.c_InitEntrypointMutexes.c"
	.text
	.align	2
	.global	InitEntrypointMutexes
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitEntrypointMutexes, %function
InitEntrypointMutexes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L13
	ldr	r3, .L13+4
	ldr	r2, [r7]
	ldr	r8, [r3]
	cmp	r2, #0
	beq	.L1
	mov	r1, #0
	ldr	r6, .L13+8
	ldr	r5, [r6]
	add	r2, r5, r2, lsl #2
	sub	r2, r2, #4
	sub	r3, r5, #4
.L3:
	str	r1, [r3, #4]!
	cmp	r3, r2
	bne	.L3
	mov	r4, #0
	ldr	r9, .L13+12
	b	.L5
.L4:
	ldr	r3, [r7]
	cmp	r3, r4
	bls	.L1
.L5:
	mov	r2, #0
	ldr	r1, [r9]
	mov	r0, r2
	bl	CreateMutex
	str	r0, [r5, r4, lsl #2]
	ldr	r5, [r6]
	ldr	r3, [r5, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, #0
	bne	.L4
	bl	GetLastError
	bl	Win32ErrorToMmResult
	mov	r8, r0
	bl	CleanupEntrypointMutexes
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	SOUND_DEVICE_TYPES
	.word	MMSYSERR_NOERROR
	.word	EntrypointMutexes
	.word	FALSE
	.size	InitEntrypointMutexes, .-InitEntrypointMutexes
	.comm	SOUND_DEVICE_TYPES,4,4
	.comm	MMSYSERR_NOERROR,4,4
	.comm	FALSE,4,4
	.comm	EntrypointMutexes,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
