	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function menu_display_osk_ptr_at_pos
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x3ff8000000000000              ## double 1.5
LCPI0_2:
	.quad	0x4024000000000000              ## double 10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_menu_display_osk_ptr_at_pos
	.p2align	4, 0x90
_menu_display_osk_ptr_at_pos:           ## @menu_display_osk_ptr_at_pos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	%ecx, %r11d
	cvtsi2sd	%r11, %xmm0
	movl	$3123612579, %r9d               ## imm = 0xBA2E8BA3
	imulq	%r9, %r11
	shrq	$35, %r11
	movl	%r8d, %eax
	movl	$3435973837, %r10d              ## imm = 0xCCCCCCCD
	imulq	%rax, %r10
	shrq	$35, %r10
	cmpl	%r10d, %r11d
	cmovael	%r10d, %r11d
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	leal	(%r11,%r11,4), %edi
	leal	(%r11,%rdi,2), %edi
	cvtsi2sd	%edi, %xmm2
	mulsd	%xmm1, %xmm2
	subsd	%xmm2, %xmm0
	cvtsi2sd	%rax, %xmm3
	mulsd	%xmm1, %xmm3
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r10d, %xmm1
	movsd	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero
	mulsd	%xmm1, %xmm2
	addsd	%xmm3, %xmm2
	xorl	%eax, %eax
	movsd	LCPI0_2(%rip), %xmm3            ## xmm3 = mem[0],zero
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%eax
	cmpl	$44, %eax
	je	LBB0_3
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	imulq	%r9, %rdi
	shrq	$35, %rdi
	imull	$-11, %edi, %edi
	movzbl	%al, %ecx
	imull	$117, %ecx, %ebx
	shrl	$8, %ebx
	subb	%bl, %cl
	shrb	%cl
	addb	%bl, %cl
	shrb	$3, %cl
	movzbl	%cl, %ecx
	imull	%r8d, %ecx
	xorps	%xmm4, %xmm4
	cvtsi2sd	%rcx, %xmm4
	divsd	%xmm3, %xmm4
	addl	%eax, %edi
	imull	%r11d, %edi
	xorps	%xmm5, %xmm5
	cvtsi2sd	%rdi, %xmm5
	addsd	%xmm0, %xmm5
	cvttsd2si	%xmm5, %edi
	cmpl	%esi, %edi
	jge	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	%r11d, %edi
	cmpl	%esi, %edi
	jle	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cvttpd2dq	%xmm4, %xmm4
	cvtdq2pd	%xmm4, %xmm4
	addsd	%xmm2, %xmm4
	subsd	%xmm1, %xmm4
	cvttsd2si	%xmm4, %edi
	cmpl	%edx, %edi
	jge	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	%r10d, %edi
	cmpl	%edx, %edi
	jle	LBB0_2
	jmp	LBB0_7
LBB0_3:
	movl	$-1, %eax
LBB0_7:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_display_osk_ptr_at_pos    ; -- Begin function menu_display_osk_ptr_at_pos
	.p2align	2
_menu_display_osk_ptr_at_pos:           ; @menu_display_osk_ptr_at_pos
	.cfi_startproc
; %bb.0:
	mov	w0, #0
	mov	w8, #35747
	movk	w8, #47662, lsl #16
	umull	x8, w3, w8
	lsr	x9, x8, #35
	mov	w8, #52429
	movk	w8, #52428, lsl #16
	umull	x8, w4, w8
	lsr	x8, x8, #35
	ucvtf	d0, w3
	cmp	w9, w8
	csel	w9, w9, w8, lo
	fmov	d1, #0.50000000
	mov	w10, #11
	mul	w11, w9, w10
	scvtf	d2, w11
	fmul	d0, d0, d1
	fmul	d2, d2, d1
	fsub	d0, d0, d2
	ucvtf	d2, w4
	fmul	d2, d2, d1
	scvtf	d1, w8
	fmov	d3, #1.50000000
	fmadd	d2, d1, d3, d2
	mov	w11, #117
	fmov	d3, #10.00000000
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w0, w0, #1
	cmp	w0, #44
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w12, w0, #0xff
	mul	w12, w12, w11
	lsr	w12, w12, #8
	sub	w13, w0, w12
	and	w13, w13, #0xfe
	add	w12, w12, w13, lsr #1
	lsr	w12, w12, #3
	msub	w13, w12, w10, w0
	and	w13, w13, #0xff
	mul	w13, w9, w13
	ucvtf	d4, w13
	fadd	d4, d0, d4
	fcvtzs	w13, d4
	add	w14, w9, w13
	cmp	w13, w1
	ccmp	w14, w1, #4, lt
	b.le	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mul	w12, w12, w4
	ucvtf	d4, w12
	fdiv	d4, d4, d3
	fcvtzs	w12, d4
	scvtf	d4, w12
	fadd	d4, d2, d4
	fsub	d4, d4, d1
	fcvtzs	w12, d4
	add	w13, w8, w12
	cmp	w12, w2
	ccmp	w13, w2, #4, lt
	b.le	LBB0_1
; %bb.4:
	ret
LBB0_5:
	mov	w0, #-1
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
