	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_lp_clock_calc
_dsi_lp_clock_calc:                     ## @dsi_lp_clock_calc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	(%rdx,%rdx), %rsi
	callq	_DIV_ROUND_UP
	movl	%eax, %ecx
	shrq	%rbx
	movl	%eax, %esi
	movabsq	$9223372032559808512, %rax      ## imm = 0x7FFFFFFF00000000
	testq	%rax, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rsi
	cmpq	%r15, %rax
	jae	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%r15, %rax
	jb	LBB0_5
LBB0_4:
	cmpq	%r12, %rax
	ja	LBB0_5
## %bb.6:
	movl	%ecx, (%r14)
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dsi_lp_clock_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_lp_clock_calc
_dsi_lp_clock_calc:                     ; @dsi_lp_clock_calc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	lsl	x1, x2, #1
	bl	_DIV_ROUND_UP
	lsr	x9, x22, #1
	mov	w10, w0
	udiv	x9, x9, x10
	cmp	x9, x21
	ccmp	x9, x20, #2, hs
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	str	x9, [x19, #8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dsi_lp_clock_calc
.subsections_via_symbols
