	.file	"extr_stmp37xx.c_stmp3xxx_arch_dma_unfreeze.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	stmp3xxx_arch_dma_unfreeze
	.type	stmp3xxx_arch_dma_unfreeze, @function
stmp3xxx_arch_dma_unfreeze:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	STMP3XXX_DMA_CHANNEL@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	STMP3XXX_DMA_BUS@PLT
	add	eax, -128
	cmp	eax, 1
	ja	.L1
	mov	edi, 1
	mov	ecx, ebx
	mov	rsi, QWORD PTR HW_APBH_CTRL0[rip]
	add	rsi, QWORD PTR REGS_APBH_BASE[rip]
	mov	eax, edi
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	sal	eax, cl
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	mov	ecx, eax
	sal	edi, cl
	jmp	stmp3xxx_clearl@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	stmp3xxx_arch_dma_unfreeze, .-stmp3xxx_arch_dma_unfreeze
	.comm	REGS_APBH_BASE,8,8
	.comm	HW_APBH_CTRL0,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_stmp37xx.c_stmp3xxx_arch_dma_unfreeze.c"
	.text
	.align	2
	.global	stmp3xxx_arch_dma_unfreeze
	.syntax unified
	.arm
	.fpu softvfp
	.type	stmp3xxx_arch_dma_unfreeze, %function
stmp3xxx_arch_dma_unfreeze:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	STMP3XXX_DMA_CHANNEL
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	STMP3XXX_DMA_BUS
	sub	r0, r0, #128
	cmp	r0, #1
	pophi	{r4, pc}
	mov	r0, #1
	ldr	r2, .L5
	ldr	r3, .L5+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	lsl	r4, r0, r4
	lsl	r0, r0, r4
	add	r1, r1, r2
	pop	{r4, lr}
	b	stmp3xxx_clearl
.L6:
	.align	2
.L5:
	.word	REGS_APBH_BASE
	.word	HW_APBH_CTRL0
	.size	stmp3xxx_arch_dma_unfreeze, .-stmp3xxx_arch_dma_unfreeze
	.comm	REGS_APBH_BASE,4,4
	.comm	HW_APBH_CTRL0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
