	.file	"extr_ipcp.c_ipcp_UseHisaddr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	",-"
.LC1:
	.string	"%s: None available !\n"
.LC2:
	.string	"%s: Invalid range !\n"
.LC3:
	.string	"%s: Not an AF_INET address !\n"
	.text
	.p2align 4
	.globl	ipcp_UseHisaddr
	.type	ipcp_UseHisaddr, @function
ipcp_UseHisaddr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, 8[rdi]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, r14
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	lea	r13, 16[rbp]
	mov	ebx, edx
	mov	edx, 4
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	memset@PLT
	mov	rdi, r13
	call	iplist_reset@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	strpbrk@PLT
	test	rax, rax
	je	.L2
	mov	rdi, r13
	mov	rsi, r12
	call	iplist_setsrc@PLT
	mov	rdi, r13
	call	iplist_isvalid@PLT
	test	rax, rax
	je	.L3
	mov	rdi, r13
	call	iplist_setrandpos@PLT
	mov	esi, DWORD PTR 24[rbp]
	mov	rdi, rbp
	call	ChooseHisAddr@PLT
	cmp	rax, QWORD PTR INADDR_ANY[rip]
	mov	QWORD PTR 0[rbp], rax
	mov	rsi, rax
	je	.L20
	mov	rdi, r14
	call	ncprange_setip4host@PLT
.L6:
	mov	rsi, QWORD PTR 0[rbp]
	lea	r12, 12[rsp]
	mov	rdi, r12
	call	ncpaddr_setip4@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	rdi, rbp
	call	bundle_AdjustFilters@PLT
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r14
	call	ncprange_aton@PLT
	test	rax, rax
	jne	.L7
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	lea	r13, 12[rbp]
	mov	rdi, r13
	call	ncprange_family@PLT
	cmp	rax, QWORD PTR AF_INET[rip]
	je	.L8
	mov	edi, DWORD PTR LogWARN[rip]
	mov	rdx, r12
	lea	rsi, .LC3[rip]
	call	log_Printf@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR LogWARN[rip]
	mov	rdx, r12
	lea	rsi, .LC2[rip]
	call	log_Printf@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, 16[rsp]
	mov	rdi, r13
	call	ncprange_getip4addr@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	ncprange_getip4addr@PLT
	test	ebx, ebx
	je	.L6
	mov	rdx, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, rbp
	call	ipcp_SetIPaddress@PLT
	test	eax, eax
	jne	.L6
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdx, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR LogWARN[rip]
	lea	rsi, .LC1[rip]
	call	log_Printf@PLT
	xor	eax, eax
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ipcp_UseHisaddr, .-ipcp_UseHisaddr
	.comm	LogWARN,4,4
	.comm	INADDR_ANY,8,8
	.comm	AF_INET,8,8
	.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_ipcp.c_ipcp_UseHisaddr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	",-\000"
	.align	2
.LC1:
	.ascii	"%s: None available !\012\000"
	.align	2
.LC2:
	.ascii	"%s: Invalid range !\012\000"
	.align	2
.LC3:
	.ascii	"%s: Not an AF_INET address !\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ipcp_UseHisaddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipcp_UseHisaddr, %function
ipcp_UseHisaddr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	mov	r7, r1
	ldr	r3, .L20
	add	r6, r0, #4
	sub	sp, sp, #20
	mov	r1, #0
	mov	r9, r2
	mov	r0, r6
	mov	r2, #4
	add	r8, r4, #12
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	memset
	mov	r0, r8
	bl	iplist_reset
	mov	r0, r7
	ldr	r1, .L20+4
	bl	strpbrk
	subs	r5, r0, #0
	beq	.L2
	mov	r1, r7
	mov	r0, r8
	bl	iplist_setsrc
	mov	r0, r8
	bl	iplist_isvalid
	subs	r5, r0, #0
	beq	.L3
	mov	r0, r8
	bl	iplist_setrandpos
	ldr	r1, [r4, #16]
	mov	r0, r4
	bl	ChooseHisAddr
	ldr	r3, .L20+8
	mov	r1, r0
	ldr	r3, [r3]
	str	r0, [r4]
	cmp	r0, r3
	beq	.L18
	mov	r0, r6
	bl	ncprange_setip4host
.L6:
	ldr	r1, [r4]
	add	r0, sp, #8
	bl	ncpaddr_setip4
	mov	r0, r4
	mov	r1, #0
	add	r2, sp, #8
	bl	bundle_AdjustFilters
	mov	r5, #1
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r2, r7
	mov	r1, r4
	mov	r0, r6
	bl	ncprange_aton
	cmp	r0, #0
	beq	.L1
	add	r8, r4, #8
	mov	r0, r8
	bl	ncprange_family
	ldr	r3, .L20+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L8
	ldr	r3, .L20+16
	mov	r2, r7
	ldr	r0, [r3]
	ldr	r1, .L20+20
	bl	log_Printf
	b	.L1
.L3:
	ldr	r3, .L20+16
	mov	r2, r7
	ldr	r0, [r3]
	ldr	r1, .L20+24
	bl	log_Printf
	b	.L1
.L8:
	add	r1, sp, #4
	mov	r0, r8
	bl	ncprange_getip4addr
	mov	r1, r4
	mov	r0, r6
	bl	ncprange_getip4addr
	cmp	r9, #0
	beq	.L6
	mov	r0, r4
	ldr	r2, [r4]
	ldr	r1, [sp, #4]
	bl	ipcp_SetIPaddress
	cmp	r0, #0
	bne	.L6
	b	.L1
.L18:
	ldr	r3, .L20+16
	ldr	r2, [r4, #12]
	ldr	r0, [r3]
	ldr	r1, .L20+28
	bl	log_Printf
	mov	r5, #0
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC4
	.word	.LC0
	.word	INADDR_ANY
	.word	AF_INET
	.word	LogWARN
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.size	ipcp_UseHisaddr, .-ipcp_UseHisaddr
	.comm	LogWARN,4,4
	.comm	INADDR_ANY,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
