	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTVIEW_CreateHeader
_LISTVIEW_CreateHeader:                 ## @LISTVIEW_CreateHeader
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpq	$0, 16(%rdi)
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	movq	_WS_CHILD@GOTPCREL(%rip), %rax
	movq	_HDS_HORZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_HDS_FULLDRAG@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_HDS_DRAGDROP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	32(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_LVS_NOSORTHEADER@GOTPCREL(%rip), %rdx
	movl	(%r14), %eax
	xorl	%ecx, %ecx
	movl	(%rdx), %edx
	andl	%eax, %edx
	jne	LBB0_3
## %bb.2:
	movq	_HDS_BUTTONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_3:
	orl	%ecx, %ebx
	movl	32(%r14), %edi
	movq	_LVS_NOCOLUMNHEADER@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movq	_HDS_HIDDEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %ebx
	movq	_GWLP_HINSTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongPtrW
	movq	_WC_HEADERW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	32(%r14), %r10d
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	pushq	$0
	pushq	%r10
	pushq	$0
	callq	_CreateWindowW
	addq	$48, %rsp
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_HDM_SETUNICODEFORMAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TRUE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	16(%r14), %rdi
	movq	_WM_SETFONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r14), %edx
	movl	(%r15), %ecx
	callq	_SendMessageW
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	16(%r14), %rdi
	movq	_HDM_SETIMAGELIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
LBB0_9:
	movq	%r14, %rdi
	callq	_LISTVIEW_UpdateSize
	jmp	LBB0_10
LBB0_6:
	movl	$-1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WS_CHILD,4,2                   ## @WS_CHILD
	.comm	_HDS_HORZ,4,2                   ## @HDS_HORZ
	.comm	_HDS_FULLDRAG,4,2               ## @HDS_FULLDRAG
	.comm	_HDS_DRAGDROP,4,2               ## @HDS_DRAGDROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Creating header for list %p\n"

	.comm	_LVS_NOSORTHEADER,4,2           ## @LVS_NOSORTHEADER
	.comm	_HDS_BUTTONS,4,2                ## @HDS_BUTTONS
	.comm	_LVS_NOCOLUMNHEADER,4,2         ## @LVS_NOCOLUMNHEADER
	.comm	_HDS_HIDDEN,4,2                 ## @HDS_HIDDEN
	.comm	_GWLP_HINSTANCE,4,2             ## @GWLP_HINSTANCE
	.comm	_WC_HEADERW,4,2                 ## @WC_HEADERW
	.comm	_HDM_SETUNICODEFORMAT,4,2       ## @HDM_SETUNICODEFORMAT
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_WM_SETFONT,4,2                 ## @WM_SETFONT
	.comm	_HDM_SETIMAGELIST,4,2           ## @HDM_SETIMAGELIST
	.no_dead_strip	_LISTVIEW_CreateHeader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTVIEW_CreateHeader
_LISTVIEW_CreateHeader:                 ; @LISTVIEW_CreateHeader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _WS_CHILD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WS_CHILD@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HDS_HORZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HDS_HORZ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _HDS_FULLDRAG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HDS_FULLDRAG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _HDS_DRAGDROP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HDS_DRAGDROP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	w1, [x0, #32]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh14:
	adrp	x8, _LVS_NOSORTHEADER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LVS_NOSORTHEADER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _HDS_BUTTONS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HDS_BUTTONS@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh19:
	ldr	w9, [x9]
	tst	w10, w8
	csel	w8, w9, wzr, eq
Lloh20:
	adrp	x9, _LVS_NOCOLUMNHEADER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LVS_NOCOLUMNHEADER@GOTPAGEOFF]
	orr	w8, w20, w8
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x11, _HDS_HIDDEN@GOTPAGE
Lloh24:
	ldr	x11, [x11, _HDS_HIDDEN@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	tst	w9, w10
	csel	w9, wzr, w11, eq
	orr	w20, w8, w9
	ldr	w0, [x19, #32]
Lloh26:
	adrp	x8, _GWLP_HINSTANCE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GWLP_HINSTANCE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_GetWindowLongPtrW
Lloh29:
	adrp	x8, _WC_HEADERW@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WC_HEADERW@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w7, [x19, #32]
	stp	x0, xzr, [sp, #8]
	str	xzr, [sp]
	mov	x0, x8
	mov	x1, #0
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_CreateWindowW
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.2:
Lloh32:
	adrp	x8, _HDM_SETUNICODEFORMAT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HDM_SETUNICODEFORMAT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x20, _TRUE@GOTPAGE
Lloh36:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w3, #0
	bl	_SendMessageW
	ldr	x0, [x19, #16]
Lloh37:
	adrp	x8, _WM_SETFONT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _WM_SETFONT@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	ldr	w3, [x20]
	bl	_SendMessageW
	ldr	x3, [x19, #8]
	cbz	x3, LBB0_4
; %bb.3:
	ldr	x0, [x19, #16]
Lloh40:
	adrp	x8, _HDM_SETIMAGELIST@GOTPAGE
Lloh41:
	ldr	x8, [x8, _HDM_SETIMAGELIST@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	w2, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_SendMessageW
LBB0_4:
	mov	x0, x19
	bl	_LISTVIEW_UpdateSize
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	w0, #-1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_WS_CHILD,4,2                   ; @WS_CHILD
	.comm	_HDS_HORZ,4,2                   ; @HDS_HORZ
	.comm	_HDS_FULLDRAG,4,2               ; @HDS_FULLDRAG
	.comm	_HDS_DRAGDROP,4,2               ; @HDS_DRAGDROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Creating header for list %p\n"

	.comm	_LVS_NOSORTHEADER,4,2           ; @LVS_NOSORTHEADER
	.comm	_HDS_BUTTONS,4,2                ; @HDS_BUTTONS
	.comm	_LVS_NOCOLUMNHEADER,4,2         ; @LVS_NOCOLUMNHEADER
	.comm	_HDS_HIDDEN,4,2                 ; @HDS_HIDDEN
	.comm	_GWLP_HINSTANCE,4,2             ; @GWLP_HINSTANCE
	.comm	_WC_HEADERW,4,2                 ; @WC_HEADERW
	.comm	_HDM_SETUNICODEFORMAT,4,2       ; @HDM_SETUNICODEFORMAT
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_WM_SETFONT,4,2                 ; @WM_SETFONT
	.comm	_HDM_SETIMAGELIST,4,2           ; @HDM_SETIMAGELIST
	.no_dead_strip	_LISTVIEW_CreateHeader
.subsections_via_symbols
