	.file	"extr_cc_buffer_mgr.c_cc_map_cipher_request.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"iv"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Mapping iv %u B at va=%pK for DMA failed\n"
	.align 8
.LC2:
	.string	"Mapped iv %u B at va=%pK to dma=%pad\n"
	.section	.rodata.str1.1
.LC3:
	.string	"areq_ctx->dma_buf_type = %s\n"
	.text
	.p2align 4
	.globl	cc_map_cipher_request
	.type	cc_map_cipher_request, @function
cc_map_cipher_request:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR 128[rsp]
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR 24[rsp], rax
	call	drvdata_to_dev@PLT
	mov	DWORD PTR 40[rsp], 0
	mov	r15, rax
	mov	rax, QWORD PTR CC_DMA_BUF_DLLI[rip]
	mov	DWORD PTR 44[rsp], 0
	mov	QWORD PTR 48[rbp], 0
	mov	QWORD PTR 0[rbp], rax
	mov	QWORD PTR 48[rsp], 0
	test	r12d, r12d
	jne	.L20
	mov	QWORD PTR 40[rbp], 0
.L5:
	lea	r11, 44[rsp]
	mov	ecx, DWORD PTR DMA_BIDIRECTIONAL[rip]
	mov	edx, ebx
	mov	rsi, r13
	push	r11
	.cfi_def_cfa_offset 136
	mov	r9d, DWORD PTR LLI_MAX_NUM_OF_DATA_ENTRIES[rip]
	lea	r8, 32[rbp]
	mov	rdi, r15
	lea	r10, 48[rsp]
	mov	QWORD PTR 24[rsp], r11
	push	r10
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 24[rsp], r10
	call	cc_map_sg@PLT
	pop	r8
	.cfi_def_cfa_offset 136
	pop	r9
	.cfi_def_cfa_offset 128
	mov	r14d, eax
	test	eax, eax
	jne	.L6
	cmp	DWORD PTR 44[rsp], 1
	mov	r10, QWORD PTR 8[rsp]
	mov	r11, QWORD PTR 16[rsp]
	jle	.L7
	mov	rax, QWORD PTR CC_DMA_BUF_MLLI[rip]
	mov	QWORD PTR 0[rbp], rax
	cmp	r13, QWORD PTR [rsp]
	je	.L10
.L8:
	push	r11
	.cfi_def_cfa_offset 136
	mov	ecx, DWORD PTR DMA_BIDIRECTIONAL[rip]
	mov	edx, ebx
	lea	r8, 16[rbp]
	push	r10
	.cfi_def_cfa_offset 144
	mov	r9d, DWORD PTR LLI_MAX_NUM_OF_DATA_ENTRIES[rip]
	mov	rdi, r15
	mov	rsi, QWORD PTR 16[rsp]
	call	cc_map_sg@PLT
	pop	rdx
	.cfi_def_cfa_offset 136
	pop	rcx
	.cfi_def_cfa_offset 128
	test	eax, eax
	jne	.L17
	cmp	DWORD PTR 44[rsp], 1
	mov	rax, QWORD PTR CC_DMA_BUF_MLLI[rip]
	jle	.L12
	mov	QWORD PTR 0[rbp], rax
.L13:
	lea	rax, 24[rbp]
	lea	rsi, 48[rsp]
	mov	rdx, QWORD PTR 32[rbp]
	xor	r9d, r9d
	push	rax
	.cfi_def_cfa_offset 136
	mov	r8d, ebx
	mov	rcx, r13
	mov	rdi, r15
	push	1
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 24[rsp], rsi
	call	cc_add_sg_entry@PLT
	lea	rax, 8[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	xor	r9d, r9d
	push	rax
	.cfi_def_cfa_offset 152
	mov	r8d, ebx
	mov	rdi, r15
	push	1
	.cfi_def_cfa_offset 160
	mov	rcx, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 40[rsp]
	call	cc_add_sg_entry@PLT
	mov	rsi, QWORD PTR 40[rsp]
	add	rsp, 32
	.cfi_def_cfa_offset 128
.L9:
	mov	rdi, QWORD PTR 0[rbp]
	cmp	rdi, QWORD PTR CC_DMA_BUF_MLLI[rip]
	jne	.L14
	mov	rax, QWORD PTR 24[rsp]
	mov	ecx, DWORD PTR 136[rsp]
	lea	rdx, 48[rbp]
	mov	rdi, r15
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 48[rbp], rax
	call	cc_generate_mlli@PLT
	test	eax, eax
	jne	.L17
	mov	rdi, QWORD PTR 0[rbp]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	r13, QWORD PTR [rsp]
	jne	.L8
	mov	rdi, QWORD PTR 0[rbp]
	cmp	rdi, QWORD PTR CC_DMA_BUF_MLLI[rip]
	je	.L10
.L14:
	call	cc_dma_buf_type@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r15
	mov	edx, eax
	xor	eax, eax
	call	dev_dbg@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	r14d, eax
.L6:
	mov	r8, QWORD PTR [rsp]
	mov	rcx, r13
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r15
	call	cc_unmap_cipher_request@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, r12d
	mov	rsi, r14
	lea	rdi, .LC0[rip]
	call	dump_byte_array@PLT
	mov	rsi, r14
	mov	rdi, r15
	mov	edx, r12d
	mov	ecx, DWORD PTR DMA_BIDIRECTIONAL[rip]
	call	dma_map_single@PLT
	mov	rdi, r15
	mov	QWORD PTR 40[rbp], rax
	mov	rsi, rax
	call	dma_mapping_error@PLT
	test	rax, rax
	jne	.L22
	lea	r8, 40[rbp]
	mov	rcx, r14
	mov	edx, r12d
	mov	rdi, r15
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_dbg@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 0[rbp]
	cmp	rdi, rax
	jne	.L14
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rcx, r14
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	dev_err@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rax, 24[rbp]
	lea	rsi, 48[rsp]
	mov	rdx, QWORD PTR 32[rbp]
	mov	rdi, r15
	push	rax
	.cfi_def_cfa_offset 136
	xor	r9d, r9d
	mov	r8d, ebx
	mov	rcx, r13
	push	1
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 16[rbp], 0
	mov	QWORD PTR 24[rsp], rsi
	call	cc_add_sg_entry@PLT
	pop	rsi
	.cfi_def_cfa_offset 136
	pop	rdi
	.cfi_def_cfa_offset 128
	mov	rsi, QWORD PTR 8[rsp]
	jmp	.L9
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cc_map_cipher_request, .-cc_map_cipher_request
	.comm	LLI_MAX_NUM_OF_DATA_ENTRIES,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_BIDIRECTIONAL,4,4
	.comm	CC_DMA_BUF_MLLI,8,8
	.comm	CC_DMA_BUF_DLLI,8,8
	.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_cc_buffer_mgr.c_cc_map_cipher_request.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"iv\000"
	.align	2
.LC1:
	.ascii	"Mapping iv %u B at va=%pK for DMA failed\012\000"
	.align	2
.LC2:
	.ascii	"Mapped iv %u B at va=%pK to dma=%pad\012\000"
	.align	2
.LC3:
	.ascii	"areq_ctx->dma_buf_type = %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cc_map_cipher_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	cc_map_cipher_request, %function
cc_map_cipher_request:
	@ args = 16, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	ldr	r3, .L24
	sub	sp, sp, #52
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r3, [r0]
	add	r7, sp, #88
	mov	r6, r2
	ldm	r7, {r7, r9, r10}
	mov	r4, r1
	str	r3, [sp, #24]
	bl	drvdata_to_dev
	mov	r3, #0
	ldr	r2, .L24+4
	cmp	r6, r3
	ldr	r2, [r2]
	str	r3, [r4, #24]
	str	r3, [sp, #36]
	str	r3, [sp, #40]
	str	r3, [sp, #32]
	ldr	r3, .L24+8
	mov	r5, r0
	str	r2, [r4]
	streq	r3, [sp, #20]
	streq	r6, [r4, #20]
	bne	.L20
.L5:
	ldr	fp, .L24+12
	add	r3, r4, #16
	ldr	r2, [fp]
	str	r3, [sp]
	str	r2, [sp, #4]
	add	r2, sp, #40
	str	r2, [sp, #12]
	ldr	r3, [sp, #20]
	add	r2, sp, #36
	str	r2, [sp, #8]
	mov	r1, r9
	mov	r2, r8
	mov	r0, r5
	ldr	r3, [r3]
	bl	cc_map_sg
	subs	r7, r0, #0
	bne	.L6
	ldr	r3, [sp, #40]
	cmp	r3, #1
	ble	.L7
	ldr	r3, .L24+16
	cmp	r9, r10
	str	r3, [sp, #28]
	ldr	r3, [r3]
	str	r3, [r4]
	beq	.L10
.L8:
	ldr	r3, [fp]
	add	r2, r4, #8
	str	r3, [sp, #4]
	add	r3, sp, #40
	str	r3, [sp, #12]
	add	r3, sp, #36
	str	r3, [sp, #8]
	ldr	r3, [sp, #20]
	mov	r1, r10
	ldr	r3, [r3]
	mov	r0, r5
	str	r2, [sp]
	mov	r2, r8
	bl	cc_map_sg
	cmp	r0, #0
	bne	.L17
	ldr	r3, [sp, #40]
	ldr	r2, .L24+16
	cmp	r3, #1
	ldr	r3, [r2]
	str	r2, [sp, #28]
	strgt	r3, [r4]
	ble	.L21
.L13:
	mov	r1, #0
	mov	r2, #1
	stmib	sp, {r1, r2}
	add	r3, r4, #12
	str	r3, [sp, #12]
	add	fp, sp, #32
	str	r8, [sp]
	mov	r1, fp
	mov	r3, r9
	ldr	r2, [r4, #16]
	mov	r0, r5
	bl	cc_add_sg_entry
	mov	r1, #0
	mov	r2, #1
	stmib	sp, {r1, r2}
	add	r3, r4, #4
	str	r3, [sp, #12]
	str	r8, [sp]
	mov	r1, fp
	mov	r3, r10
	mov	r0, r5
	ldr	r2, [r4, #8]
	bl	cc_add_sg_entry
	b	.L9
.L7:
	cmp	r9, r10
	bne	.L8
	ldr	r3, .L24+16
	ldr	r0, [r4]
	str	r3, [sp, #28]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L10
.L14:
	bl	cc_dma_buf_type
	ldr	r1, .L24+20
	mov	r2, r0
	mov	r0, r5
	bl	dev_dbg
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r7
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r7, r0
.L6:
	mov	r3, r9
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	str	r10, [sp]
	bl	cc_unmap_cipher_request
	b	.L1
.L20:
	mov	fp, r3
	mov	r2, r6
	mov	r1, r7
	ldr	r0, .L24+24
	str	r3, [sp, #20]
	bl	dump_byte_array
	mov	r2, r6
	mov	r1, r7
	ldr	r3, [fp]
	mov	r0, r5
	bl	dma_map_single
	mov	r1, r0
	mov	r0, r5
	str	r1, [r4, #20]
	bl	dma_mapping_error
	cmp	r0, #0
	bne	.L23
	add	r2, r4, #20
	str	r2, [sp]
	mov	r3, r7
	mov	r2, r6
	mov	r0, r5
	ldr	r1, .L24+28
	bl	dev_dbg
	b	.L5
.L21:
	ldr	r0, [r4]
	cmp	r0, r3
	bne	.L14
	b	.L13
.L23:
	mov	r3, r7
	mov	r2, r6
	mov	r0, r5
	ldr	r1, .L24+32
	bl	dev_err
	ldr	r3, .L24+36
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L10:
	mov	r2, #0
	mov	r0, #1
	add	r3, r4, #12
	str	r8, [sp]
	add	fp, sp, #32
	str	r2, [r4, #8]
	str	r0, [sp, #8]
	str	r3, [sp, #12]
	str	r2, [sp, #4]
	mov	r1, fp
	mov	r3, r9
	mov	r0, r5
	ldr	r2, [r4, #16]
	bl	cc_add_sg_entry
.L9:
	ldr	r3, [sp, #28]
	ldr	r0, [r4]
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L14
	mov	r2, r4
	ldr	r3, [sp, #24]
	mov	r1, fp
	ldr	r3, [r3]
	mov	r0, r5
	str	r3, [r2, #24]!
	ldr	r3, [sp, #100]
	bl	cc_generate_mlli
	cmp	r0, #0
	bne	.L17
	ldr	r0, [r4]
	b	.L14
.L22:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC4
	.word	CC_DMA_BUF_DLLI
	.word	DMA_BIDIRECTIONAL
	.word	LLI_MAX_NUM_OF_DATA_ENTRIES
	.word	CC_DMA_BUF_MLLI
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	ENOMEM
	.size	cc_map_cipher_request, .-cc_map_cipher_request
	.comm	LLI_MAX_NUM_OF_DATA_ENTRIES,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_BIDIRECTIONAL,4,4
	.comm	CC_DMA_BUF_MLLI,4,4
	.comm	CC_DMA_BUF_DLLI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
