	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_WM_NCPaint
_EDIT_WM_NCPaint:                       ## @EDIT_WM_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_GWL_EXSTYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_GetWindowTheme
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movq	_WS_EX_CLIENTEDGE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_SM_CXEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSystemMetrics
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SM_CYEDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSystemMetrics
	movl	%eax, %ebx
	movq	_EP_EDITTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_ETS_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_GetWindowLongW
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_IsWindowEnabled
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	_ES_READONLY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.4:
	movl	%ebx, %r15d
	movq	_ETS_READONLY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	%r12, %r15
	jmp	LBB0_16
LBB0_7:
	movl	%ebx, %r15d
	movq	_ETS_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movl	%ebx, %r15d
	xorl	%eax, %eax
	callq	_GetFocus
	cmpq	%r13, %rax
	jne	LBB0_11
## %bb.9:
	movq	_ETS_FOCUSED@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_11:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_GetWindowRect
	movl	-72(%rbp), %edi
	addl	%ebx, %edi
	movl	-68(%rbp), %esi
	addl	%r15d, %esi
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdx
	movslq	%ebx, %rax
	subq	%rax, %rdx
	movslq	%r15d, %rax
	subq	%rax, %rcx
	callq	_CreateRectRgn
	movq	%rax, %r15
	cmpq	$1, %r12
	je	LBB0_13
## %bb.12:
	movq	_RGN_AND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_CombineRgn
LBB0_13:
	xorl	%esi, %esi
	subl	-72(%rbp), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	subl	-68(%rbp), %edx
	leaq	-72(%rbp), %rdi
	callq	_OffsetRect
	movq	_DCX_WINDOW@GOTPCREL(%rip), %rax
	movq	_DCX_INTERSECTRGN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_GetDCEx
	movl	%eax, %r12d
	xorl	%esi, %esi
	subl	-72(%rbp), %esi
	subl	-68(%rbp), %ebx
	leaq	-72(%rbp), %rdi
	movl	%ebx, %edx
	callq	_OffsetRect
	movq	%r14, %rdi
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_IsThemeBackgroundPartiallyTransparent
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_DrawThemeParentBackground
LBB0_15:
	leaq	-72(%rbp), %r8
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_ReleaseDC
LBB0_16:
	movq	_WM_NCPAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_DefWindowProcW
	addq	$40, %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	_EP_EDITTEXT,4,2                ## @EP_EDITTEXT
	.comm	_ETS_NORMAL,4,2                 ## @ETS_NORMAL
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_ETS_DISABLED,4,2               ## @ETS_DISABLED
	.comm	_ES_READONLY,4,2                ## @ES_READONLY
	.comm	_ETS_READONLY,4,2               ## @ETS_READONLY
	.comm	_ETS_FOCUSED,4,2                ## @ETS_FOCUSED
	.comm	_RGN_AND,4,2                    ## @RGN_AND
	.comm	_DCX_WINDOW,4,2                 ## @DCX_WINDOW
	.comm	_DCX_INTERSECTRGN,4,2           ## @DCX_INTERSECTRGN
	.comm	_WM_NCPAINT,4,2                 ## @WM_NCPAINT
	.no_dead_strip	_EDIT_WM_NCPaint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_WM_NCPaint
_EDIT_WM_NCPaint:                       ; @EDIT_WM_NCPaint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GWL_EXSTYLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GWL_EXSTYLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetWindowLongW
	mov	x21, x0
	mov	x0, x19
	bl	_GetWindowTheme
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _WS_EX_CLIENTEDGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WS_EX_CLIENTEDGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %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	x24, x0
Lloh9:
	adrp	x8, _SM_CYEDGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SM_CYEDGE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_GetSystemMetrics
	mov	x25, x0
Lloh12:
	adrp	x8, _EP_EDITTEXT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EP_EDITTEXT@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
Lloh15:
	adrp	x8, _ETS_NORMAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETS_NORMAL@GOTPAGEOFF]
Lloh17:
	ldr	w26, [x8]
Lloh18:
	adrp	x8, _GWL_STYLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GWL_STYLE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetWindowLongW
	mov	x23, x0
	mov	x0, x19
	bl	_IsWindowEnabled
	cbz	w0, LBB0_6
; %bb.3:
Lloh21:
	adrp	x8, _ES_READONLY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ES_READONLY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_7
; %bb.4:
Lloh24:
	adrp	x8, _ETS_READONLY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETS_READONLY@GOTPAGEOFF]
Lloh26:
	ldr	w23, [x8]
	b	LBB0_8
LBB0_5:
	mov	x24, x22
	b	LBB0_13
LBB0_6:
Lloh27:
	adrp	x8, _ETS_DISABLED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ETS_DISABLED@GOTPAGEOFF]
Lloh29:
	ldr	w23, [x8]
	b	LBB0_8
LBB0_7:
	bl	_GetFocus
Lloh30:
	adrp	x8, _ETS_FOCUSED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ETS_FOCUSED@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	x0, x19
	csel	w23, w8, w26, eq
LBB0_8:
	add	x1, sp, #8
	mov	x0, x19
	bl	_GetWindowRect
	ldp	w8, w9, [sp, #8]
	add	w0, w8, w24
	add	w1, w9, w25
	ldp	x9, x8, [sp, #16]
	sub	x2, x8, w24, sxtw
	sub	x3, x9, w25, sxtw
	bl	_CreateRectRgn
	mov	x24, x0
	cmp	x22, #1
	b.eq	LBB0_10
; %bb.9:
Lloh33:
	adrp	x8, _RGN_AND@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RGN_AND@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x24
	mov	x2, x22
	bl	_CombineRgn
LBB0_10:
	ldp	w8, w9, [sp, #8]
	neg	w1, w8
	neg	w2, w9
	add	x0, sp, #8
	bl	_OffsetRect
Lloh36:
	adrp	x8, _DCX_WINDOW@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DCX_WINDOW@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _DCX_INTERSECTRGN@GOTPAGE
Lloh40:
	ldr	x9, [x9, _DCX_INTERSECTRGN@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x1, x22
	bl	_GetDCEx
	mov	x22, x0
	ldp	w8, w9, [sp, #8]
	neg	w1, w8
	neg	w2, w9
	add	x0, sp, #8
	bl	_OffsetRect
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_IsThemeBackgroundPartiallyTransparent
	cbz	x0, LBB0_12
; %bb.11:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x22
	bl	_DrawThemeParentBackground
LBB0_12:
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	w5, #0
	bl	_DrawThemeBackground
	mov	x0, x19
	mov	x1, x22
	bl	_ReleaseDC
LBB0_13:
Lloh42:
	adrp	x8, _WM_NCPAINT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WM_NCPAINT@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	mov	w3, #0
	bl	_DefWindowProcW
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.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	_EP_EDITTEXT,4,2                ; @EP_EDITTEXT
	.comm	_ETS_NORMAL,4,2                 ; @ETS_NORMAL
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_ETS_DISABLED,4,2               ; @ETS_DISABLED
	.comm	_ES_READONLY,4,2                ; @ES_READONLY
	.comm	_ETS_READONLY,4,2               ; @ETS_READONLY
	.comm	_ETS_FOCUSED,4,2                ; @ETS_FOCUSED
	.comm	_RGN_AND,4,2                    ; @RGN_AND
	.comm	_DCX_WINDOW,4,2                 ; @DCX_WINDOW
	.comm	_DCX_INTERSECTRGN,4,2           ; @DCX_INTERSECTRGN
	.comm	_WM_NCPAINT,4,2                 ; @WM_NCPAINT
	.no_dead_strip	_EDIT_WM_NCPaint
.subsections_via_symbols
