	.file	"extr_nat64stl_control.c_nat64stl_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nat64stl_config, @function
nat64stl_config:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR [rdx], 20
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 20
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ipfw_get_sopt_space@PLT
	mov	edi, DWORD PTR 8[rax]
	mov	r12, rax
	call	ipfw_check_object_name_generic@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR IPFW_MAX_SETS[rip]
	cmp	QWORD PTR [r12], rax
	jl	.L5
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	CHAIN_TO_SRV@PLT
	mov	rcx, QWORD PTR SOPT_GET[rip]
	mov	rdi, rbp
	mov	r13, rax
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rax], rcx
	je	.L13
	call	IPFW_UH_WLOCK@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	rdx, QWORD PTR [r12]
	mov	rdi, r13
	call	nat64stl_find@PLT
	test	rax, rax
	je	.L14
	mov	edx, DWORD PTR NAT64STL_FLAGSMASK[rip]
	mov	ecx, DWORD PTR 16[r12]
	mov	rdi, rbp
	not	edx
	and	edx, DWORD PTR [rax]
	mov	DWORD PTR [rax], edx
	and	ecx, DWORD PTR NAT64STL_FLAGSMASK[rip]
	or	edx, ecx
	mov	DWORD PTR [rax], edx
	call	IPFW_UH_WUNLOCK@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	call	IPFW_UH_RLOCK@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	rdx, QWORD PTR [r12]
	mov	rdi, r13
	call	nat64stl_find@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L15
	lea	rdx, 16[r12]
	mov	rdi, rbp
	call	nat64stl_export_config@PLT
	mov	rdi, rbp
	call	IPFW_UH_RUNLOCK@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	IPFW_UH_WUNLOCK@PLT
	mov	eax, DWORD PTR EEXIST[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbp
	call	IPFW_UH_RUNLOCK@PLT
	mov	eax, DWORD PTR EEXIST[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nat64stl_config, .-nat64stl_config
	.comm	SOPT_GET,8,8
	.comm	NAT64STL_FLAGSMASK,4,4
	.comm	IPFW_MAX_SETS,8,8
	.comm	EINVAL,4,4
	.comm	EEXIST,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_nat64stl_control.c_nat64stl_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nat64stl_config, %function
nat64stl_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, [r2]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r1, #12
	beq	.L2
.L4:
	ldr	r3, .L14
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r6, r0
	mov	r0, r2
	mov	r4, r2
	bl	ipfw_get_sopt_space
	mov	r7, r0
	ldr	r0, [r0, #4]
	bl	ipfw_check_object_name_generic
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, .L14+4
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L4
	mov	r0, r6
	bl	CHAIN_TO_SRV
	ldr	r2, [r4, #4]
	ldr	r3, .L14+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r2, r3
	mov	r0, r6
	beq	.L11
	bl	IPFW_UH_WLOCK
	mov	r0, r4
	ldr	r2, [r7]
	ldr	r1, [r7, #4]
	bl	nat64stl_find
	subs	r3, r0, #0
	beq	.L12
	ldr	r0, .L14+12
	ldr	r1, [r3]
	ldr	ip, [r0]
	ldr	r2, [r7, #8]
	bic	r1, r1, ip
	str	r1, [r3]
	ldr	ip, [r0]
	mov	r0, r6
	and	r2, r2, ip
	orr	r2, r2, r1
	str	r2, [r3]
	bl	IPFW_UH_WUNLOCK
	b	.L1
.L11:
	bl	IPFW_UH_RLOCK
	ldr	r1, [r7, #4]
	mov	r0, r4
	ldr	r2, [r7]
	bl	nat64stl_find
	subs	r1, r0, #0
	beq	.L13
	mov	r0, r6
	add	r2, r7, #8
	bl	nat64stl_export_config
	mov	r0, r6
	bl	IPFW_UH_RUNLOCK
	b	.L1
.L12:
	mov	r0, r6
	bl	IPFW_UH_WUNLOCK
	ldr	r3, .L14+16
	ldr	r5, [r3]
	b	.L1
.L13:
	mov	r0, r6
	bl	IPFW_UH_RUNLOCK
	ldr	r3, .L14+16
	ldr	r5, [r3]
	b	.L1
.L15:
	.align	2
.L14:
	.word	EINVAL
	.word	IPFW_MAX_SETS
	.word	SOPT_GET
	.word	NAT64STL_FLAGSMASK
	.word	EEXIST
	.size	nat64stl_config, .-nat64stl_config
	.comm	SOPT_GET,4,4
	.comm	NAT64STL_FLAGSMASK,4,4
	.comm	IPFW_MAX_SETS,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
