	.file	"extr_parms.c_getnet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"default"
	.text
	.p2align 4
	.globl	getnet
	.type	getnet, @function
getnet:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	mov	QWORD PTR -88[rbp], rdx
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAXHOSTNAMELEN[rip]
	lea	r13d, 1[rax]
	movsx	rax, r13d
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L42:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L42
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L43
.L4:
	mov	esi, 47
	mov	rdi, r14
	mov	r15, rsp
	call	strrchr@PLT
	mov	r12, rax
	test	rax, rax
	je	.L24
	mov	rcx, rax
	sub	rcx, r14
	cmp	r13d, ecx
	jle	.L14
	mov	edx, ecx
	mov	rsi, r14
	mov	rdi, rsp
	mov	QWORD PTR -96[rbp], rcx
	call	memmove@PLT
	mov	rcx, QWORD PTR -96[rbp]
	add	r12, 1
	movsx	rcx, ecx
	mov	BYTE PTR [rsp+rcx], 0
.L5:
	mov	rdi, r15
	call	getnetbyname@PLT
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR [rax]
	test	eax, -16777216
	jne	.L40
	mov	edx, eax
	sal	edx, 8
	mov	DWORD PTR -68[rbp], edx
	and	edx, -16777216
	jne	.L12
	mov	edx, eax
	sal	edx, 16
	test	edx, -16777216
	jne	.L44
	sal	eax, 24
.L40:
	mov	DWORD PTR -68[rbp], eax
.L12:
	test	r12, r12
	je	.L45
	xor	edx, edx
	lea	rsi, -64[rbp]
	mov	rdi, r12
	call	strtoul@PLT
	mov	rdx, QWORD PTR -64[rbp]
	cmp	BYTE PTR [rdx], 0
	jne	.L14
	cmp	eax, 32
	jg	.L14
	mov	edx, DWORD PTR -68[rbp]
	test	eax, eax
	je	.L19
	mov	ecx, 32
	sub	ecx, eax
	mov	eax, DWORD PTR HOST_MASK[rip]
	sal	eax, cl
.L17:
	test	eax, eax
	je	.L19
.L18:
	cmp	DWORD PTR RIP_DEFAULT[rip], edx
	je	.L14
	mov	ecx, eax
	not	ecx
	test	ecx, edx
	jne	.L14
	test	edx, eax
	je	.L14
	mov	esi, edx
	shr	esi, 24
	je	.L14
.L22:
	mov	DWORD PTR [rbx], edx
	mov	rbx, QWORD PTR -88[rbp]
	mov	DWORD PTR [rbx], eax
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, -68[rbp]
	mov	rdi, r15
	call	inet_aton@PLT
	cmp	eax, 1
	je	.L46
	test	r12, r12
	je	.L47
	.p2align 4,,10
	.p2align 3
.L14:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L48
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r15, r14
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L45:
	mov	edi, DWORD PTR -68[rbp]
.L15:
	call	htonl@PLT
	mov	edi, eax
	call	std_mask@PLT
	mov	edx, DWORD PTR -68[rbp]
	mov	ecx, eax
	not	ecx
	test	ecx, edx
	je	.L17
	mov	eax, DWORD PTR HOST_MASK[rip]
	test	eax, eax
	jne	.L18
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L19:
	test	edx, edx
	jne	.L14
	mov	eax, DWORD PTR RIP_DEFAULT[rip]
	test	eax, eax
	jne	.L14
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L47:
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L14
	mov	edi, DWORD PTR RIP_DEFAULT[rip]
	mov	DWORD PTR -68[rbp], edi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L46:
	mov	edi, DWORD PTR -68[rbp]
	call	ntohl@PLT
	mov	DWORD PTR -68[rbp], eax
	jmp	.L12
.L48:
	call	__stack_chk_fail@PLT
.L44:
	mov	DWORD PTR -68[rbp], edx
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	getnet, .-getnet
	.comm	RIP_DEFAULT,4,4
	.comm	MAXHOSTNAMELEN,4,4
	.comm	HOST_MASK,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_parms.c_getnet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"default\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getnet
	.syntax unified
	.arm
	.fpu softvfp
	.type	getnet, %function
getnet:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L45
	mov	r6, r1
	ldr	ip, [r3]
	mov	r1, #47
	add	r3, ip, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L45+4
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r5, r0
	add	r8, ip, #1
	bl	strrchr
	subs	r4, r0, #0
	beq	.L23
	sub	r10, r4, r5
	cmp	r8, r10
	bgt	.L3
.L13:
	mov	r0, #0
.L1:
	ldr	r3, .L45+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r1, r5
	mov	r2, r10
	mov	r9, sp
	mov	r0, sp
	bl	memcpy
	mov	r3, #0
	mov	r0, r9
	strb	r3, [sp, r10]
	bl	getnetbyname
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L5
.L43:
	ldr	r3, [r0]
	tst	r3, #-16777216
	strne	r3, [fp, #-48]
	bne	.L11
	lsl	r2, r3, #8
	tst	r2, #-16777216
	bne	.L39
	lsl	r2, r3, #16
	tst	r2, #-16777216
	lsleq	r3, r3, #24
	streq	r3, [fp, #-48]
	bne	.L39
.L11:
	cmp	r4, #0
	beq	.L42
	mov	r0, r4
	mov	r2, #0
	sub	r1, fp, #44
	bl	strtoul
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r0, #32
	cmple	r3, #0
	bne	.L13
	cmp	r0, #0
	ldr	r2, [fp, #-48]
	beq	.L18
	ldr	r3, .L45+8
	rsb	r0, r0, #32
	ldr	r3, [r3]
	lsl	r3, r3, r0
.L16:
	cmp	r3, #0
	beq	.L18
.L17:
	ldr	r1, .L45+12
	ldr	r1, [r1]
	cmp	r1, r2
	beq	.L13
	bics	r1, r2, r3
	bne	.L13
	tst	r2, r3
	beq	.L13
	lsrs	r1, r2, #24
	beq	.L13
.L21:
	str	r2, [r6]
	mov	r0, #1
	str	r3, [r7]
	b	.L1
.L23:
	mov	r9, r5
	mov	r0, r9
	bl	getnetbyname
	cmp	r0, #0
	bne	.L43
.L5:
	mov	r0, r9
	sub	r1, fp, #48
	bl	inet_aton
	cmp	r0, #1
	beq	.L44
	cmp	r4, #0
	bne	.L13
	mov	r0, r9
	ldr	r1, .L45+16
	bl	strcasecmp
	cmp	r0, #0
	bne	.L13
	ldr	r3, .L45+12
	ldr	r0, [r3]
	str	r0, [fp, #-48]
	b	.L14
.L42:
	ldr	r0, [fp, #-48]
.L14:
	bl	htonl
	bl	std_mask
	ldr	r2, [fp, #-48]
	mov	r3, r0
	bics	r1, r2, r0
	beq	.L16
	ldr	r3, .L45+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	b	.L13
.L18:
	cmp	r2, #0
	bne	.L13
	ldr	r3, .L45+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	b	.L21
.L44:
	ldr	r0, [fp, #-48]
	bl	ntohl
	str	r0, [fp, #-48]
	b	.L11
.L41:
	bl	__stack_chk_fail
.L39:
	str	r2, [fp, #-48]
	b	.L11
.L46:
	.align	2
.L45:
	.word	MAXHOSTNAMELEN
	.word	.LC1
	.word	HOST_MASK
	.word	RIP_DEFAULT
	.word	.LC0
	.size	getnet, .-getnet
	.comm	RIP_DEFAULT,4,4
	.comm	MAXHOSTNAMELEN,4,4
	.comm	HOST_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
