	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2GetTimeToNextSector         ## -- Begin function Cs2GetTimeToNextSector
	.p2align	4, 0x90
_Cs2GetTimeToNextSector:                ## @Cs2GetTimeToNextSector
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Cs2Area@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	andl	$15, %ecx
	movq	_CDB_STAT_PLAY@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_2
## %bb.1:
	movl	4(%rax), %ecx
	subl	8(%rax), %ecx
	addl	$2, %ecx
	movslq	%ecx, %rax
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rax
	shrq	$63, %rax
	shrq	$32, %rcx
	addl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovgl	%ecx, %eax
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_CDB_STAT_PLAY,4,2              ## @CDB_STAT_PLAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2GetTimeToNextSector         ; -- Begin function Cs2GetTimeToNextSector
	.p2align	2
_Cs2GetTimeToNextSector:                ; @Cs2GetTimeToNextSector
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Cs2Area@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	and	w9, w9, #0xf
Lloh3:
	adrp	x10, _CDB_STAT_PLAY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CDB_STAT_PLAY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
	ldp	w9, w8, [x8, #4]
	sub	w8, w9, w8
	add	w8, w8, #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	cmp	w8, #0
	csel	w0, w8, wzr, gt
	ret
LBB0_2:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_CDB_STAT_PLAY,4,2              ; @CDB_STAT_PLAY
.subsections_via_symbols
