	.file	"extr_xform_tcp.c_tcp_ipsec_pcbctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tcp_ipsec_pcbctl, @function
tcp_ipsec_pcbctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	r13d, DWORD PTR ENOPROTOOPT[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR TCP_MD5SIG[rip]
	cmp	QWORD PTR [rsi], rax
	jne	.L1
	mov	rax, QWORD PTR SOPT_GET[rip]
	mov	r12, rdi
	mov	rbp, rsi
	cmp	QWORD PTR 8[rsi], rax
	je	.L12
	lea	rsi, 4[rsp]
	mov	ecx, 4
	mov	edx, 4
	mov	rdi, rbp
	call	sooptcopyin@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L13
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	INP_RLOCK@PLT
	mov	eax, DWORD PTR INP_TIMEWAIT[rip]
	mov	rdi, r12
	or	eax, DWORD PTR INP_DROPPED[rip]
	test	DWORD PTR [r12], eax
	je	.L5
	call	INP_RUNLOCK@PLT
	mov	r13d, DWORD PTR ECONNRESET[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r12
	call	INP_WLOCK@PLT
	mov	r13d, DWORD PTR INP_TIMEWAIT[rip]
	mov	rdi, r12
	or	r13d, DWORD PTR INP_DROPPED[rip]
	and	r13d, DWORD PTR [r12]
	jne	.L15
	call	intotcpcb@PLT
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	jle	.L7
	mov	edx, DWORD PTR [rax]
	or	edx, DWORD PTR TF_SIGNATURE[rip]
.L8:
	mov	DWORD PTR [rax], edx
	mov	rdi, r12
	call	INP_WUNLOCK@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	call	intotcpcb@PLT
	mov	rdi, r12
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR TF_SIGNATURE[rip], eax
	setne	al
	movzx	eax, al
	mov	DWORD PTR 4[rsp], eax
	call	INP_RUNLOCK@PLT
	lea	rsi, 4[rsp]
	mov	edx, 4
	mov	rdi, rbp
	call	sooptcopyout@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	call	INP_WUNLOCK@PLT
	mov	r13d, DWORD PTR ECONNRESET[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR TF_SIGNATURE[rip]
	not	edx
	and	edx, DWORD PTR [rax]
	jmp	.L8
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tcp_ipsec_pcbctl, .-tcp_ipsec_pcbctl
	.comm	TF_SIGNATURE,4,4
	.comm	TCP_MD5SIG,8,8
	.comm	SOPT_GET,8,8
	.comm	INP_TIMEWAIT,4,4
	.comm	INP_DROPPED,4,4
	.comm	ENOPROTOOPT,4,4
	.comm	ECONNRESET,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_xform_tcp.c_tcp_ipsec_pcbctl.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_ipsec_pcbctl, %function
tcp_ipsec_pcbctl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L15
	ldr	r2, [r1]
	ldr	r3, [r3]
	mov	r4, r1
	ldr	r1, .L15+4
	sub	sp, sp, #12
	cmp	r2, r3
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	beq	.L2
	ldr	r3, .L15+8
	ldr	r4, [r3]
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r3, .L15+12
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	mov	r5, r0
	cmp	r2, r3
	beq	.L13
	mov	r3, #4
	mov	r0, r4
	mov	r2, r3
	mov	r1, sp
	bl	sooptcopyin
	subs	r4, r0, #0
	bne	.L1
	mov	r0, r5
	bl	INP_WLOCK
	ldr	r2, .L15+16
	ldr	r3, .L15+20
	ldr	r4, [r2]
	ldr	r3, [r3]
	ldr	r0, [r5]
	orr	r4, r4, r3
	ands	r4, r4, r0
	mov	r0, r5
	bne	.L14
	bl	intotcpcb
	ldr	r3, [sp]
	ldr	r2, .L15+24
	cmp	r3, #0
	ldr	r2, [r2]
	ldr	r3, [r0]
	orrgt	r3, r3, r2
	bicle	r3, r3, r2
	str	r3, [r0]
	mov	r0, r5
	bl	INP_WUNLOCK
	b	.L1
.L13:
	bl	INP_RLOCK
	ldr	r2, .L15+20
	ldr	r3, .L15+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r5]
	orr	r3, r3, r1
	tst	r3, r2
	mov	r0, r5
	beq	.L5
	bl	INP_RUNLOCK
	ldr	r3, .L15+28
	ldr	r4, [r3]
	b	.L1
.L5:
	bl	intotcpcb
	ldr	r3, .L15+24
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r0, r5
	tst	r2, r3
	movne	r3, #1
	moveq	r3, #0
	str	r3, [sp]
	bl	INP_RUNLOCK
	mov	r0, r4
	mov	r2, #4
	mov	r1, sp
	bl	sooptcopyout
	mov	r4, r0
	b	.L1
.L14:
	bl	INP_WUNLOCK
	ldr	r3, .L15+28
	ldr	r4, [r3]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	TCP_MD5SIG
	.word	.LC0
	.word	ENOPROTOOPT
	.word	SOPT_GET
	.word	INP_TIMEWAIT
	.word	INP_DROPPED
	.word	TF_SIGNATURE
	.word	ECONNRESET
	.size	tcp_ipsec_pcbctl, .-tcp_ipsec_pcbctl
	.comm	TF_SIGNATURE,4,4
	.comm	TCP_MD5SIG,4,4
	.comm	SOPT_GET,4,4
	.comm	INP_TIMEWAIT,4,4
	.comm	INP_DROPPED,4,4
	.comm	ENOPROTOOPT,4,4
	.comm	ECONNRESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
