	.file	"125374.c"
	.intel_syntax noprefix
	.text
	.data
	.align 8
	.type	GROUP, @object
	.size	GROUP, 11
GROUP:
	.string	"/etc/group"
	.local	grf
	.comm	grf,8,8
	.local	line
	.comm	line,8193,32
	.local	group
	.comm	group,32,32
	.local	gr_mem
	.comm	gr_mem,800,32
	.section	.rodata
.LC0:
	.string	"r"
	.text
	.globl	setgrent
	.type	setgrent, @function
setgrent:
.LFB0:
	.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 grf[rip]
	test	rax, rax
	jne	.L2
	lea	rsi, .LC0[rip]
	lea	rdi, GROUP[rip]
	call	fopen@PLT
	mov	QWORD PTR grf[rip], rax
	jmp	.L4
.L2:
	mov	rax, QWORD PTR grf[rip]
	mov	rdi, rax
	call	rewind@PLT
.L4:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	setgrent, .-setgrent
	.globl	endgrent
	.type	endgrent, @function
endgrent:
.LFB1:
	.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 grf[rip]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR grf[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR grf[rip], 0
.L7:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	endgrent, .-endgrent
	.type	grskip, @function
grskip:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	mov	edx, esi
	jmp	.L9
.L11:
	add	rax, 1
.L9:
	movzx	ecx, BYTE PTR [rax]
	test	cl, cl
	je	.L10
	movzx	ecx, BYTE PTR [rax]
	movsx	ecx, cl
	cmp	edx, ecx
	jne	.L11
.L10:
	movzx	edx, BYTE PTR [rax]
	test	dl, dl
	je	.L12
	mov	rdx, rax
	lea	rax, 1[rdx]
	mov	BYTE PTR [rdx], 0
.L12:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	grskip, .-grskip
	.globl	getgrent
	.type	getgrent, @function
getgrent:
.LFB3:
	.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, QWORD PTR grf[rip]
	test	rax, rax
	jne	.L15
	lea	rsi, .LC0[rip]
	lea	rdi, GROUP[rip]
	call	fopen@PLT
	mov	QWORD PTR grf[rip], rax
	mov	rax, QWORD PTR grf[rip]
	test	rax, rax
	jne	.L15
	mov	eax, 0
	jmp	.L16
.L15:
	mov	rax, QWORD PTR grf[rip]
	mov	rdx, rax
	mov	esi, 8192
	lea	rdi, line[rip]
	call	fgets@PLT
	mov	rbx, rax
	test	rbx, rbx
	jne	.L17
	mov	eax, 0
	jmp	.L16
.L17:
	mov	QWORD PTR group[rip], rbx
	mov	esi, 58
	mov	rdi, rbx
	call	grskip
	mov	rbx, rax
	mov	esi, 58
	mov	rdi, rbx
	call	grskip
	mov	rbx, rax
	mov	rdi, rbx
	mov	eax, 0
	call	atoi@PLT
	mov	DWORD PTR group[rip+16], eax
	lea	rax, gr_mem[rip]
	mov	QWORD PTR group[rip+24], rax
	mov	esi, 58
	mov	rdi, rbx
	call	grskip
	mov	rbx, rax
	mov	esi, 10
	mov	rdi, rbx
	call	grskip
	lea	r12, gr_mem[rip]
	jmp	.L18
.L19:
	mov	rax, r12
	lea	r12, 8[rax]
	mov	QWORD PTR [rax], rbx
	mov	esi, 44
	mov	rdi, rbx
	call	grskip
	mov	rbx, rax
.L18:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L19
	mov	QWORD PTR [r12], 0
	lea	rax, group[rip]
.L16:
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	getgrent, .-getgrent
	.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	"125374.c"
	.text
	.data
	.align	2
	.type	GROUP, %object
	.size	GROUP, 11
GROUP:
	.ascii	"/etc/group\000"
	.local	grf
	.comm	grf,4,4
	.local	line
	.comm	line,8193,4
	.local	group
	.comm	group,16,4
	.local	gr_mem
	.comm	gr_mem,400,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.text
	.align	2
	.global	setgrent
	.syntax unified
	.arm
	.fpu softvfp
	.type	setgrent, %function
setgrent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	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	.L4
.L2:
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r0, r3
	bl	rewind
.L4:
	nop
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	grf
	.word	.LC0
	.word	GROUP
	.size	setgrent, .-setgrent
	.align	2
	.global	endgrent
	.syntax unified
	.arm
	.fpu softvfp
	.type	endgrent, %function
endgrent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L10
	mov	r2, #0
	str	r2, [r3]
.L9:
	nop
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	grf
	.size	endgrent, .-endgrent
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	grskip, %function
grskip:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, r0
	b	.L13
.L15:
	add	r3, r3, #1
.L13:
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L14
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r1, r2
	bne	.L15
.L14:
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L16
	mov	r2, r3
	add	r3, r2, #1
	mov	r1, #0
	strb	r1, [r2]
.L16:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	grskip, .-grskip
	.align	2
	.global	getgrent
	.syntax unified
	.arm
	.fpu softvfp
	.type	getgrent, %function
getgrent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	ldr	r3, .L24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	ldr	r1, .L24+4
	ldr	r0, .L24+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L24
	str	r3, [r2]
	ldr	r3, .L24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	b	.L20
.L19:
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #8192
	ldr	r0, .L24+12
	bl	fgets
	mov	r4, r0
	cmp	r4, #0
	bne	.L21
	mov	r3, #0
	b	.L20
.L21:
	ldr	r3, .L24+16
	str	r4, [r3]
	mov	r1, #58
	mov	r0, r4
	bl	grskip
	mov	r4, r0
	mov	r1, #58
	mov	r0, r4
	bl	grskip
	mov	r4, r0
	mov	r0, r4
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L24+16
	str	r2, [r3, #8]
	ldr	r3, .L24+16
	ldr	r2, .L24+20
	str	r2, [r3, #12]
	mov	r1, #58
	mov	r0, r4
	bl	grskip
	mov	r4, r0
	mov	r1, #10
	mov	r0, r4
	bl	grskip
	ldr	r5, .L24+20
	b	.L22
.L23:
	mov	r3, r5
	add	r5, r3, #4
	str	r4, [r3]
	mov	r1, #44
	mov	r0, r4
	bl	grskip
	mov	r4, r0
.L22:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L23
	mov	r3, #0
	str	r3, [r5]
	ldr	r3, .L24+16
.L20:
	mov	r0, r3
	pop	{r4, r5, fp, pc}
.L25:
	.align	2
.L24:
	.word	grf
	.word	.LC0
	.word	GROUP
	.word	line
	.word	group
	.word	gr_mem
	.size	getgrent, .-getgrent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
