	.file	"699963.c"
	.intel_syntax noprefix
	.text
	.globl	userbuf
	.data
	.align 32
	.type	userbuf, @object
	.size	userbuf, 64
userbuf:
	.string	"USER="
	.zero	58
	.globl	homebuf
	.align 32
	.type	homebuf, @object
	.size	homebuf, 128
homebuf:
	.string	"HOME="
	.zero	122
	.globl	shellbuf
	.align 32
	.type	shellbuf, @object
	.size	shellbuf, 128
shellbuf:
	.string	"SHELL="
	.zero	121
	.globl	pathbuf
	.align 32
	.type	pathbuf, @object
	.size	pathbuf, 128
pathbuf:
	.string	"PATH=/usr/bin:/bin:/usr/sbin:/sbin"
	.zero	93
	.globl	cleanenv
	.section	.data.rel.local,"aw"
	.align 32
	.type	cleanenv, @object
	.size	cleanenv, 48
cleanenv:
	.quad	userbuf
	.quad	homebuf
	.quad	shellbuf
	.quad	pathbuf
	.quad	0
	.quad	0
	.globl	user
	.section	.rodata
.LC0:
	.string	"root"
	.section	.data.rel.local
	.align 8
	.type	user, @object
	.size	user, 8
user:
	.quad	.LC0
	.globl	shell
	.section	.rodata
.LC1:
	.string	"/bin/sh"
	.section	.data.rel.local
	.align 8
	.type	shell, @object
	.size	shell, 8
shell:
	.quad	.LC1
	.globl	fulllogin
	.bss
	.align 4
	.type	fulllogin, @object
	.size	fulllogin, 4
fulllogin:
	.zero	4
	.globl	fastlogin
	.align 4
	.type	fastlogin, @object
	.size	fastlogin, 4
fastlogin:
	.zero	4
	.globl	pwd
	.align 8
	.type	pwd, @object
	.size	pwd, 8
pwd:
	.zero	8
	.text
	.globl	setenvv
	.type	setenvv, @function
setenvv:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	r13, QWORD PTR environ[rip]
	jmp	.L2
.L8:
	mov	r12, QWORD PTR -40[rbp]
	jmp	.L3
.L5:
	add	r12, 1
	add	rbx, 1
.L3:
	movzx	edx, BYTE PTR [r12]
	movzx	eax, BYTE PTR [rbx]
	cmp	dl, al
	jne	.L4
	movzx	eax, BYTE PTR [r12]
	test	al, al
	jne	.L5
.L4:
	movzx	eax, BYTE PTR [r12]
	test	al, al
	jne	.L2
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 61
	je	.L6
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L2
.L6:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	sub	r13, 8
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 0[r13], rax
	jmp	.L7
.L2:
	mov	rax, r13
	lea	r13, 8[rax]
	mov	rbx, QWORD PTR [rax]
	test	rbx, rbx
	jne	.L8
.L7:
	add	rsp, 40
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setenvv, .-setenvv
	.globl	getenvv
	.type	getenvv, @function
getenvv:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -32[rbp], rdi
	mov	r13, QWORD PTR environ[rip]
	jmp	.L10
.L16:
	mov	r12, QWORD PTR -32[rbp]
	jmp	.L11
.L13:
	add	r12, 1
	add	rbx, 1
.L11:
	movzx	edx, BYTE PTR [r12]
	movzx	eax, BYTE PTR [rbx]
	cmp	dl, al
	jne	.L12
	movzx	eax, BYTE PTR [r12]
	test	al, al
	jne	.L13
.L12:
	movzx	eax, BYTE PTR [r12]
	test	al, al
	jne	.L10
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 61
	je	.L14
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L10
.L14:
	sub	r13, 8
	mov	rax, QWORD PTR 0[r13]
	jmp	.L15
.L10:
	mov	rax, r13
	lea	r13, 8[rax]
	mov	rbx, QWORD PTR [rax]
	test	rbx, rbx
	jne	.L16
	mov	eax, 0
.L15:
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getenvv, .-getenvv
	.section	.rodata
.LC2:
	.string	"su"
.LC3:
	.string	"-f"
.LC4:
	.string	"-"
.LC5:
	.string	"Who are you?\n"
.LC6:
	.string	"Unknown login: %s\n"
	.align 8
.LC7:
	.string	"You do not have permission to su %s\n"
.LC8:
	.string	"Password:"
.LC9:
	.string	"Sorry\n"
.LC10:
	.string	"BAD SU %s on %s"
.LC11:
	.string	"%s on %s"
.LC12:
	.string	"su: setgid"
.LC13:
	.string	"su: initgroups failed\n"
.LC14:
	.string	"su: setuid"
.LC15:
	.string	"TERM"
.LC16:
	.string	"USER"
.LC17:
	.string	"SHELL"
.LC18:
	.string	"HOME"
.LC19:
	.string	"No directory\n"
.LC20:
	.string	"-su"
.LC21:
	.string	"No shell\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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
	sub	rsp, 1056
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -1060[rbp], edi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edx, 32
	mov	esi, 4
	lea	rdi, .LC2[rip]
	call	openlog@PLT
.L18:
	cmp	DWORD PTR -1060[rbp], 1
	jle	.L19
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR fastlogin[rip]
	add	eax, 1
	mov	DWORD PTR fastlogin[rip], eax
	sub	DWORD PTR -1060[rbp], 1
	add	QWORD PTR -1072[rbp], 8
	jmp	.L18
.L19:
	cmp	DWORD PTR -1060[rbp], 1
	jle	.L20
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR fulllogin[rip]
	add	eax, 1
	mov	DWORD PTR fulllogin[rip], eax
	sub	DWORD PTR -1060[rbp], 1
	add	QWORD PTR -1072[rbp], 8
	jmp	.L18
.L20:
	cmp	DWORD PTR -1060[rbp], 1
	jle	.L21
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L21
	mov	rax, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR user[rip], rax
	sub	DWORD PTR -1060[rbp], 1
	add	QWORD PTR -1072[rbp], 8
.L21:
	call	getuid@PLT
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR pwd[rip], rax
	mov	rax, QWORD PTR pwd[rip]
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR pwd[rip]
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR user[rip]
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR pwd[rip], rax
	mov	rax, QWORD PTR pwd[rip]
	test	rax, rax
	jne	.L23
	mov	rdx, QWORD PTR user[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	rax, QWORD PTR pwd[rip]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L24
	mov	edi, 0
	call	getgrgid@PLT
	mov	QWORD PTR -1040[rbp], rax
	cmp	QWORD PTR -1040[rbp], 0
	je	.L51
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L26
.L28:
	mov	rax, QWORD PTR -1040[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -1044[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L52
	add	DWORD PTR -1044[rbp], 1
.L26:
	mov	rax, QWORD PTR -1040[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -1044[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L28
	mov	rdx, QWORD PTR user[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	nop
	jmp	.L25
.L52:
	nop
.L25:
	mov	edx, -2
	mov	esi, 0
	mov	edi, 0
	call	setpriority@PLT
.L24:
	mov	rax, QWORD PTR pwd[rip]
	mov	rax, QWORD PTR 8[rax]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L53
	call	getuid@PLT
	test	eax, eax
	je	.L53
	lea	rdi, .LC8[rip]
	call	getpass@PLT
	mov	QWORD PTR -1032[rbp], rax
	mov	rax, QWORD PTR pwd[rip]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -1032[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crypt@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR pwd[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L54
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR pwd[rip]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L32
	mov	edi, 2
	call	ttyname@PLT
	mov	r12, rax
	call	getlogin@PLT
	mov	rbx, rax
	test	rbx, rbx
	je	.L33
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L34
.L33:
	lea	rax, -1024[rbp]
	jmp	.L35
.L34:
	mov	rax, rbx
.L35:
	mov	rcx, r12
	mov	rdx, rax
	lea	rsi, .LC10[rip]
	mov	edi, 2
	mov	eax, 0
	call	syslog@PLT
.L32:
	mov	edi, 2
	call	exit@PLT
.L53:
	nop
	jmp	.L31
.L54:
	nop
.L31:
	call	endpwent@PLT
	mov	rax, QWORD PTR pwd[rip]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L36
	mov	edi, 2
	call	ttyname@PLT
	mov	r12, rax
	call	getlogin@PLT
	mov	rbx, rax
	test	rbx, rbx
	je	.L37
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L38
.L37:
	lea	rax, -1024[rbp]
	jmp	.L39
.L38:
	mov	rax, rbx
.L39:
	mov	rcx, r12
	mov	rdx, rax
	lea	rsi, .LC11[rip]
	mov	edi, 5
	mov	eax, 0
	call	syslog@PLT
	call	closelog@PLT
.L36:
	mov	rax, QWORD PTR pwd[rip]
	mov	eax, DWORD PTR 20[rax]
	mov	edi, eax
	call	setgid@PLT
	test	eax, eax
	jns	.L40
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 3
	call	exit@PLT
.L40:
	mov	rax, QWORD PTR pwd[rip]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR user[rip]
	mov	esi, edx
	mov	rdi, rax
	call	initgroups@PLT
	test	eax, eax
	je	.L41
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	edi, 4
	call	exit@PLT
.L41:
	mov	rax, QWORD PTR pwd[rip]
	mov	eax, DWORD PTR 16[rax]
	mov	edi, eax
	call	setuid@PLT
	test	eax, eax
	jns	.L42
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, 5
	call	exit@PLT
.L42:
	mov	rax, QWORD PTR pwd[rip]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L43
	mov	rax, QWORD PTR pwd[rip]
	mov	rax, QWORD PTR 40[rax]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L43
	mov	rax, QWORD PTR pwd[rip]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR shell[rip], rax
.L43:
	mov	eax, DWORD PTR fulllogin[rip]
	test	eax, eax
	je	.L44
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	getenvv
	mov	QWORD PTR cleanenv[rip+32], rax
	lea	rax, cleanenv[rip]
	mov	QWORD PTR environ[rip], rax
.L44:
	mov	rax, QWORD PTR user[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L45
	mov	rax, QWORD PTR pwd[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdx, userbuf[rip]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	setenvv
.L45:
	mov	rax, QWORD PTR shell[rip]
	lea	rdx, shellbuf[rip]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	setenvv
	mov	rax, QWORD PTR pwd[rip]
	mov	rax, QWORD PTR 32[rax]
	lea	rdx, homebuf[rip]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	setenvv
	mov	edx, 0
	mov	esi, 0
	mov	edi, 0
	call	setpriority@PLT
	mov	eax, DWORD PTR fastlogin[rip]
	test	eax, eax
	je	.L46
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, -8[rax]
	mov	QWORD PTR -1072[rbp], rdx
	lea	rdx, .LC3[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, .LC2[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L47
.L46:
	mov	eax, DWORD PTR fulllogin[rip]
	test	eax, eax
	je	.L48
	mov	rax, QWORD PTR pwd[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	jns	.L49
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	edi, 6
	call	exit@PLT
.L49:
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, .LC20[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L47
.L48:
	mov	rax, QWORD PTR -1072[rbp]
	lea	rdx, .LC2[rip]
	mov	QWORD PTR [rax], rdx
.L47:
	mov	rax, QWORD PTR shell[rip]
	mov	rdx, QWORD PTR -1072[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	edi, 7
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.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	"699963.c"
	.text
	.global	userbuf
	.data
	.align	2
	.type	userbuf, %object
	.size	userbuf, 64
userbuf:
	.ascii	"USER=\000"
	.space	58
	.global	homebuf
	.align	2
	.type	homebuf, %object
	.size	homebuf, 128
homebuf:
	.ascii	"HOME=\000"
	.space	122
	.global	shellbuf
	.align	2
	.type	shellbuf, %object
	.size	shellbuf, 128
shellbuf:
	.ascii	"SHELL=\000"
	.space	121
	.global	pathbuf
	.align	2
	.type	pathbuf, %object
	.size	pathbuf, 128
pathbuf:
	.ascii	"PATH=/usr/bin:/bin:/usr/sbin:/sbin\000"
	.space	93
	.global	cleanenv
	.align	2
	.type	cleanenv, %object
	.size	cleanenv, 24
cleanenv:
	.word	userbuf
	.word	homebuf
	.word	shellbuf
	.word	pathbuf
	.word	0
	.word	0
	.global	user
	.section	.rodata
	.align	2
.LC0:
	.ascii	"root\000"
	.data
	.align	2
	.type	user, %object
	.size	user, 4
user:
	.word	.LC0
	.global	shell
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/bin/sh\000"
	.data
	.align	2
	.type	shell, %object
	.size	shell, 4
shell:
	.word	.LC1
	.comm	fulllogin,4,4
	.comm	fastlogin,4,4
	.comm	pwd,4,4
	.text
	.align	2
	.global	setenvv
	.syntax unified
	.arm
	.fpu softvfp
	.type	setenvv, %function
setenvv:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L9
	ldr	r6, [r3]
	b	.L2
.L8:
	ldr	r5, [fp, #-24]
	b	.L3
.L5:
	add	r5, r5, #1
	add	r4, r4, #1
.L3:
	ldrb	r2, [r5]	@ zero_extendqisi2
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L4
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
.L4:
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L2
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #61
	beq	.L6
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L2
.L6:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	strcat
	sub	r6, r6, #4
	ldr	r3, [fp, #-32]
	str	r3, [r6]
	b	.L7
.L2:
	mov	r3, r6
	add	r6, r3, #4
	ldr	r4, [r3]
	cmp	r4, #0
	bne	.L8
.L7:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L10:
	.align	2
.L9:
	.word	environ
	.size	setenvv, .-setenvv
	.align	2
	.global	getenvv
	.syntax unified
	.arm
	.fpu softvfp
	.type	getenvv, %function
getenvv:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, fp}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r3, .L19
	ldr	r6, [r3]
	b	.L12
.L18:
	ldr	r5, [fp, #-16]
	b	.L13
.L15:
	add	r5, r5, #1
	add	r4, r4, #1
.L13:
	ldrb	r2, [r5]	@ zero_extendqisi2
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L14
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L15
.L14:
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #61
	beq	.L16
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
.L16:
	sub	r6, r6, #4
	ldr	r3, [r6]
	b	.L17
.L12:
	mov	r3, r6
	add	r6, r3, #4
	ldr	r4, [r3]
	cmp	r4, #0
	bne	.L18
	mov	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, r6, fp}
	bx	lr
.L20:
	.align	2
.L19:
	.word	environ
	.size	getenvv, .-getenvv
	.section	.rodata
	.align	2
.LC2:
	.ascii	"su\000"
	.align	2
.LC3:
	.ascii	"-f\000"
	.align	2
.LC4:
	.ascii	"-\000"
	.align	2
.LC5:
	.ascii	"Who are you?\012\000"
	.align	2
.LC6:
	.ascii	"Unknown login: %s\012\000"
	.align	2
.LC7:
	.ascii	"You do not have permission to su %s\012\000"
	.align	2
.LC8:
	.ascii	"Password:\000"
	.align	2
.LC9:
	.ascii	"Sorry\012\000"
	.align	2
.LC10:
	.ascii	"BAD SU %s on %s\000"
	.align	2
.LC11:
	.ascii	"%s on %s\000"
	.align	2
.LC12:
	.ascii	"su: setgid\000"
	.align	2
.LC13:
	.ascii	"su: initgroups failed\012\000"
	.align	2
.LC14:
	.ascii	"su: setuid\000"
	.align	2
.LC15:
	.ascii	"TERM\000"
	.align	2
.LC16:
	.ascii	"USER\000"
	.align	2
.LC17:
	.ascii	"SHELL\000"
	.align	2
.LC18:
	.ascii	"HOME\000"
	.align	2
.LC19:
	.ascii	"No directory\012\000"
	.align	2
.LC20:
	.ascii	"-su\000"
	.align	2
.LC21:
	.ascii	"No shell\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1024
	sub	sp, sp, #4
	str	r0, [fp, #-1032]
	str	r1, [fp, #-1036]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #32
	mov	r1, #4
	ldr	r0, .L59+4
	bl	openlog
.L22:
	ldr	r3, [fp, #-1032]
	cmp	r3, #1
	ble	.L23
	ldr	r3, [fp, #-1036]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L59+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L59+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L59+12
	str	r3, [r2]
	ldr	r3, [fp, #-1032]
	sub	r3, r3, #1
	str	r3, [fp, #-1032]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #4
	str	r3, [fp, #-1036]
	b	.L22
.L23:
	ldr	r3, [fp, #-1032]
	cmp	r3, #1
	ble	.L24
	ldr	r3, [fp, #-1036]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L59+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L59+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L59+20
	str	r3, [r2]
	ldr	r3, [fp, #-1032]
	sub	r3, r3, #1
	str	r3, [fp, #-1032]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #4
	str	r3, [fp, #-1036]
	b	.L22
.L24:
	ldr	r3, [fp, #-1032]
	cmp	r3, #1
	ble	.L25
	ldr	r3, [fp, #-1036]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L25
	ldr	r3, [fp, #-1036]
	ldr	r3, [r3, #4]
	ldr	r2, .L59+24
	str	r3, [r2]
	ldr	r3, [fp, #-1032]
	sub	r3, r3, #1
	str	r3, [fp, #-1032]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #4
	str	r3, [fp, #-1036]
.L25:
	bl	getuid
	mov	r3, r0
	mov	r0, r3
	bl	getpwuid
	mov	r3, r0
	ldr	r2, .L59+28
	str	r3, [r2]
	ldr	r3, .L59+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L59+32
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L59+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L26:
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r2, [r3]
	sub	r3, fp, #1016
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L59+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	getpwnam
	mov	r3, r0
	ldr	r2, .L59+28
	str	r3, [r2]
	ldr	r3, .L59+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L59+32
	ldr	r3, [r3]
	ldr	r2, .L59+24
	ldr	r2, [r2]
	ldr	r1, .L59+40
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L27:
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L28
	mov	r0, #0
	bl	getgrgid
	str	r0, [fp, #-1024]
	ldr	r3, [fp, #-1024]
	cmp	r3, #0
	beq	.L55
	mov	r3, #0
	str	r3, [fp, #-1028]
	b	.L30
.L32:
	ldr	r3, [fp, #-1024]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-1028]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1016
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-1028]
	add	r3, r3, #1
	str	r3, [fp, #-1028]
.L30:
	ldr	r3, [fp, #-1024]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-1028]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L59+32
	ldr	r3, [r3]
	ldr	r2, .L59+24
	ldr	r2, [r2]
	ldr	r1, .L59+44
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L55:
	nop
	b	.L29
.L56:
	nop
.L29:
	mvn	r2, #1
	mov	r1, #0
	mov	r0, #0
	bl	setpriority
.L28:
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L57
	bl	getuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L57
	ldr	r0, .L59+48
	bl	getpass
	str	r0, [fp, #-1020]
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r4, [r3, #4]
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, [fp, #-1020]
	bl	crypt
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	ldr	r3, .L59+32
	ldr	r3, [r3]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L59+52
	bl	fwrite
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L36
	bl	getlogin
	mov	r4, r0
	cmp	r4, #0
	beq	.L37
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L39
.L37:
	sub	r4, fp, #1016
.L39:
	mov	r0, #2
	bl	ttyname
	mov	r3, r0
	mov	r2, r4
	ldr	r1, .L59+56
	mov	r0, #2
	bl	syslog
.L36:
	mov	r0, #2
	bl	exit
.L57:
	nop
	b	.L35
.L58:
	nop
.L35:
	bl	endpwent
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L40
	bl	getlogin
	mov	r4, r0
	cmp	r4, #0
	beq	.L41
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L43
.L41:
	sub	r4, fp, #1016
.L43:
	mov	r0, #2
	bl	ttyname
	mov	r3, r0
	mov	r2, r4
	ldr	r1, .L59+60
	mov	r0, #5
	bl	syslog
	bl	closelog
.L40:
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	setgid
	mov	r3, r0
	cmp	r3, #0
	bge	.L44
	ldr	r0, .L59+64
	bl	perror
	mov	r0, #3
	bl	exit
.L44:
	ldr	r3, .L59+24
	ldr	r2, [r3]
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	mov	r1, r3
	mov	r0, r2
	bl	initgroups
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r3, .L59+32
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L59+68
	bl	fwrite
	mov	r0, #4
	bl	exit
.L45:
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	setuid
	mov	r3, r0
	cmp	r3, #0
	bge	.L46
	ldr	r0, .L59+72
	bl	perror
	mov	r0, #5
	bl	exit
.L46:
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L47
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L47
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	ldr	r2, .L59+76
	str	r3, [r2]
.L47:
	ldr	r3, .L59+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L48
	ldr	r0, .L59+80
	bl	getenvv
	mov	r3, r0
	ldr	r2, .L59+84
	str	r3, [r2, #16]
	ldr	r3, .L59+88
	ldr	r2, .L59+84
	str	r2, [r3]
.L48:
	ldr	r3, .L59+24
	ldr	r3, [r3]
	ldr	r1, .L59+92
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L59+96
	mov	r1, r3
	ldr	r0, .L59+100
	bl	setenvv
.L49:
	ldr	r3, .L59+76
	ldr	r3, [r3]
	ldr	r2, .L59+104
	mov	r1, r3
	ldr	r0, .L59+108
	bl	setenvv
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	ldr	r2, .L59+112
	mov	r1, r3
	ldr	r0, .L59+116
	bl	setenvv
	mov	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	setpriority
	ldr	r3, .L59+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-1036]
	sub	r2, r3, #4
	str	r2, [fp, #-1036]
	ldr	r2, .L59+8
	str	r2, [r3]
	ldr	r3, [fp, #-1036]
	ldr	r2, .L59+4
	str	r2, [r3]
	b	.L51
.L50:
	ldr	r3, .L59+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L53
	ldr	r3, .L59+32
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L59+120
	bl	fwrite
	mov	r0, #6
	bl	exit
.L53:
	ldr	r3, [fp, #-1036]
	ldr	r2, .L59+124
	str	r2, [r3]
	b	.L51
.L52:
	ldr	r3, [fp, #-1036]
	ldr	r2, .L59+4
	str	r2, [r3]
.L51:
	ldr	r3, .L59+76
	ldr	r3, [r3]
	ldr	r1, [fp, #-1036]
	mov	r0, r3
	bl	execv
	ldr	r3, .L59+32
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L59+128
	bl	fwrite
	mov	r0, #7
	bl	exit
.L60:
	.align	2
.L59:
	.word	.LC22
	.word	.LC2
	.word	.LC3
	.word	fastlogin
	.word	.LC4
	.word	fulllogin
	.word	user
	.word	pwd
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	shell
	.word	.LC15
	.word	cleanenv
	.word	environ
	.word	.LC0
	.word	userbuf
	.word	.LC16
	.word	shellbuf
	.word	.LC17
	.word	homebuf
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
