	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad714x_wheel_cal_flt_pos
_ad714x_wheel_cal_flt_pos:              ## @ad714x_wheel_cal_flt_pos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r8
	movslq	%esi, %rdx
	movq	(%rax), %rax
	leaq	(,%rdx,8), %rcx
	leaq	(%rcx,%rcx,2), %rsi
	movq	(%rax,%rsi), %rdi
	movq	(%r8,%rsi), %r9
	cmpq	%r9, %rdi
	jne	LBB0_1
## %bb.2:
	movq	8(%r8,%rsi), %rcx
	cmpq	%rcx, 8(%rax,%rsi)
	je	LBB0_5
## %bb.3:
	cmpq	%rcx, %rdi
	je	LBB0_4
	jmp	LBB0_6
LBB0_1:
	leaq	(%rdx,%rdx,2), %rcx
	movq	8(%r8,%rcx,8), %rcx
	cmpq	%rcx, %rdi
	jne	LBB0_6
LBB0_4:
	leaq	(%rdx,%rdx,2), %rcx
	cmpq	%r9, 8(%rax,%rcx,8)
	jne	LBB0_6
LBB0_5:
	leaq	(%rdx,%rdx,2), %rcx
	movl	20(%rax,%rcx,8), %esi
	movl	%esi, 16(%rax,%rcx,8)
	jmp	LBB0_7
LBB0_6:
	leaq	(%rdx,%rdx,2), %r9
	movl	16(%rax,%r9,8), %esi
	movl	%esi, %edi
	shll	$5, %edi
	subl	%esi, %edi
	imull	$71, 20(%rax,%r9,8), %ecx
	subl	%esi, %edi
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rsi         ## imm = 0x51EB851F
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$37, %rsi
	addl	%ecx, %esi
	movl	%esi, 16(%rax,%r9,8)
LBB0_7:
	leaq	(%rdx,%rdx,2), %rcx
	movl	16(%r8,%rcx,8), %edx
	cmpl	%edx, %esi
	jle	LBB0_9
## %bb.8:
	movl	%edx, 16(%rax,%rcx,8)
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ad714x_wheel_cal_flt_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad714x_wheel_cal_flt_pos
_ad714x_wheel_cal_flt_pos:              ; @ad714x_wheel_cal_flt_pos
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldp	x9, x8, [x0]
	ldr	x10, [x8]
	sxtw	x8, w1
	ldr	x9, [x9]
	add	x11, x8, w1, sxtw #1
	lsl	x11, x11, #3
	ldr	x12, [x9, x11]
	ldr	x11, [x10, x11]
	cmp	x12, x11
	b.ne	LBB0_3
; %bb.1:
	add	x13, x8, x8, lsl #1
	lsl	x13, x13, #3
	add	x14, x9, x13
	ldr	x14, [x14, #8]
	add	x13, x10, x13
	ldr	x13, [x13, #8]
	cmp	x14, x13
	b.eq	LBB0_5
; %bb.2:
	cmp	x12, x13
	b.eq	LBB0_4
	b	LBB0_6
LBB0_3:
	mov	w13, #24
	madd	x13, x8, x13, x10
	ldr	x13, [x13, #8]
	cmp	x12, x13
	b.ne	LBB0_6
LBB0_4:
	mov	w12, #24
	madd	x12, x8, x12, x9
	ldr	x12, [x12, #8]
	cmp	x12, x11
	b.ne	LBB0_6
LBB0_5:
	mov	w11, #24
	madd	x12, x8, x11, x9
	ldr	w11, [x12, #20]
	b	LBB0_7
LBB0_6:
	mov	w11, #24
	madd	x12, x8, x11, x9
	mov	w11, #30
	ldp	w13, w14, [x12, #16]
	mul	w11, w13, w11
	mov	w13, #71
	madd	w11, w14, w13, w11
	mov	w13, #34079
	movk	w13, #20971, lsl #16
	smull	x11, w11, w13
	lsr	x13, x11, #63
	asr	x11, x11, #37
	add	w11, w11, w13
LBB0_7:
	str	w11, [x12, #16]
	mov	w12, #24
	madd	x10, x8, x12, x10
	ldr	w10, [x10, #16]
	cmp	w11, w10
	b.le	LBB0_9
; %bb.8:
	mov	w11, #24
	madd	x8, x8, x11, x9
	str	w10, [x8, #16]
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ad714x_wheel_cal_flt_pos
.subsections_via_symbols
