	.file	"extr_ipmi_si_intf.c_mem_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid register size: %d\n"
	.text
	.p2align 4
	.type	mem_setup, @function
mem_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, DWORD PTR ENODEV[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR 8[rdi]
	neg	eax
	test	rbp, rbp
	je	.L1
	mov	eax, DWORD PTR mem_cleanup[rip]
	mov	edx, DWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	DWORD PTR 44[rdi], eax
	cmp	edx, 2
	je	.L4
	cmp	edx, 4
	je	.L5
	cmp	edx, 1
	je	.L13
	mov	edi, DWORD PTR 40[rdi]
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	eax, DWORD PTR EINVAL[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
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR intf_mem_inb[rip]
	mov	DWORD PTR 36[rdi], eax
	mov	eax, DWORD PTR intf_mem_outb[rip]
	mov	DWORD PTR 32[rdi], eax
.L7:
	mov	eax, DWORD PTR 20[rbx]
	mov	r12d, DWORD PTR [rbx]
	mov	rdi, rbp
	imul	r12d, eax
	sub	eax, edx
	mov	edx, DWORD PTR DEVICE_NAME[rip]
	sub	r12d, eax
	mov	esi, r12d
	call	request_mem_region@PLT
	test	rax, rax
	je	.L11
	mov	esi, r12d
	mov	rdi, rbp
	call	ioremap@PLT
	mov	rdx, rax
	mov	QWORD PTR 24[rbx], rax
	xor	eax, eax
	test	rdx, rdx
	jne	.L1
	mov	esi, r12d
	mov	rdi, rbp
	call	release_mem_region@PLT
.L11:
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR intf_mem_inl[rip]
	mov	DWORD PTR 36[rdi], eax
	mov	eax, DWORD PTR intf_mem_outl[rip]
	mov	DWORD PTR 32[rdi], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR intf_mem_inw[rip]
	mov	DWORD PTR 36[rdi], eax
	mov	eax, DWORD PTR intf_mem_outw[rip]
	mov	DWORD PTR 32[rdi], eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	mem_setup, .-mem_setup
	.comm	mem_outq,4,4
	.comm	mem_inq,4,4
	.comm	mem_cleanup,4,4
	.comm	intf_mem_outw,4,4
	.comm	intf_mem_outl,4,4
	.comm	intf_mem_outb,4,4
	.comm	intf_mem_inw,4,4
	.comm	intf_mem_inl,4,4
	.comm	intf_mem_inb,4,4
	.comm	ENODEV,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	DEVICE_NAME,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_ipmi_si_intf.c_mem_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid register size: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mem_setup, %function
mem_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #4]
	cmp	r5, #0
	beq	.L13
	ldr	r3, .L16
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	cmp	r2, #2
	mov	r4, r0
	str	r3, [r0, #32]
	beq	.L4
	cmp	r2, #4
	beq	.L5
	cmp	r2, #1
	beq	.L14
	ldr	r1, .L16+4
	ldr	r0, [r0, #28]
	bl	dev_warn
	ldr	r3, .L16+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L16+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r1, .L16+16
	ldr	r3, .L16+20
	ldr	r1, [r1]
	ldr	r3, [r3]
	str	r1, [r0, #24]
	str	r3, [r0, #20]
.L7:
	ldr	r1, [r4, #12]
	ldr	r6, [r4]
	sub	r2, r2, r1
	mla	r6, r1, r6, r2
	ldr	r3, .L16+24
	mov	r1, r6
	mov	r0, r5
	ldr	r2, [r3]
	bl	request_mem_region
	cmp	r0, #0
	beq	.L11
	mov	r1, r6
	mov	r0, r5
	bl	ioremap
	cmp	r0, #0
	str	r0, [r4, #16]
	beq	.L15
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r1, .L16+28
	ldr	r3, .L16+32
	ldr	r1, [r1]
	ldr	r3, [r3]
	str	r1, [r0, #24]
	str	r3, [r0, #20]
	b	.L7
.L4:
	ldr	r1, .L16+36
	ldr	r3, .L16+40
	ldr	r1, [r1]
	ldr	r3, [r3]
	str	r1, [r0, #24]
	str	r3, [r0, #20]
	b	.L7
.L15:
	mov	r1, r6
	mov	r0, r5
	bl	release_mem_region
.L11:
	ldr	r3, .L16+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	mem_cleanup
	.word	.LC0
	.word	EINVAL
	.word	ENODEV
	.word	intf_mem_inb
	.word	intf_mem_outb
	.word	DEVICE_NAME
	.word	intf_mem_inl
	.word	intf_mem_outl
	.word	intf_mem_inw
	.word	intf_mem_outw
	.word	EIO
	.size	mem_setup, .-mem_setup
	.comm	mem_outq,4,4
	.comm	mem_inq,4,4
	.comm	mem_cleanup,4,4
	.comm	intf_mem_outw,4,4
	.comm	intf_mem_outl,4,4
	.comm	intf_mem_outb,4,4
	.comm	intf_mem_inw,4,4
	.comm	intf_mem_inl,4,4
	.comm	intf_mem_inb,4,4
	.comm	ENODEV,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	DEVICE_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
