	.file	"196950.c"
	.intel_syntax noprefix
	.text
	.globl	in
	.bss
	.align 32
	.type	in, @object
	.size	in, 1000
in:
	.zero	1000
	.globl	post
	.align 32
	.type	post, @object
	.size	post, 1000
post:
	.zero	1000
	.globl	left
	.align 32
	.type	left, @object
	.size	left, 4000
left:
	.zero	4000
	.globl	right
	.align 32
	.type	right, @object
	.size	right, 4000
right:
	.zero	4000
	.globl	treesize
	.align 4
	.type	treesize, @object
	.size	treesize, 4
treesize:
	.zero	4
	.text
	.globl	build
	.type	build, @function
build:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, post[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	sub	eax, 65
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L4
.L5:
	add	DWORD PTR -12[rbp], 1
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, in[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	edx, DWORD PTR -8[rbp]
	add	edx, 65
	cmp	eax, edx
	jne	.L5
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, -1[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	build
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, left[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -32[rbp]
	lea	ecx, -1[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	lea	edi, 1[rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	call	build
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, right[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -8[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	build, .-build
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], -1
	je	.L9
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 65
	mov	edi, eax
	call	putchar@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, left[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	dfs
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	dfs
	jmp	.L6
.L9:
	nop
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%s%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	lea	rdx, post[rip]
	lea	rsi, in[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, post[rip]
	call	strlen@PLT
	sub	eax, 1
	mov	ebx, eax
	lea	rdi, in[rip]
	call	strlen@PLT
	sub	eax, 1
	mov	ecx, ebx
	mov	edx, 0
	mov	esi, eax
	mov	edi, 0
	call	build
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	dfs
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"196950.c"
	.text
	.comm	in,1000,4
	.comm	post,1000,4
	.comm	left,4000,4
	.comm	right,4000,4
	.global	treesize
	.bss
	.align	2
	.type	treesize, %object
	.size	treesize, 4
treesize:
	.space	4
	.text
	.align	2
	.global	build
	.syntax unified
	.arm
	.fpu softvfp
	.type	build, %function
build:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r2, .L6
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #65
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	b	.L4
.L5:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r2, .L6+4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #65
	cmp	r2, r3
	bne	.L5
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r1, r3, #1
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	build
	mov	r2, r0
	ldr	r1, .L6+8
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r0, r3, #1
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r1, [fp, #-28]
	bl	build
	mov	r2, r0
	ldr	r1, .L6+12
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	post
	.word	in
	.word	left
	.word	right
	.size	build, .-build
	.align	2
	.global	dfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	dfs, %function
dfs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L11
	ldr	r3, [fp, #-8]
	add	r3, r3, #65
	mov	r0, r3
	bl	putchar
	ldr	r2, .L12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	dfs
	ldr	r2, .L12+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	dfs
	b	.L8
.L11:
	nop
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	left
	.word	right
	.size	dfs, .-dfs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s%s\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r2, .L16
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__isoc99_scanf
	ldr	r0, .L16+4
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	mov	r4, r3
	ldr	r0, .L16
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	mov	r2, #0
	mov	r1, r4
	mov	r0, #0
	bl	build
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	dfs
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	post
	.word	in
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
