	.file	"extr_ipt_ECN.c_set_ect_tcp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_ect_tcp, @function
set_ect_tcp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	ip_hdrlen@PLT
	mov	rcx, rsp
	mov	edx, 24
	mov	rdi, rbp
	mov	esi, eax
	call	skb_header_pointer@PLT
	test	rax, rax
	je	.L6
	mov	edx, DWORD PTR [rbx]
	test	DWORD PTR IPT_ECN_OP_SET_ECE[rip], edx
	je	.L4
	mov	rcx, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rax], rcx
	je	.L4
.L5:
	mov	rdi, rbp
	call	ip_hdrlen@PLT
	mov	rdi, rbp
	lea	esi, 24[rax]
	call	skb_ensure_writable@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, rbp
	call	ip_hdrlen@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	ip_hdr@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	r8, rax
	movsx	rax, r12d
	add	rax, r8
	mov	edx, DWORD PTR 24[rax]
	test	DWORD PTR IPT_ECN_OP_SET_ECE[rip], ecx
	je	.L7
	mov	rsi, QWORD PTR 8[rbx]
	mov	QWORD PTR [rax], rsi
.L7:
	test	DWORD PTR IPT_ECN_OP_SET_CWR[rip], ecx
	je	.L8
	mov	rcx, QWORD PTR 16[rbx]
	mov	QWORD PTR 8[rax], rcx
.L8:
	xor	r8d, r8d
	lea	rdi, 16[rax]
	mov	ecx, edx
	mov	rsi, rbp
	call	inet_proto_csum_replace2@PLT
	mov	r8d, 1
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	r8d, 1
	test	DWORD PTR IPT_ECN_OP_SET_CWR[rip], edx
	je	.L1
	mov	rdx, QWORD PTR 16[rbx]
	cmp	QWORD PTR 8[rax], rdx
	jne	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	xor	r8d, r8d
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_ect_tcp, .-set_ect_tcp
	.comm	IPT_ECN_OP_SET_ECE,4,4
	.comm	IPT_ECN_OP_SET_CWR,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_ipt_ECN.c_set_ect_tcp.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_ect_tcp, %function
set_ect_tcp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L24
	sub	sp, sp, #28
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r0
	bl	ip_hdrlen
	mov	r2, #12
	mov	r1, r0
	add	r3, sp, #8
	mov	r0, r4
	bl	skb_header_pointer
	cmp	r0, #0
	beq	.L6
	ldr	r6, .L24+4
	ldr	r3, [r5]
	ldr	r2, [r6]
	tst	r3, r2
	beq	.L4
	ldr	r1, [r0]
	ldr	r2, [r5, #4]
	cmp	r1, r2
	beq	.L4
.L5:
	mov	r0, r4
	bl	ip_hdrlen
	mov	r1, r0
	mov	r0, r4
	add	r1, r1, #12
	bl	skb_ensure_writable
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	bl	ip_hdrlen
	mov	r7, r0
	mov	r0, r4
	bl	ip_hdr
	ldr	r1, [r5]
	ldr	r3, [r6]
	add	r2, r7, r0
	tst	r1, r3
	ldrne	ip, [r5, #4]
	ldr	r3, [r2, #24]
	strne	ip, [r7, r0]
	mov	ip, #0
	ldr	r0, .L24+8
	ldr	r0, [r0]
	tst	r1, r0
	ldrne	r1, [r5, #8]
	add	r0, r2, #8
	strne	r1, [r2, #4]
	mov	r1, r4
	mov	r2, r3
	str	ip, [sp]
	bl	inet_proto_csum_replace2
	mov	r0, #1
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	ldr	r2, .L24+8
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L11
	ldr	r2, [r0, #4]
	ldr	r3, [r5, #8]
	cmp	r2, r3
	bne	.L5
.L11:
	mov	r0, #1
	b	.L1
.L6:
	mov	r0, #0
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	IPT_ECN_OP_SET_ECE
	.word	IPT_ECN_OP_SET_CWR
	.size	set_ect_tcp, .-set_ect_tcp
	.comm	IPT_ECN_OP_SET_ECE,4,4
	.comm	IPT_ECN_OP_SET_CWR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
