	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function LISTBOX_Create
LCPI0_0:
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	150                             ## 0x96
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_LISTBOX_Create:                        ## @LISTBOX_Create
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$168, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-88(%rbp), %rsi
	movl	%r15d, %edi
	callq	_GetClientRect
	movl	%r15d, 52(%rbx)
	movl	%r15d, %edi
	callq	_GetParent
	movl	%eax, 48(%rbx)
	movl	52(%rbx), %edi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movl	%eax, (%rbx)
	movq	-64(%rbp), %rcx
	subq	-72(%rbp), %rcx
	movq	%rcx, 40(%rbx)
	movq	-80(%rbp), %rcx
	subq	-88(%rbp), %rcx
	movq	%rcx, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 144(%rbx)
	movq	$0, 160(%rbx)
	movl	$-1, 4(%rbx)
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [4294967295,1,1,150]
	movups	%xmm1, 8(%rbx)
	xorl	%ecx, %ecx
	testq	%r14, %r14
	sete	%cl
	movups	%xmm0, 128(%rbx)
	movups	%xmm0, 96(%rbx)
	movups	%xmm0, 112(%rbx)
	movl	%ecx, 24(%rbx)
	movq	_LBS_NOSEL@GOTPCREL(%rip), %rdx
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%eax, (%rdx)
	je	LBB0_4
## %bb.3:
	movl	%ecx, 24(%rbx)
LBB0_4:
	movq	%rcx, 88(%rbx)
	movq	%rcx, 80(%rbx)
	movq	$0, 72(%rbx)
	xorl	%eax, %eax
	callq	_GetUserDefaultLCID
	movl	%eax, 64(%rbx)
	movq	%r14, 56(%rbx)
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	48(%rbx), %edx
	movl	52(%rbx), %esi
	movslq	8(%r14), %rcx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	8(%r14), %eax
	movl	%eax, 48(%rbx)
LBB0_6:
	movl	52(%rbx), %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_SetWindowLongPtrW
	movl	(%rbx), %eax
	movq	_LBS_EXTENDEDSEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_LBS_MULTIPLESEL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_8:
	movq	_LBS_MULTICOLUMN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_LBS_OWNERDRAWVARIABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
LBB0_10:
	movq	_LBS_OWNERDRAWVARIABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_LBS_NOINTEGRALHEIGHT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_12:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_LISTBOX_SetFont
	movl	%eax, 12(%rbx)
	movq	_LBS_OWNERDRAWFIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_18
## %bb.13:
	movq	56(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	_CBS_DROPDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.15:
	movl	4(%r14), %eax
	jmp	LBB0_17
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movl	52(%rbx), %edi
	movq	_GWLP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongPtrW
	movq	_ODT_LISTBOX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -28(%rbp)
	movl	%eax, -32(%rbp)
	movl	$-1, -56(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -48(%rbp)
	movl	12(%rbx), %ecx
	movl	%ecx, -52(%rbp)
	movl	48(%rbx), %edi
	movq	_WM_MEASUREITEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-56(%rbp), %rcx
	movl	%eax, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
	movl	-52(%rbp), %ecx
	testl	%ecx, %ecx
	movl	$1, %eax
	cmovnel	%ecx, %eax
LBB0_17:
	movl	%eax, 12(%rbx)
LBB0_18:
	movl	52(%rbx), %edi
	movq	_WC_LISTBOXW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OpenThemeData
	movl	48(%rbx), %esi
	movl	(%rbx), %edx
	movq	40(%rbx), %rcx
	movq	32(%rbx), %r8
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_19:
	movq	(%rax), %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_LBS_NOSEL,4,2                  ## @LBS_NOSEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%p]: resetting owner %p -> %p\n"

	.comm	_LBS_EXTENDEDSEL,4,2            ## @LBS_EXTENDEDSEL
	.comm	_LBS_MULTIPLESEL,4,2            ## @LBS_MULTIPLESEL
	.comm	_LBS_MULTICOLUMN,4,2            ## @LBS_MULTICOLUMN
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ## @LBS_OWNERDRAWVARIABLE
	.comm	_LBS_NOINTEGRALHEIGHT,4,2       ## @LBS_NOINTEGRALHEIGHT
	.comm	_LBS_OWNERDRAWFIXED,4,2         ## @LBS_OWNERDRAWFIXED
	.comm	_CBS_DROPDOWN,4,2               ## @CBS_DROPDOWN
	.comm	_GWLP_ID,4,2                    ## @GWLP_ID
	.comm	_ODT_LISTBOX,4,2                ## @ODT_LISTBOX
	.comm	_WM_MEASUREITEM,4,2             ## @WM_MEASUREITEM
	.comm	_WC_LISTBOXW,4,2                ## @WC_LISTBOXW
L_.str.1:                               ## @.str.1
	.asciz	"owner: %p, style: %08x, width: %d, height: %d\n"

	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_LISTBOX_Create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function LISTBOX_Create
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	150                             ; 0x96
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_LISTBOX_Create:                        ; @LISTBOX_Create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #168
	bl	_HeapAlloc
Lloh0:
	adrp	x22, _FALSE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x0
	add	x1, sp, #16
	mov	x0, x21
	bl	_GetClientRect
	str	w21, [x19, #52]
	mov	x0, x21
	bl	_GetParent
	str	w0, [x19, #48]
	ldr	w0, [x19, #52]
Lloh2:
	adrp	x8, _GWL_STYLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GWL_STYLE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_GetWindowLongW
	str	w0, [x19]
	ldp	x9, x8, [sp, #32]
	sub	x8, x8, x9
	ldp	x10, x9, [sp, #16]
	sub	x9, x9, x10
	stp	x9, x8, [x19, #32]
	stp	xzr, xzr, [x19, #152]
	stp	xzr, xzr, [x19, #136]
	mov	w8, #-1
	str	w8, [x19, #4]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #8]
	cmp	x20, #0
	cset	w8, eq
	str	xzr, [x19, #128]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #96]
	str	w8, [x19, #24]
Lloh7:
	adrp	x8, _LBS_NOSEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LBS_NOSEL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x8]
	ldr	x8, [x22]
	tst	w9, w0
	b.eq	LBB0_3
; %bb.2:
	str	w8, [x19, #24]
LBB0_3:
	stp	x8, x8, [x19, #80]
	str	xzr, [x19, #72]
	bl	_GetUserDefaultLCID
	str	w0, [x19, #64]
	str	x20, [x19, #56]
	cbz	x20, LBB0_5
; %bb.4:
	ldp	w2, w1, [x19, #48]
	ldrsw	x3, [x20, #8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w8, [x20, #8]
	str	w8, [x19, #48]
LBB0_5:
	ldr	w0, [x19, #52]
	mov	w1, #0
	mov	x2, x19
	bl	_SetWindowLongPtrW
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _LBS_EXTENDEDSEL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LBS_EXTENDEDSEL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh15:
	adrp	x9, _LBS_MULTIPLESEL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LBS_MULTIPLESEL@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
Lloh18:
	adrp	x9, _LBS_MULTICOLUMN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LBS_MULTICOLUMN@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x9]
Lloh21:
	adrp	x9, _LBS_OWNERDRAWVARIABLE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LBS_OWNERDRAWVARIABLE@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w10, [x9]
	bic	w8, w8, w10
	str	w8, [x19]
LBB0_9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh23:
	adrp	x9, _LBS_NOINTEGRALHEIGHT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _LBS_NOINTEGRALHEIGHT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	bl	_LISTBOX_SetFont
	str	w0, [x19, #12]
	ldr	w8, [x19]
Lloh26:
	adrp	x9, _LBS_OWNERDRAWFIXED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LBS_OWNERDRAWFIXED@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.12:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _CBS_DROPDOWN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CBS_DROPDOWN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	w8, [x20, #4]
	b	LBB0_16
LBB0_15:
	ldr	w0, [x19, #52]
Lloh32:
	adrp	x8, _GWLP_ID@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GWLP_ID@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_GetWindowLongPtrW
	mov	x2, x0
Lloh35:
	adrp	x8, _ODT_LISTBOX@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ODT_LISTBOX@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #72]
	mov	w8, #-1
	stp	xzr, xzr, [sp, #56]
	ldr	w9, [x19, #12]
	stp	w8, w9, [sp, #48]
	ldr	w0, [x19, #48]
Lloh38:
	adrp	x8, _WM_MEASUREITEM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _WM_MEASUREITEM@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	add	x3, sp, #48
	bl	_SendMessageW
	ldr	w8, [sp, #52]
	cmp	w8, #0
	csinc	w8, w8, wzr, ne
LBB0_16:
	str	w8, [x19, #12]
LBB0_17:
	ldr	w0, [x19, #52]
Lloh41:
	adrp	x8, _WC_LISTBOXW@GOTPAGE
Lloh42:
	ldr	x8, [x8, _WC_LISTBOXW@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	bl	_OpenThemeData
	ldr	w1, [x19, #48]
	ldr	w2, [x19]
	ldp	x8, x3, [x19, #32]
	str	x8, [sp]
Lloh44:
	adrp	x0, l_.str.1@PAGE
Lloh45:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh46:
	adrp	x22, _TRUE@GOTPAGE
Lloh47:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
LBB0_18:
	ldr	x0, [x22]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_LBS_NOSEL,4,2                  ; @LBS_NOSEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%p]: resetting owner %p -> %p\n"

	.comm	_LBS_EXTENDEDSEL,4,2            ; @LBS_EXTENDEDSEL
	.comm	_LBS_MULTIPLESEL,4,2            ; @LBS_MULTIPLESEL
	.comm	_LBS_MULTICOLUMN,4,2            ; @LBS_MULTICOLUMN
	.comm	_LBS_OWNERDRAWVARIABLE,4,2      ; @LBS_OWNERDRAWVARIABLE
	.comm	_LBS_NOINTEGRALHEIGHT,4,2       ; @LBS_NOINTEGRALHEIGHT
	.comm	_LBS_OWNERDRAWFIXED,4,2         ; @LBS_OWNERDRAWFIXED
	.comm	_CBS_DROPDOWN,4,2               ; @CBS_DROPDOWN
	.comm	_GWLP_ID,4,2                    ; @GWLP_ID
	.comm	_ODT_LISTBOX,4,2                ; @ODT_LISTBOX
	.comm	_WM_MEASUREITEM,4,2             ; @WM_MEASUREITEM
	.comm	_WC_LISTBOXW,4,2                ; @WC_LISTBOXW
l_.str.1:                               ; @.str.1
	.asciz	"owner: %p, style: %08x, width: %d, height: %d\n"

	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_LISTBOX_Create
.subsections_via_symbols
