	.file	"extr_markdown.c_is_footnote.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.text
	.p2align 4
	.type	is_footnote, @function
is_footnote:
.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
	mov	rbp, rdx
	lea	rdx, 3[rsi]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	cmp	rdx, rbp
	jnb	.L5
	movzx	eax, BYTE PTR [rdi+rsi]
	mov	rbx, rdi
	cmp	al, 32
	je	.L96
.L4:
	cmp	al, 91
	je	.L97
.L5:
	xor	r13d, r13d
.L1:
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L97:
	.cfi_restore_state
	lea	rax, 1[rsi]
	cmp	rbp, rax
	jbe	.L5
	cmp	BYTE PTR 1[rbx+rsi], 94
	jne	.L5
	lea	rax, 2[rsi]
	mov	QWORD PTR 8[rsp], rax
	mov	r15, rax
	cmp	rbp, rax
	ja	.L6
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L98:
	cmp	al, 93
	je	.L46
	add	r15, 1
	cmp	rbp, r15
	jbe	.L5
.L6:
	movzx	eax, BYTE PTR [rbx+r15]
	cmp	al, 10
	setne	sil
	cmp	al, 13
	setne	dl
	test	sil, dl
	jne	.L98
.L46:
	cmp	rbp, r15
	jbe	.L5
	cmp	al, 93
	jne	.L5
	lea	rax, 1[r15]
	cmp	rbp, rax
	jbe	.L5
	cmp	BYTE PTR 1[rbx+r15], 58
	jne	.L5
	lea	r13, 2[r15]
	mov	edi, 64
	mov	QWORD PTR 40[rsp], r8
	mov	QWORD PTR [rsp], rcx
	mov	QWORD PTR 32[rsp], r13
	call	bufnew@PLT
	cmp	rbp, r13
	mov	rcx, QWORD PTR [rsp]
	mov	DWORD PTR 20[rsp], 0
	mov	QWORD PTR 24[rsp], rax
	mov	r8, QWORD PTR 40[rsp]
	jbe	.L10
	mov	QWORD PTR 40[rsp], r15
	mov	r12, rbp
	mov	rbp, r13
	mov	QWORD PTR 48[rsp], rcx
	mov	QWORD PTR 56[rsp], r8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r14, rbp
	xor	esi, esi
	cmp	r12, rbp
	ja	.L28
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L99:
	cmp	al, 10
	je	.L47
	add	r14, 1
	cmp	r12, r14
	je	.L11
.L28:
	movzx	eax, BYTE PTR [rbx+r14]
	lea	rdx, [rbx+r14]
	cmp	al, 13
	jne	.L99
.L47:
	lea	r15, [rbx+rbp]
	mov	rsi, r14
	mov	QWORD PTR [rsp], rdx
	sub	rsi, rbp
	mov	rdi, r15
	mov	r13, r15
	call	is_empty@PLT
	mov	rdx, QWORD PTR [rsp]
	test	rax, rax
	je	.L33
	cmp	r12, r14
	jbe	.L94
	movzx	eax, BYTE PTR [rdx]
	cmp	al, 13
	sete	dl
	cmp	al, 10
	je	.L48
	mov	DWORD PTR 20[rsp], 1
	test	dl, dl
	jne	.L48
.L17:
	mov	rbp, r14
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L96:
	movzx	eax, BYTE PTR 1[rbx+rsi]
	lea	rdi, 1[rsi]
	cmp	al, 32
	je	.L100
	mov	rsi, rdi
	cmp	al, 91
	jne	.L5
	jmp	.L97
	.p2align 4,,10
	.p2align 3
.L100:
	add	rsi, 2
	movzx	eax, BYTE PTR [rbx+rsi]
	cmp	al, 32
	jne	.L4
	movzx	eax, BYTE PTR [rbx+rdx]
	mov	rsi, rdx
	cmp	al, 32
	jne	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, r12
	sub	rsi, rbp
.L29:
	lea	r15, [rbx+rbp]
	mov	rdi, r15
	mov	r13, r15
	call	is_empty@PLT
	test	rax, rax
	jne	.L94
.L33:
	xor	eax, eax
.L15:
	lea	rdx, 0[rbp+rax]
	cmp	r12, rdx
	jbe	.L23
	cmp	BYTE PTR [r15+rax], 32
	jne	.L23
	add	rax, 1
	cmp	rax, 4
	jne	.L15
	mov	r15d, 4
	lea	rdx, 4[rbp]
.L22:
	mov	eax, DWORD PTR 20[rsp]
	lea	r13, [rbx+rdx]
	test	eax, eax
	jne	.L101
.L26:
	mov	edx, r14d
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r13
	sub	edx, ebp
	sub	edx, r15d
	call	bufput@PLT
	cmp	r12, r14
	ja	.L102
.L94:
	mov	r15, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 48[rsp]
	mov	r13, r14
	mov	r8, QWORD PTR 56[rsp]
	.p2align 4,,10
	.p2align 3
.L10:
	test	rcx, rcx
	je	.L30
	mov	QWORD PTR [rcx], r13
.L30:
	mov	r13d, 1
	test	r8, r8
	je	.L1
	mov	rax, QWORD PTR 8[rsp]
	mov	rdx, r15
	mov	rdi, r8
	mov	QWORD PTR [rsp], r8
	sub	rdx, rax
	lea	rsi, [rbx+rax]
	call	create_footnote_ref@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L5
	mov	r8, QWORD PTR [rsp]
	mov	rsi, rax
	mov	rdi, r8
	call	add_footnote_ref@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L103
	mov	rax, QWORD PTR 24[rsp]
	mov	r13d, 1
	mov	QWORD PTR 0[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	test	rax, rax
	jne	.L104
	cmp	QWORD PTR 32[rsp], rbp
	jne	.L91
	cmp	BYTE PTR [r15], 9
	jne	.L91
	xor	r15d, r15d
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L48:
	lea	rbp, 1[r14]
	cmp	r12, rbp
	jbe	.L91
	cmp	BYTE PTR 1[rbx+r14], 10
	jne	.L38
	test	dl, dl
	jne	.L105
.L38:
	mov	DWORD PTR 20[rsp], 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L102:
	mov	rdi, QWORD PTR 24[rsp]
	mov	edx, 1
	lea	rsi, .LC0[rip]
	call	bufput@PLT
	movzx	eax, BYTE PTR [rbx+r14]
	cmp	al, 13
	sete	dl
	cmp	al, 10
	je	.L49
	mov	DWORD PTR 20[rsp], 0
	test	dl, dl
	je	.L17
.L49:
	lea	rbp, 1[r14]
	cmp	r12, rbp
	jbe	.L91
	cmp	BYTE PTR 1[rbx+r14], 10
	jne	.L42
	test	dl, dl
	jne	.L106
.L42:
	mov	DWORD PTR 20[rsp], 0
	jmp	.L9
.L105:
	mov	DWORD PTR 20[rsp], 1
	lea	rbp, 2[r14]
.L21:
	cmp	rbp, r12
	jb	.L9
	.p2align 4,,10
	.p2align 3
.L91:
	mov	r15, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 48[rsp]
	mov	r13, rbp
	mov	r8, QWORD PTR 56[rsp]
	jmp	.L10
.L101:
	mov	rdi, QWORD PTR 24[rsp]
	mov	esi, 10
	call	bufputc@PLT
	jmp	.L26
.L103:
	mov	rdi, rbp
	call	free_footnote_ref@PLT
	jmp	.L1
.L106:
	mov	DWORD PTR 20[rsp], 0
	lea	rbp, 2[r14]
	jmp	.L21
.L104:
	mov	r15d, eax
	jmp	.L22
	.cfi_endproc
.LFE0:
	.size	is_footnote, .-is_footnote
	.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_markdown.c_is_footnote.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_footnote, %function
is_footnote:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	add	r2, r1, #3
	cmp	r2, r4
	sub	sp, sp, #28
	bcs	.L5
	mov	r7, r3
	ldrb	r3, [r0, r1]	@ zero_extendqisi2
	mov	r5, r0
	cmp	r3, #32
	beq	.L64
.L4:
	cmp	r3, #91
	beq	.L65
.L5:
	mov	r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L65:
	add	r2, r1, #1
	cmp	r4, r2
	bls	.L5
	ldrb	r3, [r5, r2]	@ zero_extendqisi2
	add	r2, r5, r2
	cmp	r3, #94
	bne	.L5
	add	r8, r1, #2
	cmp	r4, r8
	str	r8, [sp]
	bhi	.L6
	b	.L5
.L7:
	add	r8, r8, #1
	cmp	r4, r8
	bls	.L5
.L6:
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	cmp	r3, #10
	cmpne	r3, #13
	movne	r6, #1
	moveq	r6, #0
	cmp	r3, #93
	moveq	r6, #0
	andne	r6, r6, #1
	cmp	r6, #0
	bne	.L7
	cmp	r4, r8
	bls	.L5
	cmp	r3, #93
	bne	.L5
	add	r3, r8, #1
	cmp	r4, r3
	bls	.L5
	ldrb	r3, [r5, r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L5
	mov	r0, #64
	bl	bufnew
	add	r3, r8, #2
	cmp	r4, r3
	movls	r10, r3
	str	r3, [sp, #12]
	str	r0, [sp, #4]
	bls	.L9
	ldr	r10, [sp, #12]
	str	r6, [sp, #8]
	str	r8, [sp, #16]
	str	r7, [sp, #20]
.L8:
	cmp	r4, r10
	bls	.L35
	add	r7, r5, r10
	mov	fp, r7
	mov	r3, r7
	mov	r6, r10
	b	.L24
.L11:
	add	r6, r6, #1
	cmp	r4, r6
	beq	.L10
.L24:
	mov	r9, r3
	ldrb	r2, [r3], #1	@ zero_extendqisi2
	cmp	r2, #13
	cmpne	r2, #10
	bne	.L11
	sub	r8, r6, r10
	mov	r1, r8
	mov	r0, r7
	bl	is_empty
	cmp	r0, #0
	beq	.L28
	cmp	r4, r6
	bls	.L62
	ldrb	r3, [r9]	@ zero_extendqisi2
	sub	r2, r3, #13
	clz	r2, r2
	cmp	r3, #13
	cmpne	r3, #10
	lsr	r2, r2, #5
	bne	.L31
	add	r10, r6, #1
	cmp	r4, r10
	bls	.L60
	ldrb	r3, [r5, r10]	@ zero_extendqisi2
	cmp	r3, #10
	movne	r2, #0
	andeq	r2, r2, #1
	cmp	r2, #0
	movne	r3, #1
	addne	r10, r6, #2
	strne	r3, [sp, #8]
	bne	.L18
	mov	r3, #1
	str	r3, [sp, #8]
	b	.L8
.L64:
	add	r0, r1, #1
	ldrb	r3, [r5, r0]	@ zero_extendqisi2
	cmp	r3, #32
	movne	r1, r0
	bne	.L4
	add	r1, r1, #2
	ldrb	r3, [r5, r1]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L4
	ldrb	r3, [r5, r2]	@ zero_extendqisi2
	cmp	r3, #32
	movne	r1, r2
	bne	.L4
	b	.L5
.L68:
	mov	r2, #1
	ldr	r1, .L69
	ldr	r0, [sp, #4]
	bl	bufput
	ldrb	r3, [r5, r6]	@ zero_extendqisi2
	sub	r2, r3, #13
	clz	r2, r2
	lsr	r2, r2, #5
	cmp	r3, #10
	movne	r3, r2
	orreq	r3, r2, #1
	cmp	r3, #0
	beq	.L33
	add	r10, r6, #1
	cmp	r4, r10
	bls	.L60
	ldrb	r3, [r5, r10]	@ zero_extendqisi2
	cmp	r3, #10
	movne	r2, #0
	andeq	r2, r2, #1
	cmp	r2, #0
	streq	r2, [sp, #8]
	beq	.L8
	mov	r3, #0
	add	r10, r6, #2
	str	r3, [sp, #8]
.L18:
	cmp	r10, r4
	bcc	.L8
.L60:
	ldr	r8, [sp, #16]
	ldr	r7, [sp, #20]
.L9:
	ldr	r3, [sp, #64]
	cmp	r7, #0
	strne	r10, [r7]
	cmp	r3, #0
	moveq	r4, #1
	beq	.L1
	ldr	r3, [sp]
	ldr	r0, [sp, #64]
	add	r1, r5, r3
	sub	r2, r8, r3
	bl	create_footnote_ref
	subs	r5, r0, #0
	beq	.L5
	mov	r1, r5
	ldr	r0, [sp, #64]
	bl	add_footnote_ref
	subs	r4, r0, #0
	beq	.L66
	ldr	r3, [sp, #4]
	mov	r4, #1
	str	r3, [r5]
	b	.L1
.L10:
	sub	r8, r4, r10
.L23:
	mov	r1, r8
	mov	r0, r7
	bl	is_empty
	cmp	r0, #0
	mov	fp, r7
	bne	.L62
.L28:
	mov	ip, r7
	mov	r1, #0
.L13:
	add	r0, r10, r1
	cmp	r4, r0
	bls	.L20
	ldrb	r3, [ip], #1	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L20
	add	r1, r1, #1
	cmp	r1, #4
	bne	.L13
	add	r0, r10, #4
.L19:
	ldr	r3, [sp, #8]
	add	fp, r5, r0
	cmp	r3, #0
	sub	r8, r8, r1
	bne	.L67
.L22:
	mov	r2, r8
	mov	r1, fp
	ldr	r0, [sp, #4]
	bl	bufput
	cmp	r4, r6
	bhi	.L68
.L62:
	mov	r10, r6
	ldr	r8, [sp, #16]
	ldr	r7, [sp, #20]
	b	.L9
.L20:
	cmp	r1, #0
	bne	.L19
	ldr	r3, [sp, #12]
	cmp	r3, r10
	bne	.L60
	ldrb	r2, [r7]	@ zero_extendqisi2
	cmp	r2, #9
	beq	.L22
	b	.L60
.L31:
	mov	r3, #1
	str	r3, [sp, #8]
.L15:
	mov	r10, r6
	b	.L8
.L67:
	mov	r1, #10
	ldr	r0, [sp, #4]
	bl	bufputc
	b	.L22
.L33:
	str	r3, [sp, #8]
	b	.L15
.L35:
	mov	r6, r10
	mov	r8, #0
	add	r7, r5, r10
	b	.L23
.L66:
	mov	r0, r5
	bl	free_footnote_ref
	b	.L1
.L70:
	.align	2
.L69:
	.word	.LC0
	.size	is_footnote, .-is_footnote
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
