	.file	"extr_playsound.c_get_mmioFromProfile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"searching in SystemSound list for %s\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"can't find SystemSound=%s !\n"
	.text
	.p2align 4
	.type	get_mmioFromProfile, @function
get_mmioFromProfile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	mov	rdi, rsi
	sub	rsp, 184
	.cfi_def_cfa_offset 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 168[rsp], rax
	xor	eax, eax
	lea	rbp, 32[rsp]
	call	debugstr_w@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	TRACE@PLT
	lea	rdi, wszSounds.1981[rip]
	mov	rcx, rbp
	mov	r8d, 128
	lea	rdx, wszNull.1986[rip]
	mov	rsi, r12
	call	GetProfileStringW@PLT
	mov	rdi, rbp
	call	lstrlenW@PLT
	test	eax, eax
	jne	.L10
	test	DWORD PTR SND_NODEFAULT[rip], ebx
	je	.L6
.L9:
	mov	edi, DWORD PTR HKEY_CURRENT_USER[rip]
	lea	rdx, 8[rsp]
	lea	rsi, wszKey.1983[rip]
	call	RegOpenKeyW@PLT
	test	eax, eax
	jne	.L14
	test	DWORD PTR SND_APPLICATION[rip], ebx
	jne	.L47
	mov	edi, DWORD PTR 8[rsp]
	lea	rdx, 12[rsp]
	lea	rsi, wszDotDefault.1984[rip]
	call	RegOpenKeyW@PLT
	mov	ebx, eax
.L20:
	mov	edi, DWORD PTR 8[rsp]
	call	RegCloseKey@PLT
	test	ebx, ebx
	jne	.L14
	mov	edi, DWORD PTR 12[rsp]
	lea	rdx, 16[rsp]
	mov	rsi, r12
	call	RegOpenKeyW@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	ebx, eax
	call	RegCloseKey@PLT
	test	ebx, ebx
	je	.L48
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r12
	call	debugstr_w@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	WARN@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 168[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L49
	add	rsp, 184
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, wszSounds.1981[rip]
	mov	r8d, 128
	mov	rcx, rbp
	lea	rdx, wszNull.1986[rip]
	lea	rsi, wszDefault.1982[rip]
	call	GetProfileStringW@PLT
	mov	rdi, rbp
	call	lstrlenW@PLT
	test	eax, eax
	je	.L9
.L10:
	movzx	eax, BYTE PTR 32[rsp]
	cmp	al, 44
	je	.L27
	mov	rdx, rbp
	test	al, al
	je	.L27
	.p2align 4,,10
	.p2align 3
.L3:
	movzx	eax, BYTE PTR 1[rdx]
	add	rdx, 1
	test	al, al
	je	.L12
	cmp	al, 44
	jne	.L3
.L5:
	test	al, al
	je	.L12
	mov	BYTE PTR [rdx], 0
.L12:
	mov	edx, DWORD PTR MMIO_ALLOCBUF[rip]
	xor	esi, esi
	mov	rdi, rbp
	or	edx, DWORD PTR MMIO_READ[rip]
	or	edx, DWORD PTR MMIO_DENYWRITE[rip]
	call	mmioOpenW@PLT
	test	rax, rax
	je	.L9
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	mov	edx, 128
	mov	rsi, rbp
	xor	edi, edi
	call	GetModuleFileNameW@PLT
	sub	eax, 1
	cmp	eax, 126
	jbe	.L16
.L17:
	mov	edi, DWORD PTR 8[rsp]
	call	RegCloseKey@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L48:
	lea	r13, 20[rsp]
	mov	edi, DWORD PTR 16[rsp]
	lea	rsi, wszDotDefault.1984[rip]
	mov	rdx, r13
	call	RegOpenKeyW@PLT
	test	eax, eax
	je	.L24
	mov	edi, DWORD PTR 16[rsp]
	mov	rdx, r13
	lea	rsi, wszDotCurrent.1985[rip]
	call	RegOpenKeyW@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	ebx, eax
	call	RegCloseKey@PLT
	test	ebx, ebx
	jne	.L14
.L24:
	mov	edi, DWORD PTR 20[rsp]
	xor	edx, edx
	xor	esi, esi
	lea	rcx, 24[rsp]
	lea	r9, 28[rsp]
	mov	r8d, ebp
	mov	DWORD PTR 28[rsp], 128
	call	RegQueryValueExW@PLT
	mov	edi, DWORD PTR 20[rsp]
	mov	ebx, eax
	call	RegCloseKey@PLT
	test	ebx, ebx
	jne	.L14
	cmp	BYTE PTR 32[rsp], 0
	je	.L14
	mov	edx, DWORD PTR MMIO_ALLOCBUF[rip]
	xor	esi, esi
	mov	rdi, rbp
	or	edx, DWORD PTR MMIO_READ[rip]
	or	edx, DWORD PTR MMIO_DENYWRITE[rip]
	call	mmioOpenW@PLT
	test	rax, rax
	je	.L14
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	call	lstrlenW@PLT
	cdqe
	lea	rax, -1[rbp+rax]
	cmp	rax, rbp
	jnb	.L21
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	dl, 92
	je	.L50
.L19:
	sub	rax, 1
	cmp	rax, rbp
	jb	.L17
.L21:
	movzx	edx, BYTE PTR [rax]
	cmp	dl, 46
	jne	.L18
	mov	BYTE PTR [rax], 0
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdx, rbp
	jmp	.L5
.L50:
	mov	edi, DWORD PTR 8[rsp]
	lea	rdx, 12[rsp]
	lea	rsi, 1[rax]
	call	RegOpenKeyW@PLT
	mov	ebx, eax
	jmp	.L20
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_mmioFromProfile, .-get_mmioFromProfile
	.section	.rodata
	.align 8
	.type	wszDotCurrent.1985, @object
	.size	wszDotCurrent.1985, 9
wszDotCurrent.1985:
	.string	".Current"
	.align 8
	.type	wszDotDefault.1984, @object
	.size	wszDotDefault.1984, 9
wszDotDefault.1984:
	.string	".Default"
	.align 16
	.type	wszKey.1983, @object
	.size	wszKey.1983, 23
wszKey.1983:
	.string	"AppEvents\\Schemes\\Apps"
	.align 8
	.type	wszDefault.1982, @object
	.size	wszDefault.1982, 8
wszDefault.1982:
	.string	"Default"
	.type	wszNull.1986, @object
	.size	wszNull.1986, 1
wszNull.1986:
	.zero	1
	.type	wszSounds.1981, @object
	.size	wszSounds.1981, 7
wszSounds.1981:
	.string	"Sounds"
	.comm	SND_NODEFAULT,4,4
	.comm	SND_APPLICATION,4,4
	.comm	MMIO_READ,4,4
	.comm	MMIO_DENYWRITE,4,4
	.comm	MMIO_ALLOCBUF,4,4
	.comm	HKEY_CURRENT_USER,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_playsound.c_get_mmioFromProfile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"searching in SystemSound list for %s\012\000"
	.align	2
.LC1:
	.ascii	"can't find SystemSound=%s !\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_mmioFromProfile, %function
get_mmioFromProfile:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L43
	sub	sp, sp, #172
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #164]
	mov	r3,#0
	bl	debugstr_w
	mov	r7, #128
	mov	r1, r0
	ldr	r0, .L43+4
	bl	TRACE
	ldr	r2, .L43+8
	add	r4, sp, #36
	mov	r1, r5
	mov	r3, r4
	add	r0, r2, #4
	str	r7, [sp]
	bl	GetProfileStringW
	mov	r0, r4
	bl	lstrlenW
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L43+12
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L5
.L8:
	ldr	r3, .L43+16
	ldr	r1, .L43+20
	ldr	r0, [r3]
	add	r2, sp, #12
	bl	RegOpenKeyW
	subs	r7, r0, #0
	bne	.L12
	ldr	r3, .L43+24
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L40
	ldr	r1, .L43+28
	ldr	r0, [sp, #12]
	add	r2, sp, #16
	bl	RegOpenKeyW
	mov	r6, r0
.L18:
	ldr	r0, [sp, #12]
	bl	RegCloseKey
	cmp	r6, #0
	bne	.L12
	mov	r1, r5
	add	r2, sp, #20
	ldr	r0, [sp, #16]
	bl	RegOpenKeyW
	mov	r6, r0
	ldr	r0, [sp, #16]
	bl	RegCloseKey
	cmp	r6, #0
	beq	.L41
.L12:
	mov	r0, r5
	bl	debugstr_w
	mov	r1, r0
	ldr	r0, .L43+32
	bl	WARN
	mov	r0, #0
.L1:
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [sp, #164]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L42
	add	sp, sp, #172
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	ldr	r2, .L43+8
	mov	r3, r4
	add	r1, r2, #36
	add	r0, r2, #4
	str	r7, [sp]
	bl	GetProfileStringW
	mov	r0, r4
	bl	lstrlenW
	cmp	r0, #0
	beq	.L8
.L9:
	ldrb	r3, [sp, #36]	@ zero_extendqisi2
	mov	r2, r4
	cmp	r3, #44
	cmpne	r3, #0
	beq	.L4
.L3:
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	cmpne	r3, #44
	bne	.L3
.L4:
	cmp	r3, #0
	movne	r3, #0
	ldr	r1, .L43+36
	strbne	r3, [r2]
	ldr	r3, .L43+40
	ldr	r2, .L43+44
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1
	mov	r0, r4
	mov	r1, #0
	orr	r2, r3, r2
	bl	mmioOpenW
	cmp	r0, #0
	beq	.L8
	b	.L1
.L40:
	mov	r2, #128
	mov	r1, r4
	bl	GetModuleFileNameW
	sub	r0, r0, #1
	cmp	r0, #126
	bls	.L14
.L15:
	ldr	r0, [sp, #12]
	bl	RegCloseKey
	b	.L12
.L41:
	ldr	r1, .L43+28
	ldr	r0, [sp, #20]
	add	r2, sp, #24
	bl	RegOpenKeyW
	cmp	r0, #0
	beq	.L22
	ldr	r1, .L43+48
	add	r2, sp, #24
	ldr	r0, [sp, #20]
	bl	RegOpenKeyW
	mov	r6, r0
	ldr	r0, [sp, #20]
	bl	RegCloseKey
	cmp	r6, #0
	bne	.L12
.L22:
	mov	r2, #0
	mov	ip, #128
	add	r3, sp, #32
	mov	r1, r2
	str	r3, [sp, #4]
	ldr	r0, [sp, #24]
	add	r3, sp, #28
	str	r4, [sp]
	str	ip, [sp, #32]
	bl	RegQueryValueExW
	mov	r6, r0
	ldr	r0, [sp, #24]
	bl	RegCloseKey
	cmp	r6, #0
	bne	.L12
	ldrb	r3, [sp, #36]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L43+40
	ldr	r1, .L43+36
	ldr	r2, .L43+44
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1
	mov	r0, r4
	mov	r1, r6
	orr	r2, r3, r2
	bl	mmioOpenW
	cmp	r0, #0
	beq	.L12
	b	.L1
.L14:
	mov	r0, r4
	bl	lstrlenW
	sub	r3, r0, #1
	adds	r3, r4, r3
	bcs	.L15
	mov	r0, r7
	b	.L19
.L17:
	cmp	r4, r3
	bhi	.L15
.L19:
	mov	r1, r3
	ldrb	r2, [r3], #-1	@ zero_extendqisi2
	cmp	r2, #46
	strbeq	r0, [r3, #1]
	beq	.L17
	cmp	r2, #92
	bne	.L17
	ldr	r0, [sp, #12]
	add	r1, r1, #1
	add	r2, sp, #16
	bl	RegOpenKeyW
	mov	r6, r0
	b	.L18
.L42:
	bl	__stack_chk_fail
.L44:
	.align	2
.L43:
	.word	.LC2
	.word	.LC0
	.word	.LANCHOR0
	.word	SND_NODEFAULT
	.word	HKEY_CURRENT_USER
	.word	.LANCHOR0+12
	.word	SND_APPLICATION
	.word	.LANCHOR0+44
	.word	.LC1
	.word	MMIO_READ
	.word	MMIO_ALLOCBUF
	.word	MMIO_DENYWRITE
	.word	.LANCHOR0+56
	.size	get_mmioFromProfile, .-get_mmioFromProfile
	.comm	SND_NODEFAULT,4,4
	.comm	SND_APPLICATION,4,4
	.comm	MMIO_READ,4,4
	.comm	MMIO_DENYWRITE,4,4
	.comm	MMIO_ALLOCBUF,4,4
	.comm	HKEY_CURRENT_USER,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	wszNull.4270, %object
	.size	wszNull.4270, 1
wszNull.4270:
	.space	1
	.space	3
	.type	wszSounds.4265, %object
	.size	wszSounds.4265, 7
wszSounds.4265:
	.ascii	"Sounds\000"
	.space	1
	.type	wszKey.4267, %object
	.size	wszKey.4267, 23
wszKey.4267:
	.ascii	"AppEvents\\Schemes\\Apps\000"
	.space	1
	.type	wszDefault.4266, %object
	.size	wszDefault.4266, 8
wszDefault.4266:
	.ascii	"Default\000"
	.type	wszDotDefault.4268, %object
	.size	wszDotDefault.4268, 9
wszDotDefault.4268:
	.ascii	".Default\000"
	.space	3
	.type	wszDotCurrent.4269, %object
	.size	wszDotCurrent.4269, 9
wszDotCurrent.4269:
	.ascii	".Current\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
