	.file	"231393323.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"/etc/passwd"
.LC2:
	.string	":"
.LC3:
	.string	"USER"
	.text
	.globl	set_username
	.type	set_username, @function
set_username:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1152
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -1128[rbp], rax
	mov	eax, 0
	call	syscall_getuid@PLT
	mov	DWORD PTR -1148[rbp], eax
	jmp	.L2
.L7:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -1040[rbp+rax], 0
	mov	DWORD PTR -1152[rbp], 0
	lea	rdx, -1144[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strtok_r@PLT
	cdqe
	mov	QWORD PTR -1136[rbp], rax
	jmp	.L3
.L5:
	cmp	DWORD PTR -1152[rbp], 510
	jg	.L4
	mov	eax, DWORD PTR -1152[rbp]
	cdqe
	mov	rdx, QWORD PTR -1136[rbp]
	mov	QWORD PTR -1120[rbp+rax*8], rdx
.L4:
	lea	rax, -1144[rbp]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	edi, 0
	mov	eax, 0
	call	strtok_r@PLT
	cdqe
	mov	QWORD PTR -1136[rbp], rax
	add	DWORD PTR -1152[rbp], 1
.L3:
	cmp	QWORD PTR -1136[rbp], 0
	jne	.L5
	mov	eax, DWORD PTR -1152[rbp]
	cdqe
	mov	QWORD PTR -1120[rbp+rax*8], 0
	mov	rax, QWORD PTR -1104[rbp]
	mov	rdi, rax
	call	atoi@PLT
	cmp	DWORD PTR -1148[rbp], eax
	jne	.L2
	mov	rax, QWORD PTR -1120[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	setenv@PLT
.L2:
	mov	rdx, QWORD PTR -1128[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR -1128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	set_username, .-set_username
	.section	.rodata
.LC4:
	.string	"/home/%s"
.LC5:
	.string	"HOME"
.LC6:
	.string	"/"
	.text
	.globl	set_homedir
	.type	set_homedir, @function
set_homedir:
.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, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	je	.L10
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -528[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	setenv@PLT
	jmp	.L13
.L10:
	mov	edx, 1
	lea	rsi, .LC6[rip]
	lea	rdi, .LC5[rip]
	call	setenv@PLT
.L13:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	set_homedir, .-set_homedir
	.section	.rodata
.LC7:
	.string	"/bin"
.LC8:
	.string	"PATH"
	.text
	.globl	set_path
	.type	set_path, @function
set_path:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 0
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	setenv@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	set_path, .-set_path
	.section	.rodata
.LC9:
	.string	"/bin/wallpaper"
.LC10:
	.string	"/bin/panel"
	.align 8
.LC11:
	.string	"Session leader has exited. Sending INT signals to %d.\n"
.LC12:
	.string	"Waiting on wallpaper."
.LC13:
	.string	"Session has ended."
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	set_username
	mov	eax, 0
	call	set_homedir
	mov	eax, 0
	call	set_path
	call	fork@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jne	.L16
	lea	rax, .LC9[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
.L16:
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L17
	lea	rax, .LC10[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
.L17:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	mov	eax, 0
	call	syscall_wait@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	mov	eax, 0
	call	syscall_wait@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"231393323.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"/etc/passwd\000"
	.align	2
.LC2:
	.ascii	":\000"
	.align	2
.LC3:
	.ascii	"USER\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_username
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_username, %function
set_username:
	@ args = 0, pretend = 0, frame = 1088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1088
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	fopen
	str	r0, [fp, #-1080]
	bl	syscall_getuid
	str	r0, [fp, #-1076]
	b	.L2
.L7:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1028]
	mov	r3, #0
	str	r3, [fp, #-1084]
	sub	r2, fp, #1088
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L9+12
	mov	r0, r3
	bl	strtok_r
	mov	r3, r0
	str	r3, [fp, #-1088]
	b	.L3
.L5:
	ldr	r3, [fp, #-1084]
	ldr	r2, .L9+16
	cmp	r3, r2
	bgt	.L4
	ldr	r3, [fp, #-1084]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-1088]
	str	r2, [r3, #-1068]
.L4:
	sub	r3, fp, #1088
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L9+12
	mov	r0, #0
	bl	strtok_r
	mov	r3, r0
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1084]
	add	r3, r3, #1
	str	r3, [fp, #-1084]
.L3:
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-1084]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1068]
	ldr	r3, [fp, #-1064]
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-1076]
	cmp	r3, r2
	bne	.L2
	ldr	r3, [fp, #-1072]
	mov	r2, #1
	mov	r1, r3
	ldr	r0, .L9+20
	bl	setenv
.L2:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1080]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, [fp, #-1080]
	bl	fclose
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	510
	.word	.LC3
	.size	set_username, .-set_username
	.section	.rodata
	.align	2
.LC5:
	.ascii	"/home/%s\000"
	.align	2
.LC6:
	.ascii	"HOME\000"
	.align	2
.LC7:
	.ascii	"/\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_homedir
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_homedir, %function
set_homedir:
	@ args = 0, pretend = 0, frame = 520
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #520
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L16+4
	bl	getenv
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #520
	ldr	r2, [fp, #-524]
	ldr	r1, .L16+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #520
	mov	r2, #1
	mov	r1, r3
	ldr	r0, .L16+12
	bl	setenv
	b	.L15
.L12:
	mov	r2, #1
	ldr	r1, .L16+16
	ldr	r0, .L16+12
	bl	setenv
.L15:
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC8
	.word	.LC3
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	set_homedir, .-set_homedir
	.section	.rodata
	.align	2
.LC9:
	.ascii	"/bin\000"
	.align	2
.LC10:
	.ascii	"PATH\000"
	.text
	.align	2
	.global	set_path
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_path, %function
set_path:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #0
	ldr	r1, .L19
	ldr	r0, .L19+4
	bl	setenv
	nop
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC9
	.word	.LC10
	.size	set_path, .-set_path
	.section	.rodata
	.align	2
.LC11:
	.ascii	"/bin/wallpaper\000"
	.align	2
.LC12:
	.ascii	"/bin/panel\000"
	.align	2
.LC13:
	.ascii	"Session leader has exited. Sending INT signals to %"
	.ascii	"d.\012\000"
	.align	2
.LC14:
	.ascii	"Waiting on wallpaper.\000"
	.align	2
.LC15:
	.ascii	"Session has ended.\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	set_username
	bl	set_homedir
	bl	set_path
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L26+4
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	execvp
.L22:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L26+8
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	execvp
.L23:
	ldr	r0, [fp, #-20]
	bl	syscall_wait
	ldr	r1, [fp, #-24]
	ldr	r0, .L26+12
	bl	printf
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	kill
	ldr	r0, .L26+16
	bl	puts
	ldr	r0, [fp, #-24]
	bl	syscall_wait
	ldr	r0, .L26+20
	bl	puts
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC16
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
