	.file	"extr_qib_init.c_init_pioavailregs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to allocate PIOavail reg area in memory\n"
	.text
	.p2align 4
	.type	init_pioavailregs, @function
init_pioavailregs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdx, 48[rdi]
	mov	rbp, rdi
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, QWORD PTR 56[rdi]
	mov	rsi, QWORD PTR PAGE_SIZE[rip]
	call	dma_alloc_coherent@PLT
	mov	QWORD PTR 24[rbp], rax
	test	rax, rax
	je	.L9
	mov	ecx, DWORD PTR L1_CACHE_BYTES[rip]
	movsx	rsi, DWORD PTR 0[rbp]
	lea	edx, [rcx+rcx]
	not	ecx
	movsx	rdx, edx
	movsx	rcx, ecx
	lea	rdx, [rdx+rsi*4]
	and	rdx, rcx
	add	rdx, rax
	mov	QWORD PTR 40[rbp], rdx
	lea	rax, 4[rdx]
	mov	DWORD PTR [rdx], 0
	mov	edx, DWORD PTR 4[rbp]
	test	edx, edx
	jle	.L4
	mov	rsi, QWORD PTR 32[rbp]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rcx, rax
	mov	QWORD PTR [rsi+rdx*8], rax
	add	rax, 4
	add	rdx, 1
	mov	DWORD PTR [rcx], 0
	cmp	DWORD PTR 4[rbp], edx
	jg	.L5
.L4:
.L3:
	endbr64
	mov	QWORD PTR 8[rbp], rax
	mov	BYTE PTR [rax], 0
	sub	rax, QWORD PTR 24[rbp]
	mov	rdi, QWORD PTR PAGE_SIZE[rip]
	cdqe
	sub	rdi, rax
	xor	eax, eax
	mov	QWORD PTR 16[rbp], rdi
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	qib_dev_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	init_pioavailregs, .-init_pioavailregs
	.comm	PAGE_SIZE,8,8
	.comm	L1_CACHE_BYTES,4,4
	.comm	GFP_KERNEL,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_qib_init.c_init_pioavailregs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to allocate PIOavail reg area in memory\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_pioavailregs, %function
init_pioavailregs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L10
	ldr	r5, .L10+4
	mov	r4, r0
	add	r2, r0, #28
	ldr	r3, [r3]
	ldr	r0, [r0, #32]
	ldr	r1, [r5]
	bl	dma_alloc_coherent
	cmp	r0, #0
	str	r0, [r4, #16]
	beq	.L9
	mov	r2, #0
	ldr	r3, .L10+8
	ldr	ip, [r4]
	ldr	r3, [r3]
	lsl	r1, r3, #1
	add	r1, r1, ip, lsl #2
	bic	r1, r1, r3
	add	r3, r1, r0
	str	r3, [r4, #24]
	str	r2, [r1, r0]
	ldr	r1, [r4, #4]
	add	r3, r3, #4
	cmp	r1, r2
	ble	.L4
	mov	ip, r2
	ldr	r1, [r4, #20]
	sub	r1, r1, #4
.L5:
	str	r3, [r1, #4]!
	str	ip, [r3]
	ldr	r0, [r4, #4]
	add	r2, r2, #1
	cmp	r0, r2
	add	r3, r3, #4
	bgt	.L5
.L4:
.L3:
	mov	r2, #0
	str	r3, [r4, #8]
	strb	r2, [r3]
	ldr	r1, [r4, #16]
	mov	r0, r2
	ldr	r2, [r5]
	sub	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [r4, #12]
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r4
	ldr	r1, .L10+12
	bl	qib_dev_err
	ldr	r3, .L10+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	GFP_KERNEL
	.word	PAGE_SIZE
	.word	L1_CACHE_BYTES
	.word	.LC0
	.word	ENOMEM
	.size	init_pioavailregs, .-init_pioavailregs
	.comm	PAGE_SIZE,4,4
	.comm	L1_CACHE_BYTES,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
