	.file	"913478.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n"
.LC1:
	.string	"Input m for question 2: "
.LC2:
	.string	"%d"
	.align 8
.LC3:
	.string	"The values smaller than %d are: "
	.align 8
.LC4:
	.string	"The smallest value in the tree is %d"
	.align 8
.LC5:
	.string	"The tree for question 4 visited by in-order is "
	.align 8
.LC6:
	.string	"\nThe values stored in all nodes of the tree that have at least one great-grandchild are: "
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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, 424
	.cfi_offset 3, -24
	mov	DWORD PTR -420[rbp], edi
	mov	QWORD PTR -432[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -400[rbp], rax
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR [rax], 4
	mov	edi, 24
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -400[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR [rax], 5
	mov	edi, 24
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -400[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	DWORD PTR [rax], 2
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -400[rbp]
	mov	rbx, QWORD PTR 8[rax]
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	DWORD PTR [rax], 6
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -400[rbp]
	mov	rbx, QWORD PTR 16[rax]
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR [rax], 3
	mov	rax, QWORD PTR -400[rbp]
	mov	rbx, QWORD PTR 16[rax]
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -400[rbp]
	mov	rdi, rax
	call	printTree_InOrder
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -400[rbp]
	mov	rdi, rax
	call	mirrorTree
	mov	rax, QWORD PTR -400[rbp]
	mov	rdi, rax
	call	printTree_InOrder
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -404[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -404[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -404[rbp]
	mov	rax, QWORD PTR -400[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printSmallerValues
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -400[rbp]
	mov	rdi, rax
	call	smallestValue
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -404[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -404[rbp]
	mov	edx, DWORD PTR -404[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 368
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -404[rbp]
	add	eax, eax
	add	eax, 1
	mov	esi, DWORD PTR -404[rbp]
	lea	rcx, -384[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	movsx	rdx, esi
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 360
	mov	QWORD PTR [rax], rcx
	mov	eax, DWORD PTR -404[rbp]
	add	eax, 1
	add	eax, eax
	mov	esi, DWORD PTR -404[rbp]
	lea	rcx, -384[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	movsx	rdx, esi
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 352
	mov	QWORD PTR [rax], rcx
	mov	eax, DWORD PTR -404[rbp]
	add	eax, 1
	mov	DWORD PTR -404[rbp], eax
.L2:
	mov	eax, DWORD PTR -404[rbp]
	cmp	eax, 7
	jle	.L3
	mov	DWORD PTR -404[rbp], 7
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -404[rbp]
	mov	edx, DWORD PTR -404[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 368
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -404[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 360
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR -404[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 352
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR -404[rbp]
	add	eax, 1
	mov	DWORD PTR -404[rbp], eax
.L4:
	mov	eax, DWORD PTR -404[rbp]
	cmp	eax, 14
	jle	.L5
	lea	rax, -384[rbp]
	mov	QWORD PTR -392[rbp], rax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -392[rbp]
	mov	rdi, rax
	call	printTree_InOrder
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -392[rbp]
	mov	rdi, rax
	call	hasGreatGrandchild
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	mirrorTree
	.type	mirrorTree, @function
mirrorTree:
.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	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	mirrorTree
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	mirrorTree
	jmp	.L8
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	mirrorTree
	jmp	.L8
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	mirrorTree
	jmp	.L8
.L13:
	nop
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mirrorTree, .-mirrorTree
	.type	hasGGC.0, @function
hasGGC.0:
.LFB9:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rbx, r10
	mov	QWORD PTR -40[rbp], r10
	cmp	DWORD PTR -28[rbp], 3
	jne	.L15
	mov	eax, 1
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L17
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L17
	mov	eax, 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	r10, rbx
	mov	esi, edx
	mov	rdi, rax
	call	hasGGC.0
	mov	r12d, eax
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	r10, rbx
	mov	esi, edx
	mov	rdi, rax
	call	hasGGC.0
	add	eax, r12d
.L16:
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	hasGGC.0, .-hasGGC.0
	.section	.rodata
.LC7:
	.string	"%d "
	.text
	.globl	hasGreatGrandchild
	.type	hasGreatGrandchild, @function
hasGreatGrandchild:
.LFB8:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	hasGreatGrandchild
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -16[rbp]
	mov	r10, rdx
	mov	esi, 0
	mov	rdi, rax
	call	hasGGC.0
	test	eax, eax
	jle	.L21
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	hasGreatGrandchild
	mov	eax, 0
	jmp	.L18
.L25:
	nop
	nop
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	hasGreatGrandchild, .-hasGreatGrandchild
	.globl	printSmallerValues
	.type	printSmallerValues, @function
printSmallerValues:
.LFB10:
	.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	QWORD PTR -8[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printSmallerValues
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L29
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L29:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	printSmallerValues
	jmp	.L26
.L30:
	nop
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	printSmallerValues, .-printSmallerValues
	.type	min.1, @function
min.1:
.LFB12:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], r10
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -8[rbp], eax
	cmovle	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	min.1, .-min.1
	.globl	smallestValue
	.type	smallestValue, @function
smallestValue:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L36
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	smallestValue
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
.L37:
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L38
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	smallestValue
	jmp	.L39
.L38:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
.L39:
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	lea	rcx, -16[rbp]
	mov	r10, rcx
	mov	esi, edx
	mov	edi, eax
	call	min.1
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rcx, -16[rbp]
	mov	r10, rcx
	mov	esi, edx
	mov	edi, eax
	call	min.1
	jmp	.L33
.L43:
	nop
	nop
.L33:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	smallestValue, .-smallestValue
	.section	.rodata
.LC8:
	.string	"%d, "
	.text
	.globl	printTree_InOrder
	.type	printTree_InOrder, @function
printTree_InOrder:
.LFB13:
	.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	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	printTree_InOrder
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	printTree_InOrder
	jmp	.L44
.L47:
	nop
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	printTree_InOrder, .-printTree_InOrder
	.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	"913478.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"Input m for question 2: \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"The values smaller than %d are: \000"
	.align	2
.LC4:
	.ascii	"The smallest value in the tree is %d\000"
	.align	2
.LC5:
	.ascii	"The tree for question 4 visited by in-order is \000"
	.align	2
.LC6:
	.ascii	"\012The values stored in all nodes of the tree that"
	.ascii	" have at least one great-grandchild are: \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #212
	str	r0, [fp, #-216]
	str	r1, [fp, #-220]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-204]
	ldr	r3, [fp, #-204]
	mov	r2, #4
	str	r2, [r3]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-204]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #4]
	mov	r2, #5
	str	r2, [r3]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-204]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #8]
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #4]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-204]
	ldr	r4, [r3, #4]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #8]
	mov	r2, #6
	str	r2, [r3]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-204]
	ldr	r4, [r3, #8]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, [fp, #-204]
	ldr	r4, [r3, #8]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #8]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r0, [fp, #-204]
	bl	printTree_InOrder
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-204]
	bl	mirrorTree
	ldr	r0, [fp, #-204]
	bl	printTree_InOrder
	ldr	r0, .L8+4
	bl	puts
	ldr	r0, .L8+8
	bl	printf
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L8+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-208]
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	ldr	r3, [fp, #-208]
	mov	r1, r3
	ldr	r0, [fp, #-204]
	bl	printSmallerValues
	ldr	r0, .L8+4
	bl	puts
	ldr	r0, [fp, #-204]
	bl	smallestValue
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+20
	bl	printf
	ldr	r0, .L8+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L2
.L3:
	ldr	r2, [fp, #-208]
	ldr	r1, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #184
	str	r1, [r3]
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #1
	add	r1, r3, #1
	ldr	r2, [fp, #-208]
	sub	r0, fp, #196
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r1, r0, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #180
	str	r1, [r3]
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	lsl	r1, r3, #1
	ldr	r2, [fp, #-208]
	sub	r0, fp, #196
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r1, r0, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #176
	str	r1, [r3]
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L2:
	ldr	r3, [fp, #-208]
	cmp	r3, #7
	ble	.L3
	mov	r3, #7
	str	r3, [fp, #-208]
	b	.L4
.L5:
	ldr	r2, [fp, #-208]
	ldr	r1, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #184
	str	r1, [r3]
	ldr	r2, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #180
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-208]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #176
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L4:
	ldr	r3, [fp, #-208]
	cmp	r3, #14
	ble	.L5
	sub	r3, fp, #196
	str	r3, [fp, #-200]
	ldr	r0, .L8+24
	bl	puts
	ldr	r0, [fp, #-200]
	bl	printTree_InOrder
	ldr	r0, .L8+28
	bl	puts
	ldr	r0, [fp, #-200]
	bl	hasGreatGrandchild
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.align	2
	.global	mirrorTree
	.syntax unified
	.arm
	.fpu softvfp
	.type	mirrorTree, %function
mirrorTree:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	mirrorTree
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	mirrorTree
	b	.L10
.L13:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	mirrorTree
	b	.L10
.L14:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	mirrorTree
	b	.L10
.L15:
	nop
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mirrorTree, .-mirrorTree
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hasGGC.5154, %function
hasGGC.5154:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r4, ip
	str	ip, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bne	.L17
	mov	r3, #1
	b	.L18
.L17:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	b	.L18
.L19:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	ip, r4
	mov	r1, r3
	mov	r0, r2
	bl	hasGGC.5154
	mov	r5, r0
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	ip, r4
	mov	r1, r3
	mov	r0, r2
	bl	hasGGC.5154
	mov	r3, r0
	add	r3, r5, r3
.L18:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	hasGGC.5154, .-hasGGC.5154
	.section	.rodata
	.align	2
.LC8:
	.ascii	"%d \000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hasGreatGrandchild
	.syntax unified
	.arm
	.fpu softvfp
	.type	hasGreatGrandchild, %function
hasGreatGrandchild:
	@ 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]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	hasGreatGrandchild
	sub	r3, fp, #12
	mov	ip, r3
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	hasGGC.5154
	mov	r3, r0
	cmp	r3, #0
	ble	.L23
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+4
	bl	printf
.L23:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	hasGreatGrandchild
	mov	r3, #0
	b	.L20
.L27:
	nop
	nop
.L20:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC9
	.word	.LC8
	.size	hasGreatGrandchild, .-hasGreatGrandchild
	.align	2
	.global	printSmallerValues
	.syntax unified
	.arm
	.fpu softvfp
	.type	printSmallerValues, %function
printSmallerValues:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	printSmallerValues
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L33
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L35
	bl	printf
.L33:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	printSmallerValues
	b	.L30
.L34:
	nop
.L30:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC8
	.size	printSmallerValues, .-printSmallerValues
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	min.5167, %function
min.5167:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	ip, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	min.5167, .-min.5167
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	smallestValue
	.syntax unified
	.arm
	.fpu softvfp
	.type	smallestValue, %function
smallestValue:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	smallestValue
	mov	r3, r0
	b	.L43
.L42:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
.L43:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	smallestValue
	mov	r3, r0
	b	.L45
.L44:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
.L45:
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r4, [r3]
	sub	r3, fp, #28
	mov	ip, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	min.5167
	mov	r2, r0
	sub	r3, fp, #28
	mov	ip, r3
	mov	r1, r2
	mov	r0, r4
	bl	min.5167
	mov	r3, r0
	b	.L39
.L49:
	nop
	nop
.L39:
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC10
	.size	smallestValue, .-smallestValue
	.section	.rodata
	.align	2
.LC11:
	.ascii	"%d, \000"
	.text
	.align	2
	.global	printTree_InOrder
	.syntax unified
	.arm
	.fpu softvfp
	.type	printTree_InOrder, %function
printTree_InOrder:
	@ 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]
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	printTree_InOrder
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L56
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	printTree_InOrder
	b	.L52
.L55:
	nop
.L52:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC11
	.size	printTree_InOrder, .-printTree_InOrder
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
