	.file	"1171935.c"
	.intel_syntax noprefix
	.text
	.globl	root
	.bss
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d "
	.text
	.globl	Preorder
	.type	Preorder, @function
Preorder:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	Preorder
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	Preorder
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Preorder, .-Preorder
	.globl	NodeHeight
	.type	NodeHeight, @function
NodeHeight:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 12[rax]
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	mov	DWORD PTR -8[rbp], eax
	cmp	QWORD PTR -24[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 12[rax]
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L9
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	jmp	.L11
.L9:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	NodeHeight, .-NodeHeight
	.globl	BalanceFactor
	.type	BalanceFactor, @function
BalanceFactor:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 12[rax]
	jmp	.L14
.L13:
	mov	eax, 0
.L14:
	mov	DWORD PTR -8[rbp], eax
	cmp	QWORD PTR -24[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 12[rax]
	jmp	.L16
.L15:
	mov	eax, 0
.L16:
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	BalanceFactor, .-BalanceFactor
	.globl	LLRotation
	.type	LLRotation, @function
LLRotation:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	NodeHeight
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	NodeHeight
	mov	rdx, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	rax, QWORD PTR root[rip]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L19
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR root[rip], rax
.L19:
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	LLRotation, .-LLRotation
	.globl	LRRotation
	.type	LRRotation, @function
LRRotation:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	NodeHeight
	mov	rdx, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	NodeHeight
	mov	rdx, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	NodeHeight
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	rax, QWORD PTR root[rip]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR root[rip], rax
.L22:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	LRRotation, .-LRRotation
	.globl	RRRotation
	.type	RRRotation, @function
RRRotation:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	RRRotation, .-RRRotation
	.globl	RLRotation
	.type	RLRotation, @function
RLRotation:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	RLRotation, .-RLRotation
	.globl	RInsert
	.type	RInsert, @function
RInsert:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -8[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	jne	.L29
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 12[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L31
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	RInsert
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L32
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L32
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	RInsert
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rdx], rax
.L32:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	NodeHeight
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 12[rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	BalanceFactor
	cmp	eax, 2
	jne	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	BalanceFactor
	cmp	eax, 1
	jne	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	LLRotation
	jmp	.L30
.L33:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	BalanceFactor
	cmp	eax, 2
	jne	.L34
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	BalanceFactor
	cmp	eax, -1
	jne	.L34
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	LRRotation
	jmp	.L30
.L34:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	BalanceFactor
	cmp	eax, -2
	jne	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	BalanceFactor
	cmp	eax, -1
	jne	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	RRRotation
	jmp	.L30
.L35:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	BalanceFactor
	cmp	eax, -2
	jne	.L36
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	BalanceFactor
	cmp	eax, 1
	jne	.L36
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	RLRotation
	jmp	.L30
.L36:
	mov	rax, QWORD PTR -24[rbp]
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	RInsert, .-RInsert
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR root[rip]
	mov	esi, 50
	mov	rdi, rax
	call	RInsert
	mov	QWORD PTR root[rip], rax
	mov	rax, QWORD PTR root[rip]
	mov	esi, 10
	mov	rdi, rax
	call	RInsert
	mov	rax, QWORD PTR root[rip]
	mov	esi, 20
	mov	rdi, rax
	call	RInsert
	mov	rax, QWORD PTR root[rip]
	mov	rdi, rax
	call	Preorder
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"1171935.c"
	.text
	.global	root
	.bss
	.align	2
	.type	root, %object
	.size	root, 4
root:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.text
	.align	2
	.global	Preorder
	.syntax unified
	.arm
	.fpu softvfp
	.type	Preorder, %function
Preorder:
	@ 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	.L3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	Preorder
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	Preorder
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	Preorder, .-Preorder
	.align	2
	.global	NodeHeight
	.syntax unified
	.arm
	.fpu softvfp
	.type	NodeHeight, %function
NodeHeight:
	@ 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, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	b	.L8
.L7:
	mov	r3, #0
.L8:
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #8]
	b	.L10
.L9:
	mov	r3, #0
.L10:
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L11
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	b	.L13
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	NodeHeight, .-NodeHeight
	.align	2
	.global	BalanceFactor
	.syntax unified
	.arm
	.fpu softvfp
	.type	BalanceFactor, %function
BalanceFactor:
	@ 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, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	b	.L16
.L15:
	mov	r3, #0
.L16:
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #8]
	b	.L18
.L17:
	mov	r3, #0
.L18:
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	BalanceFactor, .-BalanceFactor
	.align	2
	.global	LLRotation
	.syntax unified
	.arm
	.fpu softvfp
	.type	LLRotation, %function
LLRotation:
	@ 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]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	NodeHeight
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r0, [fp, #-12]
	bl	NodeHeight
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L21
	ldr	r2, .L23
	ldr	r3, [fp, #-12]
	str	r3, [r2]
.L21:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	root
	.size	LLRotation, .-LLRotation
	.align	2
	.global	LRRotation
	.syntax unified
	.arm
	.fpu softvfp
	.type	LRRotation, %function
LRRotation:
	@ 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]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #12]
	ldr	r0, [fp, #-12]
	bl	NodeHeight
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r0, [fp, #-16]
	bl	NodeHeight
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r0, [fp, #-8]
	bl	NodeHeight
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, .L28
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L26
	ldr	r2, .L28
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L26:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	root
	.size	LRRotation, .-LRRotation
	.align	2
	.global	RRRotation
	.syntax unified
	.arm
	.fpu softvfp
	.type	RRRotation, %function
RRRotation:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	RRRotation, .-RRRotation
	.align	2
	.global	RLRotation
	.syntax unified
	.arm
	.fpu softvfp
	.type	RLRotation, %function
RLRotation:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	RLRotation, .-RLRotation
	.align	2
	.global	RInsert
	.syntax unified
	.arm
	.fpu softvfp
	.type	RInsert, %function
RInsert:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L35
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	b	.L36
.L35:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L37
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	RInsert
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L38
.L37:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L38
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	RInsert
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
.L38:
	ldr	r0, [fp, #-16]
	bl	NodeHeight
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r0, [fp, #-16]
	bl	BalanceFactor
	mov	r3, r0
	cmp	r3, #2
	bne	.L39
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	BalanceFactor
	mov	r3, r0
	cmp	r3, #1
	bne	.L39
	ldr	r0, [fp, #-16]
	bl	LLRotation
	mov	r3, r0
	b	.L36
.L39:
	ldr	r0, [fp, #-16]
	bl	BalanceFactor
	mov	r3, r0
	cmp	r3, #2
	bne	.L40
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	BalanceFactor
	mov	r3, r0
	cmn	r3, #1
	bne	.L40
	ldr	r0, [fp, #-16]
	bl	LRRotation
	mov	r3, r0
	b	.L36
.L40:
	ldr	r0, [fp, #-16]
	bl	BalanceFactor
	mov	r3, r0
	cmn	r3, #2
	bne	.L41
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	BalanceFactor
	mov	r3, r0
	cmn	r3, #1
	bne	.L41
	ldr	r0, [fp, #-16]
	bl	RRRotation
	mov	r3, r0
	b	.L36
.L41:
	ldr	r0, [fp, #-16]
	bl	BalanceFactor
	mov	r3, r0
	cmn	r3, #2
	bne	.L42
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	BalanceFactor
	mov	r3, r0
	cmp	r3, #1
	bne	.L42
	ldr	r0, [fp, #-16]
	bl	RLRotation
	mov	r3, r0
	b	.L36
.L42:
	ldr	r3, [fp, #-16]
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	RInsert, .-RInsert
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r1, #50
	mov	r0, r3
	bl	RInsert
	mov	r3, r0
	ldr	r2, .L45
	str	r3, [r2]
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	RInsert
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r1, #20
	mov	r0, r3
	bl	RInsert
	ldr	r3, .L45
	ldr	r3, [r3]
	mov	r0, r3
	bl	Preorder
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	root
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
