	.file	"551741.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ig"
.LC1:
	.string	"%d "
.LC2:
	.string	"%s"
.LC3:
	.string	" ["
.LC4:
	.string	", "
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -54[rbp], 0
	mov	BYTE PTR -53[rbp], 0
	jmp	.L2
.L5:
	cmp	DWORD PTR -44[rbp], 103
	je	.L3
	cmp	DWORD PTR -44[rbp], 105
	jne	.L18
	mov	BYTE PTR -54[rbp], 1
	jmp	.L2
.L3:
	mov	BYTE PTR -53[rbp], 1
	jmp	.L2
.L18:
	nop
.L2:
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -68[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L5
	jmp	.L6
.L15:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 7
	jne	.L6
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 44
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L6
	cmp	BYTE PTR -54[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -53[rbp], 0
	je	.L8
	mov	DWORD PTR -52[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -52[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	rdi, rax
	call	getgrouplist@PLT
	cmp	eax, -1
	jne	.L8
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -52[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getgrouplist@PLT
	mov	edx, DWORD PTR -52[rbp]
	cmp	eax, edx
	jne	.L10
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -48[rbp], 0
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	getgrgid@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L12
	cmp	DWORD PTR -48[rbp], 0
	je	.L13
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	add	DWORD PTR -48[rbp], 1
.L11:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L14
	mov	edi, 93
	call	putchar@PLT
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
.L8:
	mov	edi, 10
	call	putchar@PLT
.L6:
	call	getutxent@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L15
	call	endutxent@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"551741.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ig\000"
	.align	2
.LC1:
	.ascii	"%d \000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	" [\000"
	.align	2
.LC4:
	.ascii	", \000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-38]
	mov	r3, #0
	strb	r3, [fp, #-37]
	b	.L2
.L5:
	ldr	r3, [fp, #-28]
	cmp	r3, #103
	beq	.L3
	ldr	r3, [fp, #-28]
	cmp	r3, #105
	bne	.L18
	mov	r3, #1
	strb	r3, [fp, #-38]
	b	.L2
.L3:
	mov	r3, #1
	strb	r3, [fp, #-37]
	b	.L2
.L18:
	nop
.L2:
	ldr	r2, .L19+4
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	getopt
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L5
	b	.L6
.L15:
	ldr	r3, [fp, #-24]
	ldrsh	r3, [r3]
	cmp	r3, #7
	bne	.L6
	ldr	r3, [fp, #-24]
	add	r3, r3, #44
	mov	r0, r3
	bl	getpwnam
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L6
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L19+8
	bl	printf
.L7:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+12
	bl	printf
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-20]
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #12]
	sub	r3, fp, #36
	mov	r2, #0
	bl	getgrouplist
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-20]
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #12]
	sub	r3, fp, #36
	ldr	r2, [fp, #-16]
	bl	getgrouplist
	mov	r2, r0
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bne	.L10
	ldr	r0, .L19+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L11
.L14:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	getgrgid
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L19+20
	bl	printf
.L13:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+12
	bl	printf
.L12:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L11:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L14
	mov	r0, #93
	bl	putchar
.L10:
	ldr	r0, [fp, #-16]
	bl	free
.L8:
	mov	r0, #10
	bl	putchar
.L6:
	bl	getutxent
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L15
	bl	endutxent
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
