	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HEADER_SetItemT
_HEADER_SetItemT:                       ## @HEADER_SetItemT
	.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
	movq	_FALSE@GOTPCREL(%rip), %rbx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpq	%rsi, (%rdi)
	jbe	LBB0_10
## %bb.2:
	movl	%ecx, %r12d
	movq	%rdx, %r13
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_TRACE
	leaq	-64(%rbp), %rbx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	callq	_HEADER_CopyHDItemForNotify
	movq	_HDN_ITEMCHANGINGW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_HEADER_SendNotifyWithHDItemT
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_FALSE@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_4:
	leaq	(,%r14,4), %rdi
	addq	16(%r15), %rdi
	movl	(%r13), %esi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	callq	_HEADER_StoreHDItemInHeader
	movq	_HDI_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_8
## %bb.5:
	movq	8(%r13), %rdx
	testq	%rdx, %rdx
	js	LBB0_8
## %bb.6:
	cmpq	(%r15), %rdx
	jge	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_HEADER_ChangeItemOrder
LBB0_8:
	movq	_HDN_ITEMCHANGEDW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_HEADER_SendNotifyWithHDItemT
	movq	%r15, %rdi
	callq	_HEADER_SetItemBounds
	movl	8(%r15), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_InvalidateRect
	movq	_TRUE@GOTPCREL(%rip), %rbx
LBB0_9:
	movq	-48(%rbp), %rdi
	callq	_heap_free
LBB0_10:
	movl	(%rbx), %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[nItem=%d]\n"

	.comm	_HDN_ITEMCHANGINGW,4,2          ## @HDN_ITEMCHANGINGW
	.comm	_HDI_ORDER,4,2                  ## @HDI_ORDER
	.comm	_HDN_ITEMCHANGEDW,4,2           ## @HDN_ITEMCHANGEDW
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_HEADER_SetItemT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HEADER_SetItemT
_HEADER_SetItemT:                       ; @HEADER_SetItemT
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x2, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.ls	LBB0_9
; %bb.2:
	mov	x22, x3
	mov	x21, x2
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	add	x1, sp, #16
	add	x4, sp, #8
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_HEADER_CopyHDItemForNotify
Lloh2:
	adrp	x8, _HDN_ITEMCHANGINGW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDN_ITEMCHANGINGW@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	x0, x19
	mov	x2, x20
	bl	_HEADER_SendNotifyWithHDItemT
Lloh5:
	adrp	x23, _FALSE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	cbnz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x19, #16]
	add	x0, x8, x20, lsl #2
	ldr	w1, [x21]
	mov	x2, x21
	mov	x3, x22
	bl	_HEADER_StoreHDItemInHeader
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _HDI_ORDER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HDI_ORDER@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	x2, [x21, #8]
	tbnz	x2, #63, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	cmp	x2, x8
	b.ge	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_HEADER_ChangeItemOrder
LBB0_7:
Lloh10:
	adrp	x8, _HDN_ITEMCHANGEDW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDN_ITEMCHANGEDW@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	x0, x19
	mov	x2, x20
	bl	_HEADER_SendNotifyWithHDItemT
	mov	x0, x19
	bl	_HEADER_SetItemBounds
	ldr	w0, [x19, #8]
	ldr	w2, [x23]
	mov	x1, #0
	bl	_InvalidateRect
Lloh13:
	adrp	x23, _TRUE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_heap_free
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x23, _FALSE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[nItem=%d]\n"

	.comm	_HDN_ITEMCHANGINGW,4,2          ; @HDN_ITEMCHANGINGW
	.comm	_HDI_ORDER,4,2                  ; @HDI_ORDER
	.comm	_HDN_ITEMCHANGEDW,4,2           ; @HDN_ITEMCHANGEDW
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_HEADER_SetItemT
.subsections_via_symbols
