	.file	"extr_tbl_layout.c_tbl_layout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tbl_layout
	.type	tbl_layout, @function
tbl_layout:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	mov	edx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	DWORD PTR 12[rsp], ecx
.L2:
	movsx	rax, edx
	movzx	eax, BYTE PTR [rbx+rax]
	cmp	al, 32
	je	.L3
.L36:
	cmp	al, 9
	je	.L3
	cmp	al, 44
	je	.L4
	cmp	al, 46
	je	.L5
	test	al, al
	je	.L1
	test	r13, r13
	je	.L35
.L14:
	mov	edx, r12d
	lea	r8, 12[rsp]
	mov	rcx, rbx
	mov	rsi, r13
	mov	rdi, rbp
	call	cell@PLT
	mov	edx, DWORD PTR 12[rsp]
	movsx	rax, edx
	movzx	eax, BYTE PTR [rbx+rax]
	cmp	al, 32
	jne	.L36
	.p2align 4,,10
	.p2align 3
.L3:
	add	edx, 1
	mov	DWORD PTR 12[rsp], edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR TBL_PART_DATA[rip]
	mov	rbx, QWORD PTR 8[rbp]
	add	edx, 1
	mov	DWORD PTR 12[rsp], edx
	mov	DWORD PTR 28[rbp], eax
	test	rbx, rbx
	jne	.L9
	mov	esi, 32
	mov	edi, 1
	call	mandoc_calloc@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rbx, rax
	mov	QWORD PTR 8[rbp], rax
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	QWORD PTR 8[rbx], 0
	jne	.L10
	mov	edx, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR MANDOCERR_TBLLAYOUT_NONE[rip]
	xor	ecx, ecx
	mov	esi, r12d
	call	mandoc_msg@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR TBL_CELL_LEFT[rip]
	mov	rdi, rbp
	call	cell_alloc@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	DWORD PTR 24[rbp], eax
	jge	.L1
	mov	DWORD PTR 24[rbp], eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	add	edx, 1
	xor	r13d, r13d
	mov	DWORD PTR 12[rsp], edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 24[rbx]
	cmp	DWORD PTR 24[rbp], eax
	jge	.L12
.L39:
	mov	DWORD PTR 24[rbp], eax
.L12:
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	je	.L13
	mov	ecx, DWORD PTR 4[rax]
	lea	edx, 1[rcx]
	cmp	edx, DWORD PTR 20[rbp]
	je	.L37
.L13:
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L1
	cmp	QWORD PTR 8[rdi], 0
	je	.L38
	mov	rbx, rdi
	mov	eax, DWORD PTR 24[rbx]
	cmp	DWORD PTR 24[rbp], eax
	jge	.L12
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L37:
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR 16[rbp], eax
	jge	.L13
	mov	DWORD PTR 16[rbp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L38:
	call	free@PLT
	mov	QWORD PTR [rbx], 0
	mov	QWORD PTR 0[rbp], rbx
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	r13, QWORD PTR 0[rbp]
	test	r13, r13
	je	.L15
	cmp	QWORD PTR 8[r13], 0
	je	.L14
.L15:
	mov	esi, 32
	mov	edi, 1
	call	mandoc_calloc@PLT
	mov	r13, rax
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L16
	mov	QWORD PTR [rax], r13
.L17:
	mov	QWORD PTR 0[rbp], r13
	jmp	.L14
.L16:
	mov	QWORD PTR 8[rbp], r13
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	tbl_layout, .-tbl_layout
	.comm	TBL_PART_DATA,4,4
	.comm	TBL_CELL_LEFT,4,4
	.comm	MANDOCERR_TBLLAYOUT_NONE,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_tbl_layout.c_tbl_layout.c"
	.text
	.align	2
	.global	tbl_layout
	.syntax unified
	.arm
	.fpu softvfp
	.type	tbl_layout, %function
tbl_layout:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	mov	r6, r1
	mov	r4, r2
	mov	r7, #0
	sub	sp, sp, #20
	str	r3, [sp, #12]
.L2:
	ldrb	ip, [r4, r3]	@ zero_extendqisi2
	cmp	ip, #9
	cmpne	ip, #32
	moveq	lr, #1
	movne	lr, #0
	beq	.L3
	cmp	ip, #44
	beq	.L4
	cmp	ip, #46
	beq	.L5
	cmp	ip, #0
	beq	.L1
	cmp	r7, #0
	beq	.L38
.L14:
	add	r3, sp, #12
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r4
	mov	r1, r7
	mov	r0, r5
	bl	cell
	ldr	r3, [sp, #12]
	b	.L2
.L3:
	add	r3, r3, #1
	str	r3, [sp, #12]
	b	.L2
.L5:
	ldr	r2, .L40
	ldr	r4, [r5, #4]
	ldr	r2, [r2]
	add	r3, r3, #1
	cmp	r4, #0
	str	r3, [sp, #12]
	str	r2, [r5, #20]
	bne	.L9
	mov	r1, #16
	mov	r0, #1
	bl	mandoc_calloc
	mov	r4, r0
	str	r0, [r5]
	str	r0, [r5, #4]
.L9:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L10
	ldr	r2, .L40+4
	mov	r1, r6
	ldr	r0, [r2]
	ldr	r2, [sp, #12]
	bl	mandoc_msg
	ldr	r3, .L40+8
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [r5, #4]
	bl	cell_alloc
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #16]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	strlt	r3, [r5, #16]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	add	r3, r3, #1
	mov	r7, lr
	str	r3, [sp, #12]
	b	.L2
.L10:
	ldr	r3, [r4, #12]
	ldr	r2, [r5, #16]
	cmp	r2, r3
	strlt	r3, [r5, #16]
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L13
	ldr	r2, [r3, #4]
	ldr	r1, [r5, #12]
	add	r2, r2, #1
	cmp	r2, r1
	bne	.L13
	ldr	r3, [r3]
	ldr	r2, [r5, #8]
	cmp	r2, r3
	strlt	r3, [r5, #8]
.L13:
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L1
	ldr	r6, [r0, #4]
	cmp	r6, #0
	movne	r4, r0
	bne	.L10
.L39:
	bl	free
	str	r6, [r4]
	str	r4, [r5]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L38:
	ldr	r7, [r5]
	cmp	r7, #0
	beq	.L15
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L14
.L15:
	mov	r1, #16
	mov	r0, #1
	bl	mandoc_calloc
	ldr	r3, [r5]
	mov	r7, r0
	cmp	r3, #0
	strne	r0, [r3]
	streq	r0, [r5, #4]
	str	r0, [r5]
	b	.L14
.L41:
	.align	2
.L40:
	.word	TBL_PART_DATA
	.word	MANDOCERR_TBLLAYOUT_NONE
	.word	TBL_CELL_LEFT
	.size	tbl_layout, .-tbl_layout
	.comm	TBL_PART_DATA,4,4
	.comm	TBL_CELL_LEFT,4,4
	.comm	MANDOCERR_TBLLAYOUT_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
