	.file	"28262650.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/var/run/utmp"
	.section	.data.rel.local,"aw"
	.align 8
	.type	utmp_file, @object
	.size	utmp_file, 8
utmp_file:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"/var/log/wtmp"
	.section	.data.rel.local
	.align 8
	.type	wtmp_file, @object
	.size	wtmp_file, 8
wtmp_file:
	.quad	.LC1
	.section	.rodata
.LC2:
	.string	"_logout"
.LC3:
	.string	"%s has been logged out.\n"
	.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
	cmp	DWORD PTR -20[rbp], 1
	jne	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	helpAndLeave
.L2:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -20[rbp], 2
	jle	.L3
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR utmp_file[rip], rax
.L3:
	cmp	DWORD PTR -20[rbp], 3
	jle	.L4
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR wtmp_file[rip], rax
.L4:
	mov	rax, QWORD PTR utmp_file[rip]
	mov	rdi, rax
	call	utmpname@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	_logout
	test	eax, eax
	jne	.L5
	lea	rdi, .LC2[rip]
	call	pexit
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	_logout, @function
_logout:
.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, 432
	mov	QWORD PTR -424[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -424[rbp]
	lea	rdx, -400[rbp]
	lea	rcx, 8[rdx]
	mov	edx, 32
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	call	setutxent@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L7
	mov	eax, 0
	jmp	.L13
.L7:
	lea	rax, -400[rbp]
	mov	rdi, rax
	call	getutxline@PLT
	mov	QWORD PTR -408[rbp], rax
	cmp	QWORD PTR -408[rbp], 0
	jne	.L9
	mov	eax, 1
	jmp	.L13
.L9:
	mov	rax, QWORD PTR -408[rbp]
	add	rax, 44
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -408[rbp]
	add	rax, 76
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -408[rbp]
	add	rax, 340
	mov	rdi, rax
	call	time@PLT
	mov	rax, QWORD PTR -408[rbp]
	mov	WORD PTR [rax], 8
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	call	setutxent@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L10
	mov	eax, 0
	jmp	.L13
.L10:
	mov	rax, QWORD PTR -408[rbp]
	mov	rdi, rax
	call	pututxline@PLT
	test	rax, rax
	jne	.L11
	mov	eax, 0
	jmp	.L13
.L11:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	call	endutxent@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L12
	mov	eax, 0
	jmp	.L13
.L12:
	mov	rax, QWORD PTR wtmp_file[rip]
	mov	rdx, QWORD PTR -408[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	updwtmpx@PLT
	mov	eax, 1
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_logout, .-_logout
	.section	.rodata
	.align 8
.LC4:
	.string	"Usage: %s <ut_line> [utmp_file] [wtmp_file]\n"
	.text
	.type	helpAndLeave, @function
helpAndLeave:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR stderr[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -8[rbp], rax
.L16:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	helpAndLeave, .-helpAndLeave
	.type	pexit, @function
pexit:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	pexit, .-pexit
	.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	"28262650.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/var/run/utmp\000"
	.data
	.align	2
	.type	utmp_file, %object
	.size	utmp_file, 4
utmp_file:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/var/log/wtmp\000"
	.data
	.align	2
	.type	wtmp_file, %object
	.size	wtmp_file, 4
wtmp_file:
	.word	.LC1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"_logout\000"
	.align	2
.LC3:
	.ascii	"%s has been logged out.\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, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L2
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	helpAndLeave
.L2:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	ldr	r2, .L6
	str	r3, [r2]
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L4
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	ldr	r2, .L6+4
	str	r3, [r2]
.L4:
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r0, r3
	bl	utmpname
	ldr	r0, [fp, #-8]
	bl	_logout
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L6+8
	bl	pexit
.L5:
	ldr	r1, [fp, #-8]
	ldr	r0, .L6+12
	bl	printf
	mov	r0, #0
	bl	exit
.L7:
	.align	2
.L6:
	.word	utmp_file
	.word	wtmp_file
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_logout, %function
_logout:
	@ args = 0, pretend = 0, frame = 400
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #400
	str	r0, [fp, #-400]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #392
	add	r3, r3, #8
	mov	r2, #32
	ldr	r1, [fp, #-400]
	mov	r0, r3
	bl	strncpy
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	bl	setutxent
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	mov	r3, #0
	b	.L15
.L9:
	sub	r3, fp, #392
	mov	r0, r3
	bl	getutxline
	str	r0, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	bne	.L11
	mov	r3, #1
	b	.L15
.L11:
	ldr	r3, [fp, #-396]
	add	r3, r3, #44
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-396]
	add	r3, r3, #76
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-396]
	add	r3, r3, #340
	mov	r0, r3
	bl	time
	ldr	r3, [fp, #-396]
	mov	r2, #8
	strh	r2, [r3]	@ movhi
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	bl	setutxent
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	mov	r3, #0
	b	.L15
.L12:
	ldr	r0, [fp, #-396]
	bl	pututxline
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	mov	r3, #0
	b	.L15
.L13:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	bl	endutxent
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	mov	r3, #0
	b	.L15
.L14:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-396]
	mov	r0, r3
	bl	updwtmpx
	mov	r3, #1
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	wtmp_file
	.size	_logout, .-_logout
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: %s <ut_line> [utmp_file] [wtmp_file]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	helpAndLeave, %function
helpAndLeave:
	@ 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]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L21+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L20:
	ldr	r2, [fp, #-16]
	ldr	r1, .L21+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-20]
	bl	exit
.L22:
	.align	2
.L21:
	.word	stderr
	.word	stdout
	.word	.LC5
	.size	helpAndLeave, .-helpAndLeave
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pexit, %function
pexit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	pexit, .-pexit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
