	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpi_check_timings
_dpi_check_timings:                     ## @dpi_check_timings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_dpi_get_data_from_dssdev
	testb	$7, (%rbx)
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.3:
	imull	$1000, %ecx, %esi               ## imm = 0x3E8
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	leaq	-40(%rbp), %rdx
	movq	%rax, %rdi
	callq	_dpi_pll_clk_calc
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movq	-40(%rbp), %rax
	shlq	$3, %rax
	addq	-16(%rbp), %rax
	jmp	LBB0_8
LBB0_6:
	leaq	-40(%rbp), %rdx
	movq	%rax, %rdi
	callq	_dpi_dss_clk_calc
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	leaq	-32(%rbp), %rax
LBB0_8:
	movq	(%rax), %rax
	movslq	-24(%rbp), %rsi
	movslq	-20(%rbp), %rcx
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_11
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_12
## %bb.13:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_14
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_14:
	shrq	$3, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	mulq	%rcx
	shrq	$4, %rdx
	movl	%edx, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dpi_check_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpi_check_timings
_dpi_check_timings:                     ; @dpi_check_timings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_dpi_get_data_from_dssdev
	ldrb	w8, [x19]
	tst	w8, #0x7
	b.eq	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_1
; %bb.4:
	ldr	x9, [x0]
	mov	w10, #1000
	mul	w1, w8, w10
	cbz	x9, LBB0_7
; %bb.5:
	mov	x2, sp
	bl	_dpi_pll_clk_calc
	cbz	w0, LBB0_1
; %bb.6:
	ldr	x8, [sp, #24]
	ldr	x9, [sp]
	add	x8, x8, x9, lsl #3
	b	LBB0_9
LBB0_7:
	mov	x20, sp
	mov	x2, sp
	bl	_dpi_dss_clk_calc
	cbz	w0, LBB0_1
; %bb.8:
	add	x8, x20, #8
LBB0_9:
	mov	w0, #0
	ldr	x8, [x8]
	ldpsw	x9, x10, [sp, #16]
	udiv	x8, x8, x9
	udiv	x8, x8, x10
	lsr	x8, x8, #3
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	umulh	x8, x8, x9
	lsr	x8, x8, #4
	str	w8, [x19, #4]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dpi_check_timings
.subsections_via_symbols
