	.file	"584240.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Beginning test of libc/pwd...\n"
	.align 8
.LC1:
	.string	"=> Testing setpwent(), getpwent(), endpwent()...\n"
.LC2:
	.string	"-> setpwent()...\n"
.LC3:
	.string	"-> getpwent()...\n"
	.align 8
.LC4:
	.string	"********************************************************************************"
.LC5:
	.string	"pw_name\t\t: %s\n"
.LC6:
	.string	"pw_passwd\t: %s\n"
.LC7:
	.string	"pw_uid\t\t: %d\n"
.LC8:
	.string	"pw_gid\t\t: %d\n"
.LC9:
	.string	"pw_gecos\t: %s\n"
.LC10:
	.string	"pw_dir\t\t: %s\n"
.LC11:
	.string	"pw_shell\t: %s\n"
.LC12:
	.string	"-> endpwent()...\n"
	.align 8
.LC13:
	.string	"=> Test of setpwent(), getpwent(), endpwent() complete.\n"
	.align 8
.LC14:
	.string	"=> Testing getpwuid(), getpwnam()...\n"
.LC15:
	.string	"-> getpwuid()...\n"
.LC16:
	.string	"-> getpwuid(%d)...\n"
.LC17:
	.string	"-> getpwnam()...\n"
.LC18:
	.string	"root"
.LC19:
	.string	">NULL<"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 49
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	call	setpwent@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L2:
	call	getpwent@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	call	endpwent@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 56
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -12[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L5:
	add	DWORD PTR -12[rbp], 1
.L4:
	cmp	DWORD PTR -12[rbp], 999
	jle	.L6
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	lea	rdi, .LC18[rip]
	call	getpwnam@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L7
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"584240.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Beginning test of libc/pwd...\012\000"
	.align	2
.LC1:
	.ascii	"=> Testing setpwent(), getpwent(), endpwent()...\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"-> setpwent()...\012\000"
	.align	2
.LC3:
	.ascii	"-> getpwent()...\012\000"
	.align	2
.LC4:
	.ascii	"***************************************************"
	.ascii	"*****************************\000"
	.align	2
.LC5:
	.ascii	"pw_name\011\011: %s\012\000"
	.align	2
.LC6:
	.ascii	"pw_passwd\011: %s\012\000"
	.align	2
.LC7:
	.ascii	"pw_uid\011\011: %d\012\000"
	.align	2
.LC8:
	.ascii	"pw_gid\011\011: %d\012\000"
	.align	2
.LC9:
	.ascii	"pw_gecos\011: %s\012\000"
	.align	2
.LC10:
	.ascii	"pw_dir\011\011: %s\012\000"
	.align	2
.LC11:
	.ascii	"pw_shell\011: %s\012\000"
	.align	2
.LC12:
	.ascii	"-> endpwent()...\012\000"
	.align	2
.LC13:
	.ascii	"=> Test of setpwent(), getpwent(), endpwent() compl"
	.ascii	"ete.\012\000"
	.align	2
.LC14:
	.ascii	"=> Testing getpwuid(), getpwnam()...\012\000"
	.align	2
.LC15:
	.ascii	"-> getpwuid()...\012\000"
	.align	2
.LC16:
	.ascii	"-> getpwuid(%d)...\012\000"
	.align	2
.LC17:
	.ascii	"-> getpwnam()...\012\000"
	.align	2
.LC18:
	.ascii	"root\000"
	.align	2
.LC19:
	.ascii	">NULL<\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L10+4
	bl	fwrite
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #49
	mov	r1, #1
	ldr	r0, .L10+8
	bl	fwrite
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L10+12
	bl	fwrite
	bl	setpwent
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L10+16
	bl	fwrite
	ldr	r0, .L10+20
	bl	puts
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L10+32
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r1, r3
	ldr	r0, .L10+36
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, .L10+40
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L10+44
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	mov	r1, r3
	ldr	r0, .L10+48
	bl	printf
	ldr	r0, .L10+20
	bl	puts
.L2:
	bl	getpwent
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L10+52
	bl	fwrite
	bl	endpwent
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #56
	mov	r1, #1
	ldr	r0, .L10+56
	bl	fwrite
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L10+60
	bl	fwrite
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L10+64
	bl	fwrite
	ldr	r0, .L10+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L4
.L6:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L10+68
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	getpwuid
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L10+32
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r1, r3
	ldr	r0, .L10+36
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, .L10+40
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L10+44
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	mov	r1, r3
	ldr	r0, .L10+48
	bl	printf
	ldr	r0, .L10+20
	bl	puts
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #1000
	blt	.L6
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L10+72
	bl	fwrite
	ldr	r0, .L10+76
	bl	getpwnam
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L10+80
	bl	puts
	b	.L8
.L7:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L10+32
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r1, r3
	ldr	r0, .L10+36
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, .L10+40
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r1, r3
	ldr	r0, .L10+44
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	mov	r1, r3
	ldr	r0, .L10+48
	bl	printf
.L8:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	stdout
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
