	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_NCPaint
_REBAR_NCPaint:                         ## @REBAR_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	_WS_MINIMIZE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	_WS_BORDER@GOTPCREL(%rip), %rcx
	movl	4(%rdi), %edi
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_DCX_USESTYLE@GOTPCREL(%rip), %rax
	movq	_DCX_WINDOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_GetDCEx
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	leaq	-48(%rbp), %r15
	movq	%r15, %rsi
	callq	_GetWindowRect
	xorl	%esi, %esi
	subl	-44(%rbp), %esi
	subl	-48(%rbp), %r12d
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_OffsetRect
	movq	%r15, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_EDGE_ETCHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BF_RECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_DrawEdge
	jmp	LBB0_7
LBB0_4:
	callq	_GetWindowTheme
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	movq	_DCX_USESTYLE@GOTPCREL(%rip), %rax
	movq	_DCX_WINDOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_GetDCEx
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	leaq	-48(%rbp), %r12
	movq	%r12, %rsi
	callq	_GetWindowRect
	xorl	%esi, %esi
	subl	-44(%rbp), %esi
	subl	-48(%rbp), %r13d
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_OffsetRect
	movq	%r12, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_BDR_RAISEDINNER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_BF_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r15d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	pushq	$0
	pushq	%rax
	callq	_DrawThemeEdge
	addq	$16, %rsp
LBB0_7:
	movl	4(%rbx), %edi
	movl	%r14d, %esi
	callq	_ReleaseDC
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WS_MINIMIZE,4,2                ## @WS_MINIMIZE
	.comm	_WS_BORDER,4,2                  ## @WS_BORDER
	.comm	_DCX_USESTYLE,4,2               ## @DCX_USESTYLE
	.comm	_DCX_WINDOW,4,2                 ## @DCX_WINDOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rect (%s)\n"

	.comm	_EDGE_ETCHED,4,2                ## @EDGE_ETCHED
	.comm	_BF_RECT,4,2                    ## @BF_RECT
	.comm	_BDR_RAISEDINNER,4,2            ## @BDR_RAISEDINNER
	.comm	_BF_TOP,4,2                     ## @BF_TOP
	.no_dead_strip	_REBAR_NCPaint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_NCPaint
_REBAR_NCPaint:                         ; @REBAR_NCPaint
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WS_MINIMIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WS_MINIMIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x9, _WS_BORDER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WS_BORDER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w0, [x0, #4]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _DCX_USESTYLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCX_USESTYLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DCX_WINDOW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DCX_WINDOW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w1, #0
	bl	_GetDCEx
	cbz	w0, LBB0_8
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_GetWindowRect
	ldp	w9, w8, [sp, #8]
	neg	w1, w8
	neg	w2, w9
	add	x0, sp, #8
	bl	_OffsetRect
	add	x0, sp, #8
	bl	_wine_dbgstr_rect
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh14:
	adrp	x8, _EDGE_ETCHED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EDGE_ETCHED@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _BF_RECT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BF_RECT@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_DrawEdge
	b	LBB0_7
LBB0_4:
	bl	_GetWindowTheme
	cbz	w0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh20:
	adrp	x8, _DCX_USESTYLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DCX_USESTYLE@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _DCX_WINDOW@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DCX_WINDOW@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w1, #0
	bl	_GetDCEx
	cbz	w0, LBB0_8
; %bb.6:
	mov	x20, x0
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_GetWindowRect
	ldp	w9, w8, [sp, #8]
	neg	w1, w8
	neg	w2, w9
	add	x0, sp, #8
	bl	_OffsetRect
	add	x0, sp, #8
	bl	_wine_dbgstr_rect
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh28:
	adrp	x8, _BDR_RAISEDINNER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BDR_RAISEDINNER@GOTPAGEOFF]
Lloh30:
	ldr	w5, [x8]
Lloh31:
	adrp	x8, _BF_TOP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BF_TOP@GOTPAGEOFF]
Lloh33:
	ldr	w6, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	x7, #0
	bl	_DrawThemeEdge
LBB0_7:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_ReleaseDC
LBB0_8:
	mov	w0, #0
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_WS_MINIMIZE,4,2                ; @WS_MINIMIZE
	.comm	_WS_BORDER,4,2                  ; @WS_BORDER
	.comm	_DCX_USESTYLE,4,2               ; @DCX_USESTYLE
	.comm	_DCX_WINDOW,4,2                 ; @DCX_WINDOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rect (%s)\n"

	.comm	_EDGE_ETCHED,4,2                ; @EDGE_ETCHED
	.comm	_BF_RECT,4,2                    ; @BF_RECT
	.comm	_BDR_RAISEDINNER,4,2            ; @BDR_RAISEDINNER
	.comm	_BF_TOP,4,2                     ; @BF_TOP
	.no_dead_strip	_REBAR_NCPaint
.subsections_via_symbols
