	.file	"75478.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L2
.L3:
	call	usage
.L2:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	cmp	eax, -1
	jne	.L3
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -32[rbp], rax
	cmp	DWORD PTR -20[rbp], 0
	jg	.L4
	call	usage
.L4:
	mov	edi, 1
	call	isatty@PLT
	test	eax, eax
	je	.L5
	call	dofile
.L5:
	mov	edi, 2
	call	isatty@PLT
	test	eax, eax
	je	.L6
	mov	esi, 2
	mov	edi, 1
	call	dup2@PLT
	cmp	eax, -1
	jne	.L6
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 127
	mov	eax, 0
	call	err@PLT
.L6:
	mov	esi, 1
	mov	edi, 1
	call	signal@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L7
	mov	eax, 127
	jmp	.L8
.L7:
	mov	eax, 126
.L8:
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, .LC1[rip]
	mov	edi, eax
	mov	eax, 0
	call	err@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"nohup.out"
.LC3:
	.string	"HOME"
.LC4:
	.string	"%s/%s"
.LC5:
	.string	"can't open a nohup.out file"
.LC6:
	.string	"dup2 failed"
.LC7:
	.string	"appending output to %s\n"
	.text
	.type	dofile, @function
dofile:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -4120[rbp], rax
	mov	rax, QWORD PTR -4120[rbp]
	mov	edx, 384
	mov	esi, 1090
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4124[rbp], eax
	cmp	DWORD PTR -4124[rbp], -1
	jne	.L15
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -4120[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L12
	mov	rdx, QWORD PTR -4120[rbp]
	lea	rax, -4112[rbp]
	lea	r8, .LC2[rip]
	mov	rcx, rdx
	lea	rdx, .LC4[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	cmp	eax, 4095
	ja	.L12
	lea	rax, -4112[rbp]
	mov	QWORD PTR -4120[rbp], rax
	mov	rax, QWORD PTR -4120[rbp]
	mov	edx, 384
	mov	esi, 1090
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4124[rbp], eax
	cmp	DWORD PTR -4124[rbp], -1
	jne	.L16
.L12:
	lea	rsi, .LC5[rip]
	mov	edi, 127
	mov	eax, 0
	call	errx@PLT
.L15:
	nop
	jmp	.L11
.L16:
	nop
.L11:
	mov	eax, DWORD PTR -4124[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	cmp	eax, -1
	jne	.L13
	lea	rsi, .LC6[rip]
	mov	edi, 127
	mov	eax, 0
	call	err@PLT
.L13:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -4120[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dofile, .-dofile
	.section	.rodata
	.align 8
.LC8:
	.string	"usage: nohup [--] command [arguments]\n"
	.text
	.type	usage, @function
usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 127
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.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	"75478.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%s\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, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	b	.L2
.L3:
	bl	usage
.L2:
	ldr	r2, .L9
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L4
	bl	usage
.L4:
	mov	r0, #1
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	bl	dofile
.L5:
	mov	r0, #2
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	mov	r1, #2
	mov	r0, #1
	bl	dup2
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L9+8
	mov	r0, #127
	bl	err
.L6:
	mov	r1, #1
	mov	r0, #1
	bl	signal
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	execvp
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L7
	mov	r3, #127
	b	.L8
.L7:
	mov	r3, #126
.L8:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L9+8
	ldr	r0, [fp, #-8]
	bl	err
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	optind
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"nohup.out\000"
	.align	2
.LC3:
	.ascii	"HOME\000"
	.align	2
.LC4:
	.ascii	"%s/%s\000"
	.align	2
.LC5:
	.ascii	"can't open a nohup.out file\000"
	.align	2
.LC6:
	.ascii	"dup2 failed\000"
	.align	2
.LC7:
	.ascii	"appending output to %s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dofile, %function
dofile:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #28
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L19+4
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #384
	ldr	r1, .L19+8
	ldr	r0, [r3, #-8]
	bl	open
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmn	r3, #1
	bne	.L17
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L19+12
	bl	getenv
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, .L19+4
	str	r3, [sp]
	ldr	r3, [r2, #-8]
	ldr	r2, .L19+16
	mov	r1, #4096
	bl	snprintf
	mov	r3, r0
	cmp	r3, #4096
	bcs	.L14
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #384
	ldr	r1, .L19+8
	ldr	r0, [r3, #-8]
	bl	open
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmn	r3, #1
	bne	.L18
.L14:
	ldr	r1, .L19+20
	mov	r0, #127
	bl	errx
.L17:
	nop
	b	.L13
.L18:
	nop
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #1
	ldr	r0, [r3, #-12]
	bl	dup2
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	ldr	r1, .L19+24
	mov	r0, #127
	bl	err
.L15:
	ldr	r3, .L19+28
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-8]
	ldr	r1, .L19+32
	mov	r0, r3
	bl	fprintf
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC8
	.word	.LC2
	.word	1090
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	stderr
	.word	.LC7
	.size	dofile, .-dofile
	.section	.rodata
	.align	2
.LC9:
	.ascii	"usage: nohup [--] command [arguments]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L22+4
	bl	fwrite
	mov	r0, #127
	bl	exit
.L23:
	.align	2
.L22:
	.word	stderr
	.word	.LC9
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
