	.file	"extr_23tree.c_sort.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sort, @function
sort:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L7
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
.L5:
	mov	eax, DWORD PTR [rbx]
	test	al, 1
	jne	.L3
	mov	rdi, QWORD PTR 24[rbx]
	call	sort
	mov	edx, DWORD PTR [rbx]
	lea	rsi, 4[rax]
	mov	DWORD PTR [rax], edx
	test	BYTE PTR 4[rbx], 1
	je	.L14
.L4:
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	jne	.L5
	mov	rax, rsi
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbx]
	call	sort
	mov	edx, DWORD PTR 4[rbx]
	lea	rsi, 4[rax]
	mov	DWORD PTR [rax], edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	and	eax, -2
	mov	DWORD PTR [rsi], eax
	mov	edx, DWORD PTR 4[rbx]
	lea	rax, 4[rsi]
	test	dl, 1
	jne	.L1
	mov	DWORD PTR 4[rsi], edx
	lea	rax, 8[rsi]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore 3
	mov	rax, rsi
	ret
	.cfi_endproc
.LFE0:
	.size	sort, .-sort
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_23tree.c_sort.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort, %function
sort:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	beq	.L8
.L5:
	ldr	r3, [r4]
	tst	r3, #1
	bne	.L3
	ldr	r0, [r4, #16]
	bl	sort
	mov	r1, r0
	ldr	r3, [r4]
	str	r3, [r1], #4
	ldr	r3, [r4, #4]
	tst	r3, #1
	beq	.L11
.L4:
	ldr	r4, [r4, #8]
	cmp	r4, #0
	bne	.L5
.L8:
	mov	r0, r1
	pop	{r4, pc}
.L11:
	ldr	r0, [r4, #12]
	bl	sort
	mov	r1, r0
	ldr	r3, [r4, #4]
	str	r3, [r1], #4
	b	.L4
.L3:
	bic	r3, r3, #1
	str	r3, [r1]
	ldr	r3, [r4, #4]
	tst	r3, #1
	addne	r0, r1, #4
	streq	r3, [r1, #4]
	addeq	r0, r1, #8
	pop	{r4, pc}
	.size	sort, .-sort
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
