	.file	"extr_lptree.c_buildgrammar.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	buildgrammar, @function
buildgrammar:
.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
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, rsi
	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
	mov	ebx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 4[rsp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	sib1@PLT
	mov	rbp, rax
	test	r14d, r14d
	jle	.L2
	lea	rax, 20[rsp]
	add	ebx, 1
	xor	r12d, r12d
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, QWORD PTR 8[rsp]
	mov	esi, ebx
	mov	rdi, r13
	call	gettree@PLT
	mov	r15d, DWORD PTR 20[rsp]
	mov	QWORD PTR 16[rbp], 0
	mov	rdi, rbp
	mov	r14, rax
	mov	eax, DWORD PTR TRule[rip]
	mov	DWORD PTR 0[rbp], r12d
	add	r12d, 1
	mov	DWORD PTR 4[rbp], eax
	lea	eax, 1[r15]
	mov	DWORD PTR 8[rbp], eax
	call	sib1@PLT
	lea	edx, [r15+r15*2]
	mov	rsi, r14
	sal	edx, 3
	mov	rdi, rax
	call	memcpy@PLT
	mov	rdi, rbp
	call	sib1@PLT
	mov	esi, ebx
	mov	rdi, r13
	add	ebx, 2
	mov	rdx, rax
	call	mergektable@PLT
	mov	rdi, rbp
	call	sib2@PLT
	mov	rbp, rax
	cmp	DWORD PTR 4[rsp], r12d
	jne	.L3
.L2:
	mov	eax, DWORD PTR TTrue[rip]
	mov	DWORD PTR 4[rbp], eax
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	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
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	buildgrammar, .-buildgrammar
	.comm	TTrue,4,4
	.comm	TRule,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_lptree.c_buildgrammar.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buildgrammar, %function
buildgrammar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r3
	ldr	r3, .L9
	sub	sp, sp, #12
	mov	r8, r0
	mov	r0, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	sib1
	cmp	r9, #0
	mov	r4, r0
	ble	.L2
	mov	r6, #0
	mov	fp, r6
	ldr	r10, .L9+4
	add	r5, r5, #1
.L3:
	mov	r1, r5
	mov	r2, sp
	mov	r0, r8
	bl	gettree
	mov	r7, r0
	ldr	r3, [sp]
	ldr	r2, [r10]
	add	r3, r3, #1
	stmib	r4, {r2, r3, fp}
	str	r6, [r4]
	mov	r0, r4
	bl	sib1
	ldr	r2, [sp]
	mov	r1, r7
	lsl	r2, r2, #4
	bl	memcpy
	mov	r0, r4
	bl	sib1
	mov	r1, r5
	mov	r2, r0
	mov	r0, r8
	bl	mergektable
	mov	r0, r4
	bl	sib2
	add	r6, r6, #1
	cmp	r9, r6
	mov	r4, r0
	add	r5, r5, #2
	bne	.L3
.L2:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	str	r3, [r4, #4]
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	TRule
	.word	TTrue
	.size	buildgrammar, .-buildgrammar
	.comm	TTrue,4,4
	.comm	TRule,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
