	.file	"38769.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	sccsid, @object
	.size	sccsid, 35
sccsid:
	.string	"@(#)inv2.c\t4.2 (Berkeley) 04/18/91"
	.section	.rodata
.LC0:
	.string	";%ld"
.LC1:
	.string	",%d"
.LC2:
	.string	"%04d %06ld\n"
	.text
	.globl	newkeys
	.type	newkeys, @function
newkeys:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1360
	mov	QWORD PTR -5416[rbp], rdi
	mov	QWORD PTR -5424[rbp], rsi
	mov	QWORD PTR -5432[rbp], rdx
	mov	DWORD PTR -5436[rbp], ecx
	mov	QWORD PTR -5448[rbp], r8
	mov	QWORD PTR -5456[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -5368[rbp], 0
	mov	DWORD PTR -5384[rbp], 0
	mov	DWORD PTR -5404[rbp], 0
	mov	DWORD PTR -5392[rbp], 0
	mov	DWORD PTR -5388[rbp], 0
	mov	rax, QWORD PTR -5432[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -5376[rbp], rax
	jmp	.L2
.L23:
	lea	rax, -1264[rbp]
	mov	QWORD PTR -5360[rbp], rax
	jmp	.L3
.L4:
	add	QWORD PTR -5360[rbp], 1
.L3:
	mov	rax, QWORD PTR -5360[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	jne	.L4
	mov	rax, QWORD PTR -5360[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -5360[rbp], rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -5432[rbp]
	lea	rax, -1264[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	cmp	QWORD PTR -5448[rbp], 0
	je	.L5
	mov	rdx, QWORD PTR -5368[rbp]
	lea	rax, -1312[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -5360[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -5384[rbp], eax
	lea	rax, -1312[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -5404[rbp], eax
	mov	rdx, QWORD PTR -5432[rbp]
	lea	rax, -1312[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	edx, DWORD PTR -5384[rbp]
	lea	rax, -1312[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1312[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -5404[rbp]
	add	eax, edx
	mov	DWORD PTR -5404[rbp], eax
	mov	rdx, QWORD PTR -5432[rbp]
	lea	rax, -1312[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	eax, DWORD PTR -5384[rbp]
	cdqe
	add	QWORD PTR -5368[rbp], rax
	mov	rdx, QWORD PTR -5448[rbp]
	mov	rax, QWORD PTR -5360[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L5:
	mov	rax, QWORD PTR -5432[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	putc@PLT
	mov	rax, QWORD PTR -5360[rbp]
	mov	QWORD PTR -5352[rbp], rax
	jmp	.L6
.L7:
	add	QWORD PTR -5352[rbp], 1
.L6:
	mov	rax, QWORD PTR -5352[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	sub	QWORD PTR -5352[rbp], 1
	mov	rax, QWORD PTR -5352[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L8
	mov	DWORD PTR -5388[rbp], 0
	mov	rax, QWORD PTR -5352[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L9
.L8:
	mov	DWORD PTR -5388[rbp], 1
.L9:
	cmp	QWORD PTR -5448[rbp], 0
	je	.L10
	cmp	DWORD PTR -5388[rbp], 0
	jne	.L11
.L10:
	mov	eax, 1
	jmp	.L12
.L11:
	mov	eax, 0
.L12:
	mov	edi, eax
	mov	eax, 0
	call	_assert@PLT
	lea	rdx, -5344[rbp]
	mov	rax, QWORD PTR -5360[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	getargs@PLT
	mov	DWORD PTR -5396[rbp], eax
	cmp	DWORD PTR -5388[rbp], 0
	je	.L13
	sub	DWORD PTR -5396[rbp], 1
.L13:
	mov	DWORD PTR -5400[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -5400[rbp]
	cdqe
	mov	rax, QWORD PTR -5344[rbp+rax*8]
	mov	rdi, rax
	mov	eax, 0
	call	hash@PLT
	cdq
	idiv	DWORD PTR -5436[rbp]
	mov	esi, edx
	mov	rdx, QWORD PTR -5376[rbp]
	mov	rax, QWORD PTR -5416[rbp]
	mov	rcx, rdx
	mov	edx, esi
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -5400[rbp], 1
.L14:
	mov	eax, DWORD PTR -5400[rbp]
	cmp	eax, DWORD PTR -5396[rbp]
	jl	.L15
	cmp	DWORD PTR -5388[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -5396[rbp]
	cdqe
	mov	rdx, QWORD PTR -5344[rbp+rax*8]
	lea	rax, -1344[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1344[rbp]
	mov	QWORD PTR -5352[rbp], rax
	jmp	.L17
.L18:
	add	QWORD PTR -5352[rbp], 1
.L17:
	mov	rax, QWORD PTR -5352[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L18
	jmp	.L19
.L22:
	cmp	DWORD PTR -5380[rbp], 32
	je	.L20
	mov	rax, QWORD PTR -5352[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -5352[rbp], rdx
	mov	edx, DWORD PTR -5380[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -5352[rbp]
	mov	BYTE PTR [rax], 0
	lea	rax, -1344[rbp]
	cmp	QWORD PTR -5352[rbp], rax
	jbe	.L21
	lea	rax, -1344[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	hash@PLT
	cdq
	idiv	DWORD PTR -5436[rbp]
	mov	esi, edx
	mov	rdx, QWORD PTR -5376[rbp]
	mov	rax, QWORD PTR -5416[rbp]
	mov	rcx, rdx
	mov	edx, esi
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L21:
	lea	rax, -1344[rbp]
	mov	QWORD PTR -5352[rbp], rax
.L19:
	mov	rax, QWORD PTR -5424[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -5380[rbp], eax
	cmp	DWORD PTR -5380[rbp], 10
	jne	.L22
.L16:
	lea	rax, -1264[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -5404[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -5376[rbp]
	add	rax, rdx
	add	rax, 1
	mov	QWORD PTR -5376[rbp], rax
	add	DWORD PTR -5392[rbp], 1
.L2:
	mov	rdx, QWORD PTR -5424[rbp]
	lea	rax, -1264[rbp]
	mov	esi, 1250
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L23
	cmp	QWORD PTR -5376[rbp], 65535
	setg	al
	movzx	edx, al
	mov	rax, QWORD PTR -5456[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -5456[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -5432[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -5392[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	newkeys, .-newkeys
	.globl	trimnl
	.type	trimnl, @function
trimnl:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L27
.L28:
	add	QWORD PTR -8[rbp], 1
.L27:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L28
	sub	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L29
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
.L29:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	trimnl, .-trimnl
	.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	"38769.c"
	.text
	.data
	.align	2
	.type	sccsid, %object
	.size	sccsid, 35
sccsid:
	.ascii	"@(#)inv2.c\0114.2 (Berkeley) 04/18/91\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	";%ld\000"
	.align	2
.LC1:
	.ascii	",%d\000"
	.global	__aeabi_idivmod
	.align	2
.LC2:
	.ascii	"%04d %06ld\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	newkeys
	.syntax unified
	.arm
	.fpu softvfp
	.type	newkeys, %function
newkeys:
	@ args = 8, pretend = 0, frame = 3400
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3392
	sub	sp, sp, #8
	str	r0, [fp, #-3384]
	str	r1, [fp, #-3388]
	str	r2, [fp, #-3392]
	str	r3, [fp, #-3396]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-3400]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-3404]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-3372]
	mov	r3, #0
	str	r3, [fp, #-3340]
	mov	r3, #0
	str	r3, [fp, #-3368]
	mov	r3, #0
	str	r3, [fp, #-3348]
	mov	r3, #0
	str	r3, [fp, #-3344]
	ldr	r0, [fp, #-3392]
	bl	ftell
	str	r0, [fp, #-3376]
	b	.L2
.L23:
	sub	r3, fp, #1248
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [fp, #-3364]
	b	.L3
.L4:
	ldr	r3, [fp, #-3364]
	add	r3, r3, #1
	str	r3, [fp, #-3364]
.L3:
	ldr	r3, [fp, #-3364]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L4
	ldr	r3, [fp, #-3364]
	add	r2, r3, #1
	str	r2, [fp, #-3364]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1248
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, [fp, #-3392]
	mov	r0, r3
	bl	fputs
	ldr	r3, [fp, #-3400]
	cmp	r3, #0
	beq	.L5
	sub	r3, fp, #1296
	sub	r3, r3, #4
	ldr	r2, [fp, #-3372]
	ldr	r1, .L26+4
	mov	r0, r3
	bl	sprintf
	ldr	r0, [fp, #-3364]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-3340]
	sub	r3, fp, #1296
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-3368]
	sub	r3, fp, #1296
	sub	r3, r3, #4
	ldr	r1, [fp, #-3392]
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #1296
	sub	r3, r3, #4
	ldr	r2, [fp, #-3340]
	ldr	r1, .L26+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1296
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-3368]
	add	r3, r2, r3
	str	r3, [fp, #-3368]
	sub	r3, fp, #1296
	sub	r3, r3, #4
	ldr	r1, [fp, #-3392]
	mov	r0, r3
	bl	fputs
	ldr	r2, [fp, #-3372]
	ldr	r3, [fp, #-3340]
	add	r3, r2, r3
	str	r3, [fp, #-3372]
	ldr	r1, [fp, #-3400]
	ldr	r0, [fp, #-3364]
	bl	fputs
.L5:
	ldr	r1, [fp, #-3392]
	mov	r0, #10
	bl	putc
	ldr	r3, [fp, #-3364]
	str	r3, [fp, #-3360]
	b	.L6
.L7:
	ldr	r3, [fp, #-3360]
	add	r3, r3, #1
	str	r3, [fp, #-3360]
.L6:
	ldr	r3, [fp, #-3360]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-3360]
	sub	r3, r3, #1
	str	r3, [fp, #-3360]
	ldr	r3, [fp, #-3360]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-3344]
	ldr	r3, [fp, #-3360]
	mov	r2, #0
	strb	r2, [r3]
	b	.L9
.L8:
	mov	r3, #1
	str	r3, [fp, #-3344]
.L9:
	ldr	r3, [fp, #-3400]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-3344]
	cmp	r3, #0
	bne	.L11
.L10:
	mov	r3, #1
	b	.L12
.L11:
	mov	r3, #0
.L12:
	mov	r0, r3
	bl	_assert
	sub	r3, fp, #3328
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-3364]
	bl	getargs
	str	r0, [fp, #-3352]
	ldr	r3, [fp, #-3344]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-3352]
	sub	r3, r3, #1
	str	r3, [fp, #-3352]
.L13:
	mov	r3, #0
	str	r3, [fp, #-3356]
	b	.L14
.L15:
	ldr	r3, [fp, #-3356]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-3328]
	mov	r0, r3
	bl	hash
	mov	r3, r0
	ldr	r1, [fp, #-3396]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-3376]
	ldr	r1, .L26+12
	ldr	r0, [fp, #-3384]
	bl	fprintf
	ldr	r3, [fp, #-3356]
	add	r3, r3, #1
	str	r3, [fp, #-3356]
.L14:
	ldr	r2, [fp, #-3356]
	ldr	r3, [fp, #-3352]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-3344]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-3352]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-3328]
	sub	r3, fp, #1328
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1328
	sub	r3, r3, #4
	str	r3, [fp, #-3360]
	b	.L17
.L18:
	ldr	r3, [fp, #-3360]
	add	r3, r3, #1
	str	r3, [fp, #-3360]
.L17:
	ldr	r3, [fp, #-3360]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L18
	b	.L19
.L22:
	ldr	r3, [fp, #-3336]
	cmp	r3, #32
	beq	.L20
	ldr	r3, [fp, #-3360]
	add	r2, r3, #1
	str	r2, [fp, #-3360]
	ldr	r2, [fp, #-3336]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L19
.L20:
	ldr	r3, [fp, #-3360]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1328
	sub	r3, r3, #4
	ldr	r2, [fp, #-3360]
	cmp	r2, r3
	bls	.L21
	sub	r3, fp, #1328
	sub	r3, r3, #4
	mov	r0, r3
	bl	hash
	mov	r3, r0
	ldr	r1, [fp, #-3396]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-3376]
	ldr	r1, .L26+12
	ldr	r0, [fp, #-3384]
	bl	fprintf
.L21:
	sub	r3, fp, #1328
	sub	r3, r3, #4
	str	r3, [fp, #-3360]
.L19:
	ldr	r0, [fp, #-3388]
	bl	getc
	str	r0, [fp, #-3336]
	ldr	r3, [fp, #-3336]
	cmp	r3, #10
	bne	.L22
.L16:
	sub	r3, fp, #1248
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-3368]
	add	r2, r2, r3
	ldr	r3, [fp, #-3376]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-3376]
	ldr	r3, [fp, #-3348]
	add	r3, r3, #1
	str	r3, [fp, #-3348]
.L2:
	sub	r3, fp, #1248
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-3388]
	ldr	r1, .L26+16
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-3376]
	cmp	r3, #65536
	movge	r3, #1
	movlt	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-3404]
	str	r2, [r3]
	ldr	r3, [fp, #-3404]
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, [fp, #-3392]
	bl	fclose
	ldr	r3, [fp, #-3348]
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1250
	.size	newkeys, .-newkeys
	.align	2
	.global	trimnl
	.syntax unified
	.arm
	.fpu softvfp
	.type	trimnl, %function
trimnl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	b	.L29
.L30:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L31
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L31:
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	trimnl, .-trimnl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
