	.file	"138786.c"
	.intel_syntax noprefix
	.text
	.data
	.align 16
	.type	Sccsid, @object
	.size	Sccsid, 28
Sccsid:
	.string	"@(#)username.c\t1.2\t02/15/87"
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	username
	.type	username, @function
username:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 208
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	r12d, edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR ouid.2[rip]
	cmp	r12d, eax
	jne	.L2
	mov	eax, DWORD PTR ouid.2[rip]
	test	eax, eax
	jne	.L3
.L2:
	lea	rax, -224[rbp]
	mov	rsi, rax
	mov	edi, r12d
	mov	eax, 0
	call	getpw@PLT
	test	eax, eax
	je	.L4
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	lea	rdi, lnam.1[rip]
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L5
.L4:
	mov	ebx, 0
	jmp	.L6
.L9:
	movsx	rax, ebx
	movzx	edx, BYTE PTR -224[rbp+rax]
	movsx	rax, ebx
	lea	rcx, lnam.1[rip]
	mov	BYTE PTR [rax+rcx], dl
	movsx	rax, ebx
	lea	rdx, lnam.1[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 58
	je	.L12
	add	ebx, 1
.L6:
	cmp	ebx, 7
	jle	.L9
	jmp	.L8
.L12:
	nop
.L8:
	movsx	rax, ebx
	lea	rdx, lnam.1[rip]
	mov	BYTE PTR [rax+rdx], 0
.L5:
	lea	rax, lnam.1[rip]
	mov	QWORD PTR lptr.0[rip], rax
	mov	DWORD PTR ouid.2[rip], r12d
.L3:
	mov	rax, QWORD PTR lptr.0[rip]
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	add	rsp, 208
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	username, .-username
	.local	ouid.2
	.comm	ouid.2,4,4
	.local	lnam.1
	.comm	lnam.1,9,8
	.local	lptr.0
	.comm	lptr.0,8,8
	.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	"138786.c"
	.text
	.data
	.align	2
	.type	Sccsid, %object
	.size	Sccsid, 28
Sccsid:
	.ascii	"@(#)username.c\0111.2\01102/15/87\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	username
	.syntax unified
	.arm
	.fpu softvfp
	.type	username, %function
username:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #208
	mov	r5, r0
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r5, r3
	bne	.L2
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
.L2:
	sub	r3, fp, #216
	mov	r1, r3
	mov	r0, r5
	bl	getpw
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	mov	r2, r5
	ldr	r1, .L13+8
	ldr	r0, .L13+12
	bl	sprintf
	b	.L5
.L4:
	mov	r4, #0
	b	.L6
.L9:
	sub	r3, fp, #12
	add	r3, r3, r4
	ldrb	r2, [r3, #-204]	@ zero_extendqisi2
	ldr	r3, .L13+12
	strb	r2, [r3, r4]
	ldr	r3, .L13+12
	ldrb	r3, [r3, r4]	@ zero_extendqisi2
	cmp	r3, #58
	beq	.L12
	add	r4, r4, #1
.L6:
	cmp	r4, #7
	ble	.L9
	b	.L8
.L12:
	nop
.L8:
	ldr	r3, .L13+12
	mov	r2, #0
	strb	r2, [r3, r4]
.L5:
	ldr	r3, .L13+16
	ldr	r2, .L13+12
	str	r2, [r3]
	ldr	r3, .L13+4
	str	r5, [r3]
.L3:
	ldr	r3, .L13+16
	ldr	r3, [r3]
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	ouid.4199
	.word	.LC0
	.word	lnam.4200
	.word	lptr.4201
	.size	username, .-username
	.local	ouid.4199
	.comm	ouid.4199,4,4
	.local	lnam.4200
	.comm	lnam.4200,9,4
	.local	lptr.4201
	.comm	lptr.4201,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
