	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HEADER_LButtonUp
_HEADER_LButtonUp:                      ## @HEADER_LButtonUp
	.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	%rdi, %rbx
	movl	%esi, -48(%rbp)
	movl	%edx, -44(%rbp)
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_HEADER_InternalHitTest
	cmpq	$0, 64(%rbx)
	je	LBB0_15
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	40(%rbx), %r12
	leaq	(%rcx,%rcx,2), %r13
	movq	%rax, 16(%r12,%r13,8)
	cmpq	$0, 72(%rbx)
	je	LBB0_11
## %bb.2:
	movq	(%r15), %rdi
	callq	_ImageList_DragShowNolock
	xorl	%eax, %eax
	callq	_ImageList_EndDrag
	movl	8(%rbx), %r14d
	cmpl	$-1, %r14d
	je	LBB0_9
## %bb.3:
	cmpl	12(%rbx), %r14d
	jne	LBB0_5
## %bb.4:
	decl	%r14d
	cmpl	$-1, %r14d
	jne	LBB0_7
	jmp	LBB0_9
LBB0_15:
	cmpq	$0, 56(%rbx)
	je	LBB0_21
## %bb.16:
	movl	-48(%rbp), %eax
	movq	(%rbx), %rsi
	movq	40(%rbx), %rcx
	leaq	(%rsi,%rsi,2), %rdx
	subl	8(%rcx,%rdx,8), %eax
	addl	20(%rbx), %eax
	xorl	%r14d, %r14d
	testl	%eax, %eax
	cmovgl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	_HDN_ENDTRACKW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	_HDI_WIDTH@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	callq	_HEADER_SendNotifyWithIntFieldT
	movq	_HDS_FULLDRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	jne	LBB0_18
## %bb.17:
	movl	32(%rbx), %edi
	callq	_GetDC
	movl	%eax, %r15d
	movl	48(%rbx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_HEADER_DrawTrackLine
	movl	32(%rbx), %edi
	movl	%r15d, %esi
	callq	_ReleaseDC
LBB0_18:
	movq	_HDN_ITEMCHANGINGW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	callq	_HEADER_SendNotifyWithIntFieldT
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	(%rbx), %rdx
	movq	40(%rbx), %rax
	leaq	(%rdx,%rdx,2), %rcx
	movl	%r14d, 4(%rax,%rcx,8)
	movq	_HDN_ITEMCHANGEDW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	callq	_HEADER_SendNotifyWithIntFieldT
LBB0_20:
	movq	%rbx, %rdi
	callq	_HEADER_SetItemBounds
	movl	32(%rbx), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	callq	_InvalidateRect
	jmp	LBB0_21
LBB0_11:
	movl	32(%rbx), %edi
	callq	_GetDC
	movl	%eax, %r14d
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_HEADER_RefreshItem
	movl	32(%rbx), %edi
	movl	%r14d, %esi
	callq	_ReleaseDC
	movq	_HDS_DRAGDROP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_13
## %bb.12:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_HEADER_IsDragDistance
	testl	%eax, %eax
	jne	LBB0_14
LBB0_13:
	movq	_HDN_ITEMCLICKW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_HEADER_SendNotifyWithHDItemT
	jmp	LBB0_14
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_HEADER_IndexToOrder
	movl	%eax, %r14d
	xorl	%eax, %eax
	cmpl	(%r12,%r13,8), %r14d
	setg	%al
	subl	%eax, %r14d
	cmpl	$-1, %r14d
	je	LBB0_9
LBB0_7:
	movq	_HDN_ENDDRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	_HDI_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	callq	_HEADER_SendNotifyWithIntFieldT
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movl	32(%rbx), %edi
	movq	40(%rbx), %rax
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rsi
	addq	$8, %rsi
	movq	(%r15), %rdx
LBB0_10:
	callq	_InvalidateRect
	movq	(%r15), %rsi
	movq	%rsi, 72(%rbx)
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_HEADER_SetHotDivider
LBB0_14:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	(%r15), %rax
	movq	%rax, 64(%rbx)
LBB0_21:
	cmpq	$0, 24(%rbx)
	je	LBB0_23
## %bb.22:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	xorl	%eax, %eax
	callq	_ReleaseCapture
	movq	_NM_RELEASEDCAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_HEADER_SendSimpleNotify
LBB0_23:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_HEADER_ChangeItemOrder
	movq	(%r15), %rdx
	movq	%rdx, 80(%rbx)
	movl	32(%rbx), %edi
	xorl	%esi, %esi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_HDN_ENDDRAG,4,2                ## @HDN_ENDDRAG
	.comm	_HDI_ORDER,4,2                  ## @HDI_ORDER
	.comm	_HDS_DRAGDROP,4,2               ## @HDS_DRAGDROP
	.comm	_HDN_ITEMCLICKW,4,2             ## @HDN_ITEMCLICKW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Released item %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"End tracking item %d.\n"

	.comm	_HDN_ENDTRACKW,4,2              ## @HDN_ENDTRACKW
	.comm	_HDI_WIDTH,4,2                  ## @HDI_WIDTH
	.comm	_HDS_FULLDRAG,4,2               ## @HDS_FULLDRAG
	.comm	_HDN_ITEMCHANGINGW,4,2          ## @HDN_ITEMCHANGINGW
	.comm	_HDN_ITEMCHANGEDW,4,2           ## @HDN_ITEMCHANGEDW
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_NM_RELEASEDCAPTURE,4,2         ## @NM_RELEASEDCAPTURE
	.no_dead_strip	_HEADER_LButtonUp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HEADER_LButtonUp
_HEADER_LButtonUp:                      ; @HEADER_LButtonUp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	stp	w1, w2, [sp, #8]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	bl	_HEADER_InternalHitTest
	ldr	x8, [x19, #64]
Lloh0:
	adrp	x22, _FALSE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x22]
	ldr	x20, [x19, #40]
	ldr	x21, [x19]
	mov	w9, #24
	madd	x9, x21, x9, x20
	str	x8, [x9, #16]
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_11
; %bb.2:
	ldr	x0, [x22]
	bl	_ImageList_DragShowNolock
	bl	_ImageList_EndDrag
	ldr	w1, [x19, #8]
	cmn	w1, #1
	b.eq	LBB0_16
; %bb.3:
	ldr	w8, [x19, #12]
	cmp	w1, w8
	b.ne	LBB0_14
; %bb.4:
	sub	w20, w1, #1
	cmn	w20, #1
	b.ne	LBB0_15
	b	LBB0_16
LBB0_5:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_19
; %bb.6:
	ldr	w8, [sp, #8]
	ldr	x9, [x19, #40]
	ldr	x1, [x19]
	mov	w10, #24
	madd	x9, x1, x10, x9
	ldr	w9, [x9, #8]
	ldr	w10, [x19, #20]
	sub	w8, w8, w9
	add	w8, w8, w10
	cmp	w8, #0
	csel	w20, w8, wzr, gt
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	x8, [x22]
Lloh4:
	adrp	x9, _HDN_ENDTRACKW@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HDN_ENDTRACKW@GOTPAGEOFF]
	str	x8, [x19, #56]
Lloh6:
	ldr	w1, [x9]
	ldr	x2, [x19]
Lloh7:
	adrp	x23, _HDI_WIDTH@GOTPAGE
Lloh8:
	ldr	x23, [x23, _HDI_WIDTH@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x4, x20
	bl	_HEADER_SendNotifyWithIntFieldT
	ldr	w8, [x19, #16]
Lloh9:
	adrp	x9, _HDS_FULLDRAG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HDS_FULLDRAG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x19, #32]
	bl	_GetDC
	mov	x21, x0
	ldr	w2, [x19, #48]
	mov	x0, x19
	mov	x1, x21
	bl	_HEADER_DrawTrackLine
	ldr	w0, [x19, #32]
	mov	x1, x21
	bl	_ReleaseDC
LBB0_8:
Lloh12:
	adrp	x8, _HDN_ITEMCHANGINGW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HDN_ITEMCHANGINGW@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [x19]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x4, x20
	bl	_HEADER_SendNotifyWithIntFieldT
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #40]
	ldr	x2, [x19]
	mov	w9, #24
	madd	x8, x2, x9, x8
	str	w20, [x8, #4]
Lloh15:
	adrp	x8, _HDN_ITEMCHANGEDW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDN_ITEMCHANGEDW@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x4, x20
	bl	_HEADER_SendNotifyWithIntFieldT
LBB0_10:
	mov	x0, x19
	bl	_HEADER_SetItemBounds
	ldr	w0, [x19, #32]
Lloh18:
	adrp	x8, _TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
	mov	x1, #0
	bl	_InvalidateRect
	b	LBB0_19
LBB0_11:
	ldr	w0, [x19, #32]
	bl	_GetDC
	mov	x20, x0
	ldr	x1, [x19]
	mov	x0, x19
	bl	_HEADER_RefreshItem
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_ReleaseDC
	ldr	w8, [x19, #16]
Lloh21:
	adrp	x9, _HDS_DRAGDROP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HDS_DRAGDROP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	add	x1, sp, #8
	mov	x0, x19
	bl	_HEADER_IsDragDistance
	cbnz	w0, LBB0_18
LBB0_13:
Lloh24:
	adrp	x8, _HDN_ITEMCLICKW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDN_ITEMCLICKW@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	x0, x19
	mov	x3, #0
	bl	_HEADER_SendNotifyWithHDItemT
	b	LBB0_18
LBB0_14:
	mov	x0, x19
	bl	_HEADER_IndexToOrder
	mov	w8, #24
	mul	x8, x21, x8
	ldr	w8, [x20, x8]
	cmp	w0, w8
	cset	w8, gt
	sub	w20, w0, w8
	cmn	w20, #1
	b.eq	LBB0_16
LBB0_15:
Lloh27:
	adrp	x8, _HDN_ENDDRAG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HDN_ENDDRAG@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	x2, [x19]
Lloh30:
	adrp	x8, _HDI_ORDER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HDI_ORDER@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, x20
	bl	_HEADER_SendNotifyWithIntFieldT
	cbz	w0, LBB0_22
LBB0_16:
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #40]
	ldr	x9, [x19]
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x1, x8, #8
	ldr	x2, [x22]
LBB0_17:
	bl	_InvalidateRect
	ldr	x1, [x22]
	str	x1, [x19, #72]
	mov	x0, x19
	mov	w2, #-1
	bl	_HEADER_SetHotDivider
LBB0_18:
	ldr	x1, [x19]
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	x8, [x22]
	str	x8, [x19, #64]
LBB0_19:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_21
; %bb.20:
	ldr	x8, [x22]
	str	x8, [x19, #24]
	bl	_ReleaseCapture
Lloh35:
	adrp	x8, _NM_RELEASEDCAPTURE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NM_RELEASEDCAPTURE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_HEADER_SendSimpleNotify
LBB0_21:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_22:
	ldr	x1, [x19]
	mov	x0, x19
	mov	x2, x20
	bl	_HEADER_ChangeItemOrder
	ldr	x2, [x22]
	str	x2, [x19, #80]
	ldr	w0, [x19, #32]
	mov	x1, #0
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_HDN_ENDDRAG,4,2                ; @HDN_ENDDRAG
	.comm	_HDI_ORDER,4,2                  ; @HDI_ORDER
	.comm	_HDS_DRAGDROP,4,2               ; @HDS_DRAGDROP
	.comm	_HDN_ITEMCLICKW,4,2             ; @HDN_ITEMCLICKW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Released item %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"End tracking item %d.\n"

	.comm	_HDN_ENDTRACKW,4,2              ; @HDN_ENDTRACKW
	.comm	_HDI_WIDTH,4,2                  ; @HDI_WIDTH
	.comm	_HDS_FULLDRAG,4,2               ; @HDS_FULLDRAG
	.comm	_HDN_ITEMCHANGINGW,4,2          ; @HDN_ITEMCHANGINGW
	.comm	_HDN_ITEMCHANGEDW,4,2           ; @HDN_ITEMCHANGEDW
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_NM_RELEASEDCAPTURE,4,2         ; @NM_RELEASEDCAPTURE
	.no_dead_strip	_HEADER_LButtonUp
.subsections_via_symbols
