	.file	"extr_pf.c_pf_unlink_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pf_unlink_state
	.type	pf_unlink_state, @function
pf_unlink_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR LCK_MTX_ASSERT_OWNED[rip]
	mov	rbp, rdi
	mov	edi, DWORD PTR pf_lock[rip]
	call	LCK_MTX_ASSERT@PLT
	mov	rax, QWORD PTR PF_TCPS_PROXY_DST[rip]
	cmp	QWORD PTR 24[rbp], rax
	je	.L5
.L2:
	lea	rdi, 12[rbp]
	mov	esi, DWORD PTR HOOK_REMOVE[rip]
	or	esi, DWORD PTR HOOK_FREE[rip]
	call	hook_runloop@PLT
	mov	edi, DWORD PTR pf_state_tree_id[rip]
	mov	rdx, rbp
	lea	rsi, tree_id[rip]
	call	RB_REMOVE@PLT
	mov	eax, DWORD PTR PFTM_UNLINKED[rip]
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	call	pf_src_tree_remove_state@PLT
	mov	rdi, rbp
	xor	esi, esi
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	pf_detach_state@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 48[rbp]
	mov	edx, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 56[rbp]
	mov	r8d, DWORD PTR 8[rax]
	mov	esi, DWORD PTR 16[rax]
	push	0
	.cfi_def_cfa_offset 24
	lea	r10, 12[rax]
	push	0
	.cfi_def_cfa_offset 32
	lea	rcx, 4[rax]
	push	rdx
	.cfi_def_cfa_offset 40
	mov	edx, DWORD PTR TH_RST[rip]
	or	edx, DWORD PTR TH_ACK[rip]
	push	1
	.cfi_def_cfa_offset 48
	push	0
	.cfi_def_cfa_offset 56
	push	0
	.cfi_def_cfa_offset 64
	push	0
	.cfi_def_cfa_offset 72
	push	rdx
	.cfi_def_cfa_offset 80
	mov	rdx, QWORD PTR 32[rbp]
	add	rdx, 1
	push	rdx
	.cfi_def_cfa_offset 88
	mov	edx, DWORD PTR 40[rbp]
	push	rdx
	.cfi_def_cfa_offset 96
	mov	r9d, DWORD PTR [rax]
	mov	rdx, r10
	call	pf_send_tcp@PLT
	add	rsp, 80
	.cfi_def_cfa_offset 16
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pf_unlink_state, .-pf_unlink_state
	.comm	tree_id,4,4
	.comm	pf_status,8,8
	.comm	pf_state_tree_id,4,4
	.comm	pf_lock,4,4
	.comm	TH_RST,4,4
	.comm	TH_ACK,4,4
	.comm	PF_TCPS_PROXY_DST,8,8
	.comm	PFTM_UNLINKED,4,4
	.comm	LCK_MTX_ASSERT_OWNED,4,4
	.comm	HOOK_REMOVE,4,4
	.comm	HOOK_FREE,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_pf.c_pf_unlink_state.c"
	.text
	.align	2
	.global	pf_unlink_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	pf_unlink_state, %function
pf_unlink_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r2, .L6
	ldr	r3, .L6+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	sub	sp, sp, #48
	bl	LCK_MTX_ASSERT
	ldr	r3, .L6+8
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
.L2:
	ldr	r2, .L6+12
	ldr	r3, .L6+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	add	r0, r4, #8
	orr	r1, r1, r3
	bl	hook_runloop
	ldr	r3, .L6+20
	mov	r2, r4
	ldr	r1, .L6+24
	ldr	r0, [r3]
	bl	RB_REMOVE
	ldr	r3, .L6+28
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #4]
	bl	pf_src_tree_remove_state
	mov	r0, r4
	mov	r1, #0
	add	sp, sp, #48
	@ sp needed
	pop	{r4, lr}
	b	pf_detach_state
.L5:
	mov	lr, #1
	mov	r3, #0
	ldr	r1, .L6+32
	ldr	r2, .L6+36
	ldr	ip, [r1]
	ldr	r0, [r4, #20]
	ldr	r1, [r2]
	ldr	r2, [r4, #28]
	orr	ip, ip, r1
	add	r0, r0, lr
	ldr	r1, [r2, #16]
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	ldr	r0, [r4, #12]
	str	r3, [sp, #44]
	str	r3, [sp, #40]
	str	r3, [sp, #28]
	str	r3, [sp, #24]
	str	r3, [sp, #20]
	ldr	r3, [r4, #24]
	str	lr, [sp, #32]
	str	r0, [sp, #36]
	str	r3, [sp, #8]
	ldr	r3, [r2]
	str	r3, [sp, #4]
	ldr	r0, [r2, #8]
	add	r3, r2, #4
	str	r0, [sp]
	ldr	r0, [r4, #32]
	add	r2, r2, #12
	bl	pf_send_tcp
	b	.L2
.L7:
	.align	2
.L6:
	.word	LCK_MTX_ASSERT_OWNED
	.word	pf_lock
	.word	PF_TCPS_PROXY_DST
	.word	HOOK_REMOVE
	.word	HOOK_FREE
	.word	pf_state_tree_id
	.word	tree_id
	.word	PFTM_UNLINKED
	.word	TH_RST
	.word	TH_ACK
	.size	pf_unlink_state, .-pf_unlink_state
	.comm	tree_id,4,4
	.comm	pf_status,4,4
	.comm	pf_state_tree_id,4,4
	.comm	pf_lock,4,4
	.comm	TH_RST,4,4
	.comm	TH_ACK,4,4
	.comm	PF_TCPS_PROXY_DST,4,4
	.comm	PFTM_UNLINKED,4,4
	.comm	LCK_MTX_ASSERT_OWNED,4,4
	.comm	HOOK_REMOVE,4,4
	.comm	HOOK_FREE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
