	.file	"extr_ipw2200.c_ipw_fw_dma_add_command_block.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"src_address=0x%x dest_address=0x%x length=0x%x\n"
	.text
	.p2align 4
	.type	ipw_fw_dma_add_command_block, @function
ipw_fw_dma_add_command_block:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	lea	rdi, .LC0[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r9d
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR CB_VALID[rip]
	or	rbx, QWORD PTR CB_SRC_LE[rip]
	mov	QWORD PTR 8[rsp], rcx
	or	rbx, QWORD PTR CB_DEST_LE[rip]
	or	rbx, QWORD PTR CB_SRC_AUTOINC[rip]
	or	rbx, QWORD PTR CB_SRC_IO_GATED[rip]
	or	rbx, QWORD PTR CB_DEST_AUTOINC[rip]
	or	rbx, QWORD PTR CB_SRC_SIZE_LONG[rip]
	or	rbx, QWORD PTR CB_DEST_SIZE_LONG[rip]
	call	IPW_DEBUG_FW_INFO@PLT
	mov	rdx, QWORD PTR [r15]
	cmp	rdx, QWORD PTR CB_NUMBER_OF_ELEMENTS_SMALL[rip]
	jge	.L5
	mov	rax, rdx
	add	rdx, 1
	mov	rcx, QWORD PTR 8[rsp]
	sal	rax, 5
	add	rax, QWORD PTR 8[r15]
	test	r13d, r13d
	mov	QWORD PTR [r15], rdx
	je	.L3
	or	rbx, QWORD PTR CB_INT_ENABLED[rip]
.L3:
	test	r12d, r12d
	jne	.L14
.L4:
	mov	rdx, rbp
	or	rcx, rbx
	mov	QWORD PTR 8[rax], r14
	xor	rdx, r14
	mov	QWORD PTR 16[rax], rbp
	xor	rdx, rcx
	mov	QWORD PTR 24[rax], rcx
	mov	QWORD PTR [rax], rdx
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L14:
	.cfi_restore_state
	or	rbx, QWORD PTR CB_LAST_VALID[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ipw_fw_dma_add_command_block, .-ipw_fw_dma_add_command_block
	.comm	CB_VALID,8,8
	.comm	CB_SRC_SIZE_LONG,8,8
	.comm	CB_SRC_LE,8,8
	.comm	CB_SRC_IO_GATED,8,8
	.comm	CB_SRC_AUTOINC,8,8
	.comm	CB_NUMBER_OF_ELEMENTS_SMALL,8,8
	.comm	CB_LAST_VALID,8,8
	.comm	CB_INT_ENABLED,8,8
	.comm	CB_DEST_SIZE_LONG,8,8
	.comm	CB_DEST_LE,8,8
	.comm	CB_DEST_AUTOINC,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_ipw2200.c_ipw_fw_dma_add_command_block.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"src_address=0x%x dest_address=0x%x length=0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipw_fw_dma_add_command_block, %function
ipw_fw_dma_add_command_block:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	lr, .L14
	ldr	r0, .L14+4
	ldr	r4, [lr]
	ldr	r0, [r0]
	ldr	ip, .L14+8
	orr	r4, r4, r0
	ldr	ip, [ip]
	ldr	r0, .L14+12
	orr	r4, r4, ip
	ldr	r0, [r0]
	ldr	ip, .L14+16
	orr	r4, r4, r0
	ldr	ip, [ip]
	ldr	r0, .L14+20
	orr	r4, r4, ip
	ldr	r0, [r0]
	ldr	ip, .L14+24
	orr	r4, r4, r0
	ldr	ip, [ip]
	ldr	r0, .L14+28
	orr	r4, r4, ip
	ldr	ip, [r0]
	ldr	r0, .L14+32
	mov	r7, r2
	mov	r8, r3
	mov	r6, r1
	orr	r4, r4, ip
	bl	IPW_DEBUG_FW_INFO
	ldr	r2, .L14+36
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	bge	.L5
	ldr	r2, [sp, #24]
	add	r1, r3, #1
	cmp	r2, #0
	str	r1, [r5]
	ldrne	r1, .L14+40
	ldr	r0, [r5, #4]
	ldrne	r1, [r1]
	add	r2, r0, r3, lsl #4
	orrne	r4, r4, r1
	ldr	r1, [sp, #28]
	cmp	r1, #0
	ldrne	r1, .L14+44
	ldrne	r1, [r1]
	orrne	r4, r4, r1
	orr	r4, r4, r8
	eor	r1, r6, r7
	eor	r1, r1, r4
	str	r1, [r0, r3, lsl #4]
	mov	r0, #0
	str	r4, [r2, #12]
	str	r7, [r2, #4]
	str	r6, [r2, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	CB_VALID
	.word	CB_SRC_LE
	.word	CB_DEST_LE
	.word	CB_SRC_AUTOINC
	.word	CB_SRC_IO_GATED
	.word	CB_DEST_AUTOINC
	.word	CB_SRC_SIZE_LONG
	.word	CB_DEST_SIZE_LONG
	.word	.LC0
	.word	CB_NUMBER_OF_ELEMENTS_SMALL
	.word	CB_INT_ENABLED
	.word	CB_LAST_VALID
	.size	ipw_fw_dma_add_command_block, .-ipw_fw_dma_add_command_block
	.comm	CB_VALID,4,4
	.comm	CB_SRC_SIZE_LONG,4,4
	.comm	CB_SRC_LE,4,4
	.comm	CB_SRC_IO_GATED,4,4
	.comm	CB_SRC_AUTOINC,4,4
	.comm	CB_NUMBER_OF_ELEMENTS_SMALL,4,4
	.comm	CB_LAST_VALID,4,4
	.comm	CB_INT_ENABLED,4,4
	.comm	CB_DEST_SIZE_LONG,4,4
	.comm	CB_DEST_LE,4,4
	.comm	CB_DEST_AUTOINC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
