	.file	"extr_util.c_enter_lastlog.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	enter_lastlog
	.type	enter_lastlog, @function
enter_lastlog:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, DWORD PTR UTXDB_LASTLOGIN[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	setutxdb@PLT
	test	rax, rax
	je	.L39
.L3:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	endutxent@PLT
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	call	getutxuser@PLT
	mov	rbx, QWORD PTR 0[rbp]
	mov	r12, rax
	test	rbx, rbx
	je	.L11
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR USER_PROCESS[rip]
	cmp	QWORD PTR [r12], rax
	jne	.L3
	mov	rdx, QWORD PTR LOGGEDIN[rip]
	mov	rax, rbx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, 1
	xor	esi, esi
	cmp	QWORD PTR [rax], rdx
	jne	.L6
	mov	rcx, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR 8[rax]
	cmp	rdi, rcx
	setl	sil
	setge	cl
.L6:
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L14
	test	cl, cl
	jne	.L7
.L14:
	test	sil, sil
	jne	.L10
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rbx, QWORD PTR 24[rbx]
	test	rbx, rbx
	je	.L4
	test	al, al
	je	.L4
	mov	rdx, QWORD PTR LOGGEDIN[rip]
.L10:
	mov	eax, 1
	cmp	QWORD PTR [rbx], rdx
	jne	.L9
	mov	esi, DWORD PTR 20[r12]
	mov	edi, DWORD PTR 20[rbx]
	call	strcmp@PLT
	test	rax, rax
	setne	al
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, 1
.L4:
	test	r12, r12
	je	.L3
	test	al, al
	je	.L3
	mov	rdi, rbp
	call	walloc@PLT
	mov	esi, DWORD PTR 20[r12]
	mov	rbx, rax
	mov	rax, QWORD PTR LASTLOG[rip]
	mov	edi, DWORD PTR 20[rbx]
	mov	QWORD PTR [rbx], rax
	call	strcpy@PLT
	mov	esi, DWORD PTR 16[r12]
	mov	edi, DWORD PTR 16[rbx]
	call	strcpy@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR 8[rbx], rax
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	endutxent@PLT
	.cfi_endproc
.LFE0:
	.size	enter_lastlog, .-enter_lastlog
	.comm	UTXDB_LASTLOGIN,4,4
	.comm	USER_PROCESS,8,8
	.comm	LOGGEDIN,8,8
	.comm	LASTLOG,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_util.c_enter_lastlog.c"
	.text
	.align	2
	.global	enter_lastlog
	.syntax unified
	.arm
	.fpu softvfp
	.type	enter_lastlog, %function
enter_lastlog:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L29
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	mov	r5, r0
	ldr	r0, [r3]
	bl	setutxdb
	cmp	r0, #0
	beq	.L28
.L3:
	pop	{r4, r5, r6, r7, r8, lr}
	b	endutxent
.L28:
	ldr	r0, [r5, #4]
	bl	getutxuser
	ldr	r4, [r5]
	mov	r6, r0
	cmp	r4, #0
	beq	.L10
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L29+4
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	mov	r3, r4
	ldr	r7, .L29+8
	ldr	r1, [r7]
.L7:
	ldr	r2, [r3]
	cmp	r2, r1
	movne	r2, #1
	movne	r0, #0
	bne	.L6
	ldr	r0, [r3, #4]
	ldr	r2, [r6, #4]
	cmp	r0, r2
	movlt	r0, #1
	movge	r0, #0
	movge	r2, #1
	movlt	r2, #0
.L6:
	ldr	r3, [r3, #16]
	cmp	r3, #0
	moveq	r2, #0
	cmp	r2, #0
	bne	.L7
	cmp	r0, #0
	bne	.L9
	b	.L3
.L8:
	ldr	r4, [r4, #16]
	cmp	r4, #0
	movne	r2, r3
	moveq	r2, #0
	cmp	r2, #0
	beq	.L4
	ldr	r1, [r7]
.L9:
	ldr	r3, [r4]
	cmp	r3, r1
	movne	r3, #1
	bne	.L8
	ldr	r1, [r6, #12]
	ldr	r0, [r4, #12]
	bl	strcmp
	subs	r3, r0, #0
	movne	r3, #1
	b	.L8
.L10:
	mov	r3, #1
.L4:
	cmp	r6, #0
	moveq	r3, #0
	cmp	r3, #0
	beq	.L3
	mov	r0, r5
	bl	walloc
	mov	r4, r0
	ldr	r3, .L29+12
	ldr	r1, [r6, #12]
	ldr	r3, [r3]
	ldr	r0, [r0, #12]
	str	r3, [r4]
	bl	strcpy
	ldr	r0, [r4, #8]
	ldr	r1, [r6, #8]
	bl	strcpy
	ldr	r3, [r6, #4]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	endutxent
.L30:
	.align	2
.L29:
	.word	UTXDB_LASTLOGIN
	.word	USER_PROCESS
	.word	LOGGEDIN
	.word	LASTLOG
	.size	enter_lastlog, .-enter_lastlog
	.comm	UTXDB_LASTLOGIN,4,4
	.comm	USER_PROCESS,4,4
	.comm	LOGGEDIN,4,4
	.comm	LASTLOG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
