	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function STATUSBAR_DrawSizeGrip
_STATUSBAR_DrawSizeGrip:                ## @STATUSBAR_DrawSizeGrip
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movups	(%rdx), %xmm0
	movups	16(%rdx), %xmm1
	movaps	%xmm1, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	%rdx, %rdi
	callq	_wine_dbgstr_rect
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movq	_SP_GRIPPER@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_TS_DRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-80(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_GetThemePartSize
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	-64(%rbp), %rax
	movq	-48(%rbp), %rcx
	subq	-72(%rbp), %rcx
	movq	%rcx, -40(%rbp)
	subq	-80(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	(%r12), %edx
	leaq	-64(%rbp), %r8
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_DrawThemeBackground
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	movq	-48(%rbp), %rbx
	movq	-40(%rbp), %r15
	movq	_SM_CXVSCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSystemMetrics
	notq	%rax
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_max
	movq	%rax, -40(%rbp)
	movq	-64(%rbp), %rbx
	movq	-56(%rbp), %r15
	movq	_SM_CYHSCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSystemMetrics
	notq	%rax
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_max
	movq	%rax, -56(%rbp)
	movq	_DFC_SCROLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DFCS_SCROLLSIZEGRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edi
	callq	_DrawFrameControl
LBB0_4:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"draw size grip %s\n"

	.comm	_SP_GRIPPER,4,2                 ## @SP_GRIPPER
	.comm	_TS_DRAW,4,2                    ## @TS_DRAW
	.comm	_SM_CXVSCROLL,4,2               ## @SM_CXVSCROLL
	.comm	_SM_CYHSCROLL,4,2               ## @SM_CYHSCROLL
	.comm	_DFC_SCROLL,4,2                 ## @DFC_SCROLL
	.comm	_DFCS_SCROLLSIZEGRIP,4,2        ## @DFCS_SCROLLSIZEGRIP
	.no_dead_strip	_STATUSBAR_DrawSizeGrip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function STATUSBAR_DrawSizeGrip
_STATUSBAR_DrawSizeGrip:                ; @STATUSBAR_DrawSizeGrip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldp	q0, q1, [x2]
	stp	q0, q1, [sp, #16]
	mov	x0, x2
	bl	_wine_dbgstr_rect
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x20, LBB0_3
; %bb.1:
Lloh2:
	adrp	x22, _SP_GRIPPER@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SP_GRIPPER@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x8, _TS_DRAW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TS_DRAW@GOTPAGEOFF]
Lloh6:
	ldr	w5, [x8]
	mov	x6, sp
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	mov	x4, x21
	bl	_GetThemePartSize
	bl	_SUCCEEDED
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #32]
	ldp	x10, x9, [sp, #8]
	ldr	x11, [sp]
	sub	x8, x8, x10
	sub	x9, x9, x11
	str	x8, [sp, #40]
	str	x9, [sp, #24]
	ldr	w2, [x22]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	mov	x5, #0
	bl	_DrawThemeBackground
	bl	_SUCCEEDED
	cbnz	x0, LBB0_4
LBB0_3:
	ldp	x21, x20, [sp, #32]
Lloh7:
	adrp	x8, _SM_CXVSCROLL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SM_CXVSCROLL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_GetSystemMetrics
	mvn	x8, x0
	add	x1, x8, x21
	mov	x0, x20
	bl	_max
	str	x0, [sp, #40]
	ldp	x21, x20, [sp, #16]
Lloh10:
	adrp	x8, _SM_CYHSCROLL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SM_CYHSCROLL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_GetSystemMetrics
	mvn	x8, x0
	add	x1, x8, x21
	mov	x0, x20
	bl	_max
	str	x0, [sp, #24]
Lloh13:
	adrp	x8, _DFC_SCROLL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DFC_SCROLL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _DFCS_SCROLLSIZEGRIP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DFCS_SCROLLSIZEGRIP@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	add	x1, sp, #16
	mov	x0, x19
	bl	_DrawFrameControl
LBB0_4:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"draw size grip %s\n"

	.comm	_SP_GRIPPER,4,2                 ; @SP_GRIPPER
	.comm	_TS_DRAW,4,2                    ; @TS_DRAW
	.comm	_SM_CXVSCROLL,4,2               ; @SM_CXVSCROLL
	.comm	_SM_CYHSCROLL,4,2               ; @SM_CYHSCROLL
	.comm	_DFC_SCROLL,4,2                 ; @DFC_SCROLL
	.comm	_DFCS_SCROLLSIZEGRIP,4,2        ; @DFCS_SCROLLSIZEGRIP
	.no_dead_strip	_STATUSBAR_DrawSizeGrip
.subsections_via_symbols
