	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HEADER_ChangeItemOrder
_HEADER_ChangeItemOrder:                ## @HEADER_ChangeItemOrder
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	(%r13,%rsi,8), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rcx
	callq	_TRACE
	movq	(%r13,%r15,8), %rdx
	cmpq	%r12, %rdx
	jae	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	leaq	(%rax,%rdx,8), %rdi
	leaq	(%rax,%rdx,8), %rsi
	addq	$8, %rsi
	movq	%r12, %rax
	subq	%rdx, %rax
	shlq	$3, %rax
	movq	%rax, %rdx
	callq	_memmove
	movq	(%r13,%r15,8), %rdx
LBB0_2:
	subq	%r12, %rdx
	jbe	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	leaq	(%rax,%r12,8), %rdi
	addq	$8, %rdi
	leaq	(%rax,%r12,8), %rsi
	shlq	$3, %rdx
	callq	_memmove
LBB0_4:
	movq	(%r14), %rax
	movq	%r15, (%rax,%r12,8)
	movq	(%r13,%r15,8), %rdi
	movq	%r12, %rsi
	callq	_min
	movq	%rax, %rbx
	movq	(%r13,%r15,8), %rdi
	movq	%r12, %rsi
	callq	_max
	cmpq	%rax, %rbx
	ja	LBB0_7
## %bb.5:
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rsi
	movq	%rbx, (%rdx,%rsi,8)
	incq	%rbx
	cmpq	%rax, %rbx
	jbe	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: %d->%d\n"

	.no_dead_strip	_HEADER_ChangeItemOrder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HEADER_ChangeItemOrder
_HEADER_ChangeItemOrder:                ; @HEADER_ChangeItemOrder
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	lsl	x23, x1, #3
	ldr	x2, [x22, x23]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x20
	bl	_TRACE
	ldr	x8, [x22, x23]
	cmp	x8, x20
	b.hs	LBB0_2
; %bb.1:
	ldr	x9, [x19]
	add	x0, x9, x8, lsl #3
	add	x1, x0, #8
	sub	x8, x20, x8
	lsl	x2, x8, #3
	bl	_memmove
	ldr	x8, [x22, x21, lsl #3]
LBB0_2:
	subs	x8, x8, x20
	b.ls	LBB0_4
; %bb.3:
	ldr	x9, [x19]
	add	x1, x9, x20, lsl #3
	add	x0, x1, #8
	lsl	x2, x8, #3
	bl	_memmove
LBB0_4:
	ldr	x8, [x19]
	str	x21, [x8, x20, lsl #3]
	ldr	x0, [x22, x23]
	mov	x1, x20
	bl	_min
	mov	x21, x0
	ldr	x0, [x22, x23]
	mov	x1, x20
	bl	_max
	cmp	x21, x0
	b.hi	LBB0_7
; %bb.5:
	ldp	x9, x8, [x19]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x21, lsl #3]
	str	x21, [x8, x10, lsl #3]
	add	x21, x21, #1
	cmp	x21, x0
	b.ls	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: %d->%d\n"

	.no_dead_strip	_HEADER_ChangeItemOrder
.subsections_via_symbols
