	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_NCPaint
_LISTBOX_NCPaint:                       ## @LISTBOX_NCPaint
	.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	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %edi
	movq	_GWL_EXSTYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_GetWindowTheme
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	%eax, %r14d
	movq	_WS_EX_CLIENTEDGE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.2:
	movq	_SM_CXEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSystemMetrics
	movl	%eax, %r13d
	movq	_SM_CYEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSystemMetrics
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	-64(%rbp), %rsi
	callq	_GetWindowRect
	movslq	%r13d, %rax
	addl	-64(%rbp), %r13d
	movslq	%ebx, %rsi
	addl	-60(%rbp), %ebx
	movq	-56(%rbp), %rcx
	movq	-48(%rbp), %rdx
	subq	%rax, %rdx
	subq	%rsi, %rcx
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_CreateRectRgn
	cmpl	$1, %r15d
	je	LBB0_4
## %bb.3:
	movq	_RGN_AND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_CombineRgn
LBB0_4:
	xorl	%esi, %esi
	subl	-64(%rbp), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	subl	-60(%rbp), %edx
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	callq	_OffsetRect
	movl	(%r12), %edi
	movq	_DCX_WINDOW@GOTPCREL(%rip), %rax
	movq	_DCX_INTERSECTRGN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%r15d, %esi
	callq	_GetDCEx
	movl	%eax, %r15d
	xorl	%esi, %esi
	subl	-64(%rbp), %esi
	subl	-60(%rbp), %ebx
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_OffsetRect
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IsThemeBackgroundPartiallyTransparent
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r12), %edi
	leaq	-64(%rbp), %rdx
	movl	%r15d, %esi
	callq	_DrawThemeParentBackground
LBB0_6:
	leaq	-64(%rbp), %r8
	movl	%r14d, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_ReleaseDC
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GWL_EXSTYLE,4,2                ## @GWL_EXSTYLE
	.comm	_WS_EX_CLIENTEDGE,4,2           ## @WS_EX_CLIENTEDGE
	.comm	_SM_CXEDGE,4,2                  ## @SM_CXEDGE
	.comm	_SM_CYEDGE,4,2                  ## @SM_CYEDGE
	.comm	_RGN_AND,4,2                    ## @RGN_AND
	.comm	_DCX_WINDOW,4,2                 ## @DCX_WINDOW
	.comm	_DCX_INTERSECTRGN,4,2           ## @DCX_INTERSECTRGN
	.no_dead_strip	_LISTBOX_NCPaint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_NCPaint
_LISTBOX_NCPaint:                       ; @LISTBOX_NCPaint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GWL_EXSTYLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GWL_EXSTYLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetWindowLongW
	mov	x22, x0
	ldr	w0, [x19]
	bl	_GetWindowTheme
	cbz	w0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _WS_EX_CLIENTEDGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WS_EX_CLIENTEDGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x8, _SM_CXEDGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SM_CXEDGE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_GetSystemMetrics
	mov	x22, x0
Lloh9:
	adrp	x8, _SM_CYEDGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SM_CYEDGE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_GetSystemMetrics
	mov	x23, x0
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_GetWindowRect
	ldp	w8, w9, [sp, #8]
	add	w0, w8, w22
	add	w1, w9, w23
	ldp	x9, x8, [sp, #16]
	sub	x2, x8, w22, sxtw
	sub	x3, x9, w23, sxtw
	bl	_CreateRectRgn
	cmp	w21, #1
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _RGN_AND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RGN_AND@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x1, x0
	mov	x2, x21
	bl	_CombineRgn
LBB0_4:
	ldp	w8, w9, [sp, #8]
	neg	w1, w8
	neg	w2, w9
	add	x0, sp, #8
	bl	_OffsetRect
Lloh15:
	adrp	x8, _DCX_WINDOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DCX_WINDOW@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _DCX_INTERSECTRGN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DCX_INTERSECTRGN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x1, x21
	bl	_GetDCEx
	mov	x21, x0
	ldp	w8, w9, [sp, #8]
	neg	w1, w8
	neg	w2, w9
	add	x0, sp, #8
	bl	_OffsetRect
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_IsThemeBackgroundPartiallyTransparent
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	add	x2, sp, #8
	mov	x1, x21
	bl	_DrawThemeParentBackground
LBB0_6:
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	mov	w5, #0
	bl	_DrawThemeBackground
	ldr	w0, [x19]
	mov	x1, x21
	bl	_ReleaseDC
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GWL_EXSTYLE,4,2                ; @GWL_EXSTYLE
	.comm	_WS_EX_CLIENTEDGE,4,2           ; @WS_EX_CLIENTEDGE
	.comm	_SM_CXEDGE,4,2                  ; @SM_CXEDGE
	.comm	_SM_CYEDGE,4,2                  ; @SM_CYEDGE
	.comm	_RGN_AND,4,2                    ; @RGN_AND
	.comm	_DCX_WINDOW,4,2                 ; @DCX_WINDOW
	.comm	_DCX_INTERSECTRGN,4,2           ; @DCX_INTERSECTRGN
	.no_dead_strip	_LISTBOX_NCPaint
.subsections_via_symbols
