	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UPDOWN_GetArrowRect
_UPDOWN_GetArrowRect:                   ## @UPDOWN_GetArrowRect
	.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	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_GetWindowTheme
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	movq	_DEFAULT_BUDDYBORDER_THEMED@GOTPCREL(%rip), %rax
	cmoveq	_DEFAULT_BUDDYBORDER@GOTPCREL(%rip), %rax
	movq	_DEFAULT_BUDDYSPACER_THEMED@GOTPCREL(%rip), %rcx
	cmoveq	_DEFAULT_BUDDYSPACER@GOTPCREL(%rip), %rcx
	movl	(%rax), %r13d
	movl	(%rcx), %r15d
	movl	8(%rbx), %edi
	movq	%r12, %rsi
	callq	_GetClientRect
	movq	%rbx, %rdi
	callq	_UPDOWN_HasBuddyBorder
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_UDS_ALIGNLEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	addl	%r13d, (%r12)
	jmp	LBB0_4
LBB0_3:
	subl	%r13d, 4(%r12)
LBB0_4:
	negl	%r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_InflateRect
LBB0_5:
	movl	4(%rbx), %edi
	callq	_IsWindow
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_UDS_ALIGNLEFT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:
	subl	%r15d, 4(%r12)
	jmp	LBB0_10
LBB0_8:
	movq	_UDS_ALIGNRIGHT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.9:
	addl	%r15d, (%r12)
LBB0_10:
	movq	_UDS_HORZ@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.11:
	movl	(%r12), %eax
	movl	4(%r12), %ecx
	subl	%eax, %ecx
	incl	%ecx
	movq	_FLAG_INCR@GOTPCREL(%rip), %rdx
	testl	%r14d, (%rdx)
	je	LBB0_13
## %bb.12:
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%edx, %eax
	movl	%eax, (%r12)
LBB0_13:
	movq	_FLAG_DECR@GOTPCREL(%rip), %rdx
	testl	%r14d, (%rdx)
	je	LBB0_19
## %bb.14:
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpq	$1, -48(%rbp)                   ## 8-byte Folded Reload
	sbbl	$0, %edx
	addl	%eax, %edx
	movl	%edx, 4(%r12)
	jmp	LBB0_19
LBB0_15:
	movl	8(%r12), %ecx
	movl	12(%r12), %eax
	subl	%eax, %ecx
	incl	%ecx
	movq	_FLAG_INCR@GOTPCREL(%rip), %rdx
	testl	%r14d, (%rdx)
	je	LBB0_17
## %bb.16:
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpq	$1, -48(%rbp)                   ## 8-byte Folded Reload
	movl	%eax, %esi
	sbbl	$0, %esi
	addl	%edx, %esi
	movl	%esi, 8(%r12)
LBB0_17:
	movq	_FLAG_DECR@GOTPCREL(%rip), %rdx
	testl	%r14d, (%rdx)
	je	LBB0_19
## %bb.18:
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%eax, %edx
	movl	%edx, 12(%r12)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_BUDDYBORDER_THEMED,4,2 ## @DEFAULT_BUDDYBORDER_THEMED
	.comm	_DEFAULT_BUDDYBORDER,4,2        ## @DEFAULT_BUDDYBORDER
	.comm	_DEFAULT_BUDDYSPACER_THEMED,4,2 ## @DEFAULT_BUDDYSPACER_THEMED
	.comm	_DEFAULT_BUDDYSPACER,4,2        ## @DEFAULT_BUDDYSPACER
	.comm	_UDS_ALIGNLEFT,4,2              ## @UDS_ALIGNLEFT
	.comm	_UDS_ALIGNRIGHT,4,2             ## @UDS_ALIGNRIGHT
	.comm	_UDS_HORZ,4,2                   ## @UDS_HORZ
	.comm	_FLAG_INCR,4,2                  ## @FLAG_INCR
	.comm	_FLAG_DECR,4,2                  ## @FLAG_DECR
	.no_dead_strip	_UPDOWN_GetArrowRect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UPDOWN_GetArrowRect
_UPDOWN_GetArrowRect:                   ; @UPDOWN_GetArrowRect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x0, #8]
	bl	_GetWindowTheme
	mov	x21, x0
Lloh0:
	adrp	x8, _DEFAULT_BUDDYBORDER_THEMED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_BUDDYBORDER_THEMED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DEFAULT_BUDDYBORDER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DEFAULT_BUDDYBORDER@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
Lloh4:
	adrp	x9, _DEFAULT_BUDDYSPACER_THEMED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DEFAULT_BUDDYSPACER_THEMED@GOTPAGEOFF]
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _DEFAULT_BUDDYSPACER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEFAULT_BUDDYSPACER@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w23, [x8]
	ldr	w0, [x22, #8]
	mov	x1, x19
	bl	_GetClientRect
	mov	x0, x22
	bl	_UPDOWN_HasBuddyBorder
Lloh8:
	adrp	x24, _UDS_ALIGNLEFT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _UDS_ALIGNLEFT@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x22]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	add	w8, w8, w25
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x19, #4]
	sub	w8, w8, w25
	str	w8, [x19, #4]
LBB0_4:
	neg	w2, w25
	mov	x0, x19
	mov	w1, #0
	bl	_InflateRect
LBB0_5:
	ldr	w0, [x22, #4]
	bl	_IsWindow
	ldr	w8, [x22]
	cbz	x0, LBB0_10
; %bb.6:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w9, [x19, #4]
	sub	w9, w9, w23
	str	w9, [x19, #4]
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x9, _UDS_ALIGNRIGHT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UDS_ALIGNRIGHT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w9, [x19]
	add	w9, w9, w23
	str	w9, [x19]
LBB0_10:
Lloh13:
	adrp	x9, _UDS_HORZ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _UDS_HORZ@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:
	ldp	w8, w9, [x19]
	sub	w9, w9, w8
	add	w9, w9, #1
Lloh16:
	adrp	x10, _FLAG_INCR@GOTPAGE
Lloh17:
	ldr	x10, [x10, _FLAG_INCR@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w20
	b.eq	LBB0_13
; %bb.12:
	cmp	w9, #0
	cinc	w10, w9, lt
	add	w8, w8, w10, asr #1
	str	w8, [x19]
LBB0_13:
Lloh19:
	adrp	x10, _FLAG_DECR@GOTPAGE
Lloh20:
	ldr	x10, [x10, _FLAG_DECR@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	tst	w10, w20
	b.eq	LBB0_19
; %bb.14:
	cmp	x21, #0
	cset	w10, eq
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sub	w9, w9, w10
	add	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_19
LBB0_15:
	ldp	w9, w8, [x19, #8]
	sub	w9, w9, w8
	add	w9, w9, #1
Lloh22:
	adrp	x10, _FLAG_INCR@GOTPAGE
Lloh23:
	ldr	x10, [x10, _FLAG_INCR@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w20
	b.eq	LBB0_17
; %bb.16:
	cmp	x21, #0
	cset	w10, eq
	cmp	w9, #0
	cinc	w11, w9, lt
	sub	w10, w8, w10
	add	w10, w10, w11, asr #1
	str	w10, [x19, #8]
LBB0_17:
Lloh25:
	adrp	x10, _FLAG_DECR@GOTPAGE
Lloh26:
	ldr	x10, [x10, _FLAG_DECR@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w10, w20
	b.eq	LBB0_19
; %bb.18:
	cmp	w9, #0
	cinc	w9, w9, lt
	add	w8, w8, w9, asr #1
	str	w8, [x19, #12]
LBB0_19:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_BUDDYBORDER_THEMED,4,2 ; @DEFAULT_BUDDYBORDER_THEMED
	.comm	_DEFAULT_BUDDYBORDER,4,2        ; @DEFAULT_BUDDYBORDER
	.comm	_DEFAULT_BUDDYSPACER_THEMED,4,2 ; @DEFAULT_BUDDYSPACER_THEMED
	.comm	_DEFAULT_BUDDYSPACER,4,2        ; @DEFAULT_BUDDYSPACER
	.comm	_UDS_ALIGNLEFT,4,2              ; @UDS_ALIGNLEFT
	.comm	_UDS_ALIGNRIGHT,4,2             ; @UDS_ALIGNRIGHT
	.comm	_UDS_HORZ,4,2                   ; @UDS_HORZ
	.comm	_FLAG_INCR,4,2                  ; @FLAG_INCR
	.comm	_FLAG_DECR,4,2                  ; @FLAG_DECR
	.no_dead_strip	_UPDOWN_GetArrowRect
.subsections_via_symbols
