	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_DrawFocusRect
_LISTBOX_DrawFocusRect:                 ## @LISTBOX_DrawFocusRect
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_IsWindowVisible
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movl	(%rbx), %esi
	cmpl	$-1, %esi
	je	LBB0_14
## %bb.2:
	cmpl	$0, 28(%rbx)
	je	LBB0_14
## %bb.3:
	cmpl	$0, 24(%rbx)
	je	LBB0_14
## %bb.4:
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_LISTBOX_GetItemRect
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.5:
	movl	4(%rbx), %edi
	movq	_DCX_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_GetDCEx
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movl	%eax, %r15d
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.8:
	movl	%r15d, %edi
	callq	_SelectObject
	movq	%rax, %r12
	jmp	LBB0_9
LBB0_7:
	xorl	%r12d, %r12d
LBB0_9:
	movl	4(%rbx), %edi
	callq	_IsWindowEnabled
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_COLOR_GRAYTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSysColor
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SetTextColor
LBB0_11:
	movl	8(%rbx), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SetWindowOrgEx
	movl	(%rbx), %ecx
	movq	_ODA_FOCUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r9d, %r9d
	testl	%r14d, %r14d
	sete	%r9b
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_LISTBOX_PaintItem
	testq	%r12, %r12
	je	LBB0_13
## %bb.12:
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_SelectObject
LBB0_13:
	movl	4(%rbx), %edi
	movl	%r15d, %esi
	callq	_ReleaseDC
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCX_CACHE,4,2                  ## @DCX_CACHE
	.comm	_COLOR_GRAYTEXT,4,2             ## @COLOR_GRAYTEXT
	.comm	_ODA_FOCUS,4,2                  ## @ODA_FOCUS
	.no_dead_strip	_LISTBOX_DrawFocusRect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_DrawFocusRect
_LISTBOX_DrawFocusRect:                 ; @LISTBOX_DrawFocusRect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_IsWindowVisible
	cbz	w0, LBB0_14
; %bb.1:
	ldr	w1, [x19]
	cmn	w1, #1
	b.eq	LBB0_14
; %bb.2:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_14
; %bb.3:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_14
; %bb.4:
	add	x2, sp, #12
	mov	x0, x19
	bl	_LISTBOX_GetItemRect
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.5:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _DCX_CACHE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCX_CACHE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_GetDCEx
	cbz	w0, LBB0_14
; %bb.6:
	mov	x21, x0
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_SelectObject
	mov	x22, x0
	b	LBB0_9
LBB0_8:
	mov	x22, #0
LBB0_9:
	ldr	w0, [x19, #4]
	bl	_IsWindowEnabled
	cbnz	w0, LBB0_11
; %bb.10:
Lloh3:
	adrp	x8, _COLOR_GRAYTEXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COLOR_GRAYTEXT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_GetSysColor
	mov	x1, x0
	mov	x0, x21
	bl	_SetTextColor
LBB0_11:
	ldr	w1, [x19, #8]
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	bl	_SetWindowOrgEx
	ldr	w3, [x19]
Lloh6:
	adrp	x8, _ODA_FOCUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ODA_FOCUS@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	cmp	w20, #0
	cset	w5, eq
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_LISTBOX_PaintItem
	cbz	x22, LBB0_13
; %bb.12:
	mov	x0, x21
	mov	x1, x22
	bl	_SelectObject
LBB0_13:
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_ReleaseDC
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DCX_CACHE,4,2                  ; @DCX_CACHE
	.comm	_COLOR_GRAYTEXT,4,2             ; @COLOR_GRAYTEXT
	.comm	_ODA_FOCUS,4,2                  ; @ODA_FOCUS
	.no_dead_strip	_LISTBOX_DrawFocusRect
.subsections_via_symbols
