	.file	"extr_mpsc.c_mpsc_drv_map_regs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mpsc_regs"
.LC1:
	.string	"MPSC base"
.LC2:
	.string	"sdma_regs"
.LC3:
	.string	"SDMA base"
.LC4:
	.string	"brg_regs"
.LC5:
	.string	"BRG base"
	.text
	.p2align 4
	.type	mpsc_drv_map_regs, @function
mpsc_drv_map_regs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, DWORD PTR MPSC_BASE_ORDER[rip]
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	mov	rbp, rdi
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	platform_get_resource@PLT
	test	rax, rax
	je	.L2
	mov	esi, DWORD PTR MPSC_REG_BLOCK_SIZE[rip]
	mov	edi, DWORD PTR [rax]
	lea	rdx, .LC0[rip]
	mov	rbx, rax
	call	request_mem_region@PLT
	test	rax, rax
	jne	.L32
.L2:
	lea	rdi, .LC1[rip]
	call	mpsc_resource_err@PLT
.L5:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L32:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR MPSC_REG_BLOCK_SIZE[rip]
	call	ioremap@PLT
	mov	edx, DWORD PTR MPSC_SDMA_BASE_ORDER[rip]
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	mov	rdi, r12
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 36[rbp], eax
	call	platform_get_resource@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR MPSC_SDMA_REG_BLOCK_SIZE[rip]
	mov	edi, DWORD PTR [rax]
	lea	rdx, .LC2[rip]
	call	request_mem_region@PLT
	test	rax, rax
	jne	.L33
.L4:
	lea	rdi, .LC3[rip]
	call	mpsc_resource_err@PLT
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L5
	call	iounmap@PLT
	mov	QWORD PTR 8[rbp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR MPSC_SDMA_REG_BLOCK_SIZE[rip]
	call	ioremap@PLT
	mov	edx, DWORD PTR MPSC_BRG_BASE_ORDER[rip]
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	mov	rdi, r12
	mov	QWORD PTR 0[rbp], rax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 32[rbp], eax
	call	platform_get_resource@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L7
	mov	esi, DWORD PTR MPSC_BRG_REG_BLOCK_SIZE[rip]
	mov	edi, DWORD PTR [rax]
	lea	rdx, .LC4[rip]
	call	request_mem_region@PLT
	test	rax, rax
	je	.L7
	mov	esi, DWORD PTR MPSC_BRG_REG_BLOCK_SIZE[rip]
	mov	edi, DWORD PTR [rbx]
	call	ioremap@PLT
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 16[rbp], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rdi, .LC5[rip]
	call	mpsc_resource_err@PLT
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L10
	call	iounmap@PLT
	mov	QWORD PTR 8[rbp], 0
.L10:
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L5
	call	iounmap@PLT
	mov	QWORD PTR 0[rbp], 0
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	mpsc_drv_map_regs, .-mpsc_drv_map_regs
	.comm	MPSC_SDMA_REG_BLOCK_SIZE,4,4
	.comm	MPSC_SDMA_BASE_ORDER,4,4
	.comm	MPSC_REG_BLOCK_SIZE,4,4
	.comm	MPSC_BRG_REG_BLOCK_SIZE,4,4
	.comm	MPSC_BRG_BASE_ORDER,4,4
	.comm	MPSC_BASE_ORDER,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ENOMEM,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_mpsc.c_mpsc_drv_map_regs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mpsc_regs\000"
	.align	2
.LC1:
	.ascii	"MPSC base\000"
	.align	2
.LC2:
	.ascii	"sdma_regs\000"
	.align	2
.LC3:
	.ascii	"SDMA base\000"
	.align	2
.LC4:
	.ascii	"brg_regs\000"
	.align	2
.LC5:
	.ascii	"BRG base\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpsc_drv_map_regs, %function
mpsc_drv_map_regs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L34
	ldr	r7, .L34+4
	mov	r6, r1
	mov	r5, r0
	ldr	r2, [r3]
	mov	r0, r1
	ldr	r1, [r7]
	bl	platform_get_resource
	subs	r4, r0, #0
	beq	.L2
	ldr	r8, .L34+8
	ldr	r2, .L34+12
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	request_mem_region
	cmp	r0, #0
	bne	.L32
.L2:
	ldr	r0, .L34+16
	bl	mpsc_resource_err
.L5:
	ldr	r3, .L34+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	ioremap
	ldr	r2, [r4]
	ldr	r3, .L34+24
	str	r0, [r5, #4]
	str	r2, [r5, #20]
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r1, [r7]
	bl	platform_get_resource
	subs	r4, r0, #0
	beq	.L4
	ldr	r8, .L34+28
	ldr	r2, .L34+32
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	request_mem_region
	cmp	r0, #0
	bne	.L33
.L4:
	ldr	r0, .L34+36
	bl	mpsc_resource_err
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L5
	bl	iounmap
	mov	r3, #0
	str	r3, [r5, #4]
	b	.L5
.L33:
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	ioremap
	ldr	r2, [r4]
	ldr	r3, .L34+40
	str	r0, [r5]
	str	r2, [r5, #16]
	mov	r0, r6
	ldr	r1, [r7]
	ldr	r2, [r3]
	bl	platform_get_resource
	subs	r4, r0, #0
	beq	.L7
	ldr	r6, .L34+44
	ldr	r2, .L34+48
	ldr	r1, [r6]
	ldr	r0, [r4]
	bl	request_mem_region
	cmp	r0, #0
	beq	.L7
	ldr	r1, [r6]
	ldr	r0, [r4]
	bl	ioremap
	ldr	r3, [r4]
	str	r0, [r5, #12]
	str	r3, [r5, #8]
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, .L34+52
	bl	mpsc_resource_err
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L10
	bl	iounmap
	mov	r3, #0
	str	r3, [r5, #4]
.L10:
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L5
	bl	iounmap
	mov	r3, #0
	str	r3, [r5]
	b	.L5
.L35:
	.align	2
.L34:
	.word	MPSC_BASE_ORDER
	.word	IORESOURCE_MEM
	.word	MPSC_REG_BLOCK_SIZE
	.word	.LC0
	.word	.LC1
	.word	ENOMEM
	.word	MPSC_SDMA_BASE_ORDER
	.word	MPSC_SDMA_REG_BLOCK_SIZE
	.word	.LC2
	.word	.LC3
	.word	MPSC_BRG_BASE_ORDER
	.word	MPSC_BRG_REG_BLOCK_SIZE
	.word	.LC4
	.word	.LC5
	.size	mpsc_drv_map_regs, .-mpsc_drv_map_regs
	.comm	MPSC_SDMA_REG_BLOCK_SIZE,4,4
	.comm	MPSC_SDMA_BASE_ORDER,4,4
	.comm	MPSC_REG_BLOCK_SIZE,4,4
	.comm	MPSC_BRG_REG_BLOCK_SIZE,4,4
	.comm	MPSC_BRG_BASE_ORDER,4,4
	.comm	MPSC_BASE_ORDER,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
