	.file	"extr_stm32-hash.c_stm32_hash_dma_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"in"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Couldn't acquire a slave DMA channel.\n"
	.align 8
.LC2:
	.string	"Couldn't configure DMA slave.\n"
	.text
	.p2align 4
	.type	stm32_hash_dma_init, @function
stm32_hash_dma_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 32
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	mov	rdi, r12
	call	memset@PLT
	mov	eax, DWORD PTR DMA_MEM_TO_DEV[rip]
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC0[rip]
	mov	DWORD PTR [rsp], 0
	mov	DWORD PTR 24[rsp], eax
	mov	rax, QWORD PTR HASH_DIN[rip]
	add	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR DMA_SLAVE_BUSWIDTH_4_BYTES[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 8[rsp], eax
	mov	DWORD PTR 4[rsp], eax
	call	dma_request_slave_channel@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L8
	mov	rsi, r12
	mov	rdi, rax
	call	dmaengine_slave_config@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rdi, rbp
	call	init_completion@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	call	dma_release_channel@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stm32_hash_dma_init, .-stm32_hash_dma_init
	.comm	HASH_DIN,8,8
	.comm	EBUSY,4,4
	.comm	DMA_SLAVE_BUSWIDTH_4_BYTES,4,4
	.comm	DMA_MEM_TO_DEV,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_stm32-hash.c_stm32_hash_dma_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"in\000"
	.align	2
.LC1:
	.ascii	"Couldn't acquire a slave DMA channel.\012\000"
	.align	2
.LC2:
	.ascii	"Couldn't configure DMA slave.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stm32_hash_dma_init, %function
stm32_hash_dma_init:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r6, #0
	ldr	r2, .L11
	ldr	r1, .L11+4
	ldr	r2, [r2]
	ldr	r0, .L11+8
	ldr	r3, [r4, #16]
	ldr	ip, [r1]
	ldr	r1, .L11+12
	sub	sp, sp, #32
	ldr	lr, [r0]
	add	r3, r3, r2
	ldr	r2, [r4, #12]
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	ldr	r0, [r4, #4]
	ldr	r1, .L11+16
	str	r3, [sp, #20]
	str	r2, [sp, #12]
	str	r2, [sp, #8]
	str	lr, [sp, #24]
	str	ip, [sp, #16]
	str	r6, [sp, #4]
	bl	dma_request_slave_channel
	cmp	r0, r6
	str	r0, [r4, #8]
	beq	.L8
	add	r1, sp, #4
	bl	dmaengine_slave_config
	subs	r5, r0, #0
	bne	.L9
	mov	r0, r4
	bl	init_completion
.L1:
	ldr	r3, .L11+12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r0, [r4, #8]
	bl	dma_release_channel
	ldr	r0, [r4, #4]
	ldr	r1, .L11+20
	str	r6, [r4, #8]
	bl	dev_err
	b	.L1
.L8:
	ldr	r0, [r4, #4]
	ldr	r1, .L11+24
	bl	dev_err
	ldr	r3, .L11+28
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	HASH_DIN
	.word	DMA_SLAVE_BUSWIDTH_4_BYTES
	.word	DMA_MEM_TO_DEV
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	EBUSY
	.size	stm32_hash_dma_init, .-stm32_hash_dma_init
	.comm	HASH_DIN,4,4
	.comm	EBUSY,4,4
	.comm	DMA_SLAVE_BUSWIDTH_4_BYTES,4,4
	.comm	DMA_MEM_TO_DEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
