	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdns_dsi_get_dphy_pll_cfg
_cdns_dsi_get_dphy_pll_cfg:             ## @cdns_dsi_get_dphy_pll_cfg
	.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	%rdx, %r15
	movq	%rsi, %r14
	movl	(%rdi), %edi
	callq	_clk_get_rate
	movq	%rax, %r12
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	leaq	-150000000(%r12), %rax
	cmpq	$-140400001, %rax               ## imm = 0xF7A1AA7F
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_2:
	cmpq	$19199999, %r12                 ## imm = 0x124F7FF
	ja	LBB0_4
## %bb.3:
	movl	$1, (%r14)
	movl	$1, %eax
	jmp	LBB0_9
LBB0_4:
	cmpq	$38399999, %r12                 ## imm = 0x249EFFF
	ja	LBB0_6
## %bb.5:
	movl	$2, (%r14)
	movl	$2, %eax
	jmp	LBB0_9
LBB0_6:
	cmpq	$76799999, %r12                 ## imm = 0x493DFFF
	ja	LBB0_8
## %bb.7:
	movl	$4, (%r14)
	movl	$4, %eax
	jmp	LBB0_9
LBB0_8:
	movl	$8, (%r14)
	movl	$8, %eax
LBB0_9:
	movq	(%r15), %rdi
	movabsq	$-2500000001, %rcx              ## imm = 0xFFFFFFFF6AFD06FF
	leaq	(%rdi,%rcx), %rdx
	addq	$160000000, %rcx                ## imm = 0x9896800
	cmpq	%rcx, %rdx
	jae	LBB0_11
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_11:
	cmpq	$1250000000, %rdi               ## imm = 0x4A817C80
	jb	LBB0_13
## %bb.12:
	movl	$1, 4(%r14)
	movl	$1, %ecx
	jmp	LBB0_18
LBB0_13:
	cmpq	$630000000, %rdi                ## imm = 0x258D0980
	jb	LBB0_15
## %bb.14:
	movl	$2, 4(%r14)
	movl	$2, %ecx
	jmp	LBB0_18
LBB0_15:
	cmpq	$320000000, %rdi                ## imm = 0x1312D000
	jb	LBB0_17
## %bb.16:
	movl	$4, 4(%r14)
	movl	$4, %ecx
	jmp	LBB0_18
LBB0_17:
	movl	$8, 4(%r14)
	movl	$8, %ecx
LBB0_18:
	imulq	%rcx, %rdi
	imulq	%rax, %rdi
	addq	%rdi, %rdi
	movq	%r12, %rsi
	callq	_DIV_ROUND_UP_ULL
	movl	%eax, 8(%r14)
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cdns_dsi_get_dphy_pll_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdns_dsi_get_dphy_pll_cfg
_cdns_dsi_get_dphy_pll_cfg:             ; @cdns_dsi_get_dphy_pll_cfg
	.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	x21, x2
	mov	x19, x1
	ldr	w0, [x0]
	bl	_clk_get_rate
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	x8, #-53632
	movk	x8, #63247, lsl #16
	mov	x9, #-21889
	movk	x9, #63393, lsl #16
	add	x8, x20, x8
	cmp	x8, x9
	b.ls	LBB0_9
; %bb.1:
	mov	w8, #63487
	movk	w8, #292, lsl #16
	cmp	x20, x8
	b.hi	LBB0_3
; %bb.2:
	mov	w8, #1
	b	LBB0_8
LBB0_3:
	mov	w8, #61439
	movk	w8, #585, lsl #16
	cmp	x20, x8
	b.hi	LBB0_5
; %bb.4:
	mov	w8, #2
	b	LBB0_8
LBB0_5:
	mov	w8, #57343
	movk	w8, #1171, lsl #16
	cmp	x20, x8
	b.hi	LBB0_7
; %bb.6:
	mov	w8, #4
	b	LBB0_8
LBB0_7:
	mov	w8, #8
LBB0_8:
	str	w8, [x19]
	ldr	x9, [x21]
	mov	x10, #-63745
	movk	x10, #27389, lsl #16
	mov	x11, #-37122
	movk	x11, #29830, lsl #16
	add	x10, x9, x10
	cmp	x10, x11
	b.hi	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_10:
	mov	w10, #31872
	movk	w10, #19073, lsl #16
	cmp	x9, x10
	b.lo	LBB0_12
; %bb.11:
	mov	w10, #1
	b	LBB0_17
LBB0_12:
	mov	w10, #2432
	movk	w10, #9613, lsl #16
	cmp	x9, x10
	b.lo	LBB0_14
; %bb.13:
	mov	w10, #2
	b	LBB0_17
LBB0_14:
	mov	w10, #53248
	movk	w10, #4882, lsl #16
	cmp	x9, x10
	b.lo	LBB0_16
; %bb.15:
	mov	w10, #4
	b	LBB0_17
LBB0_16:
	mov	w10, #8
LBB0_17:
	str	w10, [x19, #4]
	mul	x9, x9, x10
	mul	x8, x9, x8
	lsl	x0, x8, #1
	mov	x1, x20
	bl	_DIV_ROUND_UP_ULL
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
LBB0_18:
	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	_cdns_dsi_get_dphy_pll_cfg
.subsections_via_symbols
