	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as_update_seekdist
_as_update_seekdist:                    ## @as_update_seekdist
	.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
	movq	%rsi, %r14
	movl	(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$61, %eax
	movl	$2097152, %ecx                  ## imm = 0x200000
	movl	$131072, %eax                   ## imm = 0x20000
	cmovll	%ecx, %eax
	jmp	LBB0_3
LBB0_1:
	movl	(%rdi), %eax
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
	movl	%edx, %eax
	shll	$8, %eax
	leal	(%rcx,%rax), %esi
	addl	$7, %esi
	movl	%ecx, %ebx
	addl	%eax, %ebx
	cmovnsl	%ebx, %esi
	leal	2047(%rcx,%rax), %eax
	cmovnsl	%ebx, %eax
	sarl	$3, %esi
	movl	%esi, (%rdi)
	sarl	$11, %eax
	movl	%eax, 4(%rdi)
	movl	$2097152, %eax                  ## imm = 0x200000
LBB0_3:
	movl	4(%r14), %ecx
	leal	(%rax,%rcx,4), %esi
	movl	%edx, %edi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r14), %ecx
	leal	(,%rcx,8), %ebx
	subl	%ecx, %ebx
	leal	256(%rbx), %ecx
	leal	263(%rbx), %esi
	addl	$271, %ebx                      ## imm = 0x10F
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	movl	8(%r14), %edx
	cmovnsl	%ecx, %ebx
	sarl	$3, %esi
	movl	%esi, (%r14)
	leal	(,%rdx,8), %ecx
	subl	%edx, %ecx
	shll	$8, %eax
	leal	(%rcx,%rax), %edx
	addl	$7, %edx
	addl	%ecx, %eax
	cmovsl	%edx, %eax
	sarl	$3, %eax
	movl	%eax, 8(%r14)
	sarl	$4, %ebx
	addl	%eax, %ebx
	movl	%ebx, %edi
	callq	_do_div
	movl	%ebx, 4(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_as_update_seekdist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as_update_seekdist
_as_update_seekdist:                    ; @as_update_seekdist
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w9, #131072
	mov	w10, #2097152
	cmp	w8, #61
	csel	w8, w10, w9, lt
	b	LBB0_3
LBB0_2:
	ldr	w8, [x0]
	lsl	w9, w8, #3
	sub	w8, w9, w8
	add	w8, w8, w2, lsl #8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #3
	add	w10, w8, #2047
	csel	w8, w10, w8, lt
	asr	w8, w8, #11
	stp	w9, w8, [x0]
	mov	w8, #2097152
LBB0_3:
	ldr	w9, [x19, #4]
	add	w1, w8, w9, lsl #2
	mov	x0, x2
	bl	_min
	ldr	w8, [x19]
	lsl	w9, w8, #3
	sub	w8, w9, w8
	add	w9, w8, #256
	add	w10, w8, #263
	ldr	w11, [x19, #8]
	lsl	w12, w11, #3
	sub	w11, w12, w11
	add	w11, w11, w0, lsl #8
	add	w12, w11, #7
	cmp	w11, #0
	csel	w11, w12, w11, lt
	cmp	w9, #0
	csel	w10, w10, w9, lt
	asr	w1, w10, #3
	str	w1, [x19]
	asr	w10, w11, #3
	str	w10, [x19, #8]
	add	w8, w8, #271
	csel	w8, w8, w9, lt
	add	w20, w10, w8, asr #4
	mov	x0, x20
	bl	_do_div
	str	w20, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_as_update_seekdist
.subsections_via_symbols
