	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad714x_wheel_cal_abs_pos
_ad714x_wheel_cal_abs_pos:              ## @ad714x_wheel_cal_abs_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	%r15
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	(%rax), %r8
	movslq	%esi, %r10
	movq	(%rdi), %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r9
	leaq	(%r10,%r10,2), %r14
	movl	(%r8,%r14,4), %edi
	movl	4(%r8,%r14,4), %ecx
	subl	%ecx, %edi
	leal	1(%rdi), %esi
	movslq	(%r9,%r10,8), %rbx
	leal	(%rbx,%rdi), %eax
	cltd
	idivl	%esi
	movl	%edx, %r11d
	leal	(%rbx,%rdi), %eax
	addl	$2, %eax
	cltd
	idivl	%esi
	movl	(%r15,%rbx,4), %eax
	subl	%ecx, %ebx
	movslq	%r11d, %rcx
	movl	(%r15,%rcx,4), %esi
	leal	-1(%rbx), %ecx
	imull	%esi, %ecx
	addl	%eax, %esi
	imull	%ebx, %eax
	addl	%eax, %ecx
	movslq	%edx, %rax
	movl	(%r15,%rax,4), %eax
	incl	%ebx
	imull	%eax, %ebx
	addl	%ecx, %ebx
	addl	%eax, %esi
	movl	8(%r8,%r14,4), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%edi
	imull	%ebx, %eax
	cltd
	idivl	%esi
	movl	%eax, 4(%r9,%r10,8)
	cmpl	%ecx, %eax
	jg	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jns	LBB0_4
## %bb.2:
	xorl	%ecx, %ecx
LBB0_3:
	movl	%ecx, 4(%r9,%r10,8)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ad714x_wheel_cal_abs_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_abs_pos
_ad714x_wheel_cal_abs_pos:              ; @ad714x_wheel_cal_abs_pos
	.cfi_startproc
; %bb.0:
	ldp	x9, x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x10, [x0]
	ldr	x9, [x9]
	mov	w11, #12
	smaddl	x11, w1, w11, x8
	ldp	w12, w13, [x11]
	add	x8, x9, w1, sxtw #3
	ldrsw	x9, [x8]
	sub	w12, w12, w13
	add	w14, w9, w12
	add	w15, w12, #1
	sdiv	w16, w14, w15
	msub	w14, w16, w15, w14
	add	w16, w9, w15
	add	w16, w16, #1
	sdiv	w17, w16, w15
	msub	w15, w17, w15, w16
	ldr	w16, [x10, x9, lsl #2]
	sub	w9, w9, w13
	mul	w13, w16, w9
	ldr	w14, [x10, w14, sxtw #2]
	sub	w17, w9, #1
	ldr	w10, [x10, w15, sxtw #2]
	madd	w13, w14, w17, w13
	madd	w9, w10, w9, w10
	add	w13, w13, w9
	add	w9, w14, w16
	add	w10, w9, w10
	ldr	w9, [x11, #8]
	sdiv	w11, w9, w12
	mul	w11, w11, w13
	sdiv	w10, w11, w10
	str	w10, [x8, #4]!
	cmp	w10, w9
	b.gt	LBB0_4
; %bb.1:
	tbnz	w10, #31, LBB0_3
; %bb.2:
	ret
LBB0_3:
	mov	w9, #0
LBB0_4:
	str	w9, [x8]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ad714x_wheel_cal_abs_pos
.subsections_via_symbols
