	.file	"extr_tx-gen2.c_iwl_pcie_gen2_tx_add_frags.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iwl_pcie_gen2_tx_add_frags, @function
iwl_pcie_gen2_tx_add_frags:
.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, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r12
	call	skb_shinfo@PLT
	mov	rax, QWORD PTR 8[rax]
	lea	rbp, [rax+rbx*4]
	mov	rdi, rbp
	call	skb_frag_size@PLT
	test	eax, eax
	je	.L3
	mov	r15d, DWORD PTR DMA_TO_DEVICE[rip]
	mov	rdi, rbp
	call	skb_frag_size@PLT
	mov	edi, DWORD PTR 0[r13]
	xor	edx, edx
	mov	rsi, rbp
	mov	r8d, r15d
	mov	ecx, eax
	call	skb_frag_dma_map@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, eax
	mov	r15d, eax
	call	dma_mapping_error@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L12
	mov	rdi, rbp
	call	skb_frag_size@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	edx, r15d
	mov	rdi, r13
	mov	ecx, eax
	call	iwl_pcie_gen2_set_tb@PLT
	mov	rdi, rbp
	mov	r15d, eax
	call	skb_frag_size@PLT
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	call	skb_frag_address@PLT
	mov	ecx, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR 0[r13]
	mov	rsi, r12
	mov	edx, eax
	call	trace_iwlwifi_dev_tx_tb@PLT
	test	r15d, r15d
	js	.L1
	mov	edi, r15d
	call	BIT@PLT
	or	DWORD PTR [r14], eax
.L3:
	add	rbx, 1
.L2:
	mov	rdi, r12
	call	skb_shinfo@PLT
	cmp	DWORD PTR [rax], ebx
	jg	.L6
	xor	r15d, r15d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L12:
	.cfi_restore_state
	mov	r15d, DWORD PTR ENOMEM[rip]
	neg	r15d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	iwl_pcie_gen2_tx_add_frags, .-iwl_pcie_gen2_tx_add_frags
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,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_tx-gen2.c_iwl_pcie_gen2_tx_add_frags.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwl_pcie_gen2_tx_add_frags, %function
iwl_pcie_gen2_tx_add_frags:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r8, r0
	mov	r6, r1
	mov	r9, r3
	mov	r5, #0
	ldr	fp, .L13
	str	r2, [sp, #12]
	b	.L2
.L6:
	mov	r0, r6
	bl	skb_shinfo
	ldr	r4, [r0, #4]
	add	r4, r4, r5, lsl #2
	mov	r0, r4
	bl	skb_frag_size
	cmp	r0, #0
	beq	.L3
	mov	r0, r4
	ldr	r7, [r8]
	bl	skb_frag_size
	ldr	r2, [fp]
	mov	r3, r0
	mov	r1, r4
	mov	r0, r7
	str	r2, [sp]
	mov	r2, #0
	bl	skb_frag_dma_map
	mov	r7, r0
	ldr	r0, [r8]
	mov	r1, r7
	bl	dma_mapping_error
	bl	unlikely
	cmp	r0, #0
	bne	.L12
	mov	r0, r4
	bl	skb_frag_size
	mov	r2, r7
	mov	r3, r0
	ldr	r1, [sp, #12]
	mov	r0, r8
	bl	iwl_pcie_gen2_set_tb
	mov	r7, r0
	mov	r0, r4
	ldr	r10, [r8]
	bl	skb_frag_address
	mov	r2, r0
	mov	r0, r4
	mov	r4, r2
	bl	skb_frag_size
	mov	r2, r4
	mov	r3, r0
	mov	r1, r6
	mov	r0, r10
	bl	trace_iwlwifi_dev_tx_tb
	cmp	r7, #0
	blt	.L1
	mov	r0, r7
	bl	BIT
	ldr	r3, [r9]
	orr	r3, r3, r0
	str	r3, [r9]
.L3:
	add	r5, r5, #1
.L2:
	mov	r0, r6
	bl	skb_shinfo
	ldr	r3, [r0]
	cmp	r3, r5
	bgt	.L6
	mov	r7, #0
.L1:
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r3, .L13+4
	ldr	r7, [r3]
	rsb	r7, r7, #0
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	DMA_TO_DEVICE
	.word	ENOMEM
	.size	iwl_pcie_gen2_tx_add_frags, .-iwl_pcie_gen2_tx_add_frags
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
