	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_Paint
_REBAR_Paint:                           ## @REBAR_Paint
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_REBAR_Refresh
	jmp	LBB0_5
LBB0_2:
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	callq	_BeginPaint
	movq	%rax, %r14
	leaq	-32(%rbp), %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	cmpq	$0, -40(%rbp)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_REBAR_EraseBkGnd
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_REBAR_Refresh
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	callq	_EndPaint
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"painting\n"

L_.str.1:                               ## @.str.1
	.asciz	"painting (%s)\n"

	.no_dead_strip	_REBAR_Paint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_Paint
_REBAR_Paint:                           ; @REBAR_Paint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	mov	x1, x20
	bl	_REBAR_Refresh
	b	LBB0_5
LBB0_2:
	ldr	w0, [x19]
	add	x21, sp, #16
	add	x1, sp, #16
	bl	_BeginPaint
	mov	x20, x0
	add	x0, x21, #8
	bl	_wine_dbgstr_rect
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_REBAR_EraseBkGnd
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_REBAR_Refresh
	ldr	w0, [x19]
	add	x1, sp, #16
	bl	_EndPaint
LBB0_5:
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"painting\n"

l_.str.1:                               ; @.str.1
	.asciz	"painting (%s)\n"

	.no_dead_strip	_REBAR_Paint
.subsections_via_symbols
