	.file	"54164.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"--%d\n"
	.text
	.globl	tree
	.type	tree, @function
tree:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L2
.L5:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
.L2:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L5
	jmp	.L4
.L16:
	nop
.L4:
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -52[rbp], 1
	jle	.L17
	cmp	QWORD PTR -40[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR slast.2[rip]
	cmp	rdx, rax
	jne	.L8
	mov	rdx, QWORD PTR snone.1[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
.L8:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L9
	lea	rax, -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L11
.L9:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L11
.L14:
	call	rand@PLT
	cdq
	idiv	DWORD PTR -52[rbp]
	mov	eax, edx
	add	eax, 1
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	sub	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	je	.L12
	mov	rax, QWORD PTR sdown.0[rip]
	jmp	.L13
.L12:
	mov	rax, QWORD PTR slast.2[rip]
.L13:
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tree
.L11:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], 0
	jmp	.L1
.L17:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	tree, .-tree
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jle	.L19
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L20
.L19:
	mov	DWORD PTR -4[rbp], 8
.L20:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tree
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"  `"
	.section	.data.rel.local,"aw"
	.align 8
	.type	slast.2, @object
	.size	slast.2, 8
slast.2:
	.quad	.LC2
	.section	.rodata
.LC3:
	.string	"   "
	.section	.data.rel.local
	.align 8
	.type	snone.1, @object
	.size	snone.1, 8
snone.1:
	.quad	.LC3
	.section	.rodata
.LC4:
	.string	"  |"
	.section	.data.rel.local
	.align 8
	.type	sdown.0, @object
	.size	sdown.0, 8
sdown.0:
	.quad	.LC4
	.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	"54164.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"--%d\012\000"
	.global	__aeabi_idivmod
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	tree, %function
tree:
	@ 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, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	b	.L2
.L5:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+4
	bl	printf
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L5
	b	.L4
.L16:
	nop
.L4:
	ldr	r1, [fp, #-32]
	ldr	r0, .L18+8
	bl	printf
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	ble	.L17
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L8
	ldr	r3, .L18+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
.L8:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #16
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	b	.L11
.L9:
	ldr	r3, [fp, #-24]
	sub	r2, fp, #16
	str	r2, [r3, #4]
	b	.L11
.L14:
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L18+20
	ldr	r3, [r3]
	b	.L13
.L12:
	ldr	r3, .L18+12
	ldr	r3, [r3]
.L13:
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-20]
	bl	tree
.L11:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #4]
	b	.L1
.L17:
	nop
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	slast.5124
	.word	snone.5125
	.word	sdown.5123
	.size	tree, .-tree
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L21
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L22
.L21:
	mov	r3, #8
	str	r3, [fp, #-8]
.L22:
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	tree
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"  `\000"
	.data
	.align	2
	.type	slast.5124, %object
	.size	slast.5124, 4
slast.5124:
	.word	.LC3
	.section	.rodata
	.align	2
.LC4:
	.ascii	"   \000"
	.data
	.align	2
	.type	snone.5125, %object
	.size	snone.5125, 4
snone.5125:
	.word	.LC4
	.section	.rodata
	.align	2
.LC5:
	.ascii	"  |\000"
	.data
	.align	2
	.type	sdown.5123, %object
	.size	sdown.5123, 4
sdown.5123:
	.word	.LC5
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
