	.file	"extr_pf_ioctl.c_pf_state_export.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pf_state_export, @function
pf_state_export:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	pf_time_second@PLT
	mov	esi, 144
	mov	rdi, rbx
	mov	r13, rax
	call	bzero@PLT
	mov	eax, DWORD PTR 52[r12]
	lea	rsi, 100[rbp]
	lea	rdi, 76[rbx]
	mov	edx, 4
	mov	DWORD PTR 136[rbx], eax
	mov	eax, DWORD PTR 48[r12]
	mov	DWORD PTR 132[rbx], eax
	mov	eax, DWORD PTR 44[r12]
	mov	DWORD PTR 128[rbx], eax
	mov	eax, DWORD PTR 40[r12]
	mov	DWORD PTR 124[rbx], eax
	mov	eax, DWORD PTR 36[r12]
	mov	DWORD PTR 120[rbx], eax
	mov	eax, DWORD PTR 32[r12]
	mov	DWORD PTR 116[rbx], eax
	mov	eax, DWORD PTR 28[r12]
	mov	DWORD PTR 112[rbx], eax
	mov	eax, DWORD PTR 24[r12]
	mov	DWORD PTR 108[rbx], eax
	mov	eax, DWORD PTR 20[r12]
	mov	DWORD PTR 104[rbx], eax
	mov	eax, DWORD PTR 104[rbp]
	mov	DWORD PTR 100[rbx], eax
	mov	eax, DWORD PTR 16[r12]
	mov	DWORD PTR 96[rbx], eax
	mov	eax, DWORD PTR 12[r12]
	mov	DWORD PTR 92[rbx], eax
	mov	eax, DWORD PTR 8[r12]
	mov	DWORD PTR 88[rbx], eax
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 84[rbx], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 80[rbx], eax
	call	memcpy@PLT
	mov	eax, DWORD PTR 96[rbp]
	mov	edi, DWORD PTR 68[rbx]
	mov	edx, 4
	mov	DWORD PTR 72[rbx], eax
	mov	rax, QWORD PTR 88[rbp]
	mov	esi, DWORD PTR [rax]
	call	strlcpy@PLT
	lea	rsi, 64[rbx]
	lea	rdi, 84[rbp]
	call	pf_state_peer_to_pfsync@PLT
	lea	rsi, 60[rbx]
	lea	rdi, 80[rbp]
	call	pf_state_peer_to_pfsync@PLT
	mov	rax, QWORD PTR 72[rbp]
	mov	rdx, QWORD PTR 64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 56[rbx], eax
	mov	eax, -1
	test	rdx, rdx
	je	.L2
	mov	eax, DWORD PTR [rdx]
.L2:
	mov	rdx, QWORD PTR 56[rbp]
	mov	DWORD PTR [rbx], eax
	mov	eax, -1
	test	rdx, rdx
	je	.L3
	mov	eax, DWORD PTR [rdx]
.L3:
	mov	DWORD PTR 4[rbx], eax
	mov	rdx, QWORD PTR 48[rbx]
	mov	rax, QWORD PTR 48[rbp]
	mov	esi, DWORD PTR [rdx]
	mov	edi, DWORD PTR [rax]
	call	pf_state_counter_to_pfsync@PLT
	mov	rax, QWORD PTR 48[rbx]
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR 48[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	pf_state_counter_to_pfsync@PLT
	mov	rdx, QWORD PTR 40[rbx]
	mov	rax, QWORD PTR 40[rbp]
	mov	esi, DWORD PTR [rdx]
	mov	edi, DWORD PTR [rax]
	call	pf_state_counter_to_pfsync@PLT
	mov	rax, QWORD PTR 40[rbx]
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR 40[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	pf_state_counter_to_pfsync@PLT
	mov	rax, r13
	sub	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	QWORD PTR 32[rbx], rax
	call	pf_state_expires@PLT
	mov	edx, DWORD PTR 32[rbp]
	cmp	QWORD PTR 16[rbp], 0
	mov	DWORD PTR 28[rbx], edx
	mov	edx, DWORD PTR 28[rbp]
	mov	DWORD PTR 24[rbx], edx
	mov	edx, DWORD PTR 24[rbp]
	mov	DWORD PTR 20[rbx], edx
	je	.L4
	mov	edx, DWORD PTR PFSYNC_FLAG_SRCNODE[rip]
	or	DWORD PTR 16[rbx], edx
.L4:
	cmp	QWORD PTR 8[rbp], 0
	je	.L5
	mov	edx, DWORD PTR PFSYNC_FLAG_NATSRCNODE[rip]
	or	DWORD PTR 16[rbx], edx
.L5:
	mov	rdx, rax
	sub	rdx, r13
	cmp	rax, r13
	mov	eax, 0
	cmovg	rax, rdx
	mov	QWORD PTR 8[rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pf_state_export, .-pf_state_export
	.comm	PFSYNC_FLAG_SRCNODE,4,4
	.comm	PFSYNC_FLAG_NATSRCNODE,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_ioctl.c_pf_state_export.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pf_state_export, %function
pf_state_export:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r2
	mov	r6, r1
	bl	pf_time_second
	mov	r1, #124
	mov	r7, r0
	mov	r0, r4
	bl	bzero
	ldr	r2, [r6, #52]
	ldr	r3, [r6, #48]
	ldr	r1, [r6, #44]
	str	r2, [r4, #120]
	ldr	r2, [r6, #40]
	str	r3, [r4, #116]
	ldr	r3, [r6, #36]
	str	r1, [r4, #112]
	ldr	r1, [r6, #32]
	str	r2, [r4, #108]
	ldr	r2, [r6, #28]
	str	r3, [r4, #104]
	ldr	r3, [r6, #24]
	str	r1, [r4, #100]
	ldr	r1, [r6, #20]
	str	r2, [r4, #96]
	ldr	r2, [r5, #64]
	str	r3, [r4, #92]
	ldr	r3, [r6, #16]
	ldr	r0, [r6, #12]
	str	r1, [r4, #88]
	str	r2, [r4, #84]
	ldr	r1, [r6, #8]
	ldr	r2, [r6, #4]
	str	r3, [r4, #80]
	ldr	r3, [r6]
	str	r0, [r4, #76]
	str	r1, [r4, #72]
	str	r2, [r4, #68]
	str	r3, [r4, #64]
	mov	r2, #4
	add	r1, r5, #60
	add	r0, r4, #60
	bl	memcpy
	ldr	r3, [r5, #52]
	ldr	r2, [r5, #56]
	ldr	r1, [r3]
	str	r2, [r4, #56]
	ldr	r0, [r4, #52]
	mov	r2, #4
	bl	strlcpy
	add	r1, r4, #48
	add	r0, r5, #48
	bl	pf_state_peer_to_pfsync
	add	r1, r4, #44
	add	r0, r5, #44
	bl	pf_state_peer_to_pfsync
	ldr	r2, [r5, #40]
	ldr	r3, [r5, #36]
	ldr	r2, [r2]
	cmp	r3, #0
	str	r2, [r4, #40]
	ldrne	r2, [r3]
	ldr	r3, [r5, #32]
	mvneq	r2, #0
	cmp	r3, #0
	mvneq	r1, #0
	ldrne	r1, [r3]
	str	r2, [r4]
	ldr	r3, [r5, #28]
	ldr	r2, [r4, #36]
	str	r1, [r4, #4]
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	pf_state_counter_to_pfsync
	ldr	r2, [r4, #36]
	ldr	r3, [r5, #28]
	ldr	r1, [r2, #4]
	ldr	r0, [r3, #4]
	bl	pf_state_counter_to_pfsync
	ldr	r2, [r4, #32]
	ldr	r3, [r5, #24]
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	pf_state_counter_to_pfsync
	ldr	r2, [r4, #32]
	ldr	r3, [r5, #24]
	ldr	r1, [r2, #4]
	ldr	r0, [r3, #4]
	bl	pf_state_counter_to_pfsync
	ldr	r3, [r5]
	mov	r0, r5
	sub	r3, r7, r3
	str	r3, [r4, #28]
	bl	pf_state_expires
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #20]
	cmp	r2, #0
	ldr	r2, [r5, #16]
	str	r3, [r4, #24]
	ldr	r3, [r5, #12]
	str	r2, [r4, #20]
	ldrne	r2, .L18
	str	r3, [r4, #16]
	ldrne	r2, [r2]
	ldrne	r3, [r4, #12]
	orrne	r3, r3, r2
	strne	r3, [r4, #12]
	ldr	r3, [r5, #4]
	cmp	r3, #0
	ldrne	r2, .L18+4
	ldrne	r3, [r4, #12]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r4, #12]
	cmp	r0, r7
	movle	r0, #0
	subgt	r0, r0, r7
	str	r0, [r4, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	PFSYNC_FLAG_SRCNODE
	.word	PFSYNC_FLAG_NATSRCNODE
	.size	pf_state_export, .-pf_state_export
	.comm	PFSYNC_FLAG_SRCNODE,4,4
	.comm	PFSYNC_FLAG_NATSRCNODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
