	.file	"extr_qib_mr.c_qib_map_phys_fmr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qib_map_phys_fmr
	.type	qib_map_phys_fmr, @function
qib_map_phys_fmr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	to_ifmr@PLT
	lea	rdi, 40[rax]
	mov	rbp, rax
	call	atomic_read@PLT
	cmp	eax, 2
	jg	.L11
	cmp	DWORD PTR 0[rbp], r13d
	jge	.L4
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR [r12]
	call	to_idev@PLT
	xor	esi, esi
	mov	rdi, rax
	mov	r12, rax
	call	spin_lock_irqsave@PLT
	mov	ecx, DWORD PTR 4[rbp]
	mov	eax, r13d
	mov	edi, 1
	mov	QWORD PTR 32[rbp], r14
	sal	eax, cl
	mov	QWORD PTR 24[rbp], r14
	sal	edi, cl
	mov	DWORD PTR 8[rbp], eax
	test	r13d, r13d
	jle	.L5
	lea	eax, -1[r13]
	mov	r10d, DWORD PTR QIB_SEGSZ[rip]
	mov	rsi, rbx
	xor	edx, edx
	mov	r11, QWORD PTR 16[rbp]
	lea	rbp, 8[rbx+rax*8]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	movsx	rax, ebx
	mov	r9, QWORD PTR [rsi]
	lea	rcx, [r11+rax*8]
	movsx	rax, edx
	add	edx, 1
	mov	r8, QWORD PTR [rcx]
	sal	rax, 4
	mov	r8, QWORD PTR [r8]
	mov	QWORD PTR 8[r8+rax], r9
	mov	rcx, QWORD PTR [rcx]
	mov	rcx, QWORD PTR [rcx]
	mov	DWORD PTR [rcx+rax], edi
	cmp	r10d, edx
	jne	.L6
	add	ebx, 1
	xor	edx, edx
.L6:
	add	rsi, 8
	cmp	rbp, rsi
	jne	.L7
.L5:
	mov	rdi, r12
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qib_map_phys_fmr, .-qib_map_phys_fmr
	.comm	QIB_SEGSZ,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_qib_mr.c_qib_map_phys_fmr.c"
	.text
	.align	2
	.global	qib_map_phys_fmr
	.syntax unified
	.arm
	.fpu softvfp
	.type	qib_map_phys_fmr, %function
qib_map_phys_fmr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r1
	mov	r5, r2
	mov	r8, r3
	mov	r6, r0
	bl	to_ifmr
	mov	r4, r0
	add	r0, r0, #24
	bl	atomic_read
	cmp	r0, #2
	bgt	.L11
	ldr	r3, [r4]
	cmp	r3, r5
	bge	.L4
	ldr	r3, .L12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r0, [r6]
	bl	to_idev
	mov	r7, #1
	mov	r1, #0
	mov	r6, r0
	bl	spin_lock_irqsave
	ldr	r3, [r4, #4]
	cmp	r5, #0
	lsl	r2, r5, r3
	str	r8, [r4, #20]
	str	r8, [r4, #16]
	str	r2, [r4, #8]
	lsl	r7, r7, r3
	ble	.L5
	mov	r3, #0
	mov	ip, r3
	ldr	r2, .L12+4
	sub	r1, r9, #4
	ldr	r8, [r2]
	ldr	lr, [r4, #12]
	add	r4, r1, r5, lsl #2
.L7:
	ldr	r2, [lr, ip, lsl #2]
	ldr	r0, [r1, #4]!
	ldr	r2, [r2]
	add	r2, r2, r3, lsl #3
	str	r0, [r2, #4]
	ldr	r2, [lr, ip, lsl #2]
	ldr	r2, [r2]
	str	r7, [r2, r3, lsl #3]
	add	r3, r3, #1
	cmp	r8, r3
	moveq	r3, #0
	addeq	ip, ip, #1
	cmp	r4, r1
	bne	.L7
.L5:
	mov	r0, r6
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	EINVAL
	.word	QIB_SEGSZ
	.word	EBUSY
	.size	qib_map_phys_fmr, .-qib_map_phys_fmr
	.comm	QIB_SEGSZ,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
