	.file	"extr_cmapcleanz.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"usage: cmapclean input.cmap\n"
.LC1:
	.string	"cannot initialise context\n"
.LC2:
	.string	"begincmap"
.LC3:
	.string	"/CMapName /%s def\n"
.LC4:
	.string	"/WMode %d def\n"
.LC5:
	.string	"/%s usecmap\n"
.LC6:
	.string	"begincodespacerange"
.LC7:
	.string	"endcodespacerange"
.LC8:
	.string	"<%02x><%02x>\n"
.LC9:
	.string	"<%04x><%04x>\n"
.LC10:
	.string	"<%06x><%06x>\n"
.LC11:
	.string	"<%08x><%08x>\n"
.LC12:
	.string	"<%x><%x>\n"
.LC13:
	.string	"begincidchar"
.LC14:
	.string	"endcidchar"
.LC15:
	.string	" %u\n"
.LC16:
	.string	"begincidrange"
.LC17:
	.string	"endcidrange"
.LC18:
	.string	"%u\n"
.LC19:
	.string	"endcmap"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	edi, 2
	je	.L2
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	eax, 1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR FZ_STORE_UNLIMITED[rip]
	mov	rbx, rsi
	xor	edi, edi
	xor	esi, esi
	call	fz_new_context@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L73
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, rax
	call	fz_open_file@PLT
	mov	rdi, rbp
	mov	r12, rax
	mov	rsi, rax
	call	pdf_load_cmap@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	rbx, rax
	call	fz_drop_stream@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rsi, QWORD PTR [rbx]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	printf@PLT
	mov	esi, DWORD PTR 8[rbx]
	xor	eax, eax
	lea	rdi, .LC4[rip]
	call	printf@PLT
	mov	rsi, QWORD PTR 16[rbx]
	cmp	BYTE PTR [rsi], 0
	jne	.L74
.L5:
	cmp	DWORD PTR 24[rbx], 0
	jne	.L75
.L6:
	mov	eax, DWORD PTR 28[rbx]
	test	eax, eax
	jle	.L15
	lea	esi, -1[rax]
	mov	rcx, QWORD PTR 56[rbx]
	xor	r13d, r13d
	xor	edi, edi
	imul	rsi, rsi, 24
	lea	rdx, 24[rcx]
	add	rsi, rdx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L76:
	add	r13d, 1
	mov	rcx, rdx
	cmp	rsi, rdx
	je	.L69
.L77:
	add	rdx, 24
.L18:
	mov	rax, QWORD PTR [rcx]
	sub	rax, QWORD PTR 8[rcx]
	test	rax, rax
	jg	.L76
	add	edi, 1
	mov	rcx, rdx
	cmp	rsi, rdx
	jne	.L77
.L69:
	test	edi, edi
	jne	.L78
.L19:
	test	r13d, r13d
	jne	.L79
.L15:
	mov	eax, DWORD PTR 32[rbx]
	test	eax, eax
	jle	.L28
	lea	esi, -1[rax]
	mov	rcx, QWORD PTR 48[rbx]
	xor	r13d, r13d
	xor	edi, edi
	imul	rsi, rsi, 24
	lea	rdx, 24[rcx]
	add	rsi, rdx
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L80:
	add	r13d, 1
	mov	rcx, rdx
	cmp	rsi, rdx
	je	.L70
.L81:
	add	rdx, 24
.L31:
	mov	rax, QWORD PTR [rcx]
	sub	rax, QWORD PTR 8[rcx]
	test	rax, rax
	jg	.L80
	add	edi, 1
	mov	rcx, rdx
	cmp	rsi, rdx
	jne	.L81
.L70:
	test	edi, edi
	jne	.L82
.L32:
	test	r13d, r13d
	jne	.L83
.L28:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	rdi, rbp
	call	fz_drop_context@PLT
	xor	eax, eax
	jmp	.L1
.L83:
	lea	rdi, .LC16[rip]
	xor	r12d, r12d
	lea	r13, .LC18[rip]
	call	puts@PLT
	cmp	DWORD PTR 32[rbx], 0
	jle	.L39
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rax, QWORD PTR 48[rbx]
	lea	r15, [r12+r12*2]
	lea	r14, 0[0+r15*8]
	add	rax, r14
	mov	rdi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	sub	rax, rdi
	test	rax, rax
	jle	.L38
	call	pc@PLT
	mov	rax, QWORD PTR 48[rbx]
	mov	rdi, QWORD PTR [rax+r15*8]
	call	pc@PLT
	mov	rax, QWORD PTR 48[rbx]
	mov	rdi, r13
	mov	esi, DWORD PTR 16[rax+r14]
	xor	eax, eax
	call	printf@PLT
.L38:
	add	r12, 1
	cmp	DWORD PTR 32[rbx], r12d
	jg	.L37
.L39:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L28
.L79:
	lea	rdi, .LC16[rip]
	xor	r12d, r12d
	lea	r13, .LC15[rip]
	call	puts@PLT
	cmp	DWORD PTR 28[rbx], 0
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rax, QWORD PTR 56[rbx]
	lea	r15, [r12+r12*2]
	lea	r14, 0[0+r15*8]
	add	rax, r14
	mov	rdi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	sub	rax, rdi
	test	rax, rax
	jle	.L25
	call	pc@PLT
	mov	edi, 32
	call	putchar@PLT
	mov	rax, QWORD PTR 56[rbx]
	mov	rdi, QWORD PTR [rax+r15*8]
	call	pc@PLT
	mov	rax, QWORD PTR 56[rbx]
	mov	rdi, r13
	mov	esi, DWORD PTR 16[rax+r14]
	xor	eax, eax
	call	printf@PLT
.L25:
	add	r12, 1
	cmp	DWORD PTR 28[rbx], r12d
	jg	.L24
.L26:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L15
.L73:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L1
.L82:
	lea	rdi, .LC13[rip]
	xor	r12d, r12d
	lea	r15, .LC18[rip]
	call	puts@PLT
	cmp	DWORD PTR 32[rbx], 0
	jg	.L33
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L34:
	add	r12, 1
	cmp	DWORD PTR 32[rbx], r12d
	jle	.L35
.L33:
	mov	rax, QWORD PTR 48[rbx]
	lea	r14, [r12+r12*2]
	sal	r14, 3
	add	rax, r14
	mov	rdi, QWORD PTR 8[rax]
	cmp	QWORD PTR [rax], rdi
	jne	.L34
	call	pc@PLT
	mov	rax, QWORD PTR 48[rbx]
	mov	rdi, r15
	mov	esi, DWORD PTR 16[rax+r14]
	xor	eax, eax
	call	printf@PLT
	jmp	.L34
.L35:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L32
.L78:
	lea	rdi, .LC13[rip]
	xor	r12d, r12d
	lea	r15, .LC15[rip]
	call	puts@PLT
	cmp	DWORD PTR 28[rbx], 0
	jg	.L20
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L21:
	add	r12, 1
	cmp	DWORD PTR 28[rbx], r12d
	jle	.L22
.L20:
	mov	rax, QWORD PTR 56[rbx]
	lea	r14, [r12+r12*2]
	sal	r14, 3
	add	rax, r14
	mov	rdi, QWORD PTR 8[rax]
	cmp	QWORD PTR [rax], rdi
	jne	.L21
	call	pc@PLT
	mov	rax, QWORD PTR 56[rbx]
	mov	rdi, r15
	mov	esi, DWORD PTR 16[rax+r14]
	xor	eax, eax
	call	printf@PLT
	jmp	.L21
.L22:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L19
.L75:
	lea	rdi, .LC6[rip]
	xor	r12d, r12d
	lea	r13, .LC12[rip]
	call	puts@PLT
	cmp	DWORD PTR 24[rbx], 0
	jg	.L7
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	edx, 2
	je	.L84
	cmp	edx, 3
	je	.L85
	cmp	edx, 4
	mov	edx, r8d
	je	.L86
	mov	rdi, r13
	xor	eax, eax
	call	printf@PLT
.L9:
	add	r12, 1
	cmp	DWORD PTR 24[rbx], r12d
	jle	.L13
.L7:
	mov	rdx, QWORD PTR 64[rbx]
	lea	rax, [r12+r12*2]
	lea	rax, [rdx+rax*4]
	mov	edx, DWORD PTR [rax]
	mov	r8d, DWORD PTR 8[rax]
	mov	esi, DWORD PTR 4[rax]
	cmp	edx, 1
	jne	.L8
	mov	edx, r8d
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L9
.L86:
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L9
.L84:
	mov	edx, r8d
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L9
.L85:
	mov	edx, r8d
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L9
.L13:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L6
.L74:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	FZ_STORE_UNLIMITED,4,4
	.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_cmapcleanz.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"usage: cmapclean input.cmap\012\000"
	.align	2
.LC1:
	.ascii	"cannot initialise context\012\000"
	.align	2
.LC2:
	.ascii	"begincmap\000"
	.align	2
.LC3:
	.ascii	"/CMapName /%s def\012\000"
	.align	2
.LC4:
	.ascii	"/WMode %d def\012\000"
	.align	2
.LC5:
	.ascii	"/%s usecmap\012\000"
	.align	2
.LC6:
	.ascii	"begincodespacerange\000"
	.align	2
.LC7:
	.ascii	"endcodespacerange\000"
	.align	2
.LC8:
	.ascii	"<%02x><%02x>\012\000"
	.align	2
.LC9:
	.ascii	"<%04x><%04x>\012\000"
	.align	2
.LC10:
	.ascii	"<%06x><%06x>\012\000"
	.align	2
.LC11:
	.ascii	"<%08x><%08x>\012\000"
	.align	2
.LC12:
	.ascii	"<%x><%x>\012\000"
	.align	2
.LC13:
	.ascii	"begincidchar\000"
	.align	2
.LC14:
	.ascii	"endcidchar\000"
	.align	2
.LC15:
	.ascii	" %u\012\000"
	.align	2
.LC16:
	.ascii	"begincidrange\000"
	.align	2
.LC17:
	.ascii	"endcidrange\000"
	.align	2
.LC18:
	.ascii	"%u\012\000"
	.align	2
.LC19:
	.ascii	"endcmap\000"
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #2
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	beq	.L2
	ldr	r3, .L81
	ldr	r1, .L81+4
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r4, r1
	mov	r1, #0
	ldr	r3, .L81+8
	mov	r0, r1
	ldr	r2, [r3]
	bl	fz_new_context
	subs	r5, r0, #0
	beq	.L72
	ldr	r1, [r4, #4]
	bl	fz_open_file
	mov	r6, r0
	mov	r0, r5
	mov	r1, r6
	bl	pdf_load_cmap
	mov	r4, r0
	mov	r1, r6
	mov	r0, r5
	bl	fz_drop_stream
	ldr	r0, .L81+12
	bl	puts
	ldr	r1, [r4]
	ldr	r0, .L81+16
	bl	printf
	ldr	r1, [r4, #4]
	ldr	r0, .L81+20
	bl	printf
	ldr	r1, [r4, #8]
	ldrb	r3, [r1]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L73
.L5:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L74
.L6:
	ldr	r0, [r4, #16]
	cmp	r0, #0
	ble	.L15
	mov	r6, #0
	mov	r2, #12
	mov	ip, r6
	ldr	r3, [r4, #36]
	mla	r0, r2, r0, r3
.L18:
	ldr	r2, [r3]
	ldr	r1, [r3, #4]
	add	r3, r3, #12
	sub	r2, r2, r1
	cmp	r2, #0
	addgt	r6, r6, #1
	addle	ip, ip, #1
	cmp	r0, r3
	bne	.L18
	cmp	ip, #0
	bne	.L75
.L19:
	cmp	r6, #0
	bne	.L76
.L15:
	ldr	r0, [r4, #20]
	cmp	r0, #0
	ble	.L28
	mov	r6, #0
	mov	r2, #12
	mov	ip, r6
	ldr	r3, [r4, #32]
	mla	r0, r2, r0, r3
.L31:
	ldr	r2, [r3]
	ldr	r1, [r3, #4]
	add	r3, r3, #12
	sub	r2, r2, r1
	cmp	r2, #0
	addgt	r6, r6, #1
	addle	ip, ip, #1
	cmp	r0, r3
	bne	.L31
	cmp	ip, #0
	bne	.L77
.L32:
	cmp	r6, #0
	bne	.L78
.L28:
	ldr	r0, .L81+24
	bl	puts
	mov	r0, r5
	bl	fz_drop_context
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L72:
	ldr	r3, .L81
	ldr	r1, .L81+28
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L78:
	ldr	r0, .L81+32
	bl	puts
	ldr	r2, [r4, #20]
	cmp	r2, #0
	movgt	r6, #0
	ldrgt	r8, .L81+36
	movgt	r7, r6
	ble	.L39
.L37:
	ldr	r3, [r4, #32]
	add	r7, r7, #1
	add	r1, r3, r6
	ldr	r0, [r1, #4]
	ldr	r3, [r3, r6]
	sub	r3, r3, r0
	cmp	r3, #0
	ble	.L38
	bl	pc
	ldr	r3, [r4, #32]
	ldr	r0, [r3, r6]
	bl	pc
	ldr	r3, [r4, #32]
	mov	r0, r8
	add	r3, r3, r6
	ldr	r1, [r3, #8]
	bl	printf
	ldr	r2, [r4, #20]
.L38:
	cmp	r2, r7
	add	r6, r6, #12
	bgt	.L37
.L39:
	ldr	r0, .L81+40
	bl	puts
	b	.L28
.L77:
	ldr	r0, .L81+44
	bl	puts
	ldr	r2, [r4, #20]
	cmp	r2, #0
	movgt	r7, #0
	ldrgt	r9, .L81+36
	movgt	r8, r7
	bgt	.L33
	b	.L35
.L34:
	cmp	r2, r8
	add	r7, r7, #12
	ble	.L35
.L33:
	ldr	r3, [r4, #32]
	add	r8, r8, #1
	add	r1, r3, r7
	ldr	r1, [r1, #4]
	ldr	r0, [r3, r7]
	cmp	r0, r1
	bne	.L34
	bl	pc
	ldr	r3, [r4, #32]
	mov	r0, r9
	add	r3, r3, r7
	ldr	r1, [r3, #8]
	bl	printf
	ldr	r2, [r4, #20]
	b	.L34
.L35:
	ldr	r0, .L81+48
	bl	puts
	b	.L32
.L76:
	ldr	r0, .L81+32
	bl	puts
	ldr	r2, [r4, #16]
	cmp	r2, #0
	movgt	r6, #0
	ldrgt	r8, .L81+52
	movgt	r7, r6
	ble	.L26
.L24:
	ldr	r3, [r4, #36]
	add	r7, r7, #1
	add	r1, r3, r6
	ldr	r0, [r1, #4]
	ldr	r3, [r3, r6]
	sub	r3, r3, r0
	cmp	r3, #0
	ble	.L25
	bl	pc
	mov	r0, #32
	bl	putchar
	ldr	r3, [r4, #36]
	ldr	r0, [r3, r6]
	bl	pc
	ldr	r3, [r4, #36]
	mov	r0, r8
	add	r3, r3, r6
	ldr	r1, [r3, #8]
	bl	printf
	ldr	r2, [r4, #16]
.L25:
	cmp	r2, r7
	add	r6, r6, #12
	bgt	.L24
.L26:
	ldr	r0, .L81+40
	bl	puts
	b	.L15
.L75:
	ldr	r0, .L81+44
	bl	puts
	ldr	r2, [r4, #16]
	cmp	r2, #0
	movgt	r7, #0
	ldrgt	r9, .L81+52
	movgt	r8, r7
	bgt	.L20
	b	.L22
.L21:
	cmp	r2, r8
	add	r7, r7, #12
	ble	.L22
.L20:
	ldr	r3, [r4, #36]
	add	r8, r8, #1
	add	r1, r3, r7
	ldr	r1, [r1, #4]
	ldr	r0, [r3, r7]
	cmp	r0, r1
	bne	.L21
	bl	pc
	ldr	r3, [r4, #36]
	mov	r0, r9
	add	r3, r3, r7
	ldr	r1, [r3, #8]
	bl	printf
	ldr	r2, [r4, #16]
	b	.L21
.L22:
	ldr	r0, .L81+48
	bl	puts
	b	.L19
.L74:
	ldr	r0, .L81+56
	bl	puts
	ldr	r3, [r4, #12]
	cmp	r3, #0
	ble	.L13
	mov	r6, #0
	ldr	r7, .L81+60
	mov	r10, r6
	ldr	r8, .L81+64
	ldr	r9, .L81+68
	b	.L7
.L8:
	cmp	r0, #2
	beq	.L79
	cmp	r0, #3
	beq	.L80
	cmp	r0, #4
	moveq	r0, r8
	movne	r0, r7
	bl	printf
.L9:
	ldr	r3, [r4, #12]
	add	r10, r10, #1
	cmp	r3, r10
	add	r6, r6, #12
	ble	.L13
.L7:
	ldr	r3, [r4, #40]
	ldr	r0, [r3, r6]
	add	r3, r3, r6
	cmp	r0, #1
	ldmib	r3, {r1, r2}
	bne	.L8
	ldr	r0, .L81+72
	bl	printf
	b	.L9
.L79:
	ldr	r0, .L81+76
	bl	printf
	b	.L9
.L80:
	mov	r0, r9
	bl	printf
	b	.L9
.L13:
	ldr	r0, .L81+80
	bl	puts
	b	.L6
.L73:
	ldr	r0, .L81+84
	bl	printf
	b	.L5
.L82:
	.align	2
.L81:
	.word	stderr
	.word	.LC0
	.word	FZ_STORE_UNLIMITED
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC19
	.word	.LC1
	.word	.LC16
	.word	.LC18
	.word	.LC17
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC6
	.word	.LC12
	.word	.LC11
	.word	.LC10
	.word	.LC8
	.word	.LC9
	.word	.LC7
	.word	.LC5
	.size	main, .-main
	.comm	stderr,4,4
	.comm	FZ_STORE_UNLIMITED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
