	.file	"184518648.c"
	.intel_syntax noprefix
	.text
	.globl	magic_flag
	.bss
	.align 4
	.type	magic_flag, @object
	.size	magic_flag, 4
magic_flag:
	.zero	4
	.section	.rodata
.LC0:
	.string	"== tree =="
.LC1:
	.string	"%d(%d)\n"
.LC2:
	.string	"== end =="
	.text
	.globl	splay_print
	.type	splay_print, @function
splay_print:
.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	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR depth.12[rip]
	test	eax, eax
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L2:
	mov	eax, DWORD PTR depth.12[rip]
	add	eax, 1
	mov	DWORD PTR depth.12[rip], eax
	cmp	QWORD PTR -24[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	splay_print
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L5:
	mov	edi, 95
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR depth.12[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L5
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	splay_print
.L3:
	mov	eax, DWORD PTR depth.12[rip]
	sub	eax, 1
	mov	DWORD PTR depth.12[rip], eax
	mov	eax, DWORD PTR depth.12[rip]
	test	eax, eax
	jne	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	splay_print, .-splay_print
	.globl	splay_maintain
	.type	splay_maintain, @function
splay_maintain:
.LFB1:
	.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
	cmp	QWORD PTR -8[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR [rax]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L11:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	splay_maintain, .-splay_maintain
	.section	.rodata
.LC3:
	.string	"the_stack_data/184518648.c"
.LC4:
	.string	"r != NULL"
.LC5:
	.string	"(*r)->ch[type] != NULL"
	.text
	.globl	splay_rotate
	.type	splay_rotate, @function
splay_rotate:
.LFB2:
	.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L13
	lea	rcx, __PRETTY_FUNCTION__.11[rip]
	mov	edx, 48
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	test	rax, rax
	jne	.L14
	lea	rcx, __PRETTY_FUNCTION__.11[rip]
	mov	edx, 49
	lea	rsi, .LC3[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	xor	eax, 1
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	movsx	rcx, ecx
	mov	rcx, QWORD PTR 8[rdx+rcx*8]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	QWORD PTR 8[rax+rdx*8], rcx
	mov	eax, DWORD PTR -28[rbp]
	xor	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	QWORD PTR 8[rax+rdx*8], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -28[rbp]
	xor	edx, 1
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	rdi, rax
	call	splay_maintain
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	splay_maintain
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	splay_rotate, .-splay_rotate
	.section	.rodata
.LC6:
	.string	"k < (*r)->size"
	.text
	.globl	splay_splay
	.type	splay_splay, @function
splay_splay:
.LFB3:
	.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	DWORD PTR -44[rbp], esi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L16
	lea	rcx, __PRETTY_FUNCTION__.10[rip]
	mov	edx, 64
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L16:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L17
	lea	rcx, __PRETTY_FUNCTION__.10[rip]
	mov	edx, 65
	lea	rsi, .LC3[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L17:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	jmp	.L19
.L18:
	mov	eax, 0
.L19:
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jge	.L20
	mov	DWORD PTR -20[rbp], 0
	jmp	.L21
.L20:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	je	.L31
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	sub	DWORD PTR -44[rbp], eax
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	jmp	.L25
.L24:
	mov	eax, 0
.L25:
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jge	.L26
	mov	DWORD PTR -16[rbp], 0
	jmp	.L27
.L26:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L28
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	splay_rotate
	jmp	.L15
.L28:
	mov	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	sub	DWORD PTR -44[rbp], eax
.L27:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR 8[rax+rdx*8]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	splay_splay
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jne	.L29
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	splay_rotate
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	splay_rotate
.L30:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	splay_rotate
	jmp	.L15
.L31:
	nop
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	splay_splay, .-splay_splay
	.section	.rodata
.LC7:
	.string	"l != NULL"
.LC8:
	.string	"s != NULL"
	.text
	.globl	splay_split
	.type	splay_split, @function
splay_split:
.LFB4:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -28[rbp], ecx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L33
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 102
	lea	rsi, .LC3[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L33:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L34
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 103
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L34:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L35
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 104
	lea	rsi, .LC3[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L35:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L36
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], 0
	jmp	.L39
.L36:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L38
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], 0
	jmp	.L39
.L38:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	splay_splay
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	splay_maintain
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
.L39:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	splay_split, .-splay_split
	.section	.rodata
.LC9:
	.string	"d != NULL"
	.text
	.globl	splay_merge
	.type	splay_merge, @function
splay_merge:
.LFB5:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	cmp	QWORD PTR -8[rbp], 0
	jne	.L41
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 123
	lea	rsi, .LC3[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L41:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L42
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 124
	lea	rsi, .LC3[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L42:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L43
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 125
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L43:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L44
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L46
.L44:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	splay_splay
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	splay_maintain
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L46:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	splay_merge, .-splay_merge
	.globl	splay_rank
	.type	splay_rank, @function
splay_rank:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	jne	.L48
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 140
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L48:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L51
	mov	eax, 0
	jmp	.L50
.L59:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L52
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L51
.L52:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L53
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L54
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	jmp	.L55
.L54:
	mov	eax, 0
.L55:
	add	DWORD PTR -12[rbp], eax
	jmp	.L56
.L53:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L57
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	jmp	.L58
.L57:
	mov	eax, 1
.L58:
	add	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L51:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L59
.L56:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L60
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	splay_splay
.L60:
	mov	eax, DWORD PTR -12[rbp]
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	splay_rank, .-splay_rank
	.section	.rodata
.LC10:
	.string	"*r != NULL"
	.text
	.globl	splay_kth
	.type	splay_kth, @function
splay_kth:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L62
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 165
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L62:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L63
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 166
	lea	rsi, .LC3[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L63:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L64
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 167
	lea	rsi, .LC3[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L64:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	splay_splay
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	splay_kth, .-splay_kth
	.globl	splay_node_new
	.type	splay_node_new, @function
splay_node_new:
.LFB8:
	.cfi_startproc
	endbr64
	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	rax, QWORD PTR top.5[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR top.5[rip]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR top.5[rip]
	mov	QWORD PTR 8[rax], 0
	mov	rdx, QWORD PTR top.5[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR top.5[rip]
	lea	rdx, 24[rax]
	mov	QWORD PTR top.5[rip], rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	splay_node_new, .-splay_node_new
	.globl	splay_insert
	.type	splay_insert, @function
splay_insert:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L69
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 186
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L69:
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	splay_rank
	mov	DWORD PTR -44[rbp], eax
	mov	ecx, DWORD PTR -44[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rsi, -24[rbp]
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	splay_split
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	splay_node_new
	mov	QWORD PTR -40[rbp], rax
	lea	rdx, -40[rbp]
	lea	rcx, -32[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	splay_merge
	lea	rdx, -24[rbp]
	lea	rcx, -16[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	splay_merge
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L70
	call	__stack_chk_fail@PLT
.L70:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	splay_insert, .-splay_insert
	.globl	root
	.bss
	.align 8
	.type	root, @object
	.size	root, 8
root:
	.zero	8
	.text
	.globl	add
	.type	add, @function
add:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, root[rip]
	call	splay_insert
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	add, .-add
	.globl	get
	.type	get, @function
get:
.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, 16
	mov	eax, DWORD PTR i.2[rip]
	mov	esi, eax
	lea	rdi, root[rip]
	call	splay_kth
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR i.2[rip]
	add	eax, 1
	mov	DWORD PTR i.2[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get, .-get
	.section	.rodata
.LC11:
	.string	"%d%d"
.LC12:
	.string	"%d"
.LC13:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	lea	rdx, -20[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -16[rbp], 1
	jmp	.L75
.L76:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, buf.1[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -16[rbp], 1
.L75:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L76
	mov	DWORD PTR -16[rbp], 0
	jmp	.L77
.L78:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, op.0[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -16[rbp], 1
.L77:
	mov	eax, DWORD PTR -20[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L78
	mov	DWORD PTR -16[rbp], 1
	jmp	.L79
.L82:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, buf.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	add
	jmp	.L80
.L81:
	call	get
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L80:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, op.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -16[rbp], eax
	je	.L81
	add	DWORD PTR -16[rbp], 1
.L79:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L82
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L84
	call	__stack_chk_fail@PLT
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.local	depth.12
	.comm	depth.12,4,4
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.11, @object
	.size	__PRETTY_FUNCTION__.11, 13
__PRETTY_FUNCTION__.11:
	.string	"splay_rotate"
	.align 8
	.type	__PRETTY_FUNCTION__.10, @object
	.size	__PRETTY_FUNCTION__.10, 12
__PRETTY_FUNCTION__.10:
	.string	"splay_splay"
	.align 8
	.type	__PRETTY_FUNCTION__.9, @object
	.size	__PRETTY_FUNCTION__.9, 12
__PRETTY_FUNCTION__.9:
	.string	"splay_split"
	.align 8
	.type	__PRETTY_FUNCTION__.8, @object
	.size	__PRETTY_FUNCTION__.8, 12
__PRETTY_FUNCTION__.8:
	.string	"splay_merge"
	.align 8
	.type	__PRETTY_FUNCTION__.7, @object
	.size	__PRETTY_FUNCTION__.7, 11
__PRETTY_FUNCTION__.7:
	.string	"splay_rank"
	.align 8
	.type	__PRETTY_FUNCTION__.6, @object
	.size	__PRETTY_FUNCTION__.6, 10
__PRETTY_FUNCTION__.6:
	.string	"splay_kth"
	.section	.data.rel.local,"aw"
	.align 8
	.type	top.5, @object
	.size	top.5, 8
top.5:
	.quad	pool.4
	.local	pool.4
	.comm	pool.4,4800216,32
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 13
__PRETTY_FUNCTION__.3:
	.string	"splay_insert"
	.local	i.2
	.comm	i.2,4,4
	.local	buf.1
	.comm	buf.1,800036,32
	.local	op.0
	.comm	op.0,800036,32
	.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	"184518648.c"
	.text
	.global	magic_flag
	.bss
	.align	2
	.type	magic_flag, %object
	.size	magic_flag, 4
magic_flag:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"== tree ==\000"
	.align	2
.LC1:
	.ascii	"%d(%d)\012\000"
	.align	2
.LC2:
	.ascii	"== end ==\000"
	.text
	.align	2
	.global	splay_print
	.syntax unified
	.arm
	.fpu softvfp
	.type	splay_print, %function
splay_print:
	@ 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, .L8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L8+4
	bl	puts
.L2:
	ldr	r3, .L8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	splay_print
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L5:
	mov	r0, #95
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L8+8
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	splay_print
.L3:
	ldr	r3, .L8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L8
	str	r3, [r2]
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L8+12
	bl	puts
.L7:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	depth.4620
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	splay_print, .-splay_print
	.align	2
	.global	splay_maintain
	.syntax unified
	.arm
	.fpu softvfp
	.type	splay_maintain, %function
splay_maintain:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L12:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L13:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	splay_maintain, .-splay_maintain
	.section	.rodata
	.align	2
.LC3:
	.ascii	"the_stack_data/184518648.c\000"
	.align	2
.LC4:
	.ascii	"r != NULL\000"
	.align	2
.LC5:
	.ascii	"(*r)->ch[type] != NULL\000"
	.text
	.align	2
	.global	splay_rotate
	.syntax unified
	.arm
	.fpu softvfp
	.type	splay_rotate, %function
splay_rotate:
	@ 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, #0
	bne	.L15
	ldr	r3, .L17
	mov	r2, #48
	ldr	r1, .L17+4
	ldr	r0, .L17+8
	bl	__assert_fail
.L15:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L17
	mov	r2, #49
	ldr	r1, .L17+4
	ldr	r0, .L17+12
	bl	__assert_fail
.L16:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	eor	r1, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	add	r1, r1, #2
	ldr	r1, [r2, r1, lsl #2]
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-20]
	eor	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r2, #2
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	eor	r2, r2, #1
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	splay_maintain
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	splay_maintain
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	__PRETTY_FUNCTION__.4633
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	splay_rotate, .-splay_rotate
	.section	.rodata
	.align	2
.LC6:
	.ascii	"k < (*r)->size\000"
	.text
	.align	2
	.global	splay_splay
	.syntax unified
	.arm
	.fpu softvfp
	.type	splay_splay, %function
splay_splay:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L36
	mov	r2, #64
	ldr	r1, .L36+4
	ldr	r0, .L36+8
	bl	__assert_fail
.L20:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L21
	ldr	r3, .L36
	mov	r2, #65
	ldr	r1, .L36+4
	ldr	r0, .L36+12
	bl	__assert_fail
.L21:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	b	.L23
.L22:
	mov	r3, #0
.L23:
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L24
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L25
.L24:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L35
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
.L25:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	b	.L29
.L28:
	mov	r3, #0
.L29:
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L30
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L31
.L30:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L32
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	splay_rotate
	b	.L19
.L32:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
.L31:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r2, r2, #2
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	splay_splay
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L33
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	splay_rotate
	b	.L34
.L33:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	splay_rotate
.L34:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	splay_rotate
	b	.L19
.L35:
	nop
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	__PRETTY_FUNCTION__.4642
	.word	.LC3
	.word	.LC4
	.word	.LC6
	.size	splay_splay, .-splay_splay
	.section	.rodata
	.align	2
.LC7:
	.ascii	"l != NULL\000"
	.align	2
.LC8:
	.ascii	"s != NULL\000"
	.text
	.align	2
	.global	splay_split
	.syntax unified
	.arm
	.fpu softvfp
	.type	splay_split, %function
splay_split:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L39
	ldr	r3, .L46
	mov	r2, #102
	ldr	r1, .L46+4
	ldr	r0, .L46+8
	bl	__assert_fail
.L39:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L46
	mov	r2, #103
	ldr	r1, .L46+4
	ldr	r0, .L46+12
	bl	__assert_fail
.L40:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L41
	ldr	r3, .L46
	mov	r2, #104
	ldr	r1, .L46+4
	ldr	r0, .L46+16
	bl	__assert_fail
.L41:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3]
	b	.L45
.L42:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L44
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3]
	b	.L45
.L44:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	splay_splay
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	splay_maintain
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
.L45:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	__PRETTY_FUNCTION__.4649
	.word	.LC3
	.word	.LC7
	.word	.LC4
	.word	.LC8
	.size	splay_split, .-splay_split
	.section	.rodata
	.align	2
.LC9:
	.ascii	"d != NULL\000"
	.text
	.align	2
	.global	splay_merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	splay_merge, %function
splay_merge:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L49
	ldr	r3, .L55
	mov	r2, #123
	ldr	r1, .L55+4
	ldr	r0, .L55+8
	bl	__assert_fail
.L49:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L55
	mov	r2, #124
	ldr	r1, .L55+4
	ldr	r0, .L55+12
	bl	__assert_fail
.L50:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L51
	ldr	r3, .L55
	mov	r2, #125
	ldr	r1, .L55+4
	ldr	r0, .L55+16
	bl	__assert_fail
.L51:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	b	.L54
.L52:
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	splay_splay
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	splay_maintain
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L54:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	__PRETTY_FUNCTION__.4655
	.word	.LC3
	.word	.LC9
	.word	.LC7
	.word	.LC4
	.size	splay_merge, .-splay_merge
	.align	2
	.global	splay_rank
	.syntax unified
	.arm
	.fpu softvfp
	.type	splay_rank, %function
splay_rank:
	@ 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	.L58
	ldr	r3, .L71
	mov	r2, #140
	ldr	r1, .L71+4
	ldr	r0, .L71+8
	bl	__assert_fail
.L58:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L61
	mov	r3, #0
	b	.L60
.L69:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L62
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	b	.L61
.L62:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L63
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	b	.L65
.L64:
	mov	r3, #0
.L65:
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L66
.L63:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	add	r3, r3, #1
	b	.L68
.L67:
	mov	r3, #1
.L68:
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
.L61:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L69
.L66:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L70
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	splay_splay
.L70:
	ldr	r3, [fp, #-8]
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	__PRETTY_FUNCTION__.4662
	.word	.LC3
	.word	.LC4
	.size	splay_rank, .-splay_rank
	.section	.rodata
	.align	2
.LC10:
	.ascii	"*r != NULL\000"
	.text
	.align	2
	.global	splay_kth
	.syntax unified
	.arm
	.fpu softvfp
	.type	splay_kth, %function
splay_kth:
	@ 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
	bne	.L74
	ldr	r3, .L78
	mov	r2, #165
	ldr	r1, .L78+4
	ldr	r0, .L78+8
	bl	__assert_fail
.L74:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L75
	ldr	r3, .L78
	mov	r2, #166
	ldr	r1, .L78+4
	ldr	r0, .L78+12
	bl	__assert_fail
.L75:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L76
	ldr	r3, .L78
	mov	r2, #167
	ldr	r1, .L78+4
	ldr	r0, .L78+16
	bl	__assert_fail
.L76:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	splay_splay
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	__PRETTY_FUNCTION__.4670
	.word	.LC3
	.word	.LC4
	.word	.LC10
	.word	.LC6
	.size	splay_kth, .-splay_kth
	.align	2
	.global	splay_node_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	splay_node_new, %function
splay_node_new:
	@ 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]
	ldr	r3, .L82
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, .L82
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L82
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r2, .L82
	ldr	r2, [r2]
	ldr	r3, [r3, #8]
	str	r3, [r2, #12]
	ldr	r3, .L82
	ldr	r3, [r3]
	add	r2, r3, #16
	ldr	r1, .L82
	str	r2, [r1]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L83:
	.align	2
.L82:
	.word	top.4675
	.size	splay_node_new, .-splay_node_new
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	splay_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	splay_insert, %function
splay_insert:
	@ 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, .L87
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L85
	ldr	r3, .L87+4
	mov	r2, #186
	ldr	r1, .L87+8
	ldr	r0, .L87+12
	bl	__assert_fail
.L85:
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	splay_rank
	str	r0, [fp, #-12]
	sub	r1, fp, #20
	sub	r0, fp, #24
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	bl	splay_split
	ldr	r0, [fp, #-36]
	bl	splay_node_new
	mov	r3, r0
	str	r3, [fp, #-28]
	sub	r2, fp, #28
	sub	r1, fp, #24
	sub	r3, fp, #16
	mov	r0, r3
	bl	splay_merge
	sub	r2, fp, #20
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	splay_merge
	nop
	ldr	r3, .L87
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L86
	bl	__stack_chk_fail
.L86:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC11
	.word	__PRETTY_FUNCTION__.4685
	.word	.LC3
	.word	.LC4
	.size	splay_insert, .-splay_insert
	.global	root
	.bss
	.align	2
	.type	root, %object
	.size	root, 4
root:
	.space	4
	.text
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L90
	bl	splay_insert
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	root
	.size	add, .-add
	.align	2
	.global	get
	.syntax unified
	.arm
	.fpu softvfp
	.type	get, %function
get:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L94
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L94+4
	bl	splay_kth
	str	r0, [fp, #-8]
	ldr	r3, .L94
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L94
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L95:
	.align	2
.L94:
	.word	i.4693
	.word	root
	.size	get, .-get
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%d%d\000"
	.align	2
.LC13:
	.ascii	"%d\000"
	.align	2
.LC14:
	.ascii	"%d\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L107
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r2, fp, #20
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L107+4
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L97
.L98:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, .L107+8
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L107+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L97:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L98
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L99
.L100:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, .L107+16
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L107+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L99:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L100
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L101
.L104:
	ldr	r2, .L107+8
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	add
	b	.L102
.L103:
	bl	get
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L107+20
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L102:
	ldr	r2, .L107+16
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L103
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L101:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L104
	mov	r3, #0
	ldr	r2, .L107
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L106
	bl	__stack_chk_fail
.L106:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L108:
	.align	2
.L107:
	.word	.LC15
	.word	.LC12
	.word	buf.4701
	.word	.LC13
	.word	op.4702
	.word	.LC14
	.size	main, .-main
	.local	depth.4620
	.comm	depth.4620,4,4
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4633, %object
	.size	__PRETTY_FUNCTION__.4633, 13
__PRETTY_FUNCTION__.4633:
	.ascii	"splay_rotate\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4642, %object
	.size	__PRETTY_FUNCTION__.4642, 12
__PRETTY_FUNCTION__.4642:
	.ascii	"splay_splay\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4649, %object
	.size	__PRETTY_FUNCTION__.4649, 12
__PRETTY_FUNCTION__.4649:
	.ascii	"splay_split\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4655, %object
	.size	__PRETTY_FUNCTION__.4655, 12
__PRETTY_FUNCTION__.4655:
	.ascii	"splay_merge\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4662, %object
	.size	__PRETTY_FUNCTION__.4662, 11
__PRETTY_FUNCTION__.4662:
	.ascii	"splay_rank\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4670, %object
	.size	__PRETTY_FUNCTION__.4670, 10
__PRETTY_FUNCTION__.4670:
	.ascii	"splay_kth\000"
	.data
	.align	2
	.type	top.4675, %object
	.size	top.4675, 4
top.4675:
	.word	pool.4674
	.local	pool.4674
	.comm	pool.4674,3200144,4
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4685, %object
	.size	__PRETTY_FUNCTION__.4685, 13
__PRETTY_FUNCTION__.4685:
	.ascii	"splay_insert\000"
	.local	i.4693
	.comm	i.4693,4,4
	.local	buf.4701
	.comm	buf.4701,800036,4
	.local	op.4702
	.comm	op.4702,800036,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
