	.file	"150321.c"
	.intel_syntax noprefix
	.text
	.local	m_verbose
	.comm	m_verbose,1,1
	.data
	.align 4
	.type	m_uid, @object
	.size	m_uid, 4
m_uid:
	.long	-1
	.align 4
	.type	m_gid, @object
	.size	m_gid, 4
m_gid:
	.long	-1
	.align 4
	.type	m_umask, @object
	.size	m_umask, 4
m_umask:
	.long	-1
	.local	m_user_hook
	.comm	m_user_hook,8,8
	.local	m_root_hook
	.comm	m_root_hook,8,8
	.section	.rodata
.LC0:
	.string	"the_stack_data/150321.c"
.LC1:
	.string	"m_gid >= 0"
.LC2:
	.string	"m_gid == -1"
	.text
	.type	use_scuba_user, @function
use_scuba_user:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR m_uid[rip]
	test	eax, eax
	js	.L2
	mov	eax, DWORD PTR m_gid[rip]
	test	eax, eax
	jns	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 56
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L3:
	mov	eax, 1
	jmp	.L4
.L2:
	mov	eax, DWORD PTR m_gid[rip]
	cmp	eax, -1
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 60
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L5:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	use_scuba_user, .-use_scuba_user
	.section	.rodata
.LC3:
	.string	"a+"
	.align 8
.LC4:
	.string	"scubainit: Failed to open %s: %m\n"
	.align 8
.LC5:
	.string	"scubainit: Group \"%s\" already exists in %s\n"
	.align 8
.LC6:
	.string	"scubainit: GID %u already exists in %s\n"
.LC7:
	.string	"x"
	.align 8
.LC8:
	.string	"scubainit: Failed to add group \"%s\" to %s: %m\n"
	.align 8
.LC9:
	.string	"scubainit: Added group \"%s\" to %s\n"
	.text
	.type	add_group, @function
add_group:
.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, 112
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -100[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], -1
	mov	QWORD PTR -64[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fgetgrent@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L20
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L8
.L11:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -100[rbp], eax
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -100[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L8
.L20:
	nop
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	QWORD PTR -24[rbp], 0
	mov	rdx, QWORD PTR -64[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	putgrent@PLT
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L8
.L13:
	movzx	eax, BYTE PTR m_verbose[rip]
	test	al, al
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	nop
.L15:
	mov	DWORD PTR -68[rbp], 0
.L8:
	cmp	QWORD PTR -64[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L16:
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_group, .-add_group
	.section	.rodata
	.align 8
.LC10:
	.string	"scubainit: User \"%s\" already exists in %s\n"
	.align 8
.LC11:
	.string	"scubainit: UID %u already exists in %s\n"
.LC12:
	.string	"/bin/sh"
	.align 8
.LC13:
	.string	"scubainit: Failed to add user \"%s\" to %s: %m\n"
	.align 8
.LC14:
	.string	"scubainit: Added user \"%s\" to %s\n"
	.text
	.type	add_user, @function
add_user:
.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, 144
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	DWORD PTR -116[rbp], edx
	mov	DWORD PTR -120[rbp], ecx
	mov	QWORD PTR -128[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -84[rbp], -1
	mov	QWORD PTR -80[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	fgetpwent@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	je	.L35
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L26
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L23
.L26:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -116[rbp], eax
	jne	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -116[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L23
.L35:
	nop
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -116[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -80[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	putpwent@PLT
	test	eax, eax
	je	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L23
.L28:
	movzx	eax, BYTE PTR m_verbose[rip]
	test	al, al
	je	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	nop
.L30:
	mov	DWORD PTR -84[rbp], 0
.L23:
	cmp	QWORD PTR -80[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L31:
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add_user, .-add_user
	.type	add_shadow, @function
add_shadow:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -100[rbp], -1
	mov	QWORD PTR -96[rbp], 0
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L37
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -120[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L38
.L37:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fgetspent@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	je	.L49
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L37
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR -128[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L38
.L49:
	nop
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -72[rbp], rax
	mov	QWORD PTR -64[rbp], -1
	mov	QWORD PTR -56[rbp], -1
	mov	QWORD PTR -48[rbp], -1
	mov	QWORD PTR -40[rbp], -1
	mov	QWORD PTR -32[rbp], -1
	mov	QWORD PTR -24[rbp], -1
	mov	QWORD PTR -16[rbp], -1
	mov	rdx, QWORD PTR -96[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	putspent@PLT
	test	eax, eax
	je	.L42
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR -128[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L38
.L42:
	movzx	eax, BYTE PTR m_verbose[rip]
	test	al, al
	je	.L44
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR -128[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	nop
.L44:
	mov	DWORD PTR -100[rbp], 0
.L38:
	cmp	QWORD PTR -96[rbp], 0
	je	.L45
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L45:
	mov	eax, DWORD PTR -100[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	add_shadow, .-add_shadow
	.section	.rodata
	.align 8
.LC15:
	.string	"scubainit: Failed to setgroups(): %m\n"
	.align 8
.LC16:
	.string	"scubainit: Cleared supplementary group list\n"
	.align 8
.LC17:
	.string	"scubainit: Failed to setgid(%u): %m\n"
	.align 8
.LC18:
	.string	"scubainit: Failed to setuid(%u): %m\n"
.LC19:
	.string	"scubauser"
.LC20:
	.string	"USER"
.LC21:
	.string	"LOGNAME"
.LC22:
	.string	"/home/scubauser"
.LC23:
	.string	"HOME"
	.align 8
.LC24:
	.string	"scubainit: Changed to uid=%u euid=%u  gid=%u egid=%u\n"
	.text
	.type	change_user, @function
change_user:
.LFB10:
	.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, 8
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	esi, 0
	mov	edi, 0
	call	setgroups@PLT
	test	eax, eax
	je	.L51
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L52
.L51:
	movzx	eax, BYTE PTR m_verbose[rip]
	test	al, al
	je	.L54
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	nop
.L54:
	mov	eax, DWORD PTR m_gid[rip]
	mov	edi, eax
	call	setgid@PLT
	test	eax, eax
	je	.L55
	mov	edx, DWORD PTR m_gid[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L52
.L55:
	mov	eax, DWORD PTR m_uid[rip]
	mov	edi, eax
	call	setuid@PLT
	test	eax, eax
	je	.L56
	mov	edx, DWORD PTR m_uid[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L52
.L56:
	mov	edx, 1
	lea	rsi, .LC19[rip]
	lea	rdi, .LC20[rip]
	call	setenv@PLT
	mov	edx, 1
	lea	rsi, .LC19[rip]
	lea	rdi, .LC21[rip]
	call	setenv@PLT
	mov	edx, 1
	lea	rsi, .LC22[rip]
	lea	rdi, .LC23[rip]
	call	setenv@PLT
	movzx	eax, BYTE PTR m_verbose[rip]
	test	al, al
	je	.L58
	call	getegid@PLT
	mov	r13d, eax
	call	getgid@PLT
	mov	r12d, eax
	call	geteuid@PLT
	mov	ebx, eax
	call	getuid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	r9d, r13d
	mov	r8d, r12d
	mov	ecx, ebx
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	nop
.L58:
	mov	eax, 0
.L52:
	add	rsp, 8
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	change_user, .-change_user
	.type	mkdir_p, @function
mkdir_p:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	QWORD PTR -4136[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -4120[rbp], rax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	cmp	QWORD PTR -4120[rbp], 4095
	jbe	.L60
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 36
	mov	eax, -1
	jmp	.L67
.L60:
	mov	rdx, QWORD PTR -4136[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -4112[rbp]
	add	rax, 1
	mov	QWORD PTR -4128[rbp], rax
	jmp	.L62
.L65:
	mov	rax, QWORD PTR -4128[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L63
	mov	rax, QWORD PTR -4128[rbp]
	mov	BYTE PTR [rax], 0
	lea	rax, -4112[rbp]
	mov	esi, 448
	mov	rdi, rax
	call	mkdir@PLT
	test	eax, eax
	je	.L64
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L64
	mov	eax, -1
	jmp	.L67
.L64:
	mov	rax, QWORD PTR -4128[rbp]
	mov	BYTE PTR [rax], 47
.L63:
	add	QWORD PTR -4128[rbp], 1
.L62:
	mov	rax, QWORD PTR -4128[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L65
	lea	rax, -4112[rbp]
	mov	esi, 448
	mov	rdi, rax
	call	mkdir@PLT
	test	eax, eax
	je	.L66
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L66
	mov	eax, -1
	jmp	.L67
.L66:
	mov	eax, 0
.L67:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	mkdir_p, .-mkdir_p
	.section	.rodata
	.align 8
.LC25:
	.string	"scubainit: Failed to create %s: %m\n"
	.align 8
.LC26:
	.string	"scubainit: Failed to chmod %s: %m\n"
	.align 8
.LC27:
	.string	"scubainit: Failed to chown %s: %m\n"
	.text
	.type	make_homedir, @function
make_homedir:
.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	mkdir_p
	test	eax, eax
	je	.L70
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L71
.L70:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 448
	mov	rdi, rax
	call	chmod@PLT
	test	eax, eax
	je	.L72
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L71
.L72:
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	chown@PLT
	test	eax, eax
	je	.L73
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L71
.L73:
	mov	eax, 0
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	make_homedir, .-make_homedir
	.type	make_executable, @function
make_executable:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -168[rbp], -1
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L80
	mov	eax, DWORD PTR -136[rbp]
	mov	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR -164[rbp]
	shr	eax, 2
	and	eax, 73
	or	DWORD PTR -164[rbp], eax
	mov	edx, DWORD PTR -164[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	chmod@PLT
	test	eax, eax
	jne	.L81
	mov	DWORD PTR -168[rbp], 0
	jmp	.L76
.L80:
	nop
	jmp	.L76
.L81:
	nop
.L76:
	mov	eax, DWORD PTR -168[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L79
	call	__stack_chk_fail@PLT
.L79:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	make_executable, .-make_executable
	.section	.rodata
	.align 8
.LC28:
	.string	"scubainit: Failed to make executable %s: %m\n"
	.align 8
.LC29:
	.string	"scubainit: About to execute %s\n"
	.align 8
.LC30:
	.string	"scubainit: Failed to execute %s: %m\n"
	.align 8
.LC31:
	.string	"scubainit: %s exited with status %d\n"
	.text
	.type	call_hook, @function
call_hook:
.LFB14:
	.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L83
	mov	eax, 0
	jmp	.L84
.L83:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	make_executable
	test	eax, eax
	je	.L85
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 99
	call	exit@PLT
.L85:
	movzx	eax, BYTE PTR m_verbose[rip]
	test	al, al
	je	.L87
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	nop
.L87:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L88
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 99
	call	exit@PLT
.L88:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L89
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	exit@PLT
.L89:
	mov	eax, 0
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	call_hook, .-call_hook
	.type	str2uint, @function
str2uint:
.LFB15:
	.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L91
	mov	eax, -1
	jmp	.L95
.L91:
	lea	rcx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L93
	mov	eax, -1
	jmp	.L95
.L93:
	mov	eax, 4294967295
	cmp	QWORD PTR -16[rbp], rax
	jbe	.L94
	mov	eax, -1
	jmp	.L95
.L94:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L95:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L96
	call	__stack_chk_fail@PLT
.L96:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	str2uint, .-str2uint
	.section	.rodata
.LC32:
	.string	"scubainit: %s invalid: \"%s\"\n"
.LC33:
	.string	"scubainit: %s = %u\n"
	.text
	.type	getenv_uint_opt_unset, @function
getenv_uint_opt_unset:
.LFB16:
	.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L98
	mov	eax, 1
	jmp	.L103
.L98:
	lea	rdx, -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	str2uint
	test	eax, eax
	je	.L100
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L103
.L100:
	movzx	eax, BYTE PTR m_verbose[rip]
	test	al, al
	je	.L102
	mov	ecx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	nop
.L102:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	unsetenv@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L103:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L104
	call	__stack_chk_fail@PLT
.L104:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	getenv_uint_opt_unset, .-getenv_uint_opt_unset
	.type	getenv_str_unset, @function
getenv_str_unset:
.LFB17:
	.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	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L106
	mov	eax, 0
	jmp	.L107
.L106:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	unsetenv@PLT
	mov	rax, QWORD PTR -8[rbp]
.L107:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	getenv_str_unset, .-getenv_str_unset
	.section	.rodata
.LC34:
	.string	"SCUBAINIT_UID"
.LC35:
	.string	"SCUBAINIT_GID"
	.align 8
.LC36:
	.string	"scubainit: If SCUBAINIT_UID or SCUBAINIT_GID are set, both must be set.\n"
.LC37:
	.string	"SCUBAINIT_UMASK"
.LC38:
	.string	"SCUBAINIT_VERBOSE"
.LC39:
	.string	"SCUBAINIT_HOOK_USER"
.LC40:
	.string	"SCUBAINIT_HOOK_ROOT"
.LC41:
	.string	"PWD"
.LC42:
	.string	"OLDPWD"
.LC43:
	.string	"XAUTHORITY"
	.text
	.type	process_envvars, @function
process_envvars:
.LFB18:
	.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	DWORD PTR -4[rbp], 0
	lea	rsi, m_uid[rip]
	lea	rdi, .LC34[rip]
	call	getenv_uint_opt_unset
	cmp	eax, -1
	je	.L109
	test	eax, eax
	je	.L110
	jmp	.L111
.L109:
	mov	eax, -1
	jmp	.L112
.L110:
	add	DWORD PTR -4[rbp], 1
	nop
.L111:
	lea	rsi, m_gid[rip]
	lea	rdi, .LC35[rip]
	call	getenv_uint_opt_unset
	cmp	eax, -1
	je	.L113
	test	eax, eax
	je	.L114
	jmp	.L115
.L113:
	mov	eax, -1
	jmp	.L112
.L114:
	add	DWORD PTR -4[rbp], 1
	nop
.L115:
	cmp	DWORD PTR -4[rbp], 0
	je	.L121
	cmp	DWORD PTR -4[rbp], 2
	je	.L121
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 72
	mov	esi, 1
	lea	rdi, .LC36[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L112
.L121:
	nop
	lea	rsi, m_umask[rip]
	lea	rdi, .LC37[rip]
	call	getenv_uint_opt_unset
	cmp	eax, -1
	jne	.L119
	mov	eax, -1
	jmp	.L112
.L119:
	lea	rdi, .LC38[rip]
	call	getenv@PLT
	test	rax, rax
	je	.L120
	lea	rdi, .LC38[rip]
	call	unsetenv@PLT
	mov	BYTE PTR m_verbose[rip], 1
.L120:
	lea	rdi, .LC39[rip]
	call	getenv_str_unset
	mov	QWORD PTR m_user_hook[rip], rax
	lea	rdi, .LC40[rip]
	call	getenv_str_unset
	mov	QWORD PTR m_root_hook[rip], rax
	lea	rdi, .LC41[rip]
	call	unsetenv@PLT
	lea	rdi, .LC42[rip]
	call	unsetenv@PLT
	lea	rdi, .LC43[rip]
	call	unsetenv@PLT
	mov	eax, 0
.L112:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	process_envvars, .-process_envvars
	.section	.rodata
.LC44:
	.string	"/etc/group"
.LC45:
	.string	"Scuba User"
.LC46:
	.string	"/etc/passwd"
.LC47:
	.string	"/etc/shadow"
	.align 8
.LC48:
	.string	"scubainit: Setting umask to 0%o\n"
.LC49:
	.string	"scubainit: Missing command\n"
.LC50:
	.string	"scubainit: execvp(\"%s\", ...)\n"
	.align 8
.LC51:
	.string	"scubainit: execvp(\"%s\", ...) failed: %m\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.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	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	call	process_envvars
	test	eax, eax
	jns	.L123
	mov	edi, 99
	call	exit@PLT
.L123:
	call	use_scuba_user
	test	al, al
	je	.L124
	mov	eax, DWORD PTR m_gid[rip]
	mov	edx, eax
	mov	eax, DWORD PTR m_uid[rip]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	call	make_homedir
	test	eax, eax
	je	.L125
	mov	edi, 99
	call	exit@PLT
.L125:
	mov	eax, DWORD PTR m_gid[rip]
	mov	edx, eax
	lea	rsi, .LC19[rip]
	lea	rdi, .LC44[rip]
	call	add_group
	test	eax, eax
	je	.L126
	mov	edi, 99
	call	exit@PLT
.L126:
	mov	eax, DWORD PTR m_gid[rip]
	mov	edx, eax
	mov	eax, DWORD PTR m_uid[rip]
	lea	r9, .LC22[rip]
	lea	r8, .LC45[rip]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC19[rip]
	lea	rdi, .LC46[rip]
	call	add_user
	test	eax, eax
	je	.L127
	mov	edi, 99
	call	exit@PLT
.L127:
	lea	rsi, .LC19[rip]
	lea	rdi, .LC47[rip]
	call	add_shadow
	test	eax, eax
	je	.L124
	mov	edi, 99
	call	exit@PLT
.L124:
	mov	rax, QWORD PTR m_root_hook[rip]
	mov	rdi, rax
	call	call_hook
	call	use_scuba_user
	test	al, al
	je	.L128
	call	change_user
	test	eax, eax
	jns	.L128
	mov	edi, 99
	call	exit@PLT
.L128:
	mov	eax, DWORD PTR m_umask[rip]
	test	eax, eax
	js	.L129
	movzx	eax, BYTE PTR m_verbose[rip]
	test	al, al
	je	.L131
	mov	edx, DWORD PTR m_umask[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC48[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	nop
.L131:
	mov	eax, DWORD PTR m_umask[rip]
	mov	edi, eax
	call	umask@PLT
.L129:
	call	use_scuba_user
	test	al, al
	je	.L132
	mov	rax, QWORD PTR m_user_hook[rip]
	mov	rdi, rax
	call	call_hook
.L132:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L133
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC49[rip]
	call	fwrite@PLT
	mov	edi, 99
	call	exit@PLT
.L133:
	movzx	eax, BYTE PTR m_verbose[rip]
	test	al, al
	je	.L135
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC50[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	nop
.L135:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC51[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 99
	call	exit@PLT
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 15
__PRETTY_FUNCTION__.0:
	.string	"use_scuba_user"
	.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	"150321.c"
	.text
	.local	m_verbose
	.comm	m_verbose,1,1
	.data
	.align	2
	.type	m_uid, %object
	.size	m_uid, 4
m_uid:
	.word	-1
	.align	2
	.type	m_gid, %object
	.size	m_gid, 4
m_gid:
	.word	-1
	.align	2
	.type	m_umask, %object
	.size	m_umask, 4
m_umask:
	.word	-1
	.local	m_user_hook
	.comm	m_user_hook,4,4
	.local	m_root_hook
	.comm	m_root_hook,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/150321.c\000"
	.align	2
.LC1:
	.ascii	"m_gid >= 0\000"
	.align	2
.LC2:
	.ascii	"m_gid == -1\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	use_scuba_user, %function
use_scuba_user:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L6
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L2
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L3
	ldr	r3, .L6+8
	mov	r2, #56
	ldr	r1, .L6+12
	ldr	r0, .L6+16
	bl	__assert_fail
.L3:
	mov	r3, #1
	b	.L4
.L2:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L5
	ldr	r3, .L6+8
	mov	r2, #60
	ldr	r1, .L6+12
	ldr	r0, .L6+20
	bl	__assert_fail
.L5:
	mov	r3, #0
.L4:
	mov	r0, r3
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	m_uid
	.word	m_gid
	.word	__PRETTY_FUNCTION__.6662
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	use_scuba_user, .-use_scuba_user
	.section	.rodata
	.align	2
.LC3:
	.ascii	"a+\000"
	.align	2
.LC4:
	.ascii	"scubainit: Failed to open %s: %m\012\000"
	.align	2
.LC5:
	.ascii	"scubainit: Group \"%s\" already exists in %s\012\000"
	.align	2
.LC6:
	.ascii	"scubainit: GID %u already exists in %s\012\000"
	.align	2
.LC7:
	.ascii	"x\000"
	.align	2
.LC8:
	.ascii	"scubainit: Failed to add group \"%s\" to %s: %m\012"
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"scubainit: Added group \"%s\" to %s\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_group, %function
add_group:
	@ 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, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r1, .L23+4
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L23+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, .L23+12
	mov	r0, r3
	bl	fprintf
	b	.L10
.L9:
	ldr	r0, [fp, #-32]
	bl	fgetgrent
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L23+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	ldr	r1, .L23+16
	bl	fprintf
	b	.L10
.L13:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bne	.L9
	ldr	r3, .L23+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	ldr	r1, .L23+20
	bl	fprintf
	b	.L10
.L22:
	nop
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-24]
	ldr	r3, .L23+24
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	putgrent
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L23+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	ldr	r1, .L23+28
	bl	fprintf
	b	.L10
.L15:
	ldr	r3, .L23+32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L23+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	ldr	r1, .L23+36
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	nop
.L17:
	mov	r3, #0
	str	r3, [fp, #-36]
.L10:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L18
	ldr	r0, [fp, #-32]
	bl	fclose
.L18:
	ldr	r3, [fp, #-36]
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC10
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	m_verbose
	.word	.LC9
	.size	add_group, .-add_group
	.section	.rodata
	.align	2
.LC11:
	.ascii	"scubainit: User \"%s\" already exists in %s\012\000"
	.align	2
.LC12:
	.ascii	"scubainit: UID %u already exists in %s\012\000"
	.align	2
.LC13:
	.ascii	"/bin/sh\000"
	.align	2
.LC14:
	.ascii	"scubainit: Failed to add user \"%s\" to %s: %m\012\000"
	.align	2
.LC15:
	.ascii	"scubainit: Added user \"%s\" to %s\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_user, %function
add_user:
	@ args = 8, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-76]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r1, .L40+4
	ldr	r0, [fp, #-56]
	bl	fopen
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L40+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	ldr	r1, .L40+12
	mov	r0, r3
	bl	fprintf
	b	.L27
.L26:
	ldr	r0, [fp, #-44]
	bl	fgetpwent
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r1, [fp, #-60]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L40+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-60]
	ldr	r1, .L40+16
	bl	fprintf
	b	.L27
.L30:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	bne	.L26
	ldr	r3, .L40+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-64]
	ldr	r1, .L40+20
	bl	fprintf
	b	.L27
.L39:
	nop
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-36]
	ldr	r3, .L40+24
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-16]
	ldr	r3, .L40+28
	str	r3, [fp, #-12]
	sub	r3, fp, #36
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	putpwent
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r3, .L40+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-60]
	ldr	r1, .L40+32
	bl	fprintf
	b	.L27
.L32:
	ldr	r3, .L40+36
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L34
	ldr	r3, .L40+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-60]
	ldr	r1, .L40+40
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	nop
.L34:
	mov	r3, #0
	str	r3, [fp, #-48]
.L27:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L35
	ldr	r0, [fp, #-44]
	bl	fclose
.L35:
	ldr	r3, [fp, #-48]
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC16
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC11
	.word	.LC12
	.word	.LC7
	.word	.LC13
	.word	.LC14
	.word	m_verbose
	.word	.LC15
	.size	add_user, .-add_user
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_shadow, %function
add_shadow:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r1, .L56+4
	ldr	r0, [fp, #-64]
	bl	fopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L43
	ldr	r3, .L56+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	ldr	r1, .L56+12
	mov	r0, r3
	bl	fprintf
	b	.L44
.L43:
	ldr	r0, [fp, #-52]
	bl	fgetspent
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r1, [fp, #-68]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r3, .L56+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-68]
	ldr	r1, .L56+16
	bl	fprintf
	b	.L44
.L55:
	nop
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-44]
	ldr	r3, .L56+20
	str	r3, [fp, #-40]
	mvn	r3, #0
	str	r3, [fp, #-36]
	mvn	r3, #0
	str	r3, [fp, #-32]
	mvn	r3, #0
	str	r3, [fp, #-28]
	mvn	r3, #0
	str	r3, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-20]
	mvn	r3, #0
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #44
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	putspent
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	ldr	r3, .L56+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-68]
	ldr	r1, .L56+24
	bl	fprintf
	b	.L44
.L48:
	ldr	r3, .L56+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L50
	ldr	r3, .L56+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-68]
	ldr	r1, .L56+32
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	nop
.L50:
	mov	r3, #0
	str	r3, [fp, #-56]
.L44:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L51
	ldr	r0, [fp, #-52]
	bl	fclose
.L51:
	ldr	r3, [fp, #-56]
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC17
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC11
	.word	.LC7
	.word	.LC14
	.word	m_verbose
	.word	.LC15
	.size	add_shadow, .-add_shadow
	.section	.rodata
	.align	2
.LC18:
	.ascii	"scubainit: Failed to setgroups(): %m\012\000"
	.align	2
.LC19:
	.ascii	"scubainit: Cleared supplementary group list\012\000"
	.align	2
.LC20:
	.ascii	"scubainit: Failed to setgid(%u): %m\012\000"
	.align	2
.LC21:
	.ascii	"scubainit: Failed to setuid(%u): %m\012\000"
	.align	2
.LC22:
	.ascii	"scubauser\000"
	.align	2
.LC23:
	.ascii	"USER\000"
	.align	2
.LC24:
	.ascii	"LOGNAME\000"
	.align	2
.LC25:
	.ascii	"/home/scubauser\000"
	.align	2
.LC26:
	.ascii	"HOME\000"
	.align	2
.LC27:
	.ascii	"scubainit: Changed to uid=%u euid=%u  gid=%u egid=%"
	.ascii	"u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_user, %function
change_user:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	mov	r1, #0
	mov	r0, #0
	bl	setgroups
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L67
	ldr	r3, [r3]
	ldr	r1, .L67+4
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L60
.L59:
	ldr	r3, .L67+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L62
	ldr	r3, .L67
	ldr	r3, [r3]
	ldr	r1, .L67+12
	mov	r0, r3
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	nop
.L62:
	ldr	r3, .L67+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	setgid
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L67
	ldr	r3, [r3]
	ldr	r2, .L67+16
	ldr	r2, [r2]
	ldr	r1, .L67+20
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L60
.L63:
	ldr	r3, .L67+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	setuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	ldr	r3, .L67
	ldr	r3, [r3]
	ldr	r2, .L67+24
	ldr	r2, [r2]
	ldr	r1, .L67+28
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L60
.L64:
	mov	r2, #1
	ldr	r1, .L67+32
	ldr	r0, .L67+36
	bl	setenv
	mov	r2, #1
	ldr	r1, .L67+32
	ldr	r0, .L67+40
	bl	setenv
	mov	r2, #1
	ldr	r1, .L67+44
	ldr	r0, .L67+48
	bl	setenv
	ldr	r3, .L67+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L66
	ldr	r3, .L67
	ldr	r4, [r3]
	bl	getuid
	mov	r6, r0
	bl	geteuid
	mov	r7, r0
	bl	getgid
	mov	r5, r0
	bl	getegid
	mov	r3, r0
	str	r3, [sp, #4]
	str	r5, [sp]
	mov	r3, r7
	mov	r2, r6
	ldr	r1, .L67+52
	mov	r0, r4
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	nop
.L66:
	mov	r3, #0
.L60:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L68:
	.align	2
.L67:
	.word	stderr
	.word	.LC18
	.word	m_verbose
	.word	.LC19
	.word	m_gid
	.word	.LC20
	.word	m_uid
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	change_user, .-change_user
	.section	.rodata
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mkdir_p, %function
mkdir_p:
	@ args = 0, pretend = 0, frame = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-20]
	ldr	r3, .L79
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-20]
	bl	strlen
	str	r0, [r4, #-8]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #4096
	bcc	.L70
	bl	__errno_location
	mov	r3, r0
	mov	r2, #36
	str	r2, [r3]
	mvn	r3, #0
	b	.L77
.L70:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-20]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #1
	str	r3, [r2, #-12]
	b	.L72
.L75:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L73
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #448
	mov	r0, r3
	bl	mkdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L74
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L74
	mvn	r3, #0
	b	.L77
.L74:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	mov	r2, #47
	strb	r2, [r3]
.L73:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	add	r3, r3, #1
	str	r3, [r2, #-12]
.L72:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L75
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #448
	mov	r0, r3
	bl	mkdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L76
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L76
	mvn	r3, #0
	b	.L77
.L76:
	mov	r3, #0
.L77:
	ldr	r2, .L79
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L78
	bl	__stack_chk_fail
.L78:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L80:
	.align	2
.L79:
	.word	.LC28
	.size	mkdir_p, .-mkdir_p
	.section	.rodata
	.align	2
.LC29:
	.ascii	"scubainit: Failed to create %s: %m\012\000"
	.align	2
.LC30:
	.ascii	"scubainit: Failed to chmod %s: %m\012\000"
	.align	2
.LC31:
	.ascii	"scubainit: Failed to chown %s: %m\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_homedir, %function
make_homedir:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	mkdir_p
	mov	r3, r0
	cmp	r3, #0
	beq	.L82
	ldr	r3, .L86
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L86+4
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L83
.L82:
	mov	r1, #448
	ldr	r0, [fp, #-8]
	bl	chmod
	mov	r3, r0
	cmp	r3, #0
	beq	.L84
	ldr	r3, .L86
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L86+8
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L83
.L84:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	chown
	mov	r3, r0
	cmp	r3, #0
	beq	.L85
	ldr	r3, .L86
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L86+12
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L83
.L85:
	mov	r3, #0
.L83:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	stderr
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.size	make_homedir, .-make_homedir
	.section	.rodata
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_executable, %function
make_executable:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L96
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L94
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	lsr	r3, r3, #2
	and	r3, r3, #73
	ldr	r2, [fp, #-104]
	orr	r3, r2, r3
	str	r3, [fp, #-104]
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-112]
	bl	chmod
	mov	r3, r0
	cmp	r3, #0
	bne	.L95
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L90
.L94:
	nop
	b	.L90
.L95:
	nop
.L90:
	ldr	r3, [fp, #-108]
	ldr	r2, .L96
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L93
	bl	__stack_chk_fail
.L93:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L97:
	.align	2
.L96:
	.word	.LC32
	.size	make_executable, .-make_executable
	.section	.rodata
	.align	2
.LC33:
	.ascii	"scubainit: Failed to make executable %s: %m\012\000"
	.align	2
.LC34:
	.ascii	"scubainit: About to execute %s\012\000"
	.align	2
.LC35:
	.ascii	"scubainit: Failed to execute %s: %m\012\000"
	.align	2
.LC36:
	.ascii	"scubainit: %s exited with status %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	call_hook, %function
call_hook:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L99
	mov	r3, #0
	b	.L100
.L99:
	ldr	r0, [fp, #-16]
	bl	make_executable
	mov	r3, r0
	cmp	r3, #0
	beq	.L101
	ldr	r3, .L106
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L106+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #99
	bl	exit
.L101:
	ldr	r3, .L106+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L103
	ldr	r3, .L106
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L106+12
	mov	r0, r3
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	nop
.L103:
	ldr	r0, [fp, #-16]
	bl	system
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L104
	ldr	r3, .L106
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L106+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #99
	bl	exit
.L104:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L105
	ldr	r3, .L106
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r1, .L106+20
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	exit
.L105:
	mov	r3, #0
.L100:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L107:
	.align	2
.L106:
	.word	stderr
	.word	.LC33
	.word	m_verbose
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.size	call_hook, .-call_hook
	.section	.rodata
	.align	2
.LC37:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str2uint, %function
str2uint:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L114
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L109
	mvn	r3, #0
	b	.L112
.L109:
	sub	r3, fp, #16
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strtoul
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L111
	mvn	r3, #0
	b	.L112
.L111:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	mov	r3, #0
.L112:
	ldr	r2, .L114
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L113
	bl	__stack_chk_fail
.L113:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L115:
	.align	2
.L114:
	.word	.LC37
	.size	str2uint, .-str2uint
	.section	.rodata
	.align	2
.LC38:
	.ascii	"scubainit: %s invalid: \"%s\"\012\000"
	.align	2
.LC39:
	.ascii	"scubainit: %s = %u\012\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	getenv_uint_opt_unset, %function
getenv_uint_opt_unset:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L124
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-24]
	bl	getenv
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L117
	mov	r3, #1
	b	.L122
.L117:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	str2uint
	mov	r3, r0
	cmp	r3, #0
	beq	.L119
	ldr	r3, .L124+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r1, .L124+8
	bl	fprintf
	mvn	r3, #0
	b	.L122
.L119:
	ldr	r3, .L124+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L121
	ldr	r3, .L124+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, .L124+16
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	nop
.L121:
	ldr	r0, [fp, #-24]
	bl	unsetenv
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	mov	r3, #0
.L122:
	ldr	r2, .L124
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L123
	bl	__stack_chk_fail
.L123:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L125:
	.align	2
.L124:
	.word	.LC40
	.word	stderr
	.word	.LC38
	.word	m_verbose
	.word	.LC39
	.size	getenv_uint_opt_unset, .-getenv_uint_opt_unset
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	getenv_str_unset, %function
getenv_str_unset:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L127
	mov	r3, #0
	b	.L128
.L127:
	ldr	r0, [fp, #-8]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	unsetenv
	ldr	r3, [fp, #-8]
.L128:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getenv_str_unset, .-getenv_str_unset
	.section	.rodata
	.align	2
.LC41:
	.ascii	"SCUBAINIT_UID\000"
	.align	2
.LC42:
	.ascii	"SCUBAINIT_GID\000"
	.align	2
.LC43:
	.ascii	"scubainit: If SCUBAINIT_UID or SCUBAINIT_GID are se"
	.ascii	"t, both must be set.\012\000"
	.align	2
.LC44:
	.ascii	"SCUBAINIT_UMASK\000"
	.align	2
.LC45:
	.ascii	"SCUBAINIT_VERBOSE\000"
	.align	2
.LC46:
	.ascii	"SCUBAINIT_HOOK_USER\000"
	.align	2
.LC47:
	.ascii	"SCUBAINIT_HOOK_ROOT\000"
	.align	2
.LC48:
	.ascii	"PWD\000"
	.align	2
.LC49:
	.ascii	"OLDPWD\000"
	.align	2
.LC50:
	.ascii	"XAUTHORITY\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_envvars, %function
process_envvars:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, .L143
	ldr	r0, .L143+4
	bl	getenv_uint_opt_unset
	mov	r3, r0
	cmn	r3, #1
	beq	.L130
	cmp	r3, #0
	beq	.L131
	b	.L132
.L130:
	mvn	r3, #0
	b	.L133
.L131:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	nop
.L132:
	ldr	r1, .L143+8
	ldr	r0, .L143+12
	bl	getenv_uint_opt_unset
	mov	r3, r0
	cmn	r3, #1
	beq	.L134
	cmp	r3, #0
	beq	.L135
	b	.L136
.L134:
	mvn	r3, #0
	b	.L133
.L135:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	nop
.L136:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L142
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L142
	ldr	r3, .L143+16
	ldr	r3, [r3]
	mov	r2, #72
	mov	r1, #1
	ldr	r0, .L143+20
	bl	fwrite
	mvn	r3, #0
	b	.L133
.L142:
	nop
	ldr	r1, .L143+24
	ldr	r0, .L143+28
	bl	getenv_uint_opt_unset
	mov	r3, r0
	cmn	r3, #1
	bne	.L140
	mvn	r3, #0
	b	.L133
.L140:
	ldr	r0, .L143+32
	bl	getenv
	mov	r3, r0
	cmp	r3, #0
	beq	.L141
	ldr	r0, .L143+32
	bl	unsetenv
	ldr	r3, .L143+36
	mov	r2, #1
	strb	r2, [r3]
.L141:
	ldr	r0, .L143+40
	bl	getenv_str_unset
	mov	r3, r0
	ldr	r2, .L143+44
	str	r3, [r2]
	ldr	r0, .L143+48
	bl	getenv_str_unset
	mov	r3, r0
	ldr	r2, .L143+52
	str	r3, [r2]
	ldr	r0, .L143+56
	bl	unsetenv
	ldr	r0, .L143+60
	bl	unsetenv
	ldr	r0, .L143+64
	bl	unsetenv
	mov	r3, #0
.L133:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L144:
	.align	2
.L143:
	.word	m_uid
	.word	.LC41
	.word	m_gid
	.word	.LC42
	.word	stderr
	.word	.LC43
	.word	m_umask
	.word	.LC44
	.word	.LC45
	.word	m_verbose
	.word	.LC46
	.word	m_user_hook
	.word	.LC47
	.word	m_root_hook
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.size	process_envvars, .-process_envvars
	.section	.rodata
	.align	2
.LC51:
	.ascii	"/etc/group\000"
	.align	2
.LC52:
	.ascii	"/etc/passwd\000"
	.align	2
.LC53:
	.ascii	"Scuba User\000"
	.align	2
.LC54:
	.ascii	"/etc/shadow\000"
	.align	2
.LC55:
	.ascii	"scubainit: Setting umask to 0%o\012\000"
	.align	2
.LC56:
	.ascii	"scubainit: Missing command\012\000"
	.align	2
.LC57:
	.ascii	"scubainit: execvp(\"%s\", ...)\012\000"
	.align	2
.LC58:
	.ascii	"scubainit: execvp(\"%s\", ...) failed: %m\012\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, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	bl	process_envvars
	mov	r3, r0
	cmp	r3, #0
	bge	.L146
	mov	r0, #99
	bl	exit
.L146:
	bl	use_scuba_user
	mov	r3, r0
	cmp	r3, #0
	beq	.L147
	ldr	r3, .L159
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L159+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L159+8
	bl	make_homedir
	mov	r3, r0
	cmp	r3, #0
	beq	.L148
	mov	r0, #99
	bl	exit
.L148:
	ldr	r3, .L159+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L159+12
	ldr	r0, .L159+16
	bl	add_group
	mov	r3, r0
	cmp	r3, #0
	beq	.L149
	mov	r0, #99
	bl	exit
.L149:
	ldr	r3, .L159
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L159+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L159+8
	str	r3, [sp, #4]
	ldr	r3, .L159+20
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L159+12
	ldr	r0, .L159+24
	bl	add_user
	mov	r3, r0
	cmp	r3, #0
	beq	.L150
	mov	r0, #99
	bl	exit
.L150:
	ldr	r1, .L159+12
	ldr	r0, .L159+28
	bl	add_shadow
	mov	r3, r0
	cmp	r3, #0
	beq	.L147
	mov	r0, #99
	bl	exit
.L147:
	ldr	r3, .L159+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	call_hook
	bl	use_scuba_user
	mov	r3, r0
	cmp	r3, #0
	beq	.L151
	bl	change_user
	mov	r3, r0
	cmp	r3, #0
	bge	.L151
	mov	r0, #99
	bl	exit
.L151:
	ldr	r3, .L159+36
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L152
	ldr	r3, .L159+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L154
	ldr	r3, .L159+44
	ldr	r3, [r3]
	ldr	r2, .L159+36
	ldr	r2, [r2]
	ldr	r1, .L159+48
	mov	r0, r3
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	nop
.L154:
	ldr	r3, .L159+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	umask
.L152:
	bl	use_scuba_user
	mov	r3, r0
	cmp	r3, #0
	beq	.L155
	ldr	r3, .L159+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	call_hook
.L155:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L156
	ldr	r3, .L159+44
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L159+56
	bl	fwrite
	mov	r0, #99
	bl	exit
.L156:
	ldr	r3, .L159+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L158
	ldr	r3, .L159+44
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L159+60
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	nop
.L158:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	execvp
	ldr	r3, .L159+44
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L159+64
	bl	fprintf
	mov	r0, #99
	bl	exit
.L160:
	.align	2
.L159:
	.word	m_uid
	.word	m_gid
	.word	.LC25
	.word	.LC22
	.word	.LC51
	.word	.LC53
	.word	.LC52
	.word	.LC54
	.word	m_root_hook
	.word	m_umask
	.word	m_verbose
	.word	stderr
	.word	.LC55
	.word	m_user_hook
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6662, %object
	.size	__PRETTY_FUNCTION__.6662, 15
__PRETTY_FUNCTION__.6662:
	.ascii	"use_scuba_user\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
