	.file	"extr_input.c_rxrpc_rotate_tx_window.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rxrpc_rotate_tx_window, @function
rxrpc_rotate_tx_window:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR [rdi]
	mov	QWORD PTR [rsp], rdx
	cmp	edi, DWORD PTR 4[r15]
	jne	.L2
.L23:
	mov	DWORD PTR [r15], r12d
.L3:
	lea	rax, 20[r15]
	xor	ebx, ebx
	mov	rdi, rax
	mov	QWORD PTR 24[rsp], rax
	call	spin_lock@PLT
	lea	rax, 24[r15]
	mov	DWORD PTR 12[rsp], 0
	mov	QWORD PTR 16[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r8d, DWORD PTR RXRPC_TX_ANNO_MASK[rip]
	and	r8d, r13d
	cmp	r8d, DWORD PTR RXRPC_TX_ANNO_ACK[rip]
	je	.L6
	mov	rax, QWORD PTR [rsp]
	add	DWORD PTR 4[rax], 1
.L6:
	mov	rbx, r14
.L4:
	mov	edi, DWORD PTR 4[r15]
	mov	rsi, r12
	call	before@PLT
	test	rax, rax
	je	.L25
	mov	eax, DWORD PTR 4[r15]
	mov	esi, DWORD PTR rxrpc_skb_rotated[rip]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR 32[r15]
	mov	DWORD PTR 4[r15], edx
	and	edx, DWORD PTR RXRPC_RXTX_BUFF_MASK[rip]
	movsx	rbp, edx
	mov	r14, QWORD PTR [rax+rbp*8]
	mov	rax, QWORD PTR 8[r15]
	mov	rdi, r14
	mov	r13d, DWORD PTR [rax+rbp*4]
	call	rxrpc_see_skb@PLT
	mov	rax, QWORD PTR 32[r15]
	mov	QWORD PTR [rax+rbp*8], 0
	mov	rax, QWORD PTR 8[r15]
	mov	DWORD PTR [rax+rbp*4], 0
	mov	QWORD PTR [r14], rbx
	test	DWORD PTR RXRPC_TX_ANNO_LAST[rip], r13d
	je	.L5
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR RXRPC_CALL_TX_LAST[rip]
	call	set_bit@PLT
	mov	DWORD PTR 12[rsp], 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, QWORD PTR 24[rsp]
	call	spin_unlock@PLT
	mov	eax, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR rxrpc_transmit_rotate_last[rip]
	mov	rdi, r15
	test	eax, eax
	cmove	esi, DWORD PTR rxrpc_transmit_rotate[rip]
	call	trace_rxrpc_transmit@PLT
	lea	rdi, 16[r15]
	call	wake_up@PLT
	test	rbx, rbx
	je	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rbp, rbx
	mov	rbx, QWORD PTR [rbx]
	mov	rdi, rbp
	call	skb_mark_not_on_list@PLT
	mov	esi, DWORD PTR rxrpc_skb_freed[rip]
	mov	rdi, rbp
	call	rxrpc_free_skb@PLT
	test	rbx, rbx
	jne	.L11
.L1:
	mov	eax, DWORD PTR 12[rsp]
	add	rsp, 40
	.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
.L2:
	.cfi_restore_state
	call	before_eq@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], 1
	jmp	.L23
	.cfi_endproc
.LFE0:
	.size	rxrpc_rotate_tx_window, .-rxrpc_rotate_tx_window
	.comm	rxrpc_transmit_rotate_last,4,4
	.comm	rxrpc_transmit_rotate,4,4
	.comm	rxrpc_skb_rotated,4,4
	.comm	rxrpc_skb_freed,4,4
	.comm	RXRPC_TX_ANNO_MASK,4,4
	.comm	RXRPC_TX_ANNO_LAST,4,4
	.comm	RXRPC_TX_ANNO_ACK,4,4
	.comm	RXRPC_RXTX_BUFF_MASK,4,4
	.comm	RXRPC_CALL_TX_LAST,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_input.c_rxrpc_rotate_tx_window.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rxrpc_rotate_tx_window, %function
rxrpc_rotate_tx_window:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r3, [r4, #4]
	mov	r7, r2
	cmp	r0, r3
	mov	r8, r1
	sub	sp, sp, #12
	bne	.L2
.L23:
	str	r8, [r4]
.L3:
	mov	r6, #0
	add	r3, r4, #16
	mov	r0, r3
	str	r6, [sp]
	str	r3, [sp, #4]
	ldr	fp, .L26
	bl	spin_lock
	b	.L4
.L5:
	mov	r6, r10
	ldr	r3, .L26+4
	ldr	r1, [r3]
	ldr	r3, .L26+8
	and	r9, r9, r1
	ldr	r2, [r3]
	cmp	r9, r2
	ldrne	r2, [r7, #4]
	addne	r2, r2, #1
	strne	r2, [r7, #4]
.L4:
	mov	r1, r8
	ldr	r0, [r4, #4]
	bl	before
	cmp	r0, #0
	beq	.L25
	ldr	r2, [r4, #4]
	ldr	r5, [fp]
	add	r2, r2, #1
	ldr	r3, [r4, #24]
	and	r5, r5, r2
	ldr	r10, [r3, r5, lsl #2]
	ldr	r3, .L26+12
	ldr	ip, [r4, #8]
	ldr	r1, [r3]
	str	r2, [r4, #4]
	mov	r0, r10
	ldr	r9, [ip, r5, lsl #2]
	bl	rxrpc_see_skb
	mov	r2, #0
	ldr	r0, [r4, #24]
	ldr	r1, [r4, #8]
	ldr	r3, .L26+16
	str	r2, [r0, r5, lsl #2]
	str	r2, [r1, r5, lsl #2]
	ldr	r2, [r3]
	str	r6, [r10]
	tst	r9, r2
	beq	.L5
	ldr	r3, .L26+20
	add	r1, r4, #20
	ldr	r0, [r3]
	bl	set_bit
	mov	r3, #1
	str	r3, [sp]
	b	.L5
.L25:
	ldr	r0, [sp, #4]
	bl	spin_unlock
	ldr	r3, [sp]
	mov	r0, r4
	cmp	r3, #0
	ldrne	r3, .L26+24
	ldreq	r3, .L26+28
	ldr	r1, [r3]
	bl	trace_rxrpc_transmit
	add	r0, r4, #12
	bl	wake_up
	cmp	r6, #0
	beq	.L1
	ldr	r5, .L26+32
.L11:
	mov	r4, r6
	ldr	r6, [r6]
	mov	r0, r4
	bl	skb_mark_not_on_list
	mov	r0, r4
	ldr	r1, [r5]
	bl	rxrpc_free_skb
	cmp	r6, #0
	bne	.L11
.L1:
	ldr	r0, [sp]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	bl	before_eq
	cmp	r0, #0
	beq	.L3
	mov	r3, #1
	str	r3, [r7]
	b	.L23
.L27:
	.align	2
.L26:
	.word	RXRPC_RXTX_BUFF_MASK
	.word	RXRPC_TX_ANNO_MASK
	.word	RXRPC_TX_ANNO_ACK
	.word	rxrpc_skb_rotated
	.word	RXRPC_TX_ANNO_LAST
	.word	RXRPC_CALL_TX_LAST
	.word	rxrpc_transmit_rotate_last
	.word	rxrpc_transmit_rotate
	.word	rxrpc_skb_freed
	.size	rxrpc_rotate_tx_window, .-rxrpc_rotate_tx_window
	.comm	rxrpc_transmit_rotate_last,4,4
	.comm	rxrpc_transmit_rotate,4,4
	.comm	rxrpc_skb_rotated,4,4
	.comm	rxrpc_skb_freed,4,4
	.comm	RXRPC_TX_ANNO_MASK,4,4
	.comm	RXRPC_TX_ANNO_LAST,4,4
	.comm	RXRPC_TX_ANNO_ACK,4,4
	.comm	RXRPC_RXTX_BUFF_MASK,4,4
	.comm	RXRPC_CALL_TX_LAST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
