	.file	"542600.c"
	.intel_syntax noprefix
	.text
	.data
	.type	rcsid, @object
	.size	rcsid, 5
rcsid:
	.string	"$Id$"
	.text
	.type	get_line, @function
get_line:
.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
	lea	rax, buf.0[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L5:
	lea	rax, buf.0[rip+127]
	cmp	QWORD PTR -8[rbp], rax
	jnb	.L7
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	edx, DWORD PTR -12[rbp]
	mov	BYTE PTR [rax], dl
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	je	.L4
	cmp	DWORD PTR -12[rbp], 0
	je	.L4
	cmp	DWORD PTR -12[rbp], 10
	jne	.L5
	jmp	.L4
.L7:
	nop
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	lea	rax, buf.0[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_line, .-get_line
	.type	get_my_pwent, @function
get_my_pwent:
.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, 32
	call	getuid@PLT
	mov	DWORD PTR -20[rbp], eax
	call	getlogin@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L9
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L9
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	getpwuid@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_my_pwent, .-get_my_pwent
	.section	.rodata
.LC0:
	.string	"xx"
	.text
	.type	password_auth_ok, @function
password_auth_ok:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	cmp	QWORD PTR -40[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getspnam@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L14
.L12:
	lea	rax, .LC0[rip]
	mov	QWORD PTR -16[rbp], rax
.L14:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L16
.L15:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	crypt@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR -20[rbp], eax
	jmp	.L17
.L16:
	mov	DWORD PTR -20[rbp], 1
.L17:
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	password_auth_ok, .-password_auth_ok
	.section	.rodata
.LC1:
	.string	"pwdauth"
	.align 8
.LC2:
	.string	"can't get login name for uid %d.\n"
.LC3:
	.string	"Who are you?\n"
	.align 8
.LC4:
	.string	"user `%s' entered correct password for `%.32s'.\n"
	.align 8
.LC5:
	.string	"user `%s' entered incorrect password for `%.32s'.\n"
.LC6:
	.string	"Wrong password.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 80
	mov	esi, 3
	lea	rdi, .LC1[rip]
	call	openlog@PLT
	mov	eax, 0
	call	get_my_pwent
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L20
	call	getuid@PLT
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR [rax]
	lea	rax, -48[rbp]
	mov	edx, 31
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	BYTE PTR -17[rbp], 0
	lea	rax, -48[rbp]
	mov	QWORD PTR -64[rbp], rax
	cmp	DWORD PTR -84[rbp], 1
	jle	.L21
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -72[rbp], rax
.L21:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	mov	eax, 0
	call	get_line
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	password_auth_ok
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	je	.L23
	mov	edi, 6
	jmp	.L24
.L23:
	mov	edi, 5
.L24:
	mov	rdx, QWORD PTR -64[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 0
	call	exit@PLT
.L22:
	cmp	QWORD PTR -72[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	je	.L26
.L25:
	mov	edi, 5
	jmp	.L27
.L26:
	mov	edi, 4
.L27:
	mov	rdx, QWORD PTR -64[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC5[rip]
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 2
	call	sleep@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.local	buf.0
	.comm	buf.0,128,32
	.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	"542600.c"
	.text
	.data
	.align	2
	.type	rcsid, %object
	.size	rcsid, 5
rcsid:
	.ascii	"$Id$\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_line, %function
get_line:
	@ 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	r3, .L8
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r2, .L8+4
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	bcs	.L7
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
.L2:
	ldr	r0, [fp, #-16]
	bl	getc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L5
	b	.L4
.L7:
	nop
.L4:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L8
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	buf.6382
	.word	buf.6382+127
	.size	get_line, .-get_line
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_my_pwent, %function
get_my_pwent:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	bl	getuid
	str	r0, [fp, #-16]
	bl	getlogin
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	ldr	r0, [fp, #-12]
	bl	getpwnam
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L11
	ldr	r3, [fp, #-8]
	b	.L12
.L11:
	ldr	r0, [fp, #-16]
	bl	getpwuid
	mov	r3, r0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_my_pwent, .-get_my_pwent
	.section	.rodata
	.align	2
.LC0:
	.ascii	"xx\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	password_auth_ok, %function
password_auth_ok:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	getspnam
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	b	.L16
.L15:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	b	.L16
.L14:
	ldr	r3, .L21
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
.L17:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-28]
	bl	crypt
	mov	r3, r0
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
	b	.L19
.L18:
	mov	r3, #1
	str	r3, [fp, #-16]
.L19:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.size	password_auth_ok, .-password_auth_ok
	.section	.rodata
	.align	2
.LC1:
	.ascii	"pwdauth\000"
	.align	2
.LC2:
	.ascii	"can't get login name for uid %d.\012\000"
	.align	2
.LC3:
	.ascii	"Who are you?\012\000"
	.align	2
.LC4:
	.ascii	"user `%s' entered correct password for `%.32s'.\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"user `%s' entered incorrect password for `%.32s'.\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"Wrong password.\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #80
	mov	r1, #3
	ldr	r0, .L33+4
	bl	openlog
	bl	get_my_pwent
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L24
	bl	getuid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L33+8
	mov	r0, #3
	bl	syslog
	ldr	r3, .L33+12
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L33+16
	bl	fwrite
	mov	r0, #2
	bl	exit
.L24:
	ldr	r3, [fp, #-52]
	ldr	r1, [r3]
	sub	r3, fp, #40
	mov	r2, #31
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-9]
	sub	r3, fp, #40
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	ble	.L25
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	getpwnam
	str	r0, [fp, #-52]
.L25:
	ldr	r3, .L33+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	get_line
	str	r0, [fp, #-44]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-52]
	bl	password_auth_ok
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L27
	mov	r0, #6
	b	.L28
.L27:
	mov	r0, #5
.L28:
	sub	r2, fp, #40
	ldr	r3, [fp, #-48]
	ldr	r1, .L33+24
	bl	syslog
	mov	r0, #0
	bl	exit
.L26:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L30
.L29:
	mov	r0, #5
	b	.L31
.L30:
	mov	r0, #4
.L31:
	sub	r2, fp, #40
	ldr	r3, [fp, #-48]
	ldr	r1, .L33+28
	bl	syslog
	mov	r0, #2
	bl	sleep
	ldr	r3, .L33+12
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L33+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L34:
	.align	2
.L33:
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	stdin
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.local	buf.6382
	.comm	buf.6382,128,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
