	.file	"extr_pdf-link.c_pdf_parse_file_spec.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"cannot parse file specification"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"#page=%d"
.LC2:
	.string	"#%s"
.LC3:
	.string	"file://%s%s"
	.text
	.p2align 4
	.globl	pdf_parse_file_spec
	.type	pdf_parse_file_spec, @function
pdf_parse_file_spec:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rsi, rdx
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, 0
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 280
	.cfi_def_cfa_offset 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 264[rsp], rax
	xor	eax, eax
	call	pdf_is_string@PLT
	mov	rsi, r12
	mov	rdi, rbp
	test	rax, rax
	cmovne	r13, r12
	call	pdf_is_dict@PLT
	test	rax, rax
	jne	.L18
.L3:
	mov	rsi, r13
	mov	rdi, rbp
	call	pdf_is_string@PLT
	test	rax, rax
	je	.L19
	mov	rsi, r14
	mov	rdi, rbp
	call	pdf_is_array@PLT
	test	rax, rax
	jne	.L20
	mov	rsi, r14
	mov	rdi, rbp
	call	pdf_is_name@PLT
	mov	rsi, r14
	mov	rdi, rbp
	test	rax, rax
	je	.L8
	call	pdf_to_name@PLT
.L16:
	mov	r12, rsp
	mov	rcx, rax
	mov	esi, 256
	lea	rdx, .LC2[rip]
	mov	rdi, r12
	call	fz_snprintf@PLT
.L7:
	mov	rsi, r13
	mov	rdi, rbp
	call	pdf_to_text_string@PLT
	mov	rcx, r12
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	mov	rdx, rax
	xor	eax, eax
	call	fz_asprintf@PLT
.L1:
	mov	rcx, QWORD PTR 264[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 280
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xor	edx, edx
	mov	rsi, r14
	mov	rdi, rbp
	mov	r12, rsp
	call	pdf_array_get_int@PLT
	lea	rdx, .LC1[rip]
	mov	esi, 256
	mov	rdi, r12
	lea	rcx, 1[rax]
	call	fz_snprintf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR Unix[rip]
	call	PDF_NAME@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, eax
	call	pdf_dict_get@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR F[rip]
	call	PDF_NAME@PLT
	mov	edi, DWORD PTR UF[rip]
	mov	r13d, eax
	call	PDF_NAME@PLT
	mov	ecx, r13d
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, eax
	call	pdf_dict_geta@PLT
	mov	r13, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	call	pdf_is_string@PLT
	test	rax, rax
	jne	.L22
	mov	BYTE PTR [rsp], 0
	mov	r12, rsp
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, r14
	mov	rdi, rbp
	call	pdf_to_str_buf@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	fz_warn@PLT
	xor	eax, eax
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pdf_parse_file_spec, .-pdf_parse_file_spec
	.comm	Unix,4,4
	.comm	URL,4,4
	.comm	UF,4,4
	.comm	FS,4,4
	.comm	F,4,4
	.comm	DOS,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_pdf-link.c_pdf_parse_file_spec.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot parse file specification\000"
	.align	2
.LC1:
	.ascii	"#page=%d\000"
	.align	2
.LC2:
	.ascii	"#%s\000"
	.align	2
.LC3:
	.ascii	"file://%s%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pdf_parse_file_spec
	.syntax unified
	.arm
	.fpu softvfp
	.type	pdf_parse_file_spec, %function
pdf_parse_file_spec:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r3
	ldr	r3, .L22
	mov	r1, r2
	sub	sp, sp, #268
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #260]
	mov	r3,#0
	mov	r4, r0
	bl	pdf_is_string
	mov	r1, r5
	cmp	r0, #0
	mov	r0, r4
	movne	r7, r5
	moveq	r7, #0
	bl	pdf_is_dict
	cmp	r0, #0
	bne	.L18
.L3:
	mov	r1, r7
	mov	r0, r4
	bl	pdf_is_string
	subs	r5, r0, #0
	beq	.L19
	mov	r1, r6
	mov	r0, r4
	bl	pdf_is_array
	cmp	r0, #0
	mov	r1, r6
	bne	.L20
	mov	r0, r4
	bl	pdf_is_name
	cmp	r0, #0
	mov	r1, r6
	mov	r0, r4
	beq	.L8
	bl	pdf_to_name
.L16:
	add	r5, sp, #4
	mov	r3, r0
	mov	r1, #256
	mov	r0, r5
	ldr	r2, .L22+4
	bl	fz_snprintf
.L7:
	mov	r1, r7
	mov	r0, r4
	bl	pdf_to_text_string
	mov	r3, r5
	mov	r2, r0
	ldr	r1, .L22+8
	mov	r0, r4
	bl	fz_asprintf
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #260]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #268
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L20:
	mov	r2, #0
	mov	r0, r4
	bl	pdf_array_get_int
	add	r5, sp, #4
	add	r3, r0, #1
	mov	r1, #256
	mov	r0, r5
	ldr	r2, .L22+12
	bl	fz_snprintf
	b	.L7
.L18:
	ldr	r3, .L22+16
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	pdf_dict_get
	subs	r7, r0, #0
	bne	.L3
	ldr	r3, .L22+20
	ldr	r0, [r3]
	bl	PDF_NAME
	ldr	r3, .L22+24
	mov	r7, r0
	ldr	r0, [r3]
	bl	PDF_NAME
	mov	r2, r7
	mov	r3, r0
	mov	r1, r5
	mov	r0, r4
	bl	pdf_dict_geta
	mov	r7, r0
	b	.L3
.L8:
	bl	pdf_is_string
	cmp	r0, #0
	strbeq	r0, [sp, #4]
	addeq	r5, sp, #4
	beq	.L7
	mov	r1, r6
	mov	r0, r4
	bl	pdf_to_str_buf
	b	.L16
.L19:
	mov	r0, r4
	ldr	r1, .L22+28
	bl	fz_warn
	mov	r0, r5
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.word	Unix
	.word	UF
	.word	F
	.word	.LC0
	.size	pdf_parse_file_spec, .-pdf_parse_file_spec
	.comm	Unix,4,4
	.comm	URL,4,4
	.comm	UF,4,4
	.comm	FS,4,4
	.comm	F,4,4
	.comm	DOS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
