	.file	"70676.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"stdio rpath"
.LC1:
	.string	"pledge"
.LC2:
	.string	"usage: users\n"
.LC3:
	.string	""
.LC4:
	.string	"r"
.LC5:
	.string	"/var/run/utmp"
.LC6:
	.string	"can't open %s"
.LC7:
	.string	"%.*s"
.LC8:
	.string	" %.*s"
	.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, 464
	mov	DWORD PTR -452[rbp], edi
	mov	QWORD PTR -464[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -424[rbp], 0
	mov	DWORD PTR -440[rbp], 0
	mov	DWORD PTR -436[rbp], 0
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	pledge@PLT
	cmp	eax, -1
	jne	.L15
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	nop
	mov	rcx, QWORD PTR -464[rbp]
	mov	eax, DWORD PTR -452[rbp]
	lea	rdx, .LC3[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -428[rbp], eax
	cmp	DWORD PTR -428[rbp], -1
	jne	.L4
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -452[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -464[rbp], rax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	freopen@PLT
	test	rax, rax
	jne	.L6
	lea	rdx, .LC5[rip]
	lea	rsi, .LC6[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L9:
	movzx	eax, BYTE PTR -356[rbp]
	test	al, al
	je	.L6
	mov	eax, DWORD PTR -440[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jl	.L7
	mov	eax, DWORD PTR -436[rbp]
	add	eax, 32
	cdqe
	mov	QWORD PTR -416[rbp], rax
	mov	rcx, QWORD PTR -416[rbp]
	mov	rax, QWORD PTR -424[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	rdi, rax
	call	reallocarray@PLT
	mov	QWORD PTR -408[rbp], rax
	cmp	QWORD PTR -408[rbp], 0
	jne	.L8
	mov	esi, 0
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L8:
	mov	rax, QWORD PTR -408[rbp]
	mov	QWORD PTR -424[rbp], rax
	mov	rax, QWORD PTR -416[rbp]
	mov	DWORD PTR -436[rbp], eax
.L7:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	lea	rdx, -400[rbp]
	lea	rcx, 44[rdx]
	mov	edx, 32
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	add	DWORD PTR -440[rbp], 1
.L6:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -400[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 384
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 1
	je	.L9
	cmp	DWORD PTR -440[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -440[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -424[rbp]
	lea	rcx, scmp[rip]
	mov	edx, 32
	mov	rdi, rax
	call	qsort@PLT
	mov	rax, QWORD PTR -424[rbp]
	mov	rdx, rax
	mov	esi, 32
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -432[rbp], 1
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	sal	rax, 5
	lea	rdx, -32[rax]
	mov	rax, QWORD PTR -424[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	mov	edx, 32
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	mov	rdx, rax
	mov	esi, 32
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	add	DWORD PTR -432[rbp], 1
.L11:
	mov	eax, DWORD PTR -432[rbp]
	cmp	eax, DWORD PTR -440[rbp]
	jl	.L13
	mov	edi, 10
	call	putchar@PLT
.L10:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	scmp
	.type	scmp, @function
scmp:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	scmp, .-scmp
	.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	"70676.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"stdio rpath\000"
	.align	2
.LC1:
	.ascii	"pledge\000"
	.align	2
.LC2:
	.ascii	"usage: users\012\000"
	.align	2
.LC3:
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"/var/run/utmp\000"
	.align	2
.LC6:
	.ascii	"can't open %s\000"
	.align	2
.LC7:
	.ascii	"%.*s\000"
	.align	2
.LC8:
	.ascii	" %.*s\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 424
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #424
	str	r0, [fp, #-424]
	str	r1, [fp, #-428]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-420]
	mov	r3, #0
	str	r3, [fp, #-416]
	mov	r3, #0
	str	r3, [fp, #-412]
	mov	r1, #0
	ldr	r0, .L16+4
	bl	pledge
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	ldr	r1, .L16+8
	mov	r0, #1
	bl	err
.L4:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L16+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L15:
	nop
	ldr	r2, .L16+20
	ldr	r1, [fp, #-428]
	ldr	r0, [fp, #-424]
	bl	getopt
	str	r0, [fp, #-404]
	ldr	r3, [fp, #-404]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L16+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-424]
	sub	r3, r2, r3
	str	r3, [fp, #-424]
	ldr	r3, .L16+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-428]
	add	r3, r2, r3
	str	r3, [fp, #-428]
	ldr	r3, .L16+28
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L16+32
	ldr	r0, .L16+36
	bl	freopen
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r2, .L16+36
	ldr	r1, .L16+40
	mov	r0, #1
	bl	err
.L9:
	ldrb	r3, [fp, #-348]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L6
	ldr	r2, [fp, #-416]
	ldr	r3, [fp, #-412]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-412]
	add	r3, r3, #32
	str	r3, [fp, #-400]
	mov	r2, #32
	ldr	r1, [fp, #-400]
	ldr	r0, [fp, #-420]
	bl	reallocarray
	str	r0, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	bne	.L8
	mov	r1, #0
	mov	r0, #1
	bl	err
.L8:
	ldr	r3, [fp, #-396]
	str	r3, [fp, #-420]
	ldr	r3, [fp, #-400]
	str	r3, [fp, #-412]
.L7:
	ldr	r3, [fp, #-416]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-420]
	add	r0, r2, r3
	sub	r3, fp, #392
	add	r3, r3, #44
	mov	r2, #32
	mov	r1, r3
	bl	strncpy
	ldr	r3, [fp, #-416]
	add	r3, r3, #1
	str	r3, [fp, #-416]
.L6:
	ldr	r3, .L16+28
	ldr	r3, [r3]
	sub	r0, fp, #392
	mov	r2, #1
	mov	r1, #384
	bl	fread
	mov	r3, r0
	cmp	r3, #1
	beq	.L9
	ldr	r3, [fp, #-416]
	cmp	r3, #0
	beq	.L10
	ldr	r1, [fp, #-416]
	ldr	r3, .L16+44
	mov	r2, #32
	ldr	r0, [fp, #-420]
	bl	qsort
	ldr	r2, [fp, #-420]
	mov	r1, #32
	ldr	r0, .L16+48
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-408]
	b	.L11
.L13:
	ldr	r3, [fp, #-408]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-420]
	add	r0, r2, r3
	ldr	r3, [fp, #-408]
	sub	r3, r3, #-134217727
	lsl	r3, r3, #5
	ldr	r2, [fp, #-420]
	add	r3, r2, r3
	mov	r2, #32
	mov	r1, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-408]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-420]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #32
	ldr	r0, .L16+52
	bl	printf
.L12:
	ldr	r3, [fp, #-408]
	add	r3, r3, #1
	str	r3, [fp, #-408]
.L11:
	ldr	r2, [fp, #-408]
	ldr	r3, [fp, #-416]
	cmp	r2, r3
	blt	.L13
	mov	r0, #10
	bl	putchar
.L10:
	mov	r0, #0
	bl	exit
.L17:
	.align	2
.L16:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	optind
	.word	stdin
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	scmp
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.align	2
	.global	scmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	scmp, %function
scmp:
	@ 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]
	str	r1, [fp, #-12]
	mov	r2, #32
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	scmp, .-scmp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
