	.file	"extr_markdown.c_parse_table_header.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	parse_table_header, @function
parse_table_header:
.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, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 32[rsp], rdi
	mov	QWORD PTR 40[rsp], rsi
	mov	QWORD PTR 16[rsp], r8
	mov	QWORD PTR 24[rsp], r9
	test	rcx, rcx
	je	.L3
	mov	r12, rdx
	mov	rbp, rcx
	xor	r15d, r15d
	xor	r14d, r14d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	add	r15, 1
	cmp	al, 124
	sete	al
	movzx	eax, al
	add	r14d, eax
	cmp	rbp, r15
	je	.L3
.L2:
	movzx	eax, BYTE PTR [r12+r15]
	cmp	al, 10
	jne	.L5
	cmp	r15, rbp
	je	.L3
	test	r14d, r14d
	je	.L3
	mov	r13, r15
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L56:
	lea	rbx, -1[r13]
	movsx	edi, BYTE PTR -1[r12+r13]
	lea	rax, [r12+rbx]
	mov	QWORD PTR 8[rsp], rax
	call	_isspace@PLT
	test	rax, rax
	je	.L55
	mov	r13, rbx
.L7:
	test	r13, r13
	jne	.L56
	xor	eax, eax
	cmp	BYTE PTR [r12], 124
	setne	al
	add	r14d, eax
.L9:
	mov	rax, QWORD PTR 16[rsp]
	movsx	rdi, r14d
	mov	esi, 4
	mov	QWORD PTR [rax], rdi
	call	calloc@PLT
	lea	rsi, 1[r15]
	mov	r9, rax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR [rax], r9
	cmp	rbp, rsi
	ja	.L57
.L10:
	mov	rax, QWORD PTR 16[rsp]
	mov	rbx, rsi
	mov	r8, QWORD PTR [rax]
	test	r8, r8
	jne	.L3
.L15:
	mov	eax, DWORD PTR MKD_TABLE_HEADER[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	rcx, r13
	mov	rdx, r12
	push	rax
	.cfi_def_cfa_offset 128
	mov	rsi, QWORD PTR 56[rsp]
	mov	rdi, QWORD PTR 48[rsp]
	call	parse_table_row@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	lea	rax, 1[rbx]
	add	rsp, 56
	.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
.L3:
	.cfi_restore_state
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L57:
	.cfi_restore_state
	movzx	edi, BYTE PTR 1[r12+r15]
	cmp	dil, 124
	je	.L58
.L11:
	mov	eax, edi
	mov	rbx, rsi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	add	rbx, 1
	cmp	rbp, rbx
	jbe	.L12
	movzx	eax, BYTE PTR [r12+rbx]
.L13:
	cmp	al, 10
	jne	.L14
.L12:
	mov	rax, QWORD PTR 16[rsp]
	mov	r8, QWORD PTR [rax]
	test	r8, r8
	je	.L15
	cmp	rsi, rbx
	jnb	.L3
	xor	r10d, r10d
	.p2align 4,,10
	.p2align 3
.L29:
	cmp	dil, 32
	jne	.L59
.L18:
	add	rsi, 1
	movzx	edi, BYTE PTR [r12+rsi]
	cmp	rsi, rbx
	jb	.L29
	cmp	dil, 58
	jne	.L3
.L33:
	add	rsi, 1
	mov	eax, DWORD PTR MKD_TABLE_ALIGN_L[rip]
	or	DWORD PTR [r9+r10*4], eax
	cmp	rsi, rbx
	jnb	.L20
	movzx	edi, BYTE PTR [r12+rsi]
	mov	edx, 1
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L24:
	add	rsi, 1
	add	rdx, 1
	cmp	rsi, rbx
	jnb	.L23
	movzx	edi, BYTE PTR [r12+rsi]
.L22:
	cmp	dil, 45
	je	.L24
	cmp	rbx, rsi
	jbe	.L23
	cmp	dil, 58
	jne	.L26
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L27:
	add	rsi, 1
	cmp	rsi, rbx
	je	.L23
.L26:
	movzx	edi, BYTE PTR [r12+rsi]
	cmp	dil, 32
	je	.L27
	cmp	rbx, rsi
	jbe	.L23
	cmp	dil, 124
	je	.L23
	cmp	dil, 43
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	test	rdx, rdx
	je	.L3
.L20:
	add	r10, 1
	add	rsi, 1
	cmp	r10, r8
	je	.L15
	cmp	rsi, rbx
	jnb	.L3
	movzx	edi, BYTE PTR [r12+rsi]
	cmp	dil, 32
	je	.L18
	.p2align 4,,10
	.p2align 3
.L59:
	cmp	dil, 58
	je	.L33
	cmp	rbx, rsi
	jbe	.L3
	xor	edx, edx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L60:
	add	rsi, 1
	mov	eax, DWORD PTR MKD_TABLE_ALIGN_R[rip]
	add	rdx, 1
	or	DWORD PTR [r9+r10*4], eax
	cmp	rsi, rbx
	jb	.L26
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L58:
	lea	rsi, 2[r15]
	cmp	rbp, rsi
	jbe	.L10
	movzx	edi, BYTE PTR 2[r12+r15]
	jmp	.L11
.L55:
	xor	eax, eax
	cmp	BYTE PTR [r12], 124
	sete	al
	sub	r14d, eax
	mov	rax, QWORD PTR 8[rsp]
	cmp	BYTE PTR [rax], 124
	setne	al
	movzx	eax, al
	add	r14d, eax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	parse_table_header, .-parse_table_header
	.comm	MKD_TABLE_HEADER,4,4
	.comm	MKD_TABLE_ALIGN_R,4,4
	.comm	MKD_TABLE_ALIGN_L,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_markdown.c_parse_table_header.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_table_header, %function
parse_table_header:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	fp, r3, #0
	sub	sp, sp, #28
	str	r0, [sp, #20]
	beq	.L2
	mov	r5, #0
	mov	r6, r2
	mov	r8, r1
	mov	r10, r5
	sub	r2, r2, #1
	b	.L3
.L5:
	cmp	r3, #124
	add	r5, r5, #1
	addeq	r10, r10, #1
	cmp	fp, r5
	beq	.L2
.L3:
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L5
	cmp	r10, #0
	cmpne	fp, r5
	beq	.L2
	sub	r4, r5, #1
	mov	r9, r5
	add	r4, r6, r4
	b	.L7
.L62:
	mov	r7, r4
	ldrb	r0, [r4], #-1	@ zero_extendqisi2
	bl	_isspace
	cmp	r0, #0
	sub	r2, r9, #1
	beq	.L61
	mov	r9, r2
.L7:
	cmp	r9, #0
	bne	.L62
	ldrb	r3, [r6]	@ zero_extendqisi2
	cmp	r3, #124
	beq	.L10
.L59:
	add	r10, r10, #1
.L10:
	ldr	r3, [sp, #64]
	mov	r1, #4
	str	r10, [r3]
	mov	r0, r10
	bl	calloc
	ldr	r3, [sp, #68]
	add	ip, r5, #1
	cmp	ip, fp
	str	r0, [r3]
	bcs	.L2
.L34:
	ldrb	lr, [r6, ip]	@ zero_extendqisi2
	cmp	lr, #124
	beq	.L63
.L12:
	add	r5, r6, ip
	mov	r2, r5
	mov	r3, lr
	mov	r4, ip
	b	.L14
.L15:
	add	r4, r4, #1
	cmp	fp, r4
	bls	.L13
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
.L14:
	cmp	r3, #10
	bne	.L15
.L13:
	cmp	r10, #0
	beq	.L16
	cmp	ip, r4
	bcs	.L2
	ldr	r2, .L67
	ldr	r3, .L67+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	mov	r3, #0
.L29:
	cmp	lr, #32
	bne	.L64
.L19:
	add	ip, ip, #1
	cmp	ip, r4
	ldrb	lr, [r5, #1]!	@ zero_extendqisi2
	bcc	.L29
	cmp	lr, #58
	bne	.L2
.L33:
	ldr	lr, [r0, r3, lsl #2]
	add	ip, ip, #1
	orr	lr, lr, r1
	cmp	ip, r4
	str	lr, [r0, r3, lsl #2]
	bcs	.L21
	mov	r5, #1
	ldrb	lr, [r6, ip]	@ zero_extendqisi2
.L22:
	add	fp, r6, ip
	b	.L23
.L25:
	add	ip, ip, #1
	cmp	ip, r4
	add	r5, r5, #1
	bcs	.L24
	ldrb	lr, [fp, #1]!	@ zero_extendqisi2
.L23:
	cmp	lr, #45
	beq	.L25
	cmp	r4, ip
	bls	.L24
	cmp	lr, #58
	beq	.L65
.L26:
	sub	lr, ip, #1
	add	lr, r6, lr
	b	.L27
.L28:
	add	ip, ip, #1
	cmp	ip, r4
	beq	.L24
.L27:
	ldrb	fp, [lr, #1]!	@ zero_extendqisi2
	cmp	fp, #32
	beq	.L28
	cmp	r4, ip
	bls	.L24
	cmp	fp, #124
	cmpne	fp, #43
	bne	.L2
.L24:
	cmp	r5, #0
	beq	.L2
.L21:
	add	r3, r3, #1
	cmp	r3, r10
	add	ip, ip, #1
	beq	.L16
	cmp	ip, r4
	bcs	.L2
	mov	r5, r6
	ldrb	lr, [r5, ip]!	@ zero_extendqisi2
	cmp	lr, #32
	beq	.L19
.L64:
	cmp	lr, #58
	beq	.L33
	cmp	r4, ip
	bls	.L2
	mov	r5, #0
	b	.L22
.L61:
	ldrb	r2, [r6]	@ zero_extendqisi2
	cmp	r2, #124
	subeq	r10, r10, #1
.L32:
	ldrb	r3, [r7]	@ zero_extendqisi2
	cmp	r3, #124
	bne	.L59
	ldr	r3, [sp, #64]
	mov	r1, #4
	str	r10, [r3]
	mov	r0, r10
	bl	calloc
	add	r4, r5, #1
	ldr	r3, [sp, #68]
	cmp	fp, r4
	str	r0, [r3]
	bhi	.L66
.L11:
	cmp	r10, #0
	beq	.L16
.L2:
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L65:
	ldr	lr, [r0, r3, lsl #2]
	add	ip, ip, #1
	orr	lr, lr, r2
	cmp	ip, r4
	add	r5, r5, #1
	str	lr, [r0, r3, lsl #2]
	bcc	.L26
	b	.L24
.L63:
	add	ip, r5, #2
	cmp	fp, ip
	bls	.L36
	ldrb	lr, [r6, ip]	@ zero_extendqisi2
	b	.L12
.L16:
	ldr	r3, .L67+8
	str	r0, [sp, #4]
	ldr	ip, [r3]
	mov	r2, r6
	mov	r3, r9
	mov	r1, r8
	ldr	r0, [sp, #20]
	str	r10, [sp]
	str	ip, [sp, #8]
	bl	parse_table_row
	add	r0, r4, #1
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L66:
	mov	ip, r4
	b	.L34
.L36:
	mov	r4, ip
	b	.L11
.L68:
	.align	2
.L67:
	.word	MKD_TABLE_ALIGN_L
	.word	MKD_TABLE_ALIGN_R
	.word	MKD_TABLE_HEADER
	.size	parse_table_header, .-parse_table_header
	.comm	MKD_TABLE_HEADER,4,4
	.comm	MKD_TABLE_ALIGN_R,4,4
	.comm	MKD_TABLE_ALIGN_L,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
