	.file	"extr_lolvldrv.c_MMDRV_InitPerType.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"(%p, %04x, %04x)\n"
.LC1:
	.string	"DRVM_INIT => %s\n"
.LC2:
	.string	"Got %u dev for (%s:%s)\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Two mappers for type %s (%d, %s)\n"
	.align 8
.LC4:
	.string	"Strange: mapper with %d > 1 devices\n"
	.align 8
.LC5:
	.string	"Setting min=%d max=%d (ttop=%d) for (%s:%s)\n"
	.section	.rodata.str1.1
.LC6:
	.string	"%s:Trans[%d] -> %s\n"
	.text
	.p2align 4
	.type	MMDRV_InitPerType, @function
MMDRV_InitPerType:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rcx, rdx
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	mov	rdx, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	sal	r12, 4
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	add	r12, QWORD PTR 16[rdi]
	mov	QWORD PTR 8[rsp], rsi
	mov	rsi, rdi
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR [r12], 0
	test	rax, rax
	je	.L3
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, QWORD PTR DRVM_INIT[rip]
	xor	edi, edi
	lea	rbx, [rbx+rbx*2]
	call	rax
	sal	rbx, 3
	mov	rdi, rax
	call	WINMM_ErrorToString@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	TRACE@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, r14
	xor	edi, edi
	call	[QWORD PTR 8[r12]]
	mov	edx, DWORD PTR 0[rbp]
	lea	rdi, .LC2[rip]
	mov	r14, rax
	mov	rax, QWORD PTR llTypes[rip]
	mov	rsi, r14
	mov	rcx, QWORD PTR [rax+rbx]
	xor	eax, eax
	call	TRACE@PLT
	mov	rdi, r14
	call	HIWORD@PLT
	test	rax, rax
	jne	.L3
	cmp	QWORD PTR 8[rbp], 0
	je	.L6
	mov	rax, QWORD PTR llTypes[rip]
	add	rax, rbx
	mov	edx, DWORD PTR 8[rax]
	cmp	edx, -1
	jne	.L30
	cmp	r14, 1
	ja	.L31
.L8:
	mov	rax, QWORD PTR llTypes[rip]
	mov	edx, DWORD PTR MMDrvsHi[rip]
	mov	esi, DWORD PTR [r12]
	add	rax, rbx
	mov	DWORD PTR 8[rax], edx
	mov	ecx, DWORD PTR 12[rax]
	mov	edx, DWORD PTR 4[r12]
.L9:
	mov	r9, QWORD PTR [rax]
	mov	r8d, DWORD PTR 0[rbp]
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	rax, QWORD PTR llTypes[rip]
	add	rax, rbx
	mov	rbp, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 12[rax]
	lea	r12d, 4[0+rax*4]
	xor	eax, eax
	test	rbp, rbp
	je	.L10
	call	GetProcessHeap@PLT
	xor	esi, esi
	lea	rdx, -32[rbp]
	mov	ecx, r12d
	mov	edi, eax
	call	HeapReAlloc@PLT
	mov	rsi, QWORD PTR llTypes[rip]
	add	rax, 1
	lea	rdi, [rsi+rbx]
	mov	QWORD PTR 16[rdi], rax
.L11:
	movsx	rax, DWORD PTR 8[rdi]
	cmp	eax, -1
	je	.L12
	sal	rax, 4
	add	rax, QWORD PTR MMDrvs[rip]
	mov	rsi, QWORD PTR [rdi]
	mov	edx, -1
	mov	rcx, QWORD PTR [rax]
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	rsi, QWORD PTR llTypes[rip]
	mov	rdi, QWORD PTR 8[rsp]
	lea	rdx, [rsi+rbx]
	mov	rax, QWORD PTR 16[rdx]
	movsx	rdx, DWORD PTR 8[rdx]
	mov	DWORD PTR -32[rax], -1
	mov	QWORD PTR -24[rax], rdi
	mov	QWORD PTR -16[rax], rdx
	mov	QWORD PTR -8[rax], 0
.L12:
	mov	eax, DWORD PTR MMDrvsHi[rip]
	test	eax, eax
	js	.L13
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR MMDrvs[rip]
	xor	ebp, ebp
	xor	r14d, r14d
	lea	r15, .LC6[rip]
	sal	rax, 3
	mov	QWORD PTR [rsp], rax
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12, rbp
	mov	rax, QWORD PTR [rsp]
	sal	r12, 4
	lea	rcx, [rdi+r12]
	add	rax, QWORD PTR 8[rcx]
	cmp	r14d, DWORD PTR [rax]
	jl	.L15
	movsx	r8, r14d
	sal	r8, 5
	mov	r13, r8
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, QWORD PTR [rsi+rbx]
	mov	rcx, QWORD PTR [rcx]
	mov	edx, r14d
	mov	rdi, r15
	xor	eax, eax
	call	TRACE@PLT
	mov	rsi, QWORD PTR llTypes[rip]
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR MMDrvs[rip]
	mov	rax, QWORD PTR 16[rsi+rbx]
	lea	rcx, [rdi+r12]
	add	rax, r13
	add	r13, 32
	mov	DWORD PTR [rax], r14d
	add	r14d, 1
	mov	QWORD PTR 8[rax], rdx
	mov	QWORD PTR 16[rax], rbp
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR [rsp]
	add	rax, QWORD PTR 8[rcx]
	cmp	DWORD PTR [rax], r14d
	jg	.L15
.L17:
	cmp	DWORD PTR 4[rax], r14d
	jg	.L16
.L15:
	add	rbp, 1
	cmp	DWORD PTR MMDrvsHi[rip], ebp
	jge	.L14
.L13:
	mov	eax, DWORD PTR TRUE[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	test	r14, r14
	jne	.L32
.L3:
	mov	eax, DWORD PTR FALSE[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L32:
	.cfi_restore_state
	mov	rax, QWORD PTR llTypes[rip]
	add	rax, rbx
	mov	esi, DWORD PTR 12[rax]
	lea	ecx, [rsi+r14]
	mov	DWORD PTR [r12], esi
	mov	edx, ecx
	mov	DWORD PTR 12[rax], ecx
	mov	DWORD PTR 4[r12], ecx
	jmp	.L9
.L30:
	mov	rsi, QWORD PTR [rax]
	mov	ecx, DWORD PTR 0[rbp]
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	ERR@PLT
	cmp	r14, 1
	jbe	.L8
.L31:
	mov	rsi, r14
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	ERR@PLT
	jmp	.L8
.L10:
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	edx, r12d
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	rsi, QWORD PTR llTypes[rip]
	add	rax, 1
	lea	rdi, [rsi+rbx]
	mov	QWORD PTR 16[rdi], rax
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	MMDRV_InitPerType, .-MMDRV_InitPerType
	.comm	llTypes,8,8
	.comm	TRUE,4,4
	.comm	MMDrvsHi,4,4
	.comm	MMDrvs,8,8
	.comm	FALSE,4,4
	.comm	DRVM_INIT,8,8
	.comm	DRVM_ENABLE,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_lolvldrv.c_MMDRV_InitPerType.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(%p, %04x, %04x)\012\000"
	.align	2
.LC1:
	.ascii	"DRVM_INIT => %s\012\000"
	.align	2
.LC2:
	.ascii	"Got %u dev for (%s:%s)\012\000"
	.align	2
.LC3:
	.ascii	"Two mappers for type %s (%d, %s)\012\000"
	.align	2
.LC4:
	.ascii	"Strange: mapper with %d > 1 devices\012\000"
	.align	2
.LC5:
	.ascii	"Setting min=%d max=%d (ttop=%d) for (%s:%s)\012\000"
	.align	2
.LC6:
	.ascii	"%s:Trans[%d] -> %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	MMDRV_InitPerType, %function
MMDRV_InitPerType:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	ldr	r8, [r0, #8]
	add	fp, r1, r1, lsl #1
	add	r9, r8, fp, lsl #2
	mov	r3, r2
	sub	sp, sp, #20
	mov	r5, r0
	mov	r10, r1
	mov	r6, r2
	mov	r2, r1
	mov	r1, r0
	ldr	r0, .L36
	str	r8, [sp, #8]
	bl	TRACE
	ldr	r7, [r9, #8]
	lsl	fp, fp, #2
	cmp	r7, r4
	str	r4, [r9, #4]
	str	r4, [r8, fp]
	beq	.L3
	ldr	r3, .L36+4
	str	r4, [sp]
	mov	r2, r4
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, r4
	blx	r7
	bl	WINMM_ErrorToString
	mov	r1, r0
	ldr	r0, .L36+8
	bl	TRACE
	str	r4, [sp]
	mov	r1, r6
	mov	r3, r4
	mov	r2, r4
	mov	r0, r4
	ldr	r6, [r9, #8]
	blx	r6
	mov	r8, r0
	ldr	r6, .L36+12
	mov	r1, r0
	ldr	r3, [r6]
	ldr	r2, [r5]
	ldr	r3, [r3, r10, lsl #4]
	ldr	r0, .L36+16
	bl	TRACE
	mov	r0, r8
	bl	HIWORD
	subs	r4, r0, #0
	lsl	r7, r10, #4
	bne	.L3
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [r6]
	add	r2, r3, r7
	ldr	r2, [r2, #4]
	cmn	r2, #1
	bne	.L33
	cmp	r8, #1
	bhi	.L34
.L8:
	ldr	r3, .L36+20
	ldr	r0, [r6]
	ldr	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [r3]
	add	r0, r0, r7
	ldr	r1, [r2, fp]
	ldr	r2, [r9, #4]
	str	r3, [r0, #4]
	ldr	r3, [r0, #8]
.L9:
	ldr	ip, [r0]
	ldr	r0, [r5]
	stm	sp, {r0, ip}
	ldr	r0, .L36+24
	bl	TRACE
	ldr	r3, [r6]
	add	r3, r3, r7
	ldr	r5, [r3, #12]
	cmp	r5, #0
	beq	.L10
	bl	GetProcessHeap
	ldr	r3, [r6]
	mov	r1, #0
	add	r3, r3, r7
	ldr	ip, [r3, #8]
	ldr	r2, [r3, #12]
	add	r3, ip, #1
	lsl	r3, r3, #2
	sub	r2, r2, #16
	bl	HeapReAlloc
	ldr	r3, [r6]
	add	r2, r0, #1
	add	r3, r3, r7
	str	r2, [r3, #12]
.L11:
	ldr	r0, [r3, #4]
	cmn	r0, #1
	beq	.L12
	ldr	r9, .L36+28
	ldr	r1, [r3]
	ldr	r3, [r9]
	mvn	r2, #0
	ldr	r3, [r3, r0, lsl #3]
	ldr	r0, .L36+32
	bl	TRACE
	mvn	r0, #0
	mov	r1, #0
	ldr	r2, [r6]
	add	r2, r2, r7
	ldr	r3, [r2, #12]
	ldr	r2, [r2, #4]
	str	r10, [r3, #-12]
	str	r2, [r3, #-8]
	str	r0, [r3, #-16]
	str	r1, [r3, #-4]
.L12:
	ldr	r3, [sp, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L13
	lsl	r5, r10, #3
	str	r10, [sp, #8]
	mov	r8, #0
	mov	r10, r4
	ldr	r9, .L36+28
	ldr	fp, .L36+32
.L14:
	ldr	r0, [r9]
	lsl	r4, r8, #3
	add	r0, r0, r8, lsl #3
	ldr	r1, [r0, #4]
	ldr	r3, [r1, r5]
	add	r1, r1, r5
	cmp	r10, r3
	movge	r3, r9
	movge	r9, r10
	movge	r10, r3
	bge	.L17
	b	.L15
.L16:
	ldr	r1, [r6]
	mov	r2, r9
	ldr	r3, [r0]
	ldr	r1, [r1, r7]
	mov	r0, fp
	bl	TRACE
	ldr	r0, [r10]
	ldr	r3, [r6]
	add	r0, r0, r4
	add	r3, r3, r7
	ldr	r1, [r0, #4]
	ldr	r3, [r3, #12]
	ldr	r2, [sp, #8]
	ldr	ip, [r1, r5]
	str	r9, [r3, r9, lsl #4]
	add	r3, r3, r9, lsl #4
	stmib	r3, {r2, r8}
	mov	r2, #0
	add	r9, r9, #1
	cmp	ip, r9
	str	r2, [r3, #12]
	add	r1, r1, r5
	bgt	.L29
.L17:
	ldr	r3, [r1, #4]
	cmp	r3, r9
	bgt	.L16
.L29:
	mov	r3, r10
	mov	r10, r9
	mov	r9, r3
.L15:
	ldr	r3, [sp, #12]
	add	r8, r8, #1
	ldr	r3, [r3]
	cmp	r3, r8
	bge	.L14
.L13:
	ldr	r3, .L36+36
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	cmp	r8, #0
	bne	.L35
.L3:
	ldr	r3, .L36+40
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L35:
	ldr	r0, [r6]
	ldr	r3, .L36+20
	add	r0, r0, r7
	ldr	r1, [r0, #8]
	ldr	ip, [sp, #8]
	add	r2, r1, r8
	str	r1, [ip, fp]
	str	r3, [sp, #12]
	str	r2, [r0, #8]
	mov	r3, r2
	str	r2, [r9, #4]
	b	.L9
.L33:
	ldr	r1, [r3, r10, lsl #4]
	ldr	r0, .L36+44
	ldr	r3, [r5]
	bl	ERR
	cmp	r8, #1
	bls	.L8
.L34:
	mov	r1, r8
	ldr	r0, .L36+48
	bl	ERR
	b	.L8
.L10:
	bl	GetProcessHeap
	ldr	r3, [r6]
	mov	r1, r5
	add	r3, r3, r7
	ldr	r2, [r3, #8]
	add	r2, r2, #1
	lsl	r2, r2, #2
	bl	HeapAlloc
	ldr	r3, [r6]
	add	r2, r0, #1
	add	r3, r3, r7
	str	r2, [r3, #12]
	b	.L11
.L37:
	.align	2
.L36:
	.word	.LC0
	.word	DRVM_INIT
	.word	.LC1
	.word	llTypes
	.word	.LC2
	.word	MMDrvsHi
	.word	.LC5
	.word	MMDrvs
	.word	.LC6
	.word	TRUE
	.word	FALSE
	.word	.LC3
	.word	.LC4
	.size	MMDRV_InitPerType, .-MMDRV_InitPerType
	.comm	llTypes,4,4
	.comm	TRUE,4,4
	.comm	MMDrvsHi,4,4
	.comm	MMDrvs,4,4
	.comm	FALSE,4,4
	.comm	DRVM_INIT,4,4
	.comm	DRVM_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
