	.file	"extr_clinat.c_add_client_nat_to_option_list.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"snat"
.LC1:
	.string	"dnat"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"client-nat: type must be 'snat' or 'dnat'"
	.section	.rodata.str1.1
.LC3:
	.string	"client-nat: bad network: %s"
.LC4:
	.string	"client-nat: bad netmask: %s"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"client-nat: bad foreign network: %s"
	.text
	.p2align 4
	.globl	add_client_nat_to_option_list
	.type	add_client_nat_to_option_list, @function
add_client_nat_to_option_list:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	lea	rdi, .LC0[rip]
	mov	rax, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	mov	ecx, 5
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r9d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rbx, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rbx
	xor	ebx, ebx
	repz cmpsb
	seta	dl
	sbb	dl, 0
	test	dl, dl
	jne	.L2
	mov	eax, DWORD PTR CN_SNAT[rip]
	mov	DWORD PTR 40[rsp], eax
.L3:
	lea	rbx, 12[rsp]
	xor	r8d, r8d
	xor	edx, edx
	mov	rsi, r12
	mov	rcx, rbx
	xor	edi, edi
	call	getaddr@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	QWORD PTR 32[rsp], rax
	test	ecx, ecx
	je	.L13
	xor	edx, edx
	xor	r8d, r8d
	mov	rcx, rbx
	mov	rsi, r13
	xor	edi, edi
	call	getaddr@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	QWORD PTR 24[rsp], rax
	test	edx, edx
	je	.L14
	xor	r8d, r8d
	mov	rcx, rbx
	xor	edx, edx
	mov	rsi, r14
	xor	edi, edi
	call	getaddr@PLT
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L15
	lea	rsi, 16[rsp]
	mov	rdi, r15
	call	add_entry@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdx, r13
	lea	rsi, .LC4[rip]
	mov	edi, ebp
	xor	eax, eax
	call	msg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, rax
	mov	ecx, 5
	lea	rdi, .LC1[rip]
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L4
	mov	eax, DWORD PTR CN_DNAT[rip]
	mov	DWORD PTR 40[rsp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, r12
	lea	rsi, .LC3[rip]
	mov	edi, ebp
	xor	eax, eax
	call	msg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, r14
	lea	rsi, .LC5[rip]
	mov	edi, ebp
	xor	eax, eax
	call	msg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rsi, .LC2[rip]
	mov	edi, r9d
	xor	eax, eax
	call	msg@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	add_client_nat_to_option_list, .-add_client_nat_to_option_list
	.comm	CN_SNAT,4,4
	.comm	CN_DNAT,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_clinat.c_add_client_nat_to_option_list.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"snat\000"
	.align	2
.LC1:
	.ascii	"dnat\000"
	.align	2
.LC2:
	.ascii	"client-nat: type must be 'snat' or 'dnat'\000"
	.align	2
.LC3:
	.ascii	"client-nat: bad network: %s\000"
	.align	2
.LC4:
	.ascii	"client-nat: bad netmask: %s\000"
	.align	2
.LC5:
	.ascii	"client-nat: bad foreign network: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add_client_nat_to_option_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_client_nat_to_option_list, %function
add_client_nat_to_option_list:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r3
	ldr	r3, .L17
	sub	sp, sp, #32
	mov	r4, r1
	mov	r7, r0
	mov	r0, r1
	ldr	r1, .L17+4
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	strcmp
	cmp	r0, #0
	ldr	r8, [sp, #56]
	bne	.L2
	ldr	r3, .L17+8
	ldr	r3, [r3]
	str	r3, [sp, #24]
.L3:
	mov	r4, #0
	add	r3, sp, #8
	mov	r2, r4
	mov	r0, r4
	mov	r1, r6
	str	r4, [sp]
	bl	getaddr
	ldr	r3, [sp, #8]
	str	r0, [sp, #20]
	cmp	r3, r4
	beq	.L13
	add	r3, sp, #8
	mov	r2, r4
	mov	r1, r5
	mov	r0, r4
	str	r4, [sp]
	bl	getaddr
	ldr	r3, [sp, #8]
	str	r0, [sp, #16]
	cmp	r3, #0
	beq	.L14
	add	r3, sp, #8
	mov	r2, r4
	mov	r0, r4
	mov	r1, r8
	str	r4, [sp]
	bl	getaddr
	ldr	r3, [sp, #8]
	str	r0, [sp, #12]
	cmp	r3, #0
	beq	.L15
	mov	r0, r7
	add	r1, sp, #12
	bl	add_entry
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r2, r5
	ldr	r1, .L17+12
	ldr	r0, [sp, #60]
	bl	msg
	b	.L1
.L2:
	mov	r0, r4
	ldr	r1, .L17+16
	bl	strcmp
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L17+20
	ldr	r3, [r3]
	str	r3, [sp, #24]
	b	.L3
.L13:
	mov	r2, r6
	ldr	r1, .L17+24
	ldr	r0, [sp, #60]
	bl	msg
	b	.L1
.L15:
	mov	r2, r8
	ldr	r1, .L17+28
	ldr	r0, [sp, #60]
	bl	msg
	b	.L1
.L4:
	ldr	r1, .L17+32
	ldr	r0, [sp, #60]
	bl	msg
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC6
	.word	.LC0
	.word	CN_SNAT
	.word	.LC4
	.word	.LC1
	.word	CN_DNAT
	.word	.LC3
	.word	.LC5
	.word	.LC2
	.size	add_client_nat_to_option_list, .-add_client_nat_to_option_list
	.comm	CN_SNAT,4,4
	.comm	CN_DNAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
