	.file	"83504.c"
	.intel_syntax noprefix
	.text
	.local	passwd
	.comm	passwd,1,1
	.data
	.type	shell, @object
	.size	shell, 3
shell:
	.string	"sh"
	.local	pw
	.comm	pw,48,32
	.section	.rodata
.LC0:
	.string	"HOME"
.LC1:
	.string	"C:/"
.LC2:
	.string	"SHELL"
.LC3:
	.string	"COMSPEC"
	.text
	.globl	getpwent
	.type	getpwent, @function
getpwent:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	getlogin@PLT
	mov	QWORD PTR pw[rip], rax
	call	getuid@PLT
	mov	DWORD PTR pw[rip+16], eax
	call	getgid@PLT
	mov	DWORD PTR pw[rip+20], eax
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR pw[rip+32], rax
	mov	rax, QWORD PTR pw[rip+32]
	test	rax, rax
	jne	.L2
	lea	rax, .LC1[rip]
	mov	QWORD PTR pw[rip+32], rax
.L2:
	lea	rdi, .LC2[rip]
	call	getenv@PLT
	mov	QWORD PTR pw[rip+40], rax
	mov	rax, QWORD PTR pw[rip+40]
	test	rax, rax
	jne	.L3
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR pw[rip+40], rax
.L3:
	mov	rax, QWORD PTR pw[rip+40]
	test	rax, rax
	jne	.L4
	lea	rax, shell[rip]
	mov	QWORD PTR pw[rip+40], rax
.L4:
	call	getlogin@PLT
	mov	QWORD PTR pw[rip+24], rax
	lea	rax, passwd[rip]
	mov	QWORD PTR pw[rip+8], rax
	lea	rax, pw[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getpwent, .-getpwent
	.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	"83504.c"
	.text
	.local	passwd
	.comm	passwd,1,4
	.data
	.align	2
	.type	shell, %object
	.size	shell, 3
shell:
	.ascii	"sh\000"
	.local	pw
	.comm	pw,28,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"HOME\000"
	.align	2
.LC1:
	.ascii	"C:/\000"
	.align	2
.LC2:
	.ascii	"SHELL\000"
	.align	2
.LC3:
	.ascii	"COMSPEC\000"
	.text
	.align	2
	.global	getpwent
	.syntax unified
	.arm
	.fpu softvfp
	.type	getpwent, %function
getpwent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	getlogin
	mov	r3, r0
	ldr	r2, .L6
	str	r3, [r2]
	bl	getuid
	mov	r3, r0
	ldr	r2, .L6
	str	r3, [r2, #8]
	bl	getgid
	mov	r3, r0
	ldr	r2, .L6
	str	r3, [r2, #12]
	ldr	r0, .L6+4
	bl	getenv
	mov	r3, r0
	ldr	r2, .L6
	str	r3, [r2, #20]
	ldr	r3, .L6
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L6
	ldr	r2, .L6+8
	str	r2, [r3, #20]
.L2:
	ldr	r0, .L6+12
	bl	getenv
	mov	r3, r0
	ldr	r2, .L6
	str	r3, [r2, #24]
	ldr	r3, .L6
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L6+16
	bl	getenv
	mov	r3, r0
	ldr	r2, .L6
	str	r3, [r2, #24]
.L3:
	ldr	r3, .L6
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L6
	ldr	r2, .L6+20
	str	r2, [r3, #24]
.L4:
	bl	getlogin
	mov	r3, r0
	ldr	r2, .L6
	str	r3, [r2, #16]
	ldr	r3, .L6
	ldr	r2, .L6+24
	str	r2, [r3, #4]
	ldr	r3, .L6
	mov	r0, r3
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	pw
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	shell
	.word	passwd
	.size	getpwent, .-getpwent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
