	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function Item_Slider_HandleKey
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Item_Slider_HandleKey
	.p2align	4, 0x90
_Item_Slider_HandleKey:                 ## @Item_Slider_HandleKey
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_WINDOW_HASFOCUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, (%rdi)
	je	LBB0_13
## %bb.2:
	movl	%esi, %ebx
	leaq	12(%r15), %r14
	movq	_DC@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movl	24(%rax), %esi
	movq	%r14, %rdi
	callq	_Rect_ContainsPoint
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	_K_MOUSE1@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_K_ENTER@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_K_MOUSE2@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_K_MOUSE3@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_13
LBB0_7:
	movq	40(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.8:
	movq	_SLIDER_WIDTH@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	cmpq	$0, 32(%r15)
	je	LBB0_10
## %bb.9:
	movl	20(%r15), %eax
	movl	24(%r15), %ecx
	addl	%ecx, %eax
	addl	$8, %eax
	cvtsi2ss	%eax, %xmm1
	jmp	LBB0_11
LBB0_10:
	movss	(%r14), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
LBB0_11:
	movq	_SLIDER_THUMB_WIDTH@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rax), %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	movss	%xmm1, -40(%rbp)                ## 4-byte Spill
	subss	%xmm0, %xmm1
	movss	%xmm1, -48(%rbp)
	addss	%xmm2, %xmm0
	movss	%xmm0, -44(%rbp)
	movq	(%r12), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movl	24(%rax), %esi
	leaq	-48(%rbp), %rdi
	movss	%xmm2, -36(%rbp)                ## 4-byte Spill
	callq	_Rect_ContainsPoint
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%r12), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	subss	-40(%rbp), %xmm1                ## 4-byte Folded Reload
	divss	-36(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rbx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm0
	mulss	%xmm1, %xmm0
	addss	%xmm2, %xmm0
	movq	16(%rax), %r14
	movq	(%r15), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_va
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r14
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.1(%rip), %rdi
	callq	*8(%rax)
	movq	_qfalse@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOW_HASFOCUS,4,2            ## @WINDOW_HASFOCUS
	.comm	_DC,8,3                         ## @DC
	.comm	_K_MOUSE1,4,2                   ## @K_MOUSE1
	.comm	_K_ENTER,4,2                    ## @K_ENTER
	.comm	_K_MOUSE2,4,2                   ## @K_MOUSE2
	.comm	_K_MOUSE3,4,2                   ## @K_MOUSE3
	.comm	_SLIDER_WIDTH,4,2               ## @SLIDER_WIDTH
	.comm	_SLIDER_THUMB_WIDTH,8,3         ## @SLIDER_THUMB_WIDTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%f"

	.comm	_qtrue,4,2                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"slider handle key exit\n"

	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Slider_HandleKey          ; -- Begin function Item_Slider_HandleKey
	.p2align	2
_Item_Slider_HandleKey:                 ; @Item_Slider_HandleKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _WINDOW_HASFOCUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINDOW_HASFOCUS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x22, _DC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DC@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.2:
	mov	x21, x1
	add	x20, x19, #12
	ldr	x8, [x22]
	ldr	s0, [x8]
	ldr	w1, [x8, #24]
	mov	x0, x20
	bl	_Rect_ContainsPoint
	cbz	x0, LBB0_10
; %bb.3:
Lloh5:
	adrp	x8, _K_MOUSE1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _K_MOUSE1@GOTPAGEOFF]
Lloh7:
	adrp	x9, _K_ENTER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _K_ENTER@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _K_MOUSE2@GOTPAGE
Lloh12:
	ldr	x10, [x10, _K_MOUSE2@GOTPAGEOFF]
Lloh13:
	adrp	x11, _K_MOUSE3@GOTPAGE
Lloh14:
	ldr	x11, [x11, _K_MOUSE3@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	ldr	w11, [x11]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	ccmp	w10, w21, #4, ne
	ccmp	w11, w21, #4, ne
	b.ne	LBB0_10
; %bb.4:
	ldr	x21, [x19, #40]
	cbz	x21, LBB0_10
; %bb.5:
Lloh17:
	adrp	x8, _SLIDER_WIDTH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SLIDER_WIDTH@GOTPAGEOFF]
Lloh19:
	ldr	s8, [x8]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.6:
	ldp	w8, w9, [x19, #20]
	add	w8, w8, w9
	add	w8, w8, #8
	scvtf	s9, w8
	b	LBB0_8
LBB0_7:
	ldr	s9, [x20]
LBB0_8:
Lloh20:
	adrp	x8, _SLIDER_THUMB_WIDTH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SLIDER_THUMB_WIDTH@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	scvtf	s0, x8
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	fsub	s1, s9, s0
	fadd	s0, s8, s0
	stp	s1, s0, [sp, #8]
	ldr	x8, [x22]
	ldr	s0, [x8]
	ldr	w1, [x8, #24]
	add	x0, sp, #8
	bl	_Rect_ContainsPoint
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x22]
	ldr	s0, [x8]
	fsub	s0, s0, s9
	fdiv	s0, s0, s8
	ldp	s1, s2, [x21]
	fsub	s1, s1, s2
	fmul	s0, s0, s1
	fadd	s0, s2, s0
	ldr	x20, [x8, #16]
	ldr	x19, [x19]
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	blr	x20
Lloh25:
	adrp	x8, _qtrue@GOTPAGE
Lloh26:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	blr	x8
Lloh29:
	adrp	x8, _qfalse@GOTPAGE
Lloh30:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOW_HASFOCUS,4,2            ; @WINDOW_HASFOCUS
	.comm	_DC,8,3                         ; @DC
	.comm	_K_MOUSE1,4,2                   ; @K_MOUSE1
	.comm	_K_ENTER,4,2                    ; @K_ENTER
	.comm	_K_MOUSE2,4,2                   ; @K_MOUSE2
	.comm	_K_MOUSE3,4,2                   ; @K_MOUSE3
	.comm	_SLIDER_WIDTH,4,2               ; @SLIDER_WIDTH
	.comm	_SLIDER_THUMB_WIDTH,8,3         ; @SLIDER_THUMB_WIDTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%f"

	.comm	_qtrue,4,2                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"slider handle key exit\n"

	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
