	.file	"extr_hpilo.c_ilo_ccb_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ilo_ccb_setup, @function
ilo_ccb_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	edi, DWORD PTR NR_QENTRY[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	fifo_sz@PLT
	mov	edi, DWORD PTR NR_QENTRY[rip]
	mov	r12, rax
	call	desc_mem_sz@PLT
	mov	rdx, QWORD PTR ILO_CACHE_SZ[rip]
	mov	edi, DWORD PTR 8[r13]
	add	rdx, QWORD PTR ILO_START_ALIGN[rip]
	add	r12, rax
	lea	rsi, [rdx+r12*2]
	mov	rdx, rbx
	mov	QWORD PTR 8[rbx], rsi
	call	pci_alloc_consistent@PLT
	mov	QWORD PTR 16[rbx], rax
	test	rax, rax
	jne	.L2
	mov	eax, DWORD PTR ENOMEM[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
.L2:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbx]
	xor	esi, esi
	mov	rdi, rax
	mov	r14, QWORD PTR [rbx]
	mov	r12, rax
	call	memset@PLT
	mov	rsi, QWORD PTR ILO_START_ALIGN[rip]
	mov	rdi, r12
	call	roundup@PLT
	mov	rsi, QWORD PTR ILO_START_ALIGN[rip]
	mov	rdi, r14
	mov	r12, rax
	call	roundup@PLT
	mov	edx, DWORD PTR L2_QENTRY_SZ[rip]
	mov	esi, DWORD PTR NR_QENTRY[rip]
	lea	rdi, 104[rbx]
	mov	r14, rax
	call	ctrl_setup@PLT
	mov	edx, DWORD PTR L2_QENTRY_SZ[rip]
	mov	esi, DWORD PTR NR_QENTRY[rip]
	lea	rdi, 24[rbx]
	call	ctrl_setup@PLT
	mov	esi, DWORD PTR NR_QENTRY[rip]
	mov	rdi, r12
	call	fifo_setup@PLT
	movsx	rdx, DWORD PTR FIFOHANDLESIZE[rip]
	mov	edi, DWORD PTR NR_QENTRY[rip]
	mov	rax, rdx
	add	rdx, r12
	add	eax, r14d
	mov	QWORD PTR 168[rbx], rdx
	mov	DWORD PTR 96[rbx], eax
	call	fifo_sz@PLT
	mov	edi, DWORD PTR NR_QENTRY[rip]
	add	r12, rax
	call	fifo_sz@PLT
	mov	rsi, QWORD PTR ILO_CACHE_SZ[rip]
	mov	rdi, r12
	add	r14, rax
	call	roundup@PLT
	mov	rsi, QWORD PTR ILO_CACHE_SZ[rip]
	mov	rdi, r14
	mov	r12, rax
	call	roundup@PLT
	mov	esi, DWORD PTR NR_QENTRY[rip]
	mov	rdi, r12
	mov	r14, rax
	call	fifo_setup@PLT
	movsx	rdx, DWORD PTR FIFOHANDLESIZE[rip]
	mov	edi, DWORD PTR NR_QENTRY[rip]
	mov	rax, rdx
	add	rdx, r12
	add	eax, r14d
	mov	QWORD PTR 152[rbx], rdx
	mov	DWORD PTR 80[rbx], eax
	call	fifo_sz@PLT
	mov	edi, DWORD PTR NR_QENTRY[rip]
	add	r12, rax
	call	fifo_sz@PLT
	mov	QWORD PTR 136[rbx], r12
	mov	edi, DWORD PTR NR_QENTRY[rip]
	add	r14, rax
	mov	QWORD PTR 64[rbx], r14
	call	desc_mem_sz@PLT
	mov	edi, DWORD PTR NR_QENTRY[rip]
	add	r14, rax
	call	desc_mem_sz@PLT
	mov	ecx, DWORD PTR L2_DB_SIZE[rip]
	mov	DWORD PTR 104[rbx], ebp
	add	r12, rax
	mov	DWORD PTR 24[rbx], ebp
	mov	rax, QWORD PTR 0[r13]
	sal	ebp, cl
	mov	QWORD PTR 120[rbx], r12
	movsx	rbp, ebp
	mov	QWORD PTR 48[rbx], r14
	lea	rax, [rax+rbp*4]
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 112[rbx], rax
	pop	rbx
	.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
	.cfi_endproc
.LFE0:
	.size	ilo_ccb_setup, .-ilo_ccb_setup
	.comm	NR_QENTRY,4,4
	.comm	L2_QENTRY_SZ,4,4
	.comm	L2_DB_SIZE,4,4
	.comm	ILO_START_ALIGN,8,8
	.comm	ILO_CACHE_SZ,8,8
	.comm	FIFOHANDLESIZE,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_hpilo.c_ilo_ccb_setup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ilo_ccb_setup, %function
ilo_ccb_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L6
	mov	r6, r0
	ldr	r0, [r5]
	mov	r4, r1
	mov	r7, r2
	bl	fifo_sz
	mov	r10, r0
	ldr	r0, [r5]
	bl	desc_mem_sz
	ldr	r9, .L6+4
	ldr	r8, .L6+8
	ldr	r3, [r9]
	ldr	r1, [r8]
	add	r10, r10, r0
	add	r1, r3, r1
	add	r1, r1, r10, lsl #1
	mov	r2, r4
	ldr	r0, [r6, #4]
	str	r1, [r4, #4]
	bl	pci_alloc_consistent
	cmp	r0, #0
	str	r0, [r4, #8]
	bne	.L2
	ldr	r3, .L6+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r10, r0
	ldr	r2, [r4, #4]
	mov	r1, #0
	ldr	fp, [r4]
	bl	memset
	ldr	r1, [r9]
	mov	r0, r10
	bl	roundup
	mov	r3, r0
	ldr	r1, [r9]
	mov	r0, fp
	mov	r9, r3
	bl	roundup
	mov	r10, r0
	ldr	r3, .L6+16
	ldr	r1, [r5]
	ldr	r2, [r3]
	add	r0, r4, #52
	bl	ctrl_setup
	ldr	r3, .L6+16
	ldr	fp, .L6+20
	ldr	r2, [r3]
	ldr	r1, [r5]
	add	r0, r4, #12
	bl	ctrl_setup
	ldr	r1, [r5]
	mov	r0, r9
	bl	fifo_setup
	ldr	r3, [fp]
	ldr	r0, [r5]
	add	r2, r9, r3
	add	r3, r3, r10
	str	r2, [r4, #84]
	str	r3, [r4, #48]
	bl	fifo_sz
	mov	r3, r0
	ldr	r0, [r5]
	add	r9, r9, r3
	bl	fifo_sz
	mov	r3, r0
	ldr	r1, [r8]
	mov	r0, r9
	add	r10, r10, r3
	bl	roundup
	mov	r3, r0
	ldr	r1, [r8]
	mov	r0, r10
	mov	r8, r3
	bl	roundup
	mov	r9, r0
	ldr	r1, [r5]
	mov	r0, r8
	bl	fifo_setup
	ldr	r3, [fp]
	ldr	r0, [r5]
	add	r2, r8, r3
	add	r3, r3, r9
	str	r2, [r4, #76]
	str	r3, [r4, #40]
	bl	fifo_sz
	mov	r3, r0
	ldr	r0, [r5]
	add	r8, r8, r3
	bl	fifo_sz
	add	r9, r9, r0
	str	r8, [r4, #68]
	str	r9, [r4, #32]
	ldr	r0, [r5]
	bl	desc_mem_sz
	mov	r3, r0
	ldr	r0, [r5]
	add	r9, r9, r3
	bl	desc_mem_sz
	mov	ip, r0
	mov	r1, #0
	ldr	r2, .L6+24
	ldr	r3, [r6]
	ldr	r2, [r2]
	add	r8, r8, ip
	lsl	r2, r7, r2
	add	r3, r3, r2, lsl #2
	mov	r0, r1
	str	r9, [r4, #24]
	str	r8, [r4, #60]
	str	r7, [r4, #52]
	str	r7, [r4, #12]
	str	r3, [r4, #56]
	str	r1, [r4, #16]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	.align	2
.L6:
	.word	NR_QENTRY
	.word	ILO_START_ALIGN
	.word	ILO_CACHE_SZ
	.word	ENOMEM
	.word	L2_QENTRY_SZ
	.word	FIFOHANDLESIZE
	.word	L2_DB_SIZE
	.size	ilo_ccb_setup, .-ilo_ccb_setup
	.comm	NR_QENTRY,4,4
	.comm	L2_QENTRY_SZ,4,4
	.comm	L2_DB_SIZE,4,4
	.comm	ILO_START_ALIGN,4,4
	.comm	ILO_CACHE_SZ,4,4
	.comm	FIFOHANDLESIZE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
