	.file	"extr_chcr_ipsec.c_chcr_ipsec_xmit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: Tx ring %u full while queue awake! cred:%d %d %d flits:%d\n"
	.text
	.p2align 4
	.globl	chcr_ipsec_xmit
	.type	chcr_ipsec_xmit, @function
chcr_ipsec_xmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	xfrm_input_state@PLT
	mov	ebx, DWORD PTR MAX_SKB_FRAGS[rip]
	lea	edx, 1[rbx]
	mov	rbx, rsp
	movsx	rdx, edx
	lea	rdx, 15[0+rdx*4]
	mov	rcx, rdx
	and	rdx, -4096
	sub	rbx, rdx
	and	rcx, -16
	mov	rdx, rbx
	cmp	rsp, rdx
	je	.L3
.L26:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdx
	jne	.L26
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L27
.L4:
	mov	rbx, QWORD PTR [rax]
	mov	QWORD PTR -96[rbp], rsp
	mov	DWORD PTR -60[rbp], 0
	mov	eax, DWORD PTR NETDEV_TX_BUSY[rip]
	test	rbx, rbx
	jne	.L28
.L1:
	mov	rsi, QWORD PTR -56[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L29
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	rdi, r13
	call	skb_sec_path@PLT
	cmp	DWORD PTR [rax], 1
	je	.L7
.L8:
	mov	rdi, r13
	call	dev_kfree_skb_any@PLT
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r12
	call	netdev_priv@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	edx, 1
	mov	r14, QWORD PTR 8[rax]
	mov	DWORD PTR -72[rbp], esi
	add	esi, DWORD PTR [rax]
	movsx	rax, esi
	mov	rdi, r14
	lea	r11, [rax+rax*2]
	sal	r11, 4
	add	r11, QWORD PTR 8[r14]
	mov	rsi, r11
	mov	r15, r11
	call	cxgb4_reclaim_completed_tx@PLT
	lea	rdx, -60[rbp]
	mov	rsi, rbx
	mov	rdi, r13
	call	calc_tx_sec_flits@PLT
	mov	edi, eax
	mov	DWORD PTR -88[rbp], eax
	call	flits_to_desc@PLT
	mov	rdi, r15
	mov	DWORD PTR -68[rbp], eax
	call	txq_avail@PLT
	mov	ecx, eax
	sub	ecx, DWORD PTR -68[rbp]
	mov	edi, ecx
	mov	DWORD PTR -80[rbp], ecx
	shr	edi, 31
	call	unlikely@PLT
	mov	ecx, DWORD PTR -80[rbp]
	mov	r8d, DWORD PTR -88[rbp]
	test	rax, rax
	jne	.L30
	mov	edx, DWORD PTR -60[rbp]
	test	edx, edx
	jne	.L10
	mov	rdx, QWORD PTR -96[rbp]
	mov	edi, DWORD PTR [r14]
	mov	rsi, r13
	mov	DWORD PTR -88[rbp], ecx
	mov	DWORD PTR -80[rbp], r8d
	call	cxgb4_map_skb@PLT
	shr	rax, 63
	mov	rdi, rax
	call	unlikely@PLT
	mov	r8d, DWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -88[rbp]
	test	rax, rax
	jne	.L31
.L10:
	mov	rdx, QWORD PTR [r15]
	mov	rax, QWORD PTR 24[r15]
	mov	rsi, r12
	mov	rdi, r13
	lea	r9, [rax+rdx*4]
	lea	r10, [r9+r8*4]
	mov	rdx, r9
	mov	r8, rbx
	mov	QWORD PTR -80[rbp], r9
	mov	QWORD PTR -88[rbp], r10
	call	chcr_crypto_wreq@PLT
	mov	r9, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR 32[r15]
	mov	r10, QWORD PTR -88[rbp]
	mov	r12, rax
	cmp	r9, rax
	jbe	.L12
	mov	rax, r10
	sub	rax, rdx
	sar	rax, 2
	cdqe
	add	rax, QWORD PTR 24[r15]
	mov	r10, rax
.L12:
	cmp	r12, rdx
	je	.L32
.L13:
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	je	.L14
	mov	rdi, r13
	mov	rdx, r12
	mov	rsi, r15
	call	cxgb4_inline_tx_skb@PLT
	mov	rdi, r13
	call	dev_consume_skb_any@PLT
.L15:
	mov	ebx, DWORD PTR -68[rbp]
	mov	rdi, r15
	mov	esi, ebx
	call	txq_advance@PLT
	mov	edx, ebx
	mov	rsi, r15
	mov	rdi, r14
	call	cxgb4_ring_tx_db@PLT
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r9, QWORD PTR -96[rbp]
	xor	r8d, r8d
	mov	rcx, r10
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, r13
	call	cxgb4_write_sgl@PLT
	mov	rdi, r13
	call	skb_orphan@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR 8[r15]
	sub	eax, 1
	add	eax, DWORD PTR [r15]
	mov	ecx, eax
	sub	ecx, edx
	cmp	edx, eax
	cmovle	eax, ecx
	cdqe
	sal	rax, 4
	add	rax, QWORD PTR 16[r15]
	mov	QWORD PTR 8[rax], r13
	mov	QWORD PTR [rax], r12
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rax, r10
	mov	r12, QWORD PTR 24[r15]
	sub	rax, rdx
	sar	rax, 2
	cdqe
	lea	r10, [r12+rax]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, r15
	mov	DWORD PTR -88[rbp], ecx
	mov	DWORD PTR -80[rbp], r8d
	call	eth_txq_stop@PLT
	mov	rdi, r15
	call	txq_avail@PLT
	mov	r8d, DWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -88[rbp]
	lea	rsi, .LC0[rip]
	mov	r9d, DWORD PTR -68[rbp]
	push	r8
	mov	r8d, ecx
	mov	ecx, DWORD PTR -72[rbp]
	push	rax
	mov	edx, DWORD PTR [r12]
	mov	edi, DWORD PTR [r14]
	call	dev_err@PLT
	pop	rcx
	mov	eax, DWORD PTR NETDEV_TX_BUSY[rip]
	pop	rsi
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	add	DWORD PTR 40[r15], 1
	jmp	.L8
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	chcr_ipsec_xmit, .-chcr_ipsec_xmit
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.comm	MAX_SKB_FRAGS,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_chcr_ipsec.c_chcr_ipsec_xmit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: Tx ring %u full while queue awake! cred:%d %d %"
	.ascii	"d flits:%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	chcr_ipsec_xmit
	.syntax unified
	.arm
	.fpu softvfp
	.type	chcr_ipsec_xmit, %function
chcr_ipsec_xmit:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #52
	ldr	r3, .L24
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r4, r0
	bl	xfrm_input_state
	mov	r2, #0
	ldr	r3, .L24+4
	ldr	r6, [r0]
	ldr	r3, [r3]
	cmp	r6, r2
	lsl	r3, r3, #2
	add	r3, r3, #11
	bic	r3, r3, #7
	sub	sp, sp, r3
	str	r2, [fp, #-44]
	bne	.L2
.L19:
	ldr	r3, .L24+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r4
	bl	skb_sec_path
	ldr	r8, [r0]
	cmp	r8, #1
	beq	.L4
.L5:
	mov	r0, r4
	bl	dev_kfree_skb_any
	ldr	r3, .L24+12
	ldr	r0, [r3]
	b	.L1
.L4:
	mov	r0, r5
	bl	netdev_priv
	ldr	r2, [r4]
	ldm	r0, {r3, r10}
	str	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r2, [r10, #4]
	add	r3, r3, r3, lsl #1
	add	r7, r2, r3, lsl #3
	mov	r1, r7
	lsl	r3, r3, #3
	str	r2, [fp, #-52]
	mov	r0, r10
	mov	r2, r8
	str	r3, [fp, #-48]
	bl	cxgb4_reclaim_completed_tx
	mov	r1, r6
	sub	r2, fp, #44
	mov	r0, r4
	bl	calc_tx_sec_flits
	str	r0, [fp, #-60]
	bl	flits_to_desc
	mov	r8, r0
	mov	r0, r7
	bl	txq_avail
	sub	r3, r0, r8
	lsr	r0, r3, #31
	str	r3, [fp, #-56]
	bl	unlikely
	cmp	r0, #0
	ldr	r3, [fp, #-56]
	bne	.L22
	ldr	r2, [fp, #-44]
	add	r9, sp, #16
	cmp	r2, #0
	bne	.L7
	mov	r2, r9
	mov	r1, r4
	ldr	r0, [r10]
	str	r3, [fp, #-56]
	bl	cxgb4_map_skb
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	ldr	r3, [fp, #-56]
	bne	.L23
.L7:
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-48]
	mov	r0, r4
	ldr	r1, [r2, r1]
	ldr	r2, [r7, #12]
	str	r6, [sp]
	add	r2, r2, r1, lsl #2
	mov	r1, r5
	str	r2, [fp, #-56]
	bl	chcr_crypto_wreq
	mov	r5, r0
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-60]
	cmp	r2, r0
	ldr	r1, [r7, #16]
	add	r3, r2, r3, lsl #2
	ldrhi	r0, [r7, #12]
	subhi	r2, r3, r1
	addhi	r3, r0, r2, asr #2
	cmp	r5, r1
	ldreq	r5, [r7, #12]
	subeq	r2, r3, r1
	addeq	r3, r5, r2, asr #2
	ldr	r2, [fp, #-44]
	cmp	r2, #0
	beq	.L11
	mov	r2, r5
	mov	r1, r7
	mov	r0, r4
	bl	cxgb4_inline_tx_skb
	mov	r0, r4
	bl	dev_consume_skb_any
.L12:
	mov	r1, r8
	mov	r0, r7
	bl	txq_advance
	mov	r2, r8
	mov	r1, r7
	mov	r0, r10
	bl	cxgb4_ring_tx_db
	ldr	r3, .L24+12
	ldr	r0, [r3]
	b	.L1
.L11:
	mov	r1, r7
	stm	sp, {r2, r9}
	mov	r0, r4
	mov	r2, r5
	bl	cxgb4_write_sgl
	mov	r0, r4
	bl	skb_orphan
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	ldr	r1, [r3, r2]
	ldr	r2, [r7, #4]
	sub	r3, r8, #1
	add	r3, r3, r1
	cmp	r2, r3
	suble	r3, r3, r2
	ldr	r2, [r7, #8]
	add	r1, r2, r3, lsl #3
	str	r4, [r1, #4]
	str	r5, [r2, r3, lsl #3]
	b	.L12
.L22:
	mov	r0, r7
	str	r3, [fp, #-48]
	bl	eth_txq_stop
	mov	r0, r7
	ldr	r4, [r10]
	ldr	r5, [r5]
	bl	txq_avail
	ldr	r3, [fp, #-60]
	str	r0, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-48]
	mov	r2, r5
	str	r3, [sp]
	mov	r0, r4
	ldr	r3, [fp, #-64]
	ldr	r1, .L24+16
	str	r8, [sp, #4]
	bl	dev_err
	b	.L19
.L23:
	ldr	r3, [r7, #20]
	add	r3, r3, #1
	str	r3, [r7, #20]
	b	.L5
.L21:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	MAX_SKB_FRAGS
	.word	NETDEV_TX_BUSY
	.word	NETDEV_TX_OK
	.word	.LC0
	.size	chcr_ipsec_xmit, .-chcr_ipsec_xmit
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.comm	MAX_SKB_FRAGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
