	.file	"450515.c"
	.intel_syntax noprefix
	.text
	.local	utmpbuf
	.comm	utmpbuf,6144,32
	.local	num_recs
	.comm	num_recs,4,4
	.local	cur_rec
	.comm	cur_rec,4,4
	.data
	.align 4
	.type	fd_utmp, @object
	.size	fd_utmp, 4
fd_utmp:
	.long	-1
	.text
	.globl	utmp_open
	.type	utmp_open, @function
utmp_open:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd_utmp[rip], eax
	mov	DWORD PTR num_recs[rip], 0
	mov	eax, DWORD PTR num_recs[rip]
	mov	DWORD PTR cur_rec[rip], eax
	mov	eax, DWORD PTR fd_utmp[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	utmp_open, .-utmp_open
	.globl	utmp_next
	.type	utmp_next, @function
utmp_next:
.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, 16
	mov	eax, DWORD PTR fd_utmp[rip]
	cmp	eax, -1
	jne	.L4
	mov	eax, 0
	jmp	.L5
.L4:
	mov	edx, DWORD PTR cur_rec[rip]
	mov	eax, DWORD PTR num_recs[rip]
	cmp	edx, eax
	jne	.L6
	mov	eax, 0
	call	utmp_reload
	test	eax, eax
	jne	.L6
	mov	eax, 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR cur_rec[rip]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 7
	mov	rdx, rax
	lea	rax, utmpbuf[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR cur_rec[rip]
	add	eax, 1
	mov	DWORD PTR cur_rec[rip], eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 7
	jne	.L4
	mov	rax, QWORD PTR -8[rbp]
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	utmp_next, .-utmp_next
	.globl	utmp_reload
	.type	utmp_reload, @function
utmp_reload:
.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, 16
	mov	eax, DWORD PTR fd_utmp[rip]
	mov	edx, 6144
	lea	rsi, utmpbuf[rip]
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movabs	rdx, -6148914691236517205
	mul	rdx
	mov	rax, rdx
	shr	rax, 8
	mov	DWORD PTR num_recs[rip], eax
	mov	DWORD PTR cur_rec[rip], 0
	mov	eax, DWORD PTR num_recs[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	utmp_reload, .-utmp_reload
	.globl	utmp_close
	.type	utmp_close, @function
utmp_close:
.LFB9:
	.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 fd_utmp[rip]
	cmp	eax, -1
	je	.L10
	mov	eax, DWORD PTR fd_utmp[rip]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
.L10:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	utmp_close, .-utmp_close
	.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	"450515.c"
	.text
	.local	utmpbuf
	.comm	utmpbuf,6144,4
	.local	num_recs
	.comm	num_recs,4,4
	.local	cur_rec
	.comm	cur_rec,4,4
	.data
	.align	2
	.type	fd_utmp, %object
	.size	fd_utmp, 4
fd_utmp:
	.word	-1
	.text
	.align	2
	.global	utmp_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	utmp_open, %function
utmp_open:
	@ 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]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	open
	mov	r3, r0
	ldr	r2, .L3
	str	r3, [r2]
	ldr	r3, .L3+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L3+4
	ldr	r3, [r3]
	ldr	r2, .L3+8
	str	r3, [r2]
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	fd_utmp
	.word	num_recs
	.word	cur_rec
	.size	utmp_open, .-utmp_open
	.align	2
	.global	utmp_next
	.syntax unified
	.arm
	.fpu softvfp
	.type	utmp_next, %function
utmp_next:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L9
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L6
	mov	r3, #0
	b	.L7
.L6:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L8
	bl	utmp_reload
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	b	.L7
.L8:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #7
	mov	r2, r3
	ldr	r3, .L9+12
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9+4
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	ldrsh	r3, [r3]
	cmp	r3, #7
	bne	.L6
	ldr	r3, [fp, #-8]
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	fd_utmp
	.word	cur_rec
	.word	num_recs
	.word	utmpbuf
	.size	utmp_next, .-utmp_next
	.align	2
	.global	utmp_reload
	.syntax unified
	.arm
	.fpu softvfp
	.type	utmp_reload, %function
utmp_reload:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r2, #6144
	ldr	r1, .L13+4
	mov	r0, r3
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L13+8
	umull	r1, r3, r2, r3
	lsr	r3, r3, #8
	mov	r2, r3
	ldr	r3, .L13+12
	str	r2, [r3]
	ldr	r3, .L13+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	fd_utmp
	.word	utmpbuf
	.word	-1431655765
	.word	num_recs
	.word	cur_rec
	.size	utmp_reload, .-utmp_reload
	.align	2
	.global	utmp_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	utmp_close, %function
utmp_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L17
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L16
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
.L16:
	nop
	mov	r0, r3
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	fd_utmp
	.size	utmp_close, .-utmp_close
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
