	.file	"353576.c"
	.intel_syntax noprefix
	.text
	.globl	dirname
	.type	dirname, @function
dirname:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L4:
	sub	QWORD PTR -8[rbp], 1
.L2:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L3
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
.L3:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dirname, .-dirname
	.globl	canonical
	.type	canonical, @function
canonical:
.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, 32
	mov	QWORD PTR -4120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -4112[rbp], 0
	lea	rdx, -4112[rbp]
	mov	rax, QWORD PTR -4120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realpath@PLT
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -4120[rbp]
	mov	BYTE PTR [rax], 0
	lea	rdx, -4112[rbp]
	mov	rax, QWORD PTR -4120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L8:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	canonical, .-canonical
	.globl	file_exists
	.type	file_exists, @function
file_exists:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	sete	al
	movzx	eax, al
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	file_exists, .-file_exists
	.section	.rodata
.LC0:
	.string	"r"
	.text
	.globl	getExecutableDir
	.type	getExecutableDir, @function
getExecutableDir:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	QWORD PTR -4152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR -4136[rbp], rax
	mov	rax, QWORD PTR -4136[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -4152[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L13
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR -4128[rbp], rax
	mov	rax, QWORD PTR -4128[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	getcwd@PLT
	mov	rdx, QWORD PTR -4128[rbp]
	mov	rax, QWORD PTR -4136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -4136[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	mov	rdx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -4128[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdi, rax
	call	file_exists
	test	eax, eax
	jne	.L14
	lea	rax, -4112[rbp]
	mov	DWORD PTR [rax], 1667852407
	mov	WORD PTR 4[rax], 8296
	mov	BYTE PTR 6[rax], 0
	mov	rdx, QWORD PTR -4152[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -4136[rbp]
	mov	BYTE PTR [rax], 0
	lea	rax, -4112[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -4120[rbp], rax
	mov	rdx, QWORD PTR -4120[rbp]
	mov	rax, QWORD PTR -4136[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -4120[rbp]
	mov	rdi, rax
	call	pclose@PLT
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -4136[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L15:
	mov	rax, QWORD PTR -4136[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L14
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -4136[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L16
	jmp	.L14
.L13:
	mov	rdx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L14:
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	canonical
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	dirname
	mov	rax, QWORD PTR -4136[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getExecutableDir, .-getExecutableDir
	.section	.rodata
.LC1:
	.string	"BToolkit"
.LC2:
	.string	"Blauncher"
.LC3:
	.string	"HOME"
.LC4:
	.string	"PATH"
.LC5:
	.string	"DISPLAY"
.LC6:
	.string	"uname -s"
.LC7:
	.string	"Darwin"
	.align 8
.LC8:
	.string	"xprop -root -len 1 > /dev/null"
	.align 8
.LC9:
	.string	"/usr/bin/osascript <<EOF\ntell app \"System Events\"\ndisplay dialog \"X server?\"\nend tell\nEOF\n"
	.align 8
.LC10:
	.string	"/usr/bin/osascript -e 'tell app \"System Events\"\ndisplay dialog \"Starting X11\" with title \"BToolkit\" with icon note buttons {\"Ok\"} giving up after 5\nend tell' > /dev/null &"
.LC11:
	.string	"open $BKIT/start.x11app"
.LC12:
	.string	"$BKIT/BToolkit"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	lea	r11, -24576[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 120
	.cfi_offset 3, -24
	mov	DWORD PTR -24692[rbp], edi
	mov	QWORD PTR -24704[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24656[rbp], 0
	mov	DWORD PTR -24672[rbp], 0
	mov	rax, QWORD PTR -24704[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24664[rbp], rax
	mov	rax, QWORD PTR -24664[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -24680[rbp], eax
.L23:
	cmp	DWORD PTR -24680[rbp], 0
	je	.L46
	sub	DWORD PTR -24680[rbp], 1
	mov	eax, DWORD PTR -24680[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24664[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L23
	mov	eax, DWORD PTR -24680[rbp]
	cdqe
	add	rax, 1
	add	QWORD PTR -24664[rbp], rax
	jmp	.L21
.L46:
	nop
.L21:
	mov	rax, QWORD PTR -24704[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	getExecutableDir
	mov	QWORD PTR -24648[rbp], rax
	mov	rdx, QWORD PTR -24648[rbp]
	lea	rax, -16416[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -16416[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -24656[rbp], rax
	mov	rax, QWORD PTR -24656[rbp]
	sub	rax, 4
	movzx	eax, BYTE PTR -16416[rbp+rax]
	cmp	al, 66
	jne	.L24
	mov	rax, QWORD PTR -24656[rbp]
	sub	rax, 3
	movzx	eax, BYTE PTR -16416[rbp+rax]
	cmp	al, 75
	jne	.L24
	mov	rax, QWORD PTR -24656[rbp]
	sub	rax, 2
	movzx	eax, BYTE PTR -16416[rbp+rax]
	cmp	al, 73
	jne	.L24
	mov	rax, QWORD PTR -24656[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR -16416[rbp+rax]
	cmp	al, 84
	je	.L25
.L24:
	lea	rax, -16416[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -16416[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1229668911
	mov	WORD PTR 4[rax], 84
.L25:
	lea	rax, -24608[rbp]
	mov	DWORD PTR [rax], 1414089538
	mov	WORD PTR 4[rax], 61
	lea	rdx, -16416[rbp]
	lea	rax, -24608[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -24608[rbp]
	mov	rdi, rax
	call	putenv@PLT
	mov	rax, QWORD PTR -24664[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 2
	jbe	.L26
	mov	rax, QWORD PTR -24664[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L27
	mov	rax, QWORD PTR -24664[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 116
	jne	.L27
	mov	rax, QWORD PTR -24664[rbp]
	mov	BYTE PTR [rax], 66
	mov	rax, QWORD PTR -24664[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 84
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -24664[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L28
	mov	rax, QWORD PTR -24664[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 117
	jne	.L28
	mov	rax, QWORD PTR -24664[rbp]
	mov	BYTE PTR [rax], 66
	mov	rax, QWORD PTR -24664[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 85
	jmp	.L26
.L28:
	mov	rax, QWORD PTR -24664[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L29
	mov	rax, QWORD PTR -24664[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 112
	jne	.L29
	mov	rax, QWORD PTR -24664[rbp]
	mov	BYTE PTR [rax], 66
	mov	rax, QWORD PTR -24664[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 80
	jmp	.L26
.L29:
	mov	rax, QWORD PTR -24664[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L26
	mov	rax, QWORD PTR -24664[rbp]
	mov	BYTE PTR [rax], 66
.L26:
	mov	rax, QWORD PTR -24664[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L30
	mov	rax, QWORD PTR -24664[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
.L30:
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -24640[rbp], rax
	mov	rdx, QWORD PTR -24640[rbp]
	lea	rax, -12320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -12320[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -12320[rbp]
	add	rax, rdx
	movabs	rbx, 7307775882127426095
	mov	QWORD PTR [rax], rbx
	mov	DWORD PTR 8[rax], 7566435
	lea	rax, -12320[rbp]
	mov	esi, 448
	mov	rdi, rax
	call	mkdir@PLT
	mov	DWORD PTR -24672[rbp], eax
	cmp	DWORD PTR -24672[rbp], 0
	jne	.L32
	lea	rax, -12320[rbp]
	mov	DWORD PTR [rax], 757100643
	mov	WORD PTR 4[rax], 8306
	mov	BYTE PTR 6[rax], 0
	lea	rdx, -16416[rbp]
	lea	rax, -12320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -12320[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -12320[rbp]
	add	rax, rdx
	movabs	rcx, 3039735466791551535
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 32
	mov	rdx, QWORD PTR -24640[rbp]
	lea	rax, -12320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -12320[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -12320[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], rbx
	mov	DWORD PTR 8[rax], 7566435
	lea	rax, -12320[rbp]
	mov	rdi, rax
	call	system@PLT
.L32:
	mov	rdx, QWORD PTR -24640[rbp]
	lea	rax, -12320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -12320[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -12320[rbp]
	add	rax, rdx
	movabs	rbx, 7379557485809653807
	mov	QWORD PTR [rax], rbx
	mov	BYTE PTR 8[rax], 0
	lea	rax, -12320[rbp]
	mov	rdi, rax
	call	file_exists
	test	eax, eax
	jne	.L33
	lea	rax, -12320[rbp]
	mov	DWORD PTR [rax], 2125923
	lea	rdx, -16416[rbp]
	lea	rax, -12320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -12320[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -12320[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], rbx
	mov	WORD PTR 8[rax], 32
	mov	rdx, QWORD PTR -24640[rbp]
	lea	rax, -12320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -12320[rbp]
	mov	rdi, rax
	call	system@PLT
.L33:
	mov	rdx, QWORD PTR -24640[rbp]
	lea	rax, -12320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -12320[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -12320[rbp]
	add	rax, rdx
	movabs	rcx, 7307775882127426095
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 7566435
	lea	rax, -12320[rbp]
	mov	rdi, rax
	call	chdir@PLT
.L31:
	lea	rax, -20512[rbp]
	mov	DWORD PTR [rax], 1213481296
	mov	WORD PTR 4[rax], 61
	lea	rdx, -16416[rbp]
	lea	rax, -20512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -20512[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -20512[rbp]
	add	rax, rdx
	movabs	rcx, 13011905300677167
	mov	QWORD PTR [rax], rcx
	lea	rdi, .LC4[rip]
	call	getenv@PLT
	mov	QWORD PTR -24632[rbp], rax
	cmp	QWORD PTR -24632[rbp], 0
	je	.L34
	lea	rax, -20512[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -20512[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 58
	mov	rdx, QWORD PTR -24632[rbp]
	lea	rax, -20512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L34:
	lea	rax, -20512[rbp]
	mov	rdi, rax
	call	putenv@PLT
	mov	rax, QWORD PTR -24664[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L35
	mov	rax, QWORD PTR -24664[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L36
.L35:
	lea	rdi, .LC5[rip]
	call	getenv@PLT
	mov	QWORD PTR -24624[rbp], rax
	cmp	QWORD PTR -24624[rbp], 0
	jne	.L37
	lea	rax, -8224[rbp]
	movabs	rcx, 4420636305261807940
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 808333370
	mov	BYTE PTR 12[rax], 0
	lea	rax, -8224[rbp]
	mov	rdi, rax
	call	putenv@PLT
.L37:
	mov	BYTE PTR -4128[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	popen@PLT
	mov	QWORD PTR -24616[rbp], rax
	mov	rdx, QWORD PTR -24616[rbp]
	lea	rax, -4128[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -24616[rbp]
	mov	rdi, rax
	call	pclose@PLT
	lea	rax, -4128[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L38
	lea	rdi, .LC8[rip]
	call	system@PLT
	mov	DWORD PTR -24668[rbp], eax
	cmp	DWORD PTR -24668[rbp], 127
	jne	.L39
	lea	rdi, .LC9[rip]
	call	system@PLT
	mov	edi, 1
	call	exit@PLT
.L39:
	cmp	DWORD PTR -24668[rbp], 1
	jne	.L38
	lea	rdi, .LC10[rip]
	call	system@PLT
	lea	rdi, .LC11[rip]
	call	system@PLT
	mov	edi, 5
	call	sleep@PLT
.L38:
	lea	rdi, .LC12[rip]
	call	system@PLT
	jmp	.L40
.L36:
	lea	rax, -4128[rbp]
	mov	DWORD PTR [rax], 1229668900
	mov	WORD PTR 4[rax], 12116
	mov	BYTE PTR 6[rax], 0
	mov	rdx, QWORD PTR -24664[rbp]
	lea	rax, -4128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4128[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
	mov	DWORD PTR -24676[rbp], 1
	jmp	.L41
.L43:
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4128[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 39
	mov	eax, DWORD PTR -24676[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24704[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -4128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4128[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 39
	mov	eax, DWORD PTR -24676[rbp]
	add	eax, 1
	cmp	DWORD PTR -24692[rbp], eax
	jle	.L42
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4128[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
.L42:
	add	DWORD PTR -24676[rbp], 1
.L41:
	mov	eax, DWORD PTR -24676[rbp]
	cmp	eax, DWORD PTR -24692[rbp]
	jl	.L43
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	system@PLT
.L40:
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"353576.c"
	.text
	.align	2
	.global	dirname
	.syntax unified
	.arm
	.fpu softvfp
	.type	dirname, %function
dirname:
	@ 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	strlen
	str	r0, [fp, #-8]
	b	.L2
.L4:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L4
.L3:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dirname, .-dirname
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	canonical
	.syntax unified
	.arm
	.fpu softvfp
	.type	canonical, %function
canonical:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #16
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-12]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r1, r3
	ldr	r0, [r2, #-12]
	bl	realpath
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #4
	mov	r1, r3
	ldr	r0, [r2, #-12]
	bl	strcat
.L8:
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	canonical, .-canonical
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	file_exists
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_exists, %function
file_exists:
	@ 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, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.size	file_exists, .-file_exists
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/\000"
	.align	2
.LC3:
	.ascii	"which \000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getExecutableDir
	.syntax unified
	.arm
	.fpu softvfp
	.type	getExecutableDir, %function
getExecutableDir:
	@ 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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #4096
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L17
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #4096
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #4096
	ldr	r0, [r3, #-12]
	bl	getcwd
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-12]
	ldr	r0, [r3, #-16]
	bl	strcat
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, r2
	ldr	r2, .L23+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-20]
	ldr	r0, [r3, #-16]
	bl	strcat
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	free
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	file_exists
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L23+8
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	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	strcat
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L23+12
	mov	r0, r3
	bl	popen
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-8]
	mov	r1, #4096
	ldr	r0, [r3, #-16]
	bl	fgets
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-8]
	bl	pclose
	b	.L19
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L20
	b	.L18
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-20]
	ldr	r0, [r3, #-16]
	bl	strcat
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	canonical
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	dirname
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	getExecutableDir, .-getExecutableDir
	.section	.rodata
	.align	2
.LC6:
	.ascii	"/BKIT\000"
	.align	2
.LC7:
	.ascii	"BKIT=\000"
	.align	2
.LC8:
	.ascii	"BToolkit\000"
	.align	2
.LC9:
	.ascii	"Blauncher\000"
	.align	2
.LC10:
	.ascii	"HOME\000"
	.align	2
.LC11:
	.ascii	"/B_Projects\000"
	.align	2
.LC12:
	.ascii	"cp -r \000"
	.align	2
.LC13:
	.ascii	"/BDEMO/* \000"
	.align	2
.LC14:
	.ascii	"/XBMotif\000"
	.align	2
.LC15:
	.ascii	"/XBMotif \000"
	.align	2
.LC16:
	.ascii	"PATH=\000"
	.align	2
.LC17:
	.ascii	"/BLIB:.\000"
	.align	2
.LC18:
	.ascii	"PATH\000"
	.align	2
.LC19:
	.ascii	":\000"
	.align	2
.LC20:
	.ascii	"DISPLAY\000"
	.align	2
.LC21:
	.ascii	"DISPLAY=:0.0\000"
	.align	2
.LC22:
	.ascii	"uname -s\000"
	.align	2
.LC23:
	.ascii	"Darwin\000"
	.align	2
.LC24:
	.ascii	"xprop -root -len 1 > /dev/null\000"
	.align	2
.LC25:
	.ascii	"/usr/bin/osascript <<EOF\012tell app \"System Event"
	.ascii	"s\"\012display dialog \"X server?\"\012end tell\012"
	.ascii	"EOF\012\000"
	.align	2
.LC26:
	.ascii	"/usr/bin/osascript -e 'tell app \"System Events\"\012"
	.ascii	"display dialog \"Starting X11\" with title \"BToolk"
	.ascii	"it\" with icon note buttons {\"Ok\"} giving up afte"
	.ascii	"r 5\012end tell' > /dev/null &\000"
	.align	2
.LC27:
	.ascii	"open $BKIT/start.x11app\000"
	.align	2
.LC28:
	.ascii	"$BKIT/BToolkit\000"
	.align	2
.LC29:
	.ascii	"$BKIT/\000"
	.align	2
.LC30:
	.ascii	" \000"
	.align	2
.LC31:
	.ascii	"'\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24632
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #24576
	sub	sp, sp, #60
	sub	r3, fp, #24576
	sub	r3, r3, #12
	str	r0, [r3, #-52]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	str	r1, [r3, #-56]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-36]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-32]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	ldr	r3, [r3]
	str	r3, [r2, #-48]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r0, [r3, #-48]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #24576
	sub	r2, r2, #12
	str	r3, [r2, #-44]
.L29:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	beq	.L52
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	sub	r3, r3, #1
	str	r3, [r2, #-44]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L29
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r3, #1
	sub	r2, fp, #24576
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-48]
	add	r3, r2, r3
	str	r3, [r1, #-48]
	b	.L27
.L52:
	nop
.L27:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	ldr	r3, [r3]
	sub	r2, fp, #24576
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	getExecutableDir
	str	r0, [r4, #-28]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-28]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	str	r0, [r4, #-36]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	sub	r3, r3, #4
	sub	r2, fp, #16384
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #66
	bne	.L30
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	sub	r3, r3, #3
	sub	r2, fp, #16384
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #75
	bne	.L30
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	sub	r3, r3, #2
	sub	r2, fp, #16384
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #73
	bne	.L30
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	sub	r3, r3, #1
	sub	r2, fp, #16384
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #84
	beq	.L31
.L30:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
.L31:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L53+8
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	sub	r2, fp, #16384
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #24576
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #24576
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	putenv
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r0, [r3, #-48]
	bl	strlen
	mov	r3, r0
	cmp	r3, #2
	bls	.L32
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L33
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L33
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	mov	r2, #66
	strb	r2, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	mov	r2, #84
	strb	r2, [r3]
	b	.L32
.L33:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L34
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #117
	bne	.L34
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	mov	r2, #66
	strb	r2, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	mov	r2, #85
	strb	r2, [r3]
	b	.L32
.L34:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L35
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L35
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	mov	r2, #66
	strb	r2, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	mov	r2, #80
	strb	r2, [r3]
	b	.L32
.L35:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L32
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	mov	r2, #66
	strb	r2, [r3]
.L32:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r1, .L53+12
	ldr	r0, [r3, #-48]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r1, .L53+16
	ldr	r0, [r3, #-48]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
.L36:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L53+20
	bl	getenv
	str	r0, [r4, #-24]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-24]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #12
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #448
	mov	r0, r3
	bl	mkdir
	str	r0, [r4, #-32]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	bne	.L38
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L53+28
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #10
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-24]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #12
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
.L38:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-24]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+36
	mov	r0, r3
	mov	r1, r2
	mov	r3, #9
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	file_exists
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L53+40
	str	r2, [r3]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+44
	mov	r0, r3
	mov	r1, r2
	mov	r3, #10
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-24]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
.L39:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-24]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #12
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	chdir
.L37:
	sub	r3, fp, #20480
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L53+48
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	sub	r2, fp, #16384
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #20480
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #20480
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+52
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L53+56
	bl	getenv
	str	r0, [r4, #-20]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	beq	.L40
	sub	r3, fp, #20480
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+60
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #20480
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-20]
	mov	r0, r3
	bl	strcat
.L40:
	sub	r3, fp, #20480
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	putenv
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r1, .L53+12
	ldr	r0, [r3, #-48]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r1, .L53+16
	ldr	r0, [r3, #-48]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
.L41:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L53+64
	bl	getenv
	str	r0, [r4, #-16]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L43
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L53+68
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	putenv
.L43:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-4]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L53+72
	ldr	r0, .L53+76
	bl	popen
	str	r0, [r4, #-12]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-12]
	mov	r1, #4096
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	pclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L53+80
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L53+84
	bl	system
	str	r0, [r4, #-8]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #127
	bne	.L45
	ldr	r0, .L53+88
	bl	system
	mov	r0, #1
	bl	exit
.L45:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #1
	bne	.L44
	ldr	r0, .L53+92
	bl	system
	ldr	r0, .L53+96
	bl	system
	mov	r0, #5
	bl	sleep
.L44:
	ldr	r0, .L53+100
	bl	system
	b	.L46
.L42:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L53+104
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-48]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+108
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-40]
	b	.L47
.L49:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+112
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	lsl	r3, r3, #2
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-56]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+112
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #1
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-52]
	cmp	r2, r3
	ble	.L48
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L53+108
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L48:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #1
	str	r3, [r2, #-40]
.L47:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r2, #-40]
	ldr	r3, [r3, #-52]
	cmp	r2, r3
	blt	.L49
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
.L46:
	mov	r3, #0
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC32
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	2125923
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC4
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
