	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HEADER_CreateDragImage
_HEADER_CreateDragImage:                ## @HEADER_CreateDragImage
	.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
	cmpq	%rsi, (%rdi)
	jbe	LBB0_10
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$0, 32(%rdi)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_HEADER_SetItemBounds
LBB0_3:
	movq	24(%rbx), %r12
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	shlq	$4, %r14
	movl	(%r12,%r14), %r13d
	movl	4(%r12,%r14), %eax
	subl	12(%r12,%r14), %r13d
	subl	8(%r12,%r14), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_GetDC
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_CreateCompatibleDC
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_CreateCompatibleBitmap
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movl	%r15d, %esi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	callq	_ReleaseDC
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_SelectObject
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	subl	12(%r12,%r14), %esi
	xorl	%edx, %edx
	subl	8(%r12,%r14), %edx
	movl	%ebx, %r12d
	movl	%ebx, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_SetViewportOrgEx
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.4:
	movq	_SYSTEM_FONT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetStockObject
	movq	%rax, %rsi
LBB0_5:
	movl	%r12d, %edi
	callq	_SelectObject
	movl	8(%r15), %edi
	leaq	-60(%rbp), %r14
	movq	%r14, %rsi
	callq	_GetClientRect
	movq	_CDDS_PREPAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_HEADER_SendCtrlCustomDraw
	movl	%eax, %ebx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %r8d
	callq	_HEADER_DrawItem
	movq	_CDRF_NOTIFYPOSTPAINT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_CDDS_POSTPAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_HEADER_SendCtrlCustomDraw
LBB0_7:
	movl	%r12d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_SelectObject
	movq	%rax, %r14
	movl	%r12d, %edi
	callq	_DeleteDC
	testq	%r14, %r14
	je	LBB0_10
## %bb.8:
	movq	_ILC_COLORDDB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_ImageList_Create
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ImageList_Add
	movq	%r14, %rdi
	callq	_DeleteObject
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSTEM_FONT,4,2                ## @SYSTEM_FONT
	.comm	_CDDS_PREPAINT,4,2              ## @CDDS_PREPAINT
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CDRF_NOTIFYPOSTPAINT,4,2       ## @CDRF_NOTIFYPOSTPAINT
	.comm	_CDDS_POSTPAINT,4,2             ## @CDDS_POSTPAINT
	.comm	_ILC_COLORDDB,4,2               ## @ILC_COLORDDB
	.no_dead_strip	_HEADER_CreateDragImage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HEADER_CreateDragImage
_HEADER_CreateDragImage:                ; @HEADER_CreateDragImage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
	cmp	x8, x1
	b.ls	LBB0_9
; %bb.1:
	mov	x22, x1
	mov	x21, x0
	ldr	w8, [x0, #32]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_HEADER_SetItemBounds
LBB0_3:
	ldr	x8, [x21, #24]
	add	x26, x8, x22, lsl #4
	ldp	w8, w9, [x26]
	ldp	w11, w10, [x26, #8]
	sub	w20, w8, w10
	sub	w19, w9, w11
	mov	x0, #0
	bl	_GetDC
	mov	x24, x0
	bl	_CreateCompatibleDC
	mov	x23, x0
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	bl	_CreateCompatibleBitmap
	mov	x25, x0
	mov	x0, #0
	mov	x1, x24
	bl	_ReleaseDC
	mov	x0, x23
	mov	x1, x25
	bl	_SelectObject
	mov	x24, x0
	ldp	w9, w8, [x26, #8]
	neg	w1, w8
	neg	w2, w9
	mov	x0, x23
	mov	x3, #0
	bl	_SetViewportOrgEx
	ldr	x1, [x21, #16]
	cbnz	x1, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _SYSTEM_FONT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYSTEM_FONT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_GetStockObject
	mov	x1, x0
LBB0_5:
	mov	x0, x23
	bl	_SelectObject
	ldr	w0, [x21, #8]
	add	x1, sp, #12
	bl	_GetClientRect
Lloh3:
	adrp	x8, _CDDS_PREPAINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CDDS_PREPAINT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x2, x23
	bl	_HEADER_SendCtrlCustomDraw
	mov	x25, x0
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x4, x25
	bl	_HEADER_DrawItem
Lloh9:
	adrp	x8, _CDRF_NOTIFYPOSTPAINT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CDRF_NOTIFYPOSTPAINT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _CDDS_POSTPAINT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CDDS_POSTPAINT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x2, x23
	bl	_HEADER_SendCtrlCustomDraw
LBB0_7:
	mov	x0, x23
	mov	x1, x24
	bl	_SelectObject
	mov	x21, x0
	mov	x0, x23
	bl	_DeleteDC
	cbz	x21, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _ILC_COLORDDB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ILC_COLORDDB@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	mov	w4, #1
	bl	_ImageList_Create
	mov	x19, x0
	mov	x1, x21
	mov	x2, #0
	bl	_ImageList_Add
	mov	x0, x21
	bl	_DeleteObject
	b	LBB0_10
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSTEM_FONT,4,2                ; @SYSTEM_FONT
	.comm	_CDDS_PREPAINT,4,2              ; @CDDS_PREPAINT
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CDRF_NOTIFYPOSTPAINT,4,2       ; @CDRF_NOTIFYPOSTPAINT
	.comm	_CDDS_POSTPAINT,4,2             ; @CDDS_POSTPAINT
	.comm	_ILC_COLORDDB,4,2               ; @ILC_COLORDDB
	.no_dead_strip	_HEADER_CreateDragImage
.subsections_via_symbols
