	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HEADER_SetOrderArray
_HEADER_SetOrderArray:                  ## @HEADER_SetOrderArray
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	%rsi, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_header@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TRACE_ON
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	testq	%r13, %r13
	movq	%r13, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_6
## %bb.4:
	leaq	-1(%r15), %rbx
	leaq	L_.str.1(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,8), %rsi
	cmpq	%r13, %rbx
	movl	$44, %edx
	movl	$125, %eax
	cmovel	%eax, %edx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_TRACE
	incq	%r13
	cmpq	%r13, %r15
	jne	LBB0_5
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r15, %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_7:
	testq	%r13, %r13
	je	LBB0_21
## %bb.8:
	movq	$-1, -64(%rbp)                  ## 8-byte Folded Spill
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_get_nextvalue
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	incq	-64(%rbp)                       ## 8-byte Folded Spill
	cmpq	%r13, %rbx
	je	LBB0_11
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	(%r12,%rbx,8), %rax
	movq	8(%r15), %rdi
	cmpq	%r13, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jae	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, (%rdi,%rbx,8)
	movq	(%r12,%rbx,8), %rdx
	movq	%rbx, %rsi
	callq	_has_duplicate
	cmpq	$-1, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	1(%rbx), %rsi
	movq	8(%r15), %rdi
	movq	%r13, %rdx
	callq	_get_nextvalue
	movq	8(%r15), %rdi
	movq	%rax, (%rdi,%r14,8)
	movq	(%r12,%rbx,8), %rdx
	movq	%rbx, %rsi
	callq	_has_duplicate
	movq	%rax, %r14
	decq	%rbx
	cmpq	$-1, %rax
	jne	LBB0_15
	jmp	LBB0_16
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_11:
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	leaq	-1(%r13), %rsi
	movl	%r13d, %edx
	andl	$3, %edx
	cmpq	$3, %rsi
	jae	LBB0_17
## %bb.12:
	xorl	%esi, %esi
	jmp	LBB0_19
LBB0_17:
	andq	$-4, %r13
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rsi,8), %rdi
	movq	%rsi, (%rcx,%rdi,8)
	movq	8(%rax,%rsi,8), %rdi
	leaq	1(%rsi), %rbx
	movq	%rbx, (%rcx,%rdi,8)
	movq	16(%rax,%rsi,8), %rdi
	leaq	2(%rsi), %rbx
	movq	%rbx, (%rcx,%rdi,8)
	movq	24(%rax,%rsi,8), %rdi
	leaq	3(%rsi), %rbx
	movq	%rbx, (%rcx,%rdi,8)
	addq	$4, %rsi
	cmpq	%r13, %rsi
	jne	LBB0_18
LBB0_19:
	testq	%rdx, %rdx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rsi,8), %rdi
	movq	%rsi, (%rcx,%rdi,8)
	incq	%rsi
	decq	%rdx
	jne	LBB0_20
LBB0_21:
	movq	%r15, %rdi
	callq	_HEADER_SetItemBounds
	movl	16(%r15), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_InvalidateRect
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_header,4,2                     ## @header
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"count=%d, order array={"

L_.str.1:                               ## @.str.1
	.asciz	"%d%c"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_HEADER_SetOrderArray
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HEADER_SetOrderArray
_HEADER_SetOrderArray:                  ; @HEADER_SetOrderArray
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x25, _FALSE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	cmp	x8, x1
	b.ne	LBB0_17
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh2:
	adrp	x8, _header@GOTPAGE
Lloh3:
	ldr	x8, [x8, _header@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_TRACE_ON
	cbz	x0, LBB0_6
; %bb.2:
	str	x20, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x20, LBB0_5
; %bb.3:
	mov	w23, #44
	mov	w24, #125
	mov	x26, x21
	mov	x27, x20
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26], #8
	subs	x27, x27, #1
	csel	x9, x24, x23, eq
	stp	x8, x9, [sp]
	mov	x0, x22
	bl	_TRACE
	cbnz	x27, LBB0_4
LBB0_5:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
LBB0_6:
	cbz	x20, LBB0_16
; %bb.7:
	mov	x22, #0
	mov	x26, #-1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x22
	mov	x2, x20
	bl	_get_nextvalue
	ldr	x8, [x19, #8]
	str	x0, [x8, x22, lsl #3]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	add	x26, x26, #1
	cmp	x22, x20
	b.eq	LBB0_14
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x21, x22, lsl #3]
	ldr	x0, [x19, #8]
	cmp	x8, x20
	b.hs	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	lsl	x9, x22, #3
	str	x8, [x0, x9]
	ldr	x2, [x21, x9]
	mov	x1, x22
	bl	_has_duplicate
	cmn	x0, #1
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x24, x0
	mov	x23, x26
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, x23, #1
	ldr	x0, [x19, #8]
	mov	x2, x20
	bl	_get_nextvalue
	ldr	x8, [x19, #8]
	str	x0, [x8, x24, lsl #3]
	ldr	x2, [x21, x23, lsl #3]
	mov	x0, x8
	mov	x1, x23
	bl	_has_duplicate
	mov	x24, x0
	sub	x23, x23, #1
	cmn	x0, #1
	b.ne	LBB0_13
	b	LBB0_9
LBB0_14:
	mov	x8, #0
	ldr	x9, [x19, #24]
	ldr	x10, [x19, #8]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x8, lsl #3]
	str	x8, [x9, x11, lsl #3]
	add	x8, x8, #1
	cmp	x20, x8
	b.ne	LBB0_15
LBB0_16:
	mov	x0, x19
	bl	_HEADER_SetItemBounds
	ldr	w0, [x19, #16]
	ldr	w2, [x25]
	mov	x1, #0
	bl	_InvalidateRect
Lloh11:
	adrp	x25, _TRUE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x25]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_header,4,2                     ; @header
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"count=%d, order array={"

l_.str.1:                               ; @.str.1
	.asciz	"%d%c"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_HEADER_SetOrderArray
.subsections_via_symbols
