	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_RepaintItem
_LISTBOX_RepaintItem:                   ## @LISTBOX_RepaintItem
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_IsWindowVisible
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movl	(%rbx), %eax
	movq	_LBS_NOREDRAW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_LBS_DISPLAYCHANGED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_18
LBB0_3:
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_LISTBOX_GetItemRect
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.4:
	movq	8(%rbx), %rdi
	movq	_DCX_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_GetDCEx
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movq	%rax, %r12
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_SelectObject
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %ecx
	movl	20(%rbx), %edi
	movq	_WM_CTLCOLORLISTBOX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_SendMessageW
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_SelectObject
	movq	%rax, %r13
	jmp	LBB0_11
LBB0_9:
	xorl	%r13d, %r13d
LBB0_11:
	movq	8(%rbx), %rdi
	callq	_IsWindowEnabled
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	_COLOR_GRAYTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSysColor
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_SetTextColor
LBB0_13:
	movl	16(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SetWindowOrgEx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_LISTBOX_PaintItem
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_SelectObject
LBB0_15:
	testq	%r13, %r13
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_SelectObject
LBB0_17:
	movq	8(%rbx), %rdi
	movq	%r12, %rsi
	callq	_ReleaseDC
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_NOREDRAW,4,2               ## @LBS_NOREDRAW
	.comm	_LBS_DISPLAYCHANGED,4,2         ## @LBS_DISPLAYCHANGED
	.comm	_DCX_CACHE,4,2                  ## @DCX_CACHE
	.comm	_WM_CTLCOLORLISTBOX,4,2         ## @WM_CTLCOLORLISTBOX
	.comm	_COLOR_GRAYTEXT,4,2             ## @COLOR_GRAYTEXT
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_LISTBOX_RepaintItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_RepaintItem
_LISTBOX_RepaintItem:                   ; @LISTBOX_RepaintItem
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_IsWindowVisible
	cbz	w0, LBB0_18
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _LBS_NOREDRAW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_NOREDRAW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _LBS_DISPLAYCHANGED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LBS_DISPLAYCHANGED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_18
LBB0_3:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_LISTBOX_GetItemRect
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.4:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x8, _DCX_CACHE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCX_CACHE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_GetDCEx
	cbz	x0, LBB0_18
; %bb.5:
	mov	x22, x0
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_SelectObject
	mov	x23, x0
	b	LBB0_8
LBB0_7:
	mov	x23, #0
LBB0_8:
	ldr	w0, [x19, #20]
Lloh9:
	adrp	x8, _WM_CTLCOLORLISTBOX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WM_CTLCOLORLISTBOX@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
	mov	x2, x22
	bl	_SendMessageW
	cbz	x0, LBB0_10
; %bb.9:
	mov	x1, x0
	mov	x0, x22
	bl	_SelectObject
	mov	x24, x0
	b	LBB0_11
LBB0_10:
	mov	x24, #0
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_IsWindowEnabled
	cbnz	w0, LBB0_13
; %bb.12:
Lloh12:
	adrp	x8, _COLOR_GRAYTEXT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COLOR_GRAYTEXT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_GetSysColor
	mov	x1, x0
	mov	x0, x22
	bl	_SetTextColor
LBB0_13:
	ldr	w1, [x19, #16]
	mov	x0, x22
	mov	w2, #0
	mov	x3, #0
	bl	_SetWindowOrgEx
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	bl	_LISTBOX_PaintItem
	cbz	x23, LBB0_15
; %bb.14:
	mov	x0, x22
	mov	x1, x23
	bl	_SelectObject
LBB0_15:
	cbz	x24, LBB0_17
; %bb.16:
	mov	x0, x22
	mov	x1, x24
	bl	_SelectObject
LBB0_17:
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_ReleaseDC
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_NOREDRAW,4,2               ; @LBS_NOREDRAW
	.comm	_LBS_DISPLAYCHANGED,4,2         ; @LBS_DISPLAYCHANGED
	.comm	_DCX_CACHE,4,2                  ; @DCX_CACHE
	.comm	_WM_CTLCOLORLISTBOX,4,2         ; @WM_CTLCOLORLISTBOX
	.comm	_COLOR_GRAYTEXT,4,2             ; @COLOR_GRAYTEXT
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_LISTBOX_RepaintItem
.subsections_via_symbols
