	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function descendant_sort
_descendant_sort:                       ## @descendant_sort
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movl	%esi, %r9d
	testl	%esi, %esi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	jle	LBB0_1
## %bb.6:
	movq	%rdi, %r11
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%edx, %r13d
	cmpl	%r12d, %edx
	jge	LBB0_2
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
                                        ##     Child Loop BB0_35 Depth 2
                                        ##     Child Loop BB0_37 Depth 2
	movslq	%r13d, %rax
	leaq	(%rax,%rax,2), %r8
	leal	1(%rax), %edx
	cmpl	$0, (%r11,%r8,8)
	jne	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %r10d
	cmpl	%r12d, %edx
	jge	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r12d, %r10d
	subl	%r13d, %r10d
	movl	%r13d, %edx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rdx,%rsi), %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	$0, (%r11,%rcx,8)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	leaq	(%rax,%rsi), %rcx
	incq	%rcx
	incq	%rsi
	cmpq	%r9, %rcx
	jl	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r12d, %edx
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	leal	(%rsi,%r13), %edx
	movl	%esi, %r10d
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r11,%r8,8), %rdi
	movq	(%rdi), %rbx
	movl	%r12d, %esi
	xorl	%r15d, %r15d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=2
	incq	%r15
	decl	%esi
	cmpq	%r9, %r15
	je	LBB0_20
LBB0_17:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%r15,%r15,2), %rcx
	movq	16(%r11,%rcx,8), %rcx
	movq	(%rcx), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	cmpq	8(%rdi), %rcx
	jne	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r12d, %r15d
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r10d, -52(%rbp)                ## 4-byte Spill
	leal	1(%r15), %ecx
	movl	$1, %edi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	cmpl	%r12d, %ecx
	jge	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r15d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%r11,%rcx,8), %edi
	movl	%r12d, %ecx
	subl	%r15d, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r15,%rsi), %ecx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	%edi, (%r11,%rcx,8)
	jle	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	incq	%rsi
	cmpq	%rsi, %rbx
	jne	LBB0_24
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=1
                                        ## kill: def $esi killed $esi killed $rsi def $rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%edx, %r13d
	jge	LBB0_36
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r15d, %ecx
	leaq	(%rcx,%rcx,2), %rbx
	movslq	%edx, %rsi
	movl	(%r11,%rbx,8), %edi
	incl	%edi
	movl	%edi, (%r11,%r8,8)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%edi, %ecx
	cmovgl	%ecx, %edi
	leaq	1(%rax), %r8
	cmpq	%rsi, %r8
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%edi, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_36
LBB0_30:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%r11,%rbx,8), %r10
	movl	%r13d, %ebx
	notl	%ebx
	addl	%edx, %ebx
	leaq	-2(%rsi), %r9
	testb	$1, %bl
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_9 Depth=1
                                        ## implicit-def: $ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%r8,%r8,2), %rbx
	movl	(%r11,%rbx,8), %r8d
	movl	(%r10), %edx
	leal	(%rdx,%r8), %ecx
	incl	%ecx
	movl	%ecx, (%r11,%rbx,8)
	cmpl	%ecx, %edi
	cmovgl	%edi, %ecx
	leaq	2(%rax), %r8
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, %edi
LBB0_33:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rax, %r9
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	je	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_9 Depth=1
	subq	%r8, %rsi
	leaq	(%r8,%r8,2), %rax
	leaq	(%r11,%rax,8), %rax
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r10), %edx
	movl	(%rax), %ebx
	movl	24(%rax), %ecx
	addl	%edx, %ebx
	incl	%ebx
	movl	%ebx, (%rax)
	cmpl	%ebx, %edi
	cmovgl	%edi, %ebx
	movl	(%r10), %edx
	addl	%edx, %ecx
	incl	%ecx
	movl	%ecx, 24(%rax)
	cmpl	%ecx, %ebx
	cmovlel	%ecx, %ebx
	addq	$48, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	addq	$-2, %rsi
	jne	LBB0_35
LBB0_36:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
	negl	%ebx
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	leaq	(%r11,%rax,8), %rdi
	decl	%ecx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, -92(%rbp)                ## 4-byte Spill
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_37 Depth=2
	movslq	%r13d, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%r11,%rcx,8), %rdi
	movq	16(%r11,%rcx,8), %rdx
	movq	%rdx, -112(%rbp)
	movups	(%r11,%rcx,8), %xmm0
	movaps	%xmm0, -128(%rbp)
	leaq	(%r11,%rcx,8), %rsi
	addq	$24, %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	%r14d, %ecx
	addl	%ecx, %eax
	leal	(%rax,%rax,2), %eax
	leal	-24(,%rax,8), %edx
	callq	_memmove
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movq	-136(%rbp), %rax                ## 8-byte Reload
	addl	%r15d, %eax
	addl	%r14d, %eax
	cltq
	leaq	(%rax,%rax,2), %rax
	movaps	-128(%rbp), %xmm0
	movups	%xmm0, (%r11,%rax,8)
	movq	-112(%rbp), %rcx
	movq	%rcx, 16(%r11,%rax,8)
	decl	%r15d
LBB0_41:                                ##   in Loop: Header=BB0_37 Depth=2
	incl	%r14d
	decl	%ebx
	addq	$24, %rdi
	cmpl	%r14d, %edx
	je	LBB0_8
LBB0_37:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %eax
	subl	%r13d, %eax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jg	LBB0_38
## %bb.39:                              ##   in Loop: Header=BB0_37 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r15), %r12d
	addl	%r14d, %r12d
	cmpl	%r13d, %r12d
	je	LBB0_7
## %bb.40:                              ##   in Loop: Header=BB0_37 Depth=2
	movslq	%r13d, %rax
	leaq	(%rax,%rax,2), %rax
	movq	16(%r11,%rax,8), %rcx
	movq	%rcx, -112(%rbp)
	movups	(%r11,%rax,8), %xmm0
	movaps	%xmm0, -128(%rbp)
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,8), %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	addq	$24, %rdi
	movl	%r13d, %eax
	subl	%r15d, %eax
	addl	%ebx, %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edx
	callq	_memmove
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %rax
	movaps	-128(%rbp), %xmm0
	movups	%xmm0, (%r11,%rax,8)
	movq	-112(%rbp), %rcx
	movq	%rcx, 16(%r11,%rax,8)
	incl	%r13d
	movl	-92(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_41
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	addl	%r13d, %edx
	subl	%r14d, %edx
	movl	%edx, %r13d
	movl	-92(%rbp), %r12d                ## 4-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r12d, %r13d
	jl	LBB0_9
	jmp	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_2:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leal	7(%rbx), %eax
	addl	$14, %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testl	%r12d, %r12d
	jle	LBB0_57
## %bb.3:
	movslq	%r12d, %r15
	leaq	24(%rax), %rdx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 8(%rax,%r15,8)
	movq	%rbx, %r15
LBB0_56:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	addq	$24, %rdx
	cmpq	%rcx, %r13
	je	LBB0_57
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_46 Depth 2
                                        ##     Child Loop BB0_49 Depth 2
	movq	%r15, %rbx
	leaq	(,%r13,2), %r15
	addq	%r13, %r15
	movl	(%rax,%r15,8), %r12d
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.42:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leal	(%r12,%r12), %edi
	incl	%edi
	callq	_malloc
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx,%r15,8)
	testq	%rax, %rax
	jne	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	L_.str(%rip), %rsi
	callq	_xo_errx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rcx,%r15,8), %rax
	addq	$8, %rax
	leal	-2(%r12), %ecx
	movl	%ecx, %edx
	cmpl	$3, %r12d
	movl	$32, %r8d
	jl	LBB0_47
## %bb.45:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	movq	%rbx, %r15
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%esi, %edi
	shrl	$3, %edi
	movzbl	(%r14,%rdi), %edi
	movl	%esi, %ebx
	andb	$7, %bl
	movzbl	%bl, %ebx
	btl	%ebx, %edi
	movl	$124, %edi
	cmovael	%r8d, %edi
	movq	(%rax), %rbx
	movb	%dil, (%rbx,%rsi,2)
	movq	(%rax), %rdi
	movb	$32, 1(%rdi,%rsi,2)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_46
	jmp	LBB0_48
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	testl	%ecx, %ecx
	movq	%rbx, %r15
	jne	LBB0_55
LBB0_48:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdi
	.p2align	4, 0x90
LBB0_49:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rdi
	cmpq	%r15, %rdi
	jge	LBB0_53
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=2
	leaq	24(%rsi), %rbx
	cmpl	%r12d, (%rsi)
	movq	%rbx, %rsi
	jg	LBB0_49
## %bb.51:                              ##   in Loop: Header=BB0_4 Depth=1
	jne	LBB0_53
## %bb.52:                              ##   in Loop: Header=BB0_4 Depth=1
	andb	$7, %cl
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movq	%rdx, %rcx
	shrq	$3, %rcx
	orb	%sil, (%r14,%rcx)
	movb	$124, %cl
	jmp	LBB0_54
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_4 Depth=1
	andb	$7, %cl
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movq	%rdx, %rcx
	shrq	$3, %rcx
	notb	%sil
	andb	%sil, (%r14,%rcx)
	movb	$96, %cl
LBB0_54:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rsi
	movb	%cl, (%rsi,%rdx,2)
	addq	%rdx, %rdx
	movq	(%rax), %rcx
	movl	%edx, %edx
	movb	$45, 1(%rcx,%rdx)
	decl	%r12d
	movl	%r12d, %esi
LBB0_55:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	%esi, %esi
	movslq	%esi, %rdi
	addq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_56
LBB0_57:
	movq	%r14, %rdi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed"

L_.str.1:                               ## @.str.1
	.asciz	"- "

	.no_dead_strip	_descendant_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function descendant_sort
_descendant_sort:                       ; @descendant_sort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	mov	w23, w1
	cmp	w1, #1
	b.lt	LBB0_34
; %bb.1:
	mov	w25, #0
	mov	w15, #0
	add	x16, x19, #24
	mov	w24, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x9
	cmp	w9, w20
	b.ge	LBB0_35
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
                                        ;     Child Loop BB0_29 Depth 2
	smull	x8, w25, w24
	ldr	w8, [x19, x8]
	add	w9, w25, #1
	cbnz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w25
	cmp	w9, w20
	b.ge	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w26, w20, w25
	mov	w9, w25
	mov	w10, #1
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w11, w9, w10
	smull	x11, w11, w24
	ldr	w11, [x19, x11]
	cbz	w11, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x10, x10, #1
	add	x11, x8, x10
	cmp	x11, x23
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, x20
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w25, w10
	mov	x26, x10
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	madd	x10, x8, x24, x19
	ldr	x11, [x10, #16]
	ldr	x12, [x11]
	mov	x10, x20
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x27, x27, #1
	sub	w10, w10, #1
	cmp	x27, x23
	b.eq	LBB0_2
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	x13, x27, x24, x19
	ldr	x13, [x13, #16]
	ldr	x13, [x13]
	cmp	x13, x12
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x14, [x11, #8]
	cmp	x13, x14
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w27, w20
	b.eq	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w11, w27, #1
	cmp	w11, w20
	b.ge	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	and	x11, x27, #0xffffffff
	mul	x11, x11, x24
	ldr	w11, [x19, x11]
	sub	w12, w20, w27
	str	w12, [sp, #28]                  ; 4-byte Folded Spill
	mov	w10, w10
	mov	w12, #1
LBB0_18:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w13, w27, w12
	umull	x13, w13, w24
	ldr	w13, [x19, x13]
	cmp	w13, w11
	b.le	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x12, x12, #1
	cmp	x10, x12
	b.ne	LBB0_18
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #1
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, x12
	str	w12, [sp, #28]                  ; 4-byte Folded Spill
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w9
	str	x16, [sp, #8]                   ; 8-byte Folded Spill
	b.ge	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	and	x10, x27, #0xffffffff
	madd	x10, x10, x24, x19
	sxtw	x9, w9
	ldr	w11, [x10]
	add	w12, w11, #1
	mul	x13, x8, x24
	str	w12, [x19, x13]
	cmp	w15, w12
	csinc	w15, w15, w11, gt
	add	x11, x8, #1
	cmp	x11, x9
	b.eq	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	mvn	x11, x8
	add	x9, x11, x9
	madd	x8, x8, x24, x16
LBB0_25:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x8]
	ldr	w12, [x10]
	add	w11, w12, w11
	add	w12, w11, #1
	str	w12, [x8], #24
	cmp	w15, w12
	csinc	w15, w15, w11, gt
	subs	x9, x9, #1
	b.ne	LBB0_25
LBB0_26:                                ;   in Loop: Header=BB0_3 Depth=1
	stp	w15, w26, [sp, #16]             ; 8-byte Folded Spill
	mov	w22, #0
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	neg	w28, w8
	smaddl	x21, w8, w24, x19
	sub	w8, w8, #1
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=2
	smaddl	x0, w25, w24, x19
	ldr	q0, [x0]
	str	q0, [sp, #32]
	ldr	x9, [x0, #16]
	str	x9, [sp, #48]
	add	x1, x0, #24
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	w9, w9, w22
	add	w8, w9, w8
	mul	w8, w8, w24
	sub	w2, w8, #24
	bl	_memmove
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	add	w8, w8, w27
	add	w8, w8, w22
	smaddl	x8, w8, w24, x19
	ldr	q0, [sp, #32]
	str	q0, [x8]
	ldr	x9, [sp, #48]
	str	x9, [x8, #16]
	sub	w27, w27, #1
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	add	w22, w22, #1
	sub	w28, w28, #1
	add	x21, x21, #24
	cmp	w26, w22
	b.eq	LBB0_33
LBB0_29:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	subs	w8, w27, w25
	b.gt	LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w8, w8, w27
	add	w26, w8, w22
	cmp	w26, w25
	b.eq	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	smaddl	x8, w25, w24, x19
	ldr	q0, [x8]
	str	q0, [sp, #32]
	ldr	x8, [x8, #16]
	str	x8, [sp, #48]
	smaddl	x1, w27, w24, x21
	add	x0, x1, #24
	sub	w8, w25, w27
	add	w8, w28, w8
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	bl	_memmove
	smaddl	x8, w26, w24, x19
	ldr	q0, [sp, #32]
	str	q0, [x8]
	ldr	x9, [sp, #48]
	str	x9, [x8, #16]
	add	w25, w25, #1
	ldr	w26, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_28
LBB0_32:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w8, w8, w25
	sub	w25, w8, w22
LBB0_33:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w20
	ldr	w15, [sp, #16]                  ; 4-byte Folded Reload
	ldr	x16, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_3
	b	LBB0_35
LBB0_34:
	mov	w15, #0
LBB0_35:
	add	w8, w15, #7
	add	w9, w15, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w22, w8, #3
	mov	x0, x22
	bl	_malloc
	mov	x21, x0
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	cmp	w20, #1
	b.lt	LBB0_55
; %bb.36:
	mov	x24, #0
	sxtw	x25, w20
	add	x26, x19, #24
	mov	w9, #24
	mov	w20, #124
	mov	w28, #32
	b	LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_39 Depth=1
	madd	x8, x24, x9, x19
	str	xzr, [x8, #8]
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	add	x24, x24, #1
	add	x26, x26, #24
	cmp	x24, x23
	b.eq	LBB0_55
LBB0_39:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_44 Depth 2
                                        ;     Child Loop BB0_48 Depth 2
	mul	x8, x24, x9
	ldr	w22, [x19, x8]
	cbz	w22, LBB0_37
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	w0, #1
	bfi	w0, w22, #1, #31
	bl	_malloc
	mov	w8, #24
	madd	x27, x24, x8, x19
	str	x0, [x27, #8]!
	cbnz	x0, LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	w0, #1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xo_errx
LBB0_42:                                ;   in Loop: Header=BB0_39 Depth=1
	sub	w8, w22, #2
	cmp	w22, #3
	b.lt	LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x9, #0
	mov	w10, #1
LBB0_44:                                ;   Parent Loop BB0_39 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ubfx	x11, x9, #3, #29
	ldrb	w11, [x21, x11]
	and	w12, w9, #0x7
	lsr	w11, w11, w12
	tst	w11, #0x1
	csel	w11, w28, w20, eq
	ldr	x12, [x27]
	add	x12, x12, x10
	sturb	w11, [x12, #-1]
	ldr	x11, [x27]
	strb	w28, [x11, x10]
	add	x9, x9, #1
	add	x10, x10, #2
	cmp	x8, x9
	b.ne	LBB0_44
	b	LBB0_47
LBB0_45:                                ;   in Loop: Header=BB0_39 Depth=1
	cbz	w8, LBB0_47
; %bb.46:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	w8, #0
	b	LBB0_54
LBB0_47:                                ;   in Loop: Header=BB0_39 Depth=1
	mov	x10, x26
	mov	x9, x24
LBB0_48:                                ;   Parent Loop BB0_39 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x9, x9, #1
	cmp	x9, x25
	b.ge	LBB0_52
; %bb.49:                               ;   in Loop: Header=BB0_48 Depth=2
	ldr	w11, [x10], #24
	cmp	w11, w22
	b.gt	LBB0_48
; %bb.50:                               ;   in Loop: Header=BB0_39 Depth=1
	b.ne	LBB0_52
; %bb.51:                               ;   in Loop: Header=BB0_39 Depth=1
	and	w9, w8, #0x7
	mov	w10, #1
	lsl	w9, w10, w9
	lsr	x10, x8, #3
	ldrb	w11, [x21, x10]
	orr	w9, w11, w9
	strb	w9, [x21, x10]
	mov	w9, #124
	b	LBB0_53
LBB0_52:                                ;   in Loop: Header=BB0_39 Depth=1
	and	w9, w8, #0x7
	mov	w10, #1
	lsl	w9, w10, w9
	lsr	x10, x8, #3
	ldrb	w11, [x21, x10]
	bic	w9, w11, w9
	strb	w9, [x21, x10]
	mov	w9, #96
LBB0_53:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	x10, [x27]
	lsl	x8, x8, #1
	strb	w9, [x10, x8]
	ldr	x9, [x27]
	and	x8, x8, #0xfffffffe
	add	x8, x9, x8
	mov	w9, #45
	strb	w9, [x8, #1]
	sub	w8, w22, #1
LBB0_54:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	x9, [x27]
	lsl	w8, w8, #1
	add	x0, x9, w8, sxtw
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	mov	w9, #24
	b	LBB0_38
LBB0_55:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed"

l_.str.1:                               ; @.str.1
	.asciz	"- "

	.no_dead_strip	_descendant_sort
.subsections_via_symbols
