	.file	"985141.c"
	.intel_syntax noprefix
	.text
	.globl	root
	.bss
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.globl	new
	.align 8
	.type	new, @object
	.size	new, 8
new:
	.zero	8
	.globl	ptr
	.align 8
	.type	ptr, @object
	.size	ptr, 8
ptr:
	.zero	8
	.globl	ptr1
	.align 8
	.type	ptr1, @object
	.size	ptr1, 8
ptr1:
	.zero	8
	.globl	ptr2
	.align 8
	.type	ptr2, @object
	.size	ptr2, 8
ptr2:
	.zero	8
	.text
	.globl	create
	.type	create, @function
create:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR new[rip], rax
	mov	rax, QWORD PTR new[rip]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR new[rip]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR new[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create, .-create
	.globl	construct_binary_tree
	.type	construct_binary_tree, @function
construct_binary_tree:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	create
	mov	QWORD PTR root[rip], rax
	mov	rax, QWORD PTR root[rip]
	mov	DWORD PTR [rax], 50
	mov	eax, 0
	call	create
	mov	QWORD PTR ptr[rip], rax
	mov	rax, QWORD PTR root[rip]
	mov	rdx, QWORD PTR ptr[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR ptr[rip]
	mov	DWORD PTR [rax], 20
	mov	eax, 0
	call	create
	mov	QWORD PTR ptr1[rip], rax
	mov	rax, QWORD PTR ptr[rip]
	mov	rdx, QWORD PTR ptr1[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR ptr1[rip]
	mov	DWORD PTR [rax], 70
	mov	eax, 0
	call	create
	mov	QWORD PTR ptr2[rip], rax
	mov	rax, QWORD PTR ptr1[rip]
	mov	rdx, QWORD PTR ptr2[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR ptr2[rip]
	mov	DWORD PTR [rax], 10
	mov	eax, 0
	call	create
	mov	QWORD PTR ptr2[rip], rax
	mov	rax, QWORD PTR ptr1[rip]
	mov	rdx, QWORD PTR ptr2[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR ptr2[rip]
	mov	DWORD PTR [rax], 40
	mov	eax, 0
	call	create
	mov	QWORD PTR ptr1[rip], rax
	mov	rax, QWORD PTR ptr[rip]
	mov	rdx, QWORD PTR ptr1[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR ptr1[rip]
	mov	DWORD PTR [rax], 80
	mov	eax, 0
	call	create
	mov	QWORD PTR ptr2[rip], rax
	mov	rax, QWORD PTR ptr1[rip]
	mov	rdx, QWORD PTR ptr2[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR ptr2[rip]
	mov	DWORD PTR [rax], 60
	mov	eax, 0
	call	create
	mov	QWORD PTR ptr[rip], rax
	mov	rax, QWORD PTR root[rip]
	mov	rdx, QWORD PTR ptr[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR ptr[rip]
	mov	DWORD PTR [rax], 30
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	construct_binary_tree, .-construct_binary_tree
	.section	.rodata
	.align 8
.LC0:
	.string	"height of the tree is %d\ndepth of the tree is %d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	eax, 0
	call	construct_binary_tree
	mov	rax, QWORD PTR root[rip]
	mov	QWORD PTR ptr[rip], rax
	jmp	.L5
.L7:
	add	DWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR ptr[rip], rax
	jmp	.L5
.L6:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR ptr[rip], rax
.L5:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR root[rip]
	mov	QWORD PTR ptr[rip], rax
	jmp	.L8
.L10:
	add	DWORD PTR -4[rbp], 1
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR ptr[rip], rax
	jmp	.L8
.L9:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR ptr[rip], rax
.L8:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L11
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L11:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"985141.c"
	.text
	.comm	root,4,4
	.comm	new,4,4
	.comm	ptr,4,4
	.comm	ptr1,4,4
	.comm	ptr2,4,4
	.align	2
	.global	create
	.syntax unified
	.arm
	.fpu softvfp
	.type	create, %function
create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L3
	str	r2, [r3]
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r0, r3
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	new
	.size	create, .-create
	.align	2
	.global	construct_binary_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	construct_binary_tree, %function
construct_binary_tree:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	create
	mov	r3, r0
	ldr	r2, .L6
	str	r3, [r2]
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r2, #50
	str	r2, [r3]
	bl	create
	mov	r3, r0
	ldr	r2, .L6+4
	str	r3, [r2]
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r2, .L6+4
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, #20
	str	r2, [r3]
	bl	create
	mov	r3, r0
	ldr	r2, .L6+8
	str	r3, [r2]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	ldr	r2, .L6+8
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, .L6+8
	ldr	r3, [r3]
	mov	r2, #70
	str	r2, [r3]
	bl	create
	mov	r3, r0
	ldr	r2, .L6+12
	str	r3, [r2]
	ldr	r3, .L6+8
	ldr	r3, [r3]
	ldr	r2, .L6+12
	ldr	r2, [r2]
	str	r2, [r3, #4]
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r2, #10
	str	r2, [r3]
	bl	create
	mov	r3, r0
	ldr	r2, .L6+12
	str	r3, [r2]
	ldr	r3, .L6+8
	ldr	r3, [r3]
	ldr	r2, .L6+12
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r2, #40
	str	r2, [r3]
	bl	create
	mov	r3, r0
	ldr	r2, .L6+8
	str	r3, [r2]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	ldr	r2, .L6+8
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, .L6+8
	ldr	r3, [r3]
	mov	r2, #80
	str	r2, [r3]
	bl	create
	mov	r3, r0
	ldr	r2, .L6+12
	str	r3, [r2]
	ldr	r3, .L6+8
	ldr	r3, [r3]
	ldr	r2, .L6+12
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r2, #60
	str	r2, [r3]
	bl	create
	mov	r3, r0
	ldr	r2, .L6+4
	str	r3, [r2]
	ldr	r3, .L6
	ldr	r3, [r3]
	ldr	r2, .L6+4
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, #30
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	root
	.word	ptr
	.word	ptr1
	.word	ptr2
	.size	construct_binary_tree, .-construct_binary_tree
	.section	.rodata
	.align	2
.LC0:
	.ascii	"height of the tree is %d\012depth of the tree is %d"
	.ascii	"\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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	bl	construct_binary_tree
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, .L18+4
	str	r3, [r2]
	b	.L9
.L11:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L18+4
	str	r3, [r2]
	b	.L9
.L10:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L18+4
	str	r3, [r2]
.L9:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, .L18+4
	str	r3, [r2]
	b	.L12
.L14:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L18+4
	str	r3, [r2]
	b	.L12
.L13:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L18+4
	str	r3, [r2]
.L12:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L14
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L15
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L18+8
	bl	printf
	b	.L17
.L15:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L18+8
	bl	printf
.L17:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	root
	.word	ptr
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
