	.file	"extr_pdf-xref.c_pdf_read_new_xref_section.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"xref subsection object numbers are out of range"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"truncated xref stream"
	.text
	.p2align 4
	.type	pdf_read_new_xref_section, @function
pdf_read_new_xref_section:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	eax, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 16[rsp], ecx
	add	ecx, r8d
	mov	QWORD PTR 24[rsp], rsi
	mov	DWORD PTR 4[rsp], r9d
	mov	DWORD PTR 20[rsp], ecx
	test	eax, eax
	js	.L2
	mov	ecx, eax
	mov	eax, DWORD PTR PDF_MAX_OBJECT_NUMBER[rip]
	mov	edx, r8d
	cmp	eax, ecx
	setl	cl
	shr	edx, 31
	or	cl, dl
	jne	.L2
	cmp	eax, r8d
	jge	.L43
.L2:
	mov	esi, DWORD PTR FZ_ERROR_GENERIC[rip]
	lea	rdx, .LC4[rip]
	mov	rdi, r13
	call	fz_throw@PLT
.L3:
	mov	ebx, DWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	mov	ecx, r12d
	mov	rdi, r13
	mov	edx, ebx
	call	pdf_xref_find_subsection@PLT
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR 20[rsp]
	cmp	ebx, eax
	jge	.L18
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, r14
	mov	rdi, r13
	call	fz_is_eof@PLT
	test	rax, rax
	jne	.L44
.L5:
	mov	r10d, DWORD PTR 4[rsp]
	xor	r12d, r12d
	test	r10d, r10d
	jle	.L6
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r14
	mov	rdi, r13
	sal	r12d, 8
	add	ebx, 1
	call	fz_read_byte@PLT
	add	r12d, eax
	cmp	DWORD PTR 4[rsp], ebx
	jne	.L7
.L6:
	mov	r9d, DWORD PTR 96[rsp]
	xor	ebp, ebp
	test	r9d, r9d
	jle	.L8
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, r14
	mov	rdi, r13
	sal	ebp, 8
	add	ebx, 1
	call	fz_read_byte@PLT
	add	ebp, eax
	cmp	DWORD PTR 96[rsp], ebx
	jne	.L9
.L8:
	mov	r8d, DWORD PTR 104[rsp]
	xor	ebx, ebx
	test	r8d, r8d
	jle	.L10
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, r14
	mov	rdi, r13
	sal	ebx, 8
	add	r15d, 1
	call	fz_read_byte@PLT
	add	ebx, eax
	cmp	DWORD PTR 104[rsp], r15d
	jne	.L11
.L10:
	mov	rax, QWORD PTR 8[rsp]
	pxor	xmm1, xmm1
	ucomiss	xmm1, DWORD PTR [rax]
	jp	.L12
	jne	.L12
	mov	edi, DWORD PTR 4[rsp]
	movss	xmm0, DWORD PTR .LC0[rip]
	test	edi, edi
	je	.L14
	movss	xmm0, DWORD PTR .LC1[rip]
	test	r12d, r12d
	je	.L14
	cmp	r12d, 1
	je	.L24
	movss	xmm0, DWORD PTR .LC2[rip]
	cmp	r12d, 2
	je	.L14
	pxor	xmm0, xmm0
.L14:
	mov	ecx, DWORD PTR 96[rsp]
	mov	esi, DWORD PTR 104[rsp]
	xor	eax, eax
	mov	rdx, QWORD PTR 8[rsp]
	test	ecx, ecx
	cmove	ebp, eax
	test	esi, esi
	movss	DWORD PTR [rdx], xmm0
	cmove	ebx, eax
	mov	eax, DWORD PTR 16[rsp]
	mov	DWORD PTR 4[rdx], ebp
	mov	DWORD PTR 8[rdx], ebx
	mov	DWORD PTR 12[rdx], eax
.L12:
	add	DWORD PTR 16[rsp], 1
	mov	eax, DWORD PTR 16[rsp]
	add	QWORD PTR 8[rsp], 16
	cmp	eax, DWORD PTR 20[rsp]
	jne	.L17
.L18:
	mov	rax, QWORD PTR 24[rsp]
	mov	DWORD PTR [rax], 1
	add	rsp, 40
	.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
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	mov	esi, DWORD PTR FZ_ERROR_GENERIC[rip]
	lea	rdx, .LC5[rip]
	mov	rdi, r13
	call	fz_throw@PLT
	jmp	.L5
.L43:
	mov	ecx, DWORD PTR 20[rsp]
	lea	edx, -1[rcx]
	cmp	eax, edx
	jge	.L3
	jmp	.L2
.L24:
	movss	xmm0, DWORD PTR .LC0[rip]
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	pdf_read_new_xref_section, .-pdf_read_new_xref_section
	.comm	PDF_MAX_OBJECT_NUMBER,4,4
	.comm	FZ_ERROR_GENERIC,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1121714176
	.align 4
.LC1:
	.long	1120665600
	.align 4
.LC2:
	.long	1121845248
	.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_pdf-xref.c_pdf_read_new_xref_section.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xref subsection object numbers are out of range\000"
	.align	2
.LC1:
	.ascii	"truncated xref stream\000"
	.global	__aeabi_fcmpeq
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pdf_read_new_xref_section, %function
pdf_read_new_xref_section:
	@ args = 16, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	ldr	r4, [sp, #56]
	str	r3, [sp, #4]
	cmp	r3, #0
	str	r1, [sp, #12]
	mov	r1, r3
	add	r3, r3, r4
	mov	r6, r0
	mov	r7, r2
	ldr	r9, [sp, #64]
	ldr	r10, [sp, #68]
	str	r3, [sp, #8]
	blt	.L2
	ldr	r2, .L41
	lsr	r3, r4, #31
	ldr	r2, [r2]
	cmp	r2, r1
	orrlt	r3, r3, #1
	cmp	r2, r4
	orrlt	r3, r3, #1
	cmp	r3, #0
	beq	.L39
.L2:
	ldr	r3, .L41+4
	mov	r0, r6
	ldr	r2, .L41+8
	ldr	r1, [r3]
	bl	fz_throw
.L3:
	mov	r3, r4
	ldr	r4, [sp, #4]
	mov	r0, r6
	mov	r2, r4
	ldr	r1, [sp, #12]
	bl	pdf_xref_find_subsection
	ldr	r2, [sp, #8]
	cmp	r4, r2
	strlt	r0, [sp]
	bge	.L18
.L17:
	mov	r1, r7
	mov	r0, r6
	bl	fz_is_eof
	cmp	r0, #0
	bne	.L40
.L5:
	ldr	r3, [sp, #60]
	mov	r5, #0
	cmp	r3, #0
	ble	.L6
	mov	r4, r5
	mov	r8, r3
.L7:
	mov	r1, r7
	mov	r0, r6
	bl	fz_read_byte
	add	r4, r4, #1
	lsl	r5, r5, #8
	cmp	r8, r4
	add	r5, r5, r0
	bne	.L7
.L6:
	cmp	r9, #0
	mov	r4, #0
	ble	.L8
	mov	r8, r4
.L9:
	mov	r1, r7
	mov	r0, r6
	bl	fz_read_byte
	add	r8, r8, #1
	lsl	r4, r4, #8
	cmp	r9, r8
	add	r4, r4, r0
	bne	.L9
.L8:
	cmp	r10, #0
	mov	fp, #0
	ble	.L10
	mov	r8, fp
.L11:
	mov	r1, r7
	mov	r0, r6
	bl	fz_read_byte
	add	r8, r8, #1
	lsl	fp, fp, #8
	cmp	r10, r8
	add	fp, fp, r0
	bne	.L11
.L10:
	ldr	r3, [sp]
	mov	r1, #0
	ldr	r0, [r3]	@ float
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	beq	.L12
	ldr	r3, [sp, #60]
	cmp	r3, #0
	beq	.L24
	cmp	r5, #0
	ldreq	r2, .L41+12
	beq	.L14
	cmp	r5, #1
	beq	.L24
	cmp	r5, #2
	movne	r2, #0
	ldreq	r2, .L41+16
.L14:
	cmp	r9, #0
	moveq	r4, #0
	cmp	r10, #0
	moveq	fp, #0
	ldr	r3, [sp]
	str	r2, [r3]	@ float
	stmib	r3, {r4, fp}
	ldr	r2, [sp, #4]
	str	r2, [r3, #12]
.L12:
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #8]
	add	r3, r3, #1
	str	r3, [sp, #4]
	cmp	r3, r2
	ldr	r3, [sp]
	add	r3, r3, #16
	str	r3, [sp]
	bne	.L17
.L18:
	mov	r3, #1
	ldr	r2, [sp, #12]
	str	r3, [r2]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L40:
	ldr	r3, .L41+4
	mov	r0, r6
	ldr	r2, .L41+20
	ldr	r1, [r3]
	bl	fz_throw
	b	.L5
.L24:
	ldr	r2, .L41+24
	b	.L14
.L39:
	ldr	r3, [sp, #8]
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L3
	b	.L2
.L42:
	.align	2
.L41:
	.word	PDF_MAX_OBJECT_NUMBER
	.word	FZ_ERROR_GENERIC
	.word	.LC0
	.word	1120665600
	.word	1121845248
	.word	.LC1
	.word	1121714176
	.size	pdf_read_new_xref_section, .-pdf_read_new_xref_section
	.comm	PDF_MAX_OBJECT_NUMBER,4,4
	.comm	FZ_ERROR_GENERIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
