	.file	"extr_tcp_bpf.c_tcp_bpf_push.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tcp_bpf_push, @function
tcp_bpf_push:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	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	QWORD PTR 8[rsp], rsi
	mov	DWORD PTR 4[rsp], edx
	mov	DWORD PTR 24[rsp], r8d
.L15:
	mov	rax, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR [rax]
	mov	rdi, rax
	call	sk_msg_elem@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	ebx, DWORD PTR [rax]
	mov	rbp, rax
	test	edi, edi
	je	.L4
	cmp	ebx, r12d
	cmovg	ebx, r12d
.L4:
	mov	rdi, rbp
	mov	r13d, DWORD PTR 4[rbp]
	call	sg_page@PLT
	mov	rdi, r14
	mov	QWORD PTR 16[rsp], rax
	call	tcp_rate_check_app_limited@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L30:
	or	r15d, DWORD PTR MSG_SENDPAGE_NOPOLICY[rip]
	mov	ecx, ebx
	mov	edx, r13d
	mov	rdi, r14
	mov	rsi, QWORD PTR 16[rsp]
	mov	r8d, r15d
	call	kernel_sendpage_locked@PLT
	mov	r8d, eax
	test	r8d, r8d
	jle	.L1
.L31:
	mov	ecx, DWORD PTR 4[rsp]
	mov	eax, r12d
	mov	esi, DWORD PTR 24[rsp]
	sub	eax, r8d
	test	ecx, ecx
	cmovne	r12d, eax
	mov	rax, QWORD PTR 8[rsp]
	sub	DWORD PTR 8[rax], r8d
	add	DWORD PTR 4[rbp], r8d
	sub	DWORD PTR 0[rbp], r8d
	test	esi, esi
	jne	.L29
	cmp	ebx, r8d
	je	.L11
.L32:
	sub	ebx, r8d
	add	r13d, r8d
.L5:
	mov	rdi, r14
	call	tls_sw_has_ctx_tx@PLT
	test	eax, eax
	jne	.L30
	mov	rsi, QWORD PTR 16[rsp]
	mov	r8d, r15d
	mov	ecx, ebx
	mov	edx, r13d
	mov	rdi, r14
	call	do_tcp_sendpages@PLT
	mov	r8d, eax
	test	r8d, r8d
	jg	.L31
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L29:
	.cfi_restore_state
	mov	esi, r8d
	mov	rdi, r14
	mov	DWORD PTR 28[rsp], r8d
	call	sk_mem_uncharge@PLT
	mov	r8d, DWORD PTR 28[rsp]
	cmp	ebx, r8d
	jne	.L32
.L11:
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	je	.L12
.L16:
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L15
	test	r12d, r12d
	jne	.L15
.L13:
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 16[rsp]
	call	put_page@PLT
	mov	rbx, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR start[rip]
	mov	rdi, rbx
	call	sk_msg_iter_next@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	sg_init_table@PLT
	mov	rcx, QWORD PTR 16[rbx]
	cmp	QWORD PTR [rbx], rcx
	jne	.L16
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	tcp_bpf_push, .-tcp_bpf_push
	.comm	start,4,4
	.comm	MSG_SENDPAGE_NOPOLICY,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_tcp_bpf.c_tcp_bpf_push.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_bpf_push, %function
tcp_bpf_push:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r2
	mov	r6, r0
	mov	r7, r1
	mov	r8, r3
	sub	sp, sp, #20
	str	r2, [sp, #8]
.L14:
	mov	r0, r7
	ldr	r1, [r7]
	bl	sk_msg_elem
	cmp	r10, #0
	mov	r4, r0
	ldr	fp, [r0]
	beq	.L4
	ldr	r3, [sp, #8]
	cmp	fp, r3
	movge	fp, r3
.L4:
	mov	r0, r4
	ldr	r5, [r4, #4]
	bl	sg_page
	mov	r9, r0
	mov	r0, r6
	bl	tcp_rate_check_app_limited
	b	.L5
.L27:
	ldr	r3, .L30
	mov	r1, r9
	ldr	r2, [r3]
	mov	r0, r6
	orr	r8, r8, r2
	mov	r3, fp
	mov	r2, r5
	str	r8, [sp]
	bl	kernel_sendpage_locked
	mov	r1, r0
	cmp	r1, #0
	ble	.L1
.L28:
	cmp	r10, #0
	ldrne	r3, [sp, #8]
	ldr	ip, [r7, #4]
	subne	r3, r3, r1
	ldr	r0, [r4, #4]
	ldr	r2, [r4]
	strne	r3, [sp, #8]
	ldr	r3, [sp, #56]
	sub	ip, ip, r1
	add	r0, r0, r1
	sub	r2, r2, r1
	cmp	r3, #0
	str	ip, [r7, #4]
	str	r0, [r4, #4]
	str	r2, [r4]
	bne	.L26
	cmp	fp, r1
	beq	.L11
.L29:
	sub	fp, fp, r1
	add	r5, r5, r1
.L5:
	mov	r0, r6
	bl	tls_sw_has_ctx_tx
	cmp	r0, #0
	bne	.L27
	mov	r1, r9
	mov	r3, fp
	mov	r2, r5
	mov	r0, r6
	str	r8, [sp]
	bl	do_tcp_sendpages
	mov	r1, r0
	cmp	r1, #0
	bgt	.L28
.L1:
	mov	r0, r1
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r0, r6
	str	r1, [sp, #12]
	bl	sk_mem_uncharge
	ldr	r1, [sp, #12]
	cmp	fp, r1
	bne	.L29
.L11:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L12
.L15:
	ldr	r3, [sp, #8]
	cmp	r10, #0
	clz	r3, r3
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	beq	.L14
.L13:
	mov	r1, #0
	b	.L1
.L12:
	mov	r0, r9
	bl	put_page
	ldr	r3, .L30+4
	mov	r0, r7
	ldr	r1, [r3]
	bl	sk_msg_iter_next
	mov	r0, r4
	mov	r1, #1
	bl	sg_init_table
	ldr	r2, [r7]
	ldr	r3, [r7, #8]
	cmp	r2, r3
	bne	.L15
	b	.L13
.L31:
	.align	2
.L30:
	.word	MSG_SENDPAGE_NOPOLICY
	.word	start
	.size	tcp_bpf_push, .-tcp_bpf_push
	.comm	start,4,4
	.comm	MSG_SENDPAGE_NOPOLICY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
