	.file	"extr_sky2.c_sky2_tx_unmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sky2_tx_unmap, @function
sky2_tx_unmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rsi]
	test	DWORD PTR TX_MAP_SINGLE[rip], eax
	jne	.L9
	test	DWORD PTR TX_MAP_PAGE[rip], eax
	jne	.L10
.L3:
	mov	DWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR maplen[rip]
	mov	rdi, rbx
	mov	r13d, DWORD PTR PCI_DMA_TODEVICE[rip]
	call	dma_unmap_len@PLT
	mov	esi, DWORD PTR mapaddr[rip]
	mov	rdi, rbx
	mov	r12d, eax
	call	dma_unmap_addr@PLT
	mov	ecx, r13d
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	call	pci_unmap_page@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR maplen[rip]
	mov	rdi, rbx
	mov	r13d, DWORD PTR PCI_DMA_TODEVICE[rip]
	call	dma_unmap_len@PLT
	mov	esi, DWORD PTR mapaddr[rip]
	mov	rdi, rbx
	mov	r12d, eax
	call	dma_unmap_addr@PLT
	mov	ecx, r13d
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	call	pci_unmap_single@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sky2_tx_unmap, .-sky2_tx_unmap
	.comm	maplen,4,4
	.comm	mapaddr,4,4
	.comm	TX_MAP_SINGLE,4,4
	.comm	TX_MAP_PAGE,4,4
	.comm	PCI_DMA_TODEVICE,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_sky2.c_sky2_tx_unmap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sky2_tx_unmap, %function
sky2_tx_unmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L11
	ldr	r3, [r1]
	ldr	r2, [r2]
	push	{r4, r5, r6, lr}
	tst	r3, r2
	mov	r4, r1
	mov	r5, r0
	bne	.L9
	ldr	r2, .L11+4
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L10
.L3:
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L11+8
	mov	r0, r1
	ldr	r1, [r3]
	bl	dma_unmap_addr
	ldr	r3, .L11+12
	mov	r6, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	dma_unmap_len
	ldr	r3, .L11+16
	mov	r2, r0
	mov	r1, r6
	mov	r0, r5
	ldr	r3, [r3]
	bl	pci_unmap_page
	b	.L3
.L9:
	ldr	r3, .L11+8
	mov	r0, r1
	ldr	r1, [r3]
	bl	dma_unmap_addr
	ldr	r3, .L11+12
	mov	r6, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	dma_unmap_len
	ldr	r3, .L11+16
	mov	r2, r0
	mov	r1, r6
	mov	r0, r5
	ldr	r3, [r3]
	bl	pci_unmap_single
	b	.L3
.L12:
	.align	2
.L11:
	.word	TX_MAP_SINGLE
	.word	TX_MAP_PAGE
	.word	mapaddr
	.word	maplen
	.word	PCI_DMA_TODEVICE
	.size	sky2_tx_unmap, .-sky2_tx_unmap
	.comm	maplen,4,4
	.comm	mapaddr,4,4
	.comm	TX_MAP_SINGLE,4,4
	.comm	TX_MAP_PAGE,4,4
	.comm	PCI_DMA_TODEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
