	.file	"808582.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"root"
.LC1:
	.string	"+u:"
.LC2:
	.string	"Authentication failure"
.LC3:
	.string	"get_groups_for_user"
.LC4:
	.string	"setgroups"
.LC5:
	.string	"setreuid"
.LC6:
	.string	"setregid"
.LC7:
	.string	"execvp"
	.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
	lea	r11, -262144[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 64
	mov	DWORD PTR -262196[rbp], edi
	mov	QWORD PTR -262208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -262196[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR -262208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	helpAndLeave
.L2:
	lea	rax, .LC0[rip]
	mov	QWORD PTR -262176[rbp], rax
	mov	DWORD PTR opterr[rip], 0
	jmp	.L3
.L5:
	cmp	DWORD PTR -262184[rbp], 63
	je	.L4
	cmp	DWORD PTR -262184[rbp], 117
	jne	.L3
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -262176[rbp], rax
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -262208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	helpAndLeave
	nop
.L3:
	mov	rcx, QWORD PTR -262208[rbp]
	mov	eax, DWORD PTR -262196[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -262184[rbp], eax
	cmp	DWORD PTR -262184[rbp], -1
	jne	.L5
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -262196[rbp], eax
	jne	.L6
	mov	rax, QWORD PTR -262208[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	helpAndLeave
.L6:
	lea	rdx, -262188[rbp]
	lea	rcx, -262192[rbp]
	mov	rax, QWORD PTR -262176[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	authenticate
	xor	eax, 1
	test	al, al
	je	.L7
	lea	rdi, .LC2[rip]
	call	fatal
.L7:
	mov	eax, DWORD PTR -262192[rbp]
	lea	rdx, -262160[rbp]
	mov	esi, 65536
	mov	edi, eax
	call	get_groups_for_user
	mov	DWORD PTR -262180[rbp], eax
	cmp	DWORD PTR -262180[rbp], -1
	jne	.L8
	lea	rdi, .LC3[rip]
	call	pexit
.L8:
	mov	eax, DWORD PTR -262180[rbp]
	cdqe
	lea	rdx, -262160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	setgroups@PLT
	cmp	eax, -1
	jne	.L9
	lea	rdi, .LC4[rip]
	call	pexit
.L9:
	mov	edx, DWORD PTR -262192[rbp]
	mov	eax, DWORD PTR -262192[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setreuid@PLT
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC5[rip]
	call	pexit
.L10:
	mov	edx, DWORD PTR -262188[rbp]
	mov	eax, DWORD PTR -262188[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setregid@PLT
	cmp	eax, -1
	jne	.L11
	lea	rdi, .LC6[rip]
	call	pexit
.L11:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -262208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -262168[rbp], rax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -262208[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -262168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC7[rip]
	call	pexit
.L12:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC8:
	.string	"Could not read password record. Double check that the username was entered correctly."
	.align 8
.LC9:
	.string	"No permission to read the shadow password file."
.LC10:
	.string	"[douser] password for %s: "
.LC11:
	.string	"crypt"
	.text
	.type	authenticate, @function
authenticate:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	QWORD PTR -8264[rbp], rdi
	mov	QWORD PTR -8272[rbp], rsi
	mov	QWORD PTR -8280[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -8264[rbp]
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -8240[rbp], rax
	cmp	QWORD PTR -8240[rbp], 0
	jne	.L15
	lea	rdi, .LC8[rip]
	call	fatal
.L15:
	mov	rax, QWORD PTR -8264[rbp]
	mov	rdi, rax
	call	getspnam@PLT
	mov	QWORD PTR -8232[rbp], rax
	cmp	QWORD PTR -8232[rbp], 0
	jne	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	jne	.L16
	lea	rdi, .LC9[rip]
	call	fatal
.L16:
	cmp	QWORD PTR -8232[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -8232[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8240[rbp]
	mov	QWORD PTR 8[rax], rdx
.L17:
	mov	rdx, QWORD PTR -8264[rbp]
	lea	rax, -8208[rbp]
	mov	rcx, rdx
	lea	rdx, .LC10[rip]
	mov	esi, 8192
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	getpass@PLT
	mov	QWORD PTR -8224[rbp], rax
	mov	rax, QWORD PTR -8240[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crypt@PLT
	mov	QWORD PTR -8216[rbp], rax
	mov	rax, QWORD PTR -8224[rbp]
	mov	QWORD PTR -8248[rbp], rax
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -8248[rbp]
	mov	BYTE PTR [rax], 0
	add	QWORD PTR -8248[rbp], 1
.L18:
	mov	rax, QWORD PTR -8248[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L19
	cmp	QWORD PTR -8216[rbp], 0
	jne	.L20
	lea	rdi, .LC11[rip]
	call	pexit
.L20:
	mov	rax, QWORD PTR -8240[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8216[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -8240[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -8272[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8240[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -8280[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	jmp	.L23
.L21:
	mov	eax, 0
.L23:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	authenticate, .-authenticate
	.section	.rodata
.LC12:
	.string	"getpwnam"
.LC13:
	.string	"unknown user: %s\n"
	.text
	.type	user_id_from_name, @function
user_id_from_name:
.LFB8:
	.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	QWORD PTR -24[rbp], rdi
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -8[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L26
	lea	rdi, .LC12[rip]
	call	pexit
	jmp	.L27
.L26:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	user_id_from_name, .-user_id_from_name
	.type	get_groups_for_user, @function
get_groups_for_user:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	DWORD PTR -24[rbp], 0
	call	setgrent@PLT
	call	getgrent@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L30
.L37:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L31
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	user_id_from_name
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jne	.L32
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jge	.L33
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -24[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR [rdx], eax
	jmp	.L34
.L33:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 12
	mov	eax, -1
	jmp	.L35
.L32:
	add	QWORD PTR -8[rbp], 8
.L31:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L36
.L34:
	call	getgrent@PLT
	mov	QWORD PTR -16[rbp], rax
.L30:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L37
	call	endgrent@PLT
	mov	eax, DWORD PTR -24[rbp]
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_groups_for_user, .-get_groups_for_user
	.section	.rodata
.LC14:
	.string	"%s\n"
	.text
	.type	fatal, @function
fatal:
.LFB10:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.size	fatal, .-fatal
	.section	.rodata
.LC15:
	.string	"Usage: %s [-u user] command\n"
	.text
	.type	helpAndLeave, @function
helpAndLeave:
.LFB11:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR stderr[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L40
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -8[rbp], rax
.L40:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	helpAndLeave, .-helpAndLeave
	.type	pexit, @function
pexit:
.LFB12:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.size	pexit, .-pexit
	.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	"808582.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"root\000"
	.align	2
.LC1:
	.ascii	"+u:\000"
	.align	2
.LC2:
	.ascii	"Authentication failure\000"
	.align	2
.LC3:
	.ascii	"get_groups_for_user\000"
	.align	2
.LC4:
	.ascii	"setgroups\000"
	.align	2
.LC5:
	.ascii	"setreuid\000"
	.align	2
.LC6:
	.ascii	"setregid\000"
	.align	2
.LC7:
	.ascii	"execvp\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 262184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #262144
	sub	sp, sp, #44
	sub	r3, fp, #262144
	sub	r3, r3, #12
	str	r0, [r3, #-36]
	sub	r3, fp, #262144
	sub	r3, r3, #12
	str	r1, [r3, #-40]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmp	r3, #1
	bgt	.L2
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	helpAndLeave
.L2:
	sub	r3, fp, #262144
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L14+4
	str	r3, [r2, #-20]
	ldr	r3, .L14+8
	mov	r2, #0
	str	r2, [r3]
	b	.L3
.L5:
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #63
	beq	.L4
	sub	r3, fp, #262144
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	str	r3, [r2, #-20]
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #117
	bne	.L3
	sub	r3, fp, #262144
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L14+12
	ldr	r3, [r3]
	str	r3, [r2, #-20]
	b	.L3
.L4:
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	helpAndLeave
	nop
.L3:
	sub	r3, fp, #262144
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #262144
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r2, .L14+16
	ldr	r1, [r1, #-40]
	ldr	r0, [r3, #-36]
	bl	getopt
	str	r0, [r4, #-16]
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L14+20
	ldr	r3, [r3]
	sub	r2, fp, #262144
	sub	r2, r2, #12
	ldr	r2, [r2, #-36]
	cmp	r2, r3
	bne	.L6
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	helpAndLeave
.L6:
	sub	r2, fp, #262144
	sub	r2, r2, #12
	sub	r2, r2, #24
	sub	r3, fp, #262144
	sub	r3, r3, #12
	sub	r3, r3, #28
	sub	r1, fp, #262144
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-20]
	bl	authenticate
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L14+24
	bl	fatal
.L7:
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	sub	r3, fp, #262144
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #262144
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	mov	r1, #65536
	bl	get_groups_for_user
	str	r0, [r4, #-12]
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L14+28
	bl	pexit
.L8:
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r2, [r3, #-12]
	sub	r3, fp, #262144
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	setgroups
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L14+32
	bl	pexit
.L9:
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	sub	r2, fp, #262144
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	mov	r1, r2
	mov	r0, r3
	bl	setreuid
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L14+36
	bl	pexit
.L10:
	sub	r3, fp, #262144
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	sub	r2, fp, #262144
	sub	r2, r2, #12
	ldr	r2, [r2, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	setregid
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L14+40
	bl	pexit
.L11:
	ldr	r3, .L14+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #262144
	sub	r2, r2, #12
	ldr	r2, [r2, #-40]
	add	r3, r2, r3
	sub	r2, fp, #262144
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-8]
	ldr	r3, .L14+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #262144
	sub	r2, r2, #12
	ldr	r2, [r2, #-40]
	add	r3, r2, r3
	sub	r2, fp, #262144
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-8]
	bl	execvp
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L14+44
	bl	pexit
.L12:
	mov	r0, #0
	bl	exit
.L15:
	.align	2
.L14:
	.word	.LC8
	.word	.LC0
	.word	opterr
	.word	optarg
	.word	.LC1
	.word	optind
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Could not read password record. Double check that t"
	.ascii	"he username was entered correctly.\000"
	.align	2
.LC10:
	.ascii	"No permission to read the shadow password file.\000"
	.align	2
.LC11:
	.ascii	"[douser] password for %s: \000"
	.align	2
.LC12:
	.ascii	"crypt\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	authenticate, %function
authenticate:
	@ args = 0, pretend = 0, frame = 8232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #44
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r2, [r3, #-36]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	getpwnam
	str	r0, [r4, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L27+4
	bl	fatal
.L17:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	getspnam
	str	r0, [r4, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	bne	.L18
	ldr	r0, .L27+8
	bl	fatal
.L18:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldr	r2, [r3, #4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	str	r2, [r3, #4]
.L19:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-28]
	ldr	r2, .L27+12
	mov	r1, #8192
	bl	snprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	getpass
	str	r0, [r4, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	ldr	r3, [r3, #4]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-12]
	bl	crypt
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	str	r3, [r2, #-24]
	b	.L20
.L21:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	add	r3, r3, #1
	str	r3, [r2, #-24]
.L20:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L21
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L27+16
	bl	pexit
.L22:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	ldr	r3, [r3, #4]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [r0, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	ldr	r2, [r3, #8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	ldr	r2, [r3, #12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	str	r2, [r3]
	mov	r3, #1
	b	.L25
.L23:
	mov	r3, #0
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC13
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	authenticate, .-authenticate
	.section	.rodata
	.align	2
.LC14:
	.ascii	"getpwnam\000"
	.align	2
.LC15:
	.ascii	"unknown user: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	user_id_from_name, %function
user_id_from_name:
	@ 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]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	getpwnam
	str	r0, [fp, #-8]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L30
	ldr	r0, .L33
	bl	pexit
	b	.L31
.L30:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L31
	ldr	r3, .L33+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L33+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L31:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC14
	.word	stderr
	.word	.LC15
	.size	user_id_from_name, .-user_id_from_name
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_groups_for_user, %function
get_groups_for_user:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	bl	setgrent
	bl	getgrent
	str	r0, [fp, #-20]
	b	.L36
.L43:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	b	.L37
.L42:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	user_id_from_name
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L38
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L39
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r2, [r2, #8]
	str	r2, [r3]
	b	.L40
.L39:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #12
	str	r2, [r3]
	mvn	r3, #0
	b	.L41
.L38:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
.L37:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L42
.L40:
	bl	getgrent
	str	r0, [fp, #-20]
.L36:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L43
	bl	endgrent
	ldr	r3, [fp, #-16]
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_groups_for_user, .-get_groups_for_user
	.section	.rodata
	.align	2
.LC16:
	.ascii	"%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fatal, %function
fatal:
	@ 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, .L45
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L45+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L46:
	.align	2
.L45:
	.word	stderr
	.word	.LC16
	.size	fatal, .-fatal
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Usage: %s [-u user] command\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	helpAndLeave, %function
helpAndLeave:
	@ 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, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L49+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L48:
	ldr	r2, [fp, #-16]
	ldr	r1, .L49+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-20]
	bl	exit
.L50:
	.align	2
.L49:
	.word	stderr
	.word	stdout
	.word	.LC17
	.size	helpAndLeave, .-helpAndLeave
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pexit, %function
pexit:
	@ 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	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	pexit, .-pexit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
