	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_by_max_size
_sort_by_max_size:                      ## @sort_by_max_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movl	$1, %eax
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r8d, %r8d
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rcx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%rcx), %r9
	testq	%r9, %r9
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rax
	xorl	%r8d, %r8d
	cmpq	(%r9), %rax
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r9, (%rdi)
	movq	8(%r9), %rax
	movq	%rax, 8(%rcx)
	movq	(%rdi), %rax
	movq	%rcx, 8(%rax)
	movq	(%rdi), %rcx
	movq	8(%rcx), %r9
	movl	$1, %r8d
	testq	%r9, %r9
	je	LBB0_12
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r9), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%r9), %rdx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	incl	%r8d
	movq	%rsi, 8(%rcx)
	movq	8(%rsi), %rax
	movq	%rax, (%rdx)
	movq	%r9, 8(%rsi)
	movq	%r9, %rax
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rsi, %rcx
	leaq	8(%rax), %rdx
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r9), %rax
	cmpq	(%rsi), %rax
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rsi, %rax
	movq	%r9, %rsi
	movq	%rax, %r9
	jmp	LBB0_10
LBB0_13:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sort_by_max_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_by_max_size
_sort_by_max_size:                      ; @sort_by_max_size
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	cbnz	x9, LBB0_4
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w10, LBB0_13
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x0]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x9]
	ldr	x11, [x8]
	cmp	x10, x11
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x0]
	ldr	x8, [x8, #8]
	str	x8, [x9, #8]
	ldr	x8, [x0]
	str	x9, [x8, #8]
	ldr	x9, [x0]
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x8
	ldr	x12, [x11, #8]!
	cbnz	x12, LBB0_11
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x11, x12
	mov	x12, x8
	mov	x8, x11
	mov	x9, x12
	ldr	x12, [x11, #8]!
	cbz	x12, LBB0_2
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x8]
	ldr	x14, [x12]
	cmp	x13, x14
	b.ge	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	w10, w10, #1
	str	x12, [x9, #8]
	ldr	x9, [x12, #8]
	str	x9, [x11]
	str	x8, [x12, #8]
	mov	x11, x8
	mov	x9, x12
	ldr	x12, [x11, #8]!
	cbnz	x12, LBB0_11
	b	LBB0_2
LBB0_13:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sort_by_max_size
.subsections_via_symbols
