	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad714x_cal_abs_pos
_ad714x_cal_abs_pos:                    ## @ad714x_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%r8d, %eax
	movl	%edx, %r8d
	movl	%ecx, %edx
	subl	%esi, %edx
	jne	LBB0_2
## %bb.1:
	movq	(%rdi), %rdx
	movslq	%ecx, %rcx
	movl	4(%rdx,%rcx,4), %edi
	movl	(%rdx,%rcx,4), %r9d
	addl	%edi, %r9d
	jmp	LBB0_5
LBB0_2:
	movq	(%rdi), %r11
	movslq	%ecx, %r14
	movl	-4(%r11,%r14,4), %r9d
	movl	(%r11,%r14,4), %r10d
	movl	%r10d, %ebx
	imull	%edx, %ebx
	leal	-1(%rdx), %edi
	imull	%r9d, %edi
	addl	%ebx, %edi
	cmpl	%r8d, %ecx
	jne	LBB0_4
## %bb.3:
	addl	%r10d, %r9d
	jmp	LBB0_5
LBB0_4:
	movl	4(%r11,%r14,4), %ecx
	incl	%edx
	imull	%ecx, %edx
	addl	%edx, %edi
	addl	%r10d, %r9d
	addl	%ecx, %r9d
LBB0_5:
	subl	%esi, %r8d
	cltd
	idivl	%r8d
	imull	%edi, %eax
	cltd
	idivl	%r9d
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ad714x_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_cal_abs_pos
_ad714x_cal_abs_pos:                    ; @ad714x_cal_abs_pos
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w3 killed $w3 def $x3
	subs	w9, w3, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x0]
	add	x9, x8, w3, sxtw #2
	ldp	w9, w8, [x9]
	add	w9, w9, w8
	b	LBB0_5
LBB0_2:
	ldr	x12, [x0]
	add	x8, x12, w3, sxtw #2
	ldp	w11, w10, [x8, #-4]
	mul	w13, w10, w9
	sub	w8, w9, #1
	madd	w8, w11, w8, w13
	cmp	w3, w2
	b.ne	LBB0_4
; %bb.3:
	add	w9, w11, w10
	b	LBB0_5
LBB0_4:
	sxtw	x13, w3
	add	x12, x12, x13, lsl #2
	ldr	w12, [x12, #4]
	madd	w9, w12, w9, w12
	add	w8, w8, w9
	add	w9, w11, w10
	add	w9, w9, w12
LBB0_5:
	sub	w10, w2, w1
	sdiv	w10, w4, w10
	mul	w8, w10, w8
	sdiv	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ad714x_cal_abs_pos
.subsections_via_symbols
