	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TOOLBAR_DrawFlatHorizontalSeparator
_TOOLBAR_DrawFlatHorizontalSeparator:   ## @TOOLBAR_DrawFlatHorizontalSeparator
	.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
	movq	%rdx, %r14
	movl	%esi, %ebx
	movl	12(%rdi), %eax
	movl	%eax, -44(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -48(%rbp)
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	subl	%eax, %ecx
	movl	%ecx, %edx
	addl	$-2, %edx
	shrl	$31, %edx
	addl	%edx, %ecx
	addl	$-2, %ecx
	sarl	%ecx
	leal	(%rcx,%rax), %edx
	movl	%edx, -56(%rbp)
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	$-2, %esi
	xorl	%edx, %edx
	callq	_InflateRect
	movq	%r15, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	(%r14), %rsi
	movq	_CLR_DEFAULT@GOTPCREL(%rip), %rcx
	movq	_comctl32_color@GOTPCREL(%rip), %rax
	cmpq	(%rcx), %rsi
	jne	LBB0_2
## %bb.1:
	movq	(%rax), %rsi
LBB0_2:
	movl	%ebx, %edi
	callq	_SetBkColor
	movq	%rax, %r12
	movq	_ETO_OPAQUE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_ExtTextOutW
	addq	$16, %rsp
	movl	-52(%rbp), %eax
	movl	%eax, -56(%rbp)
	incl	%eax
	movl	%eax, -52(%rbp)
	movq	8(%r14), %rsi
	movq	_CLR_DEFAULT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_4
## %bb.3:
	movq	_comctl32_color@GOTPCREL(%rip), %rax
	movq	8(%rax), %rsi
LBB0_4:
	movl	%ebx, %edi
	callq	_SetBkColor
	movl	(%r13), %ecx
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_ExtTextOutW
	addq	$16, %rsp
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_SetBkColor
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rect=(%s)\n"

	.comm	_CLR_DEFAULT,8,3                ## @CLR_DEFAULT
	.comm	_comctl32_color,16,3            ## @comctl32_color
	.comm	_ETO_OPAQUE,4,2                 ## @ETO_OPAQUE
	.no_dead_strip	_TOOLBAR_DrawFlatHorizontalSeparator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TOOLBAR_DrawFlatHorizontalSeparator
_TOOLBAR_DrawFlatHorizontalSeparator:   ; @TOOLBAR_DrawFlatHorizontalSeparator
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	ldr	d0, [x0, #8]
	str	d0, [sp, #8]
	ldp	w8, w9, [x0]
	sub	w9, w9, w8
	sub	w10, w9, #2
	sub	w9, w9, #1
	cmp	w10, #0
	csel	w9, w9, w10, lt
	add	w8, w8, w9, asr #1
	add	w9, w8, #1
	stp	w8, w9, [sp]
	mov	x0, sp
	mov	w1, #-2
	mov	w2, #0
	bl	_InflateRect
	mov	x0, sp
	bl	_wine_dbgstr_rect
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	x8, [x20]
Lloh2:
	adrp	x22, _CLR_DEFAULT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CLR_DEFAULT@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh4:
	adrp	x23, _comctl32_color@GOTPAGE
Lloh5:
	ldr	x23, [x23, _comctl32_color@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x8, x9
	csel	x1, x10, x8, eq
	mov	x0, x19
	bl	_SetBkColor
	mov	x21, x0
Lloh6:
	adrp	x24, _ETO_OPAQUE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ETO_OPAQUE@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x4, sp
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_ExtTextOutW
	ldr	w8, [sp, #4]
	add	w9, w8, #1
	stp	w8, w9, [sp]
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	ldr	x10, [x23, #8]
	cmp	x8, x9
	csel	x1, x10, x8, eq
	mov	x0, x19
	bl	_SetBkColor
	ldr	w3, [x24]
	mov	x4, sp
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_ExtTextOutW
	mov	x0, x19
	mov	x1, x21
	bl	_SetBkColor
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rect=(%s)\n"

	.comm	_CLR_DEFAULT,8,3                ; @CLR_DEFAULT
	.comm	_comctl32_color,16,3            ; @comctl32_color
	.comm	_ETO_OPAQUE,4,2                 ; @ETO_OPAQUE
	.no_dead_strip	_TOOLBAR_DrawFlatHorizontalSeparator
.subsections_via_symbols
