	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_message_sort                   ## -- Begin function message_sort
	.p2align	4, 0x90
_message_sort:                          ## @message_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	leaq	-8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%edx, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	%edx, %esi
	callq	_message_sort
	movl	%r15d, %esi
	testl	%r15d, %r15d
	jle	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_6 Depth 3
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %eax
	shrl	%eax
	movq	(%rbx,%rax,8), %rbx
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %r15d
	cmpl	%eax, %edx
	jg	LBB0_10
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_6 Depth 3
	movslq	%edx, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r12
	movl	%edx, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r12), %rdi
	addq	$8, %r12
	movq	%rbx, %rsi
	callq	_message_cmp
	incl	%r14d
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	leal	-1(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edx
	movslq	%r15d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r15
	movl	%edx, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-8(%r15), %rdi
	addq	$-8, %r15
	movq	%rbx, %rsi
	callq	_message_cmp
	decl	%r13d
	testq	%rax, %rax
	jg	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	leal	1(%r13), %eax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	cmpl	%eax, %edx
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r12), %rax
	movq	(%r15), %rcx
	movq	%rcx, (%r12)
	movq	%rax, (%r15)
	movl	%r13d, %eax
	movl	%r14d, %edx
	jmp	LBB0_9
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_message_sort                   ; -- Begin function message_sort
	.p2align	2
_message_sort:                          ; @message_sort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cmp	w1, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	sub	x22, x0, #8
	add	x23, x0, #8
	mov	x20, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	add	x0, x21, w25, sxtw #3
	sub	w1, w19, w25
	bl	_message_sort
	mov	x19, x20
	cmp	w20, #0
	b.le	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;       Child Loop BB0_8 Depth 3
	mov	w25, #0
	lsr	w8, w19, #1
	ldr	x21, [x21, w8, uxtw #3]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	cmp	w25, w20
	b.gt	LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;       Child Loop BB0_8 Depth 3
	add	x26, x22, w25, sxtw #3
	mov	x27, x25
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x0, [x26, #8]!
	mov	x1, x21
	bl	_message_cmp
	add	w27, w27, #1
	tbnz	x0, #63, LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	sub	w25, w27, #1
	add	x28, x23, w20, sxtw #3
	mov	x24, x20
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x0, [x28, #-8]!
	mov	x1, x21
	bl	_message_cmp
	sub	w24, w24, #1
	cmp	x0, #0
	b.gt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w20, w24, #1
	cmp	w25, w20
	b.gt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x26]
	ldr	x9, [x28]
	str	x9, [x26]
	str	x8, [x28]
	mov	x20, x24
	mov	x25, x27
	b	LBB0_4
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
