	.file	"957724.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
	.type	NETDB, @object
	.size	NETDB, 14
NETDB:
	.string	"/etc/networks"
	.local	netf
	.comm	netf,8,8
	.local	line
	.comm	line,8,8
	.local	net
	.comm	net,24,16
	.local	net_aliases
	.comm	net_aliases,280,32
	.globl	_net_stayopen
	.bss
	.align 4
	.type	_net_stayopen, @object
	.size	_net_stayopen, 4
_net_stayopen:
	.zero	4
	.section	.rodata
.LC0:
	.string	"r"
	.text
	.globl	setnetent
	.type	setnetent, @function
setnetent:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR netf[rip]
	test	rax, rax
	jne	.L2
	lea	rsi, .LC0[rip]
	lea	rdi, NETDB[rip]
	call	fopen@PLT
	mov	QWORD PTR netf[rip], rax
	jmp	.L3
.L2:
	mov	rax, QWORD PTR netf[rip]
	mov	rdi, rax
	call	rewind@PLT
.L3:
	mov	eax, DWORD PTR _net_stayopen[rip]
	or	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR _net_stayopen[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setnetent, .-setnetent
	.globl	endnetent
	.type	endnetent, @function
endnetent:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR netf[rip]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR netf[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR netf[rip], 0
.L6:
	mov	DWORD PTR _net_stayopen[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	endnetent, .-endnetent
	.type	any, @function
any:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, rdi
	mov	QWORD PTR -24[rbp], rsi
	jmp	.L8
.L13:
	mov	rbx, QWORD PTR -24[rbp]
	jmp	.L9
.L12:
	movzx	edx, BYTE PTR [rbx]
	cmp	r12b, dl
	jne	.L10
	jmp	.L11
.L10:
	add	rbx, 1
.L9:
	movzx	edx, BYTE PTR [rbx]
	test	dl, dl
	jne	.L12
	add	rax, 1
.L8:
	movzx	r12d, BYTE PTR [rax]
	test	r12b, r12b
	jne	.L13
	mov	eax, 0
.L11:
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	any, .-any
	.section	.rodata
.LC1:
	.string	"#\n"
.LC2:
	.string	" \t"
	.text
	.globl	getnetent
	.type	getnetent, @function
getnetent:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR netf[rip]
	test	rax, rax
	jne	.L33
	lea	rsi, .LC0[rip]
	lea	rdi, NETDB[rip]
	call	fopen@PLT
	mov	QWORD PTR netf[rip], rax
	mov	rax, QWORD PTR netf[rip]
	test	rax, rax
	jne	.L33
	mov	eax, 0
	jmp	.L16
.L33:
	nop
.L15:
.L20:
	mov	rax, QWORD PTR line[rip]
	test	rax, rax
	jne	.L17
	mov	edi, 8193
	call	malloc@PLT
	mov	QWORD PTR line[rip], rax
	mov	rax, QWORD PTR line[rip]
	test	rax, rax
	jne	.L17
	call	abort@PLT
.L17:
	mov	rdx, QWORD PTR netf[rip]
	mov	rax, QWORD PTR line[rip]
	mov	esi, 8192
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L18
	mov	eax, 0
	jmp	.L16
.L18:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	jne	.L19
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	any
	mov	rbx, rax
	test	rbx, rbx
	jne	.L21
	jmp	.L20
.L21:
	mov	BYTE PTR [rbx], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR net[rip], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	any
	mov	rbx, rax
	test	rbx, rbx
	jne	.L22
	jmp	.L20
.L22:
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 0
	jmp	.L23
.L24:
	add	rbx, 1
.L23:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 32
	je	.L24
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 9
	je	.L24
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	any
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	mov	BYTE PTR [rax], 0
.L25:
	mov	rdi, rbx
	call	inet_network@PLT
	mov	DWORD PTR net[rip+20], eax
	mov	DWORD PTR net[rip+16], 2
	lea	rax, net_aliases[rip]
	mov	QWORD PTR net[rip+8], rax
	mov	r12, QWORD PTR net[rip+8]
	cmp	QWORD PTR -24[rbp], 0
	je	.L27
	mov	rbx, QWORD PTR -24[rbp]
	jmp	.L27
.L32:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 32
	je	.L28
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 9
	jne	.L29
.L28:
	add	rbx, 1
	jmp	.L27
.L29:
	lea	rax, net_aliases[rip+272]
	cmp	r12, rax
	jnb	.L30
	mov	rax, r12
	lea	r12, 8[rax]
	mov	QWORD PTR [rax], rbx
.L30:
	lea	rsi, .LC2[rip]
	mov	rdi, rbx
	call	any
	mov	rbx, rax
	test	rbx, rbx
	je	.L27
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 0
.L27:
	test	rbx, rbx
	je	.L31
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L32
.L31:
	mov	QWORD PTR [r12], 0
	lea	rax, net[rip]
.L16:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getnetent, .-getnetent
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"957724.c"
	.text
	.section	.rodata
	.align	2
	.type	NETDB, %object
	.size	NETDB, 14
NETDB:
	.ascii	"/etc/networks\000"
	.local	netf
	.comm	netf,4,4
	.local	line
	.comm	line,4,4
	.local	net
	.comm	net,16,4
	.local	net_aliases
	.comm	net_aliases,140,4
	.comm	_net_stayopen,4,4
	.align	2
.LC0:
	.ascii	"r\000"
	.text
	.align	2
	.global	setnetent
	.syntax unified
	.arm
	.fpu softvfp
	.type	setnetent, %function
setnetent:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r1, .L5+4
	ldr	r0, .L5+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L5
	str	r3, [r2]
	b	.L3
.L2:
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r0, r3
	bl	rewind
.L3:
	ldr	r3, .L5+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	orr	r3, r2, r3
	ldr	r2, .L5+12
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	netf
	.word	.LC0
	.word	NETDB
	.word	_net_stayopen
	.size	setnetent, .-setnetent
	.align	2
	.global	endnetent
	.syntax unified
	.arm
	.fpu softvfp
	.type	endnetent, %function
endnetent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L9
	mov	r2, #0
	str	r2, [r3]
.L8:
	ldr	r3, .L9+4
	mov	r2, #0
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	netf
	.word	_net_stayopen
	.size	endnetent, .-endnetent
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	any, %function
any:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #12
	mov	r3, r0
	str	r1, [fp, #-16]
	b	.L12
.L17:
	ldr	r4, [fp, #-16]
	b	.L13
.L16:
	ldrb	r2, [r4]	@ zero_extendqisi2
	cmp	r5, r2
	bne	.L14
	b	.L15
.L14:
	add	r4, r4, #1
.L13:
	ldrb	r2, [r4]	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L16
	add	r3, r3, #1
.L12:
	ldrb	r5, [r3]	@ zero_extendqisi2
	cmp	r5, #0
	bne	.L17
	mov	r3, #0
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
	.size	any, .-any
	.section	.rodata
	.align	2
.LC1:
	.ascii	"#\012\000"
	.align	2
.LC2:
	.ascii	" \011\000"
	.text
	.align	2
	.global	getnetent
	.syntax unified
	.arm
	.fpu softvfp
	.type	getnetent, %function
getnetent:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	ldr	r3, .L38
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L37
	ldr	r1, .L38+4
	ldr	r0, .L38+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L38
	str	r3, [r2]
	ldr	r3, .L38
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L37
	mov	r3, #0
	b	.L20
.L37:
	nop
.L19:
.L24:
	ldr	r3, .L38+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L38+16
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L38+12
	str	r2, [r3]
	ldr	r3, .L38+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	bl	abort
.L21:
	ldr	r3, .L38+12
	ldr	r3, [r3]
	ldr	r2, .L38
	ldr	r2, [r2]
	mov	r1, #8192
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	b	.L20
.L22:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L23
	b	.L24
.L23:
	ldr	r1, .L38+20
	ldr	r0, [fp, #-16]
	bl	any
	mov	r4, r0
	cmp	r4, #0
	bne	.L25
	b	.L24
.L25:
	mov	r3, #0
	strb	r3, [r4]
	ldr	r2, .L38+24
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r1, .L38+28
	ldr	r0, [fp, #-16]
	bl	any
	mov	r4, r0
	cmp	r4, #0
	bne	.L26
	b	.L24
.L26:
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	b	.L27
.L28:
	add	r4, r4, #1
.L27:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L28
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L28
	ldr	r1, .L38+28
	mov	r0, r4
	bl	any
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
.L29:
	mov	r0, r4
	bl	inet_network
	mov	r3, r0
	ldr	r2, .L38+24
	str	r3, [r2, #12]
	ldr	r3, .L38+24
	mov	r2, #2
	str	r2, [r3, #8]
	ldr	r3, .L38+24
	ldr	r2, .L38+32
	str	r2, [r3, #4]
	ldr	r3, .L38+24
	ldr	r5, [r3, #4]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L31
	ldr	r4, [fp, #-16]
	b	.L31
.L36:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L32
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L33
.L32:
	add	r4, r4, #1
	b	.L31
.L33:
	ldr	r3, .L38+36
	cmp	r5, r3
	bcs	.L34
	mov	r3, r5
	add	r5, r3, #4
	str	r4, [r3]
.L34:
	ldr	r1, .L38+28
	mov	r0, r4
	bl	any
	mov	r4, r0
	cmp	r4, #0
	beq	.L31
	mov	r3, r4
	add	r4, r3, #1
	mov	r2, #0
	strb	r2, [r3]
.L31:
	cmp	r4, #0
	beq	.L35
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L36
.L35:
	mov	r3, #0
	str	r3, [r5]
	ldr	r3, .L38+24
.L20:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L39:
	.align	2
.L38:
	.word	netf
	.word	.LC0
	.word	NETDB
	.word	line
	.word	8193
	.word	.LC1
	.word	net
	.word	.LC2
	.word	net_aliases
	.word	net_aliases+136
	.size	getnetent, .-getnetent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
