	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_PaintItem
_LISTBOX_PaintItem:                     ## @LISTBOX_PaintItem
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r13
	cmpq	%rcx, (%rdi)
	jbe	LBB0_5
## %bb.1:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	%r12d, %r14d
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movq	56(%r13), %r15
	leaq	(%rbx,%rbx,2), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	leaq	(%r15,%rax,8), %r13
	movq	%rdi, %r12
	callq	_IS_OWNERDRAW
	testq	%rax, %rax
	je	LBB0_23
## %bb.2:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	movq	%r12, %r13
	movl	%r14d, %r12d
	movq	-104(%rbp), %r14                ## 8-byte Reload
	je	LBB0_6
## %bb.3:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	48(%r13), %edi
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	-192(%rbp), %r14
	movq	%r14, %rsi
	callq	_GetClientRect
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	callq	_set_control_clipping
	movq	%rax, %r15
	movq	_ODT_LISTBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movl	48(%r13), %edi
	movq	_GWLP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongPtrW
	movl	%eax, %ecx
	movl	%eax, -168(%rbp)
	movl	48(%r13), %edi
	movl	%edi, -132(%rbp)
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, -136(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -140(%rbp)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -176(%rbp)
	movl	$0, -164(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.9:
	movq	_ODS_SELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, -164(%rbp)
	jmp	LBB0_10
LBB0_5:
	movq	%r13, %rdi
	callq	_IS_OWNERDRAW
	testq	%rax, %rax
	je	LBB0_20
LBB0_6:
	movq	_ODA_FOCUS@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_8
## %bb.7:
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_DrawFocusRect
	jmp	LBB0_19
LBB0_8:
	movq	(%r13), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_ERR
	jmp	LBB0_19
LBB0_23:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_ODA_FOCUS@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, (%rax)
	movq	%r12, %r13
	movl	%r14d, %r12d
	movq	-104(%rbp), %r14                ## 8-byte Reload
	je	LBB0_21
## %bb.24:
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_30
## %bb.25:
	movq	%rcx, %r15
	cmpq	$0, (%rcx)
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_26
## %bb.27:
	movq	_COLOR_HIGHLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSysColor
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_SetBkColor
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movq	_COLOR_HIGHLIGHTTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSysColor
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_SetTextColor
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	jmp	LBB0_28
LBB0_20:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movq	_ODA_FOCUS@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, (%rax)
	jne	LBB0_30
LBB0_21:
	movl	%r12d, %edi
	movq	%r14, %rsi
LBB0_22:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DrawFocusRect                  ## TAILCALL
LBB0_30:
	movl	%r12d, %ebx
	movq	%r14, %r12
	movl	48(%r13), %r14d
	movq	%r12, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rcx
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%r12), %rsi
	incq	%rsi
	movl	(%r12), %edx
	movq	_ETO_OPAQUE@GOTPCREL(%rip), %rax
	movq	_ETO_CLIPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ebx, %edi
	movq	%r12, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_ExtTextOutW
	addq	$16, %rsp
	jmp	LBB0_34
LBB0_4:
	xorl	%r12d, %r12d
LBB0_10:
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, %rbx
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	movl	%ecx, -120(%rbp)                ## 4-byte Spill
	jne	LBB0_15
## %bb.11:
	cmpq	%rax, 8(%r13)
	jne	LBB0_15
## %bb.12:
	cmpq	$0, 32(%r13)
	je	LBB0_15
## %bb.13:
	cmpq	$0, 24(%r13)
	je	LBB0_15
## %bb.14:
	movq	_ODS_FOCUS@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	orl	(%rax), %ecx
	movl	%ecx, %r12d
	movl	%ecx, -164(%rbp)
LBB0_15:
	callq	_IsWindowEnabled
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_ODS_DISABLED@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	%r12d, -164(%rbp)
LBB0_17:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	16(%rcx,%rdx,8), %eax
	movl	%eax, -144(%rbp)
	movups	(%r14), %xmm0
	movups	%xmm0, -160(%rbp)
	movl	48(%r13), %r15d
	movq	8(%rcx,%rdx,8), %rdi
	callq	_debugstr_w
	movq	%r14, %rdi
	movq	%rax, %r14
	callq	_wine_dbgstr_rect
	movl	%eax, %r10d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	xorl	%eax, %eax
	pushq	%r10
	callq	_TRACE
	addq	$16, %rsp
	movl	52(%r13), %edi
	movq	_WM_DRAWITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-176(%rbp), %rcx
	movl	-120(%rbp), %edx                ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_SelectClipRgn
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_DeleteObject
	jmp	LBB0_19
LBB0_26:
	movl	$0, -108(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -112(%rbp)                  ## 4-byte Folded Spill
LBB0_28:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	48(%r13), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rdx
	addq	$8, %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	8(%rax,%rcx,8), %rdi
	callq	_debugstr_w
	movq	%rax, %r14
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str.2(%rip), %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_TRACE
	movq	_LBS_USETABSTOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r12), %r14
	movq	_ETO_OPAQUE@GOTPCREL(%rip), %rcx
	movq	_ETO_CLIPPED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	incq	%r14
	movl	(%r12), %edx
	testl	%eax, 16(%r13)
	je	LBB0_29
## %bb.31:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, %r15d
	movq	%r14, %rsi
	movl	%ebx, %ecx
	movq	%r12, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_ExtTextOutW
	addq	$16, %rsp
	movq	8(%r12), %r14
	incq	%r14
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlenW
	movl	40(%r13), %r10d
	movl	44(%r13), %r9d
	movl	%r15d, %edi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	%eax, %r8d
	pushq	$0
	pushq	%r10
	callq	_TabbedTextOutW
	jmp	LBB0_32
LBB0_29:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -96(%rbp)                 ## 4-byte Spill
	callq	_strlenW
                                        ## kill: def $eax killed $eax def $rax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movq	%r12, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	$0
	pushq	%rax
	callq	_ExtTextOutW
LBB0_32:
	addq	$16, %rsp
	cmpq	$0, (%r15)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_34
## %bb.33:
	movl	%ebx, %edi
	movl	-112(%rbp), %esi                ## 4-byte Reload
	callq	_SetBkColor
	movl	%ebx, %edi
	movl	-108(%rbp), %esi                ## 4-byte Reload
	callq	_SetTextColor
LBB0_34:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_19
## %bb.35:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 8(%r13)
	jne	LBB0_19
## %bb.36:
	cmpq	$0, 32(%r13)
	je	LBB0_19
## %bb.37:
	cmpq	$0, 24(%r13)
	je	LBB0_19
## %bb.38:
	movl	%ebx, %edi
	movq	%r12, %rsi
	jmp	LBB0_22
LBB0_19:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ODA_FOCUS,4,2                  ## @ODA_FOCUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"called with an out of bounds index %d(%d) in owner draw, Not good.\n"

	.comm	_ODT_LISTBOX,4,2                ## @ODT_LISTBOX
	.comm	_GWLP_ID,4,2                    ## @GWLP_ID
	.comm	_ODS_SELECTED,4,2               ## @ODS_SELECTED
	.comm	_ODS_FOCUS,4,2                  ## @ODS_FOCUS
	.comm	_ODS_DISABLED,4,2               ## @ODS_DISABLED
L_.str.1:                               ## @.str.1
	.asciz	"[%p]: drawitem %d (%s) action=%02x state=%02x rect=%s\n"

	.comm	_WM_DRAWITEM,4,2                ## @WM_DRAWITEM
	.comm	_COLOR_HIGHLIGHT,4,2            ## @COLOR_HIGHLIGHT
	.comm	_COLOR_HIGHLIGHTTEXT,4,2        ## @COLOR_HIGHLIGHTTEXT
L_.str.2:                               ## @.str.2
	.asciz	"[%p]: painting %d (%s) action=%02x rect=%s\n"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_ETO_OPAQUE,4,2                 ## @ETO_OPAQUE
	.comm	_ETO_CLIPPED,4,2                ## @ETO_CLIPPED
	.comm	_LBS_USETABSTOPS,4,2            ## @LBS_USETABSTOPS
	.no_dead_strip	_LISTBOX_PaintItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_PaintItem
_LISTBOX_PaintItem:                     ; @LISTBOX_PaintItem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x5
	mov	x24, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, x3
	b.ls	LBB0_5
; %bb.1:
	ldr	x28, [x20, #56]
	mov	w8, #24
	madd	x27, x22, x8, x28
	mov	x0, x20
	bl	_IS_OWNERDRAW
	cbz	x0, LBB0_9
; %bb.2:
	cbz	x28, LBB0_6
; %bb.3:
	ldr	w0, [x20, #48]
	add	x1, sp, #24
	bl	_GetClientRect
	add	x1, sp, #24
	mov	x0, x19
	bl	_set_control_clipping
	mov	x25, x0
Lloh0:
	adrp	x8, _ODT_LISTBOX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ODT_LISTBOX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	ldr	w0, [x20, #48]
Lloh3:
	adrp	x8, _GWLP_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GWLP_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetWindowLongPtrW
	mov	x26, x0
	ldr	w0, [x20, #48]
	stp	w24, w0, [sp, #80]
	str	w19, [sp, #76]
	str	x22, [sp, #40]
	stp	w26, wzr, [sp, #48]
	ldr	x8, [x27]
	cbz	x8, LBB0_16
; %bb.4:
Lloh6:
	adrp	x8, _ODS_SELECTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ODS_SELECTED@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
	str	w27, [sp, #52]
	cbnz	w23, LBB0_21
	b	LBB0_17
LBB0_5:
	mov	x0, x20
	bl	_IS_OWNERDRAW
	cbz	x0, LBB0_13
LBB0_6:
Lloh9:
	adrp	x8, _ODA_FOCUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ODA_FOCUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_DrawFocusRect
	b	LBB0_33
LBB0_8:
	ldr	x2, [x20]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_ERR
	b	LBB0_33
LBB0_9:
Lloh14:
	adrp	x8, _ODA_FOCUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ODA_FOCUS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w24
	b.eq	LBB0_14
; %bb.10:
	cbz	x28, LBB0_15
; %bb.11:
	ldr	x8, [x27]
	cbz	x8, LBB0_25
; %bb.12:
Lloh17:
	adrp	x8, _COLOR_HIGHLIGHT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _COLOR_HIGHLIGHT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_GetSysColor
	mov	x1, x0
	mov	x0, x19
	bl	_SetBkColor
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
Lloh20:
	adrp	x8, _COLOR_HIGHLIGHTTEXT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _COLOR_HIGHLIGHTTEXT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_GetSysColor
	mov	x1, x0
	mov	x0, x19
	bl	_SetTextColor
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	b	LBB0_26
LBB0_13:
Lloh23:
	adrp	x8, _ODA_FOCUS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ODA_FOCUS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_15
LBB0_14:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_DrawFocusRect
LBB0_15:
	ldr	w25, [x20, #48]
	mov	x0, x21
	bl	_wine_dbgstr_rect
	mov	x5, x0
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh28:
	adrp	x3, l_.str.3@PAGE
Lloh29:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x1, x25
	mov	x2, x22
	mov	x4, x24
	bl	_TRACE
	ldr	x8, [x21, #8]
	add	x1, x8, #1
Lloh30:
	adrp	x8, _ETO_OPAQUE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ETO_OPAQUE@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _ETO_CLIPPED@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ETO_CLIPPED@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	x4, x21
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_ExtTextOutW
	b	LBB0_29
LBB0_16:
	mov	w27, #0
	cbnz	w23, LBB0_21
LBB0_17:
	ldr	x8, [x20, #8]
	cmp	x8, x22
	b.ne	LBB0_21
; %bb.18:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_21
; %bb.19:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_21
; %bb.20:
Lloh36:
	adrp	x8, _ODS_FOCUS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ODS_FOCUS@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w27, w27, w8
	str	w27, [sp, #52]
LBB0_21:
	bl	_IsWindowEnabled
	cbnz	w0, LBB0_23
; %bb.22:
Lloh39:
	adrp	x8, _ODS_DISABLED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ODS_DISABLED@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w27, w27, w8
	str	w27, [sp, #52]
LBB0_23:
	mov	w8, #24
	madd	x8, x22, x8, x28
	ldr	w9, [x8, #16]
	str	w9, [sp, #72]
	ldr	q0, [x21]
	stur	q0, [sp, #56]
	ldr	w23, [x20, #48]
	ldr	x0, [x8, #8]
	bl	_debugstr_w
	mov	x28, x0
	mov	x0, x21
	bl	_wine_dbgstr_rect
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x28
	mov	x4, x24
	mov	x5, x27
	bl	_TRACE
	ldr	w0, [x20, #52]
Lloh44:
	adrp	x8, _WM_DRAWITEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _WM_DRAWITEM@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	add	x3, sp, #40
	mov	x2, x26
	bl	_SendMessageW
	mov	x0, x19
	mov	x1, x25
	bl	_SelectClipRgn
	cbz	x25, LBB0_33
; %bb.24:
	mov	x0, x25
	bl	_DeleteObject
	b	LBB0_33
LBB0_25:
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
LBB0_26:
	ldr	w25, [x20, #48]
	mov	w8, #24
	madd	x26, x22, x8, x28
	ldr	x0, [x26, #8]!
	bl	_debugstr_w
	mov	x28, x0
	mov	x0, x21
	bl	_wine_dbgstr_rect
	mov	x5, x0
Lloh47:
	adrp	x0, l_.str.2@PAGE
Lloh48:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x25
	mov	x2, x22
	mov	x3, x28
	mov	x4, x24
	bl	_TRACE
	ldr	w8, [x20, #16]
Lloh49:
	adrp	x9, _LBS_USETABSTOPS@GOTPAGE
Lloh50:
	ldr	x9, [x9, _LBS_USETABSTOPS@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	ldr	x10, [x21, #8]
	add	x24, x10, #1
	ldr	w25, [x21]
Lloh52:
	adrp	x10, _ETO_OPAQUE@GOTPAGE
Lloh53:
	ldr	x10, [x10, _ETO_OPAQUE@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
Lloh55:
	adrp	x11, _ETO_CLIPPED@GOTPAGE
Lloh56:
	ldr	x11, [x11, _ETO_CLIPPED@GOTPAGEOFF]
Lloh57:
	ldr	w11, [x11]
	orr	w28, w11, w10
	tst	w9, w8
	b.eq	LBB0_34
; %bb.27:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	x3, x28
	mov	x4, x21
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_ExtTextOutW
	ldr	x8, [x21, #8]
	add	x24, x8, #1
	ldr	w25, [x21]
	ldr	x26, [x26]
	mov	x0, x26
	bl	_strlenW
	mov	x4, x0
	ldp	w6, w5, [x20, #40]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	mov	w7, #0
	bl	_TabbedTextOutW
	ldr	x8, [x27]
	cbz	x8, LBB0_29
LBB0_28:
	mov	x0, x19
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_SetBkColor
	mov	x0, x19
	ldr	w1, [sp, #16]                   ; 4-byte Folded Reload
	bl	_SetTextColor
LBB0_29:
	cbnz	w23, LBB0_33
; %bb.30:
	ldr	x8, [x20, #8]
	cmp	x8, x22
	b.ne	LBB0_33
; %bb.31:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_33
; %bb.32:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_14
LBB0_33:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_34:
	ldr	x26, [x26]
	mov	x0, x26
	bl	_strlenW
	mov	x6, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	x3, x28
	mov	x4, x21
	mov	x5, x26
	mov	x7, #0
	bl	_ExtTextOutW
	ldr	x8, [x27]
	cbnz	x8, LBB0_28
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_ODA_FOCUS,4,2                  ; @ODA_FOCUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"called with an out of bounds index %d(%d) in owner draw, Not good.\n"

	.comm	_ODT_LISTBOX,4,2                ; @ODT_LISTBOX
	.comm	_GWLP_ID,4,2                    ; @GWLP_ID
	.comm	_ODS_SELECTED,4,2               ; @ODS_SELECTED
	.comm	_ODS_FOCUS,4,2                  ; @ODS_FOCUS
	.comm	_ODS_DISABLED,4,2               ; @ODS_DISABLED
l_.str.1:                               ; @.str.1
	.asciz	"[%p]: drawitem %d (%s) action=%02x state=%02x rect=%s\n"

	.comm	_WM_DRAWITEM,4,2                ; @WM_DRAWITEM
	.comm	_COLOR_HIGHLIGHT,4,2            ; @COLOR_HIGHLIGHT
	.comm	_COLOR_HIGHLIGHTTEXT,4,2        ; @COLOR_HIGHLIGHTTEXT
l_.str.2:                               ; @.str.2
	.asciz	"[%p]: painting %d (%s) action=%02x rect=%s\n"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_ETO_OPAQUE,4,2                 ; @ETO_OPAQUE
	.comm	_ETO_CLIPPED,4,2                ; @ETO_CLIPPED
	.comm	_LBS_USETABSTOPS,4,2            ; @LBS_USETABSTOPS
	.no_dead_strip	_LISTBOX_PaintItem
.subsections_via_symbols
