	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_pll_get_params
_dsi_pll_get_params:                    ## @dsi_pll_get_params
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, %rax
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_2
## %bb.3:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_IDF_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_IDF_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%eax, %eax
	cmpl	%r8d, %r9d
	jg	LBB0_17
## %bb.4:
	movq	_ODF_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdi), %r10d
	imull	%esi, %r10d
	addl	%r10d, %r10d
	movl	4(%rdi), %r14d
	movq	_ODF_MIN@GOTPCREL(%rip), %r11
	imull	(%r11), %r14d
	addl	%r14d, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rax), %edi
	movl	$1000000, -48(%rbp)             ## 4-byte Folded Spill
                                        ## imm = 0xF4240
	movq	_NDIV_MAX@GOTPCREL(%rip), %r13
	movl	%r10d, -76(%rbp)                ## 4-byte Spill
	movl	%r14d, -72(%rbp)                ## 4-byte Spill
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_IDF_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movl	-76(%rbp), %r10d                ## 4-byte Reload
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	movq	_ODF_MIN@GOTPCREL(%rip), %r11
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	_NDIV_MAX@GOTPCREL(%rip), %r13
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r9), %eax
	cmpl	%r8d, %r9d
	movl	%eax, %r9d
	jge	LBB0_16
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	%r10d, %eax
	imull	%r9d, %eax
	cltd
	idivl	%edi
	movl	%eax, %ecx
	incl	%ecx
	movl	(%r13), %ebx
	cmpl	%ebx, %ecx
	jge	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %eax
	imull	%r9d, %eax
	cltd
	idivl	%edi
	movq	_NDIV_MIN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	cmpl	%r15d, %ecx
	cmovgl	%ecx, %r15d
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movl	(%r11), %r12d
	cmpl	%esi, %r12d
	jg	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r9d, %r14d
	imull	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpl	%esi, %eax
	je	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	addl	%r12d, %r12d
	movq	_ODF_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, %r12d
	jg	LBB0_14
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	imull	%r12d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DIV_ROUND_CLOSEST
	cmpl	%r15d, %eax
	jl	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	%eax, %r13d
	cmpl	%ebx, %eax
	jg	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_dsi_pll_get_clkout_khz
	movl	%eax, %edx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	%esi, %edx
	movl	%edx, %ecx
	negl	%ecx
	cmovsl	%edx, %ecx
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%edi, (%rdx)
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, (%rdx)
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	%r12d, (%rdx)
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ODF_MAX,4,2                    ## @ODF_MAX
	.comm	_ODF_MIN,4,2                    ## @ODF_MIN
	.comm	_IDF_MIN,4,2                    ## @IDF_MIN
	.comm	_IDF_MAX,4,2                    ## @IDF_MAX
	.comm	_NDIV_MAX,4,2                   ## @NDIV_MAX
	.comm	_NDIV_MIN,4,2                   ## @NDIV_MIN
	.no_dead_strip	_dsi_pll_get_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_pll_get_params
_dsi_pll_get_params:                    ; @dsi_pll_get_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x4, x5, [sp, #32]               ; 16-byte Folded Spill
	str	x3, [sp, #24]                   ; 8-byte Folded Spill
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, x2
	cmp	w2, #0
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _IDF_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDF_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _IDF_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDF_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	cmp	w24, w9
	b.le	LBB0_6
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	mov	x23, x1
Lloh9:
	adrp	x28, _ODF_MAX@GOTPAGE
Lloh10:
	ldr	x28, [x28, _ODF_MAX@GOTPAGEOFF]
	ldr	w8, [x28]
	ldp	w10, w11, [x0]
	mul	w10, w10, w8
	lsl	w14, w10, #1
Lloh11:
	adrp	x15, _ODF_MIN@GOTPAGE
Lloh12:
	ldr	x15, [x15, _ODF_MIN@GOTPAGEOFF]
	ldr	w10, [x15]
	mul	w10, w11, w10
	lsl	w16, w10, #1
	lsl	w17, w1, #1
	mov	w27, #16960
	movk	w27, #15, lsl #16
Lloh13:
	adrp	x0, _NDIV_MAX@GOTPAGE
Lloh14:
	ldr	x0, [x0, _NDIV_MAX@GOTPAGEOFF]
Lloh15:
	adrp	x1, _NDIV_MIN@GOTPAGE
Lloh16:
	ldr	x1, [x1, _NDIV_MIN@GOTPAGEOFF]
	stp	w16, w14, [sp, #16]             ; 8-byte Folded Spill
	str	w17, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh17:
	adrp	x9, _IDF_MAX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IDF_MAX@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldp	w16, w14, [sp, #16]             ; 8-byte Folded Reload
Lloh20:
	adrp	x15, _ODF_MIN@GOTPAGE
Lloh21:
	ldr	x15, [x15, _ODF_MIN@GOTPAGEOFF]
	ldr	w17, [sp, #12]                  ; 4-byte Folded Reload
Lloh22:
	adrp	x0, _NDIV_MAX@GOTPAGE
Lloh23:
	ldr	x0, [x0, _NDIV_MAX@GOTPAGEOFF]
Lloh24:
	adrp	x1, _NDIV_MIN@GOTPAGE
Lloh25:
	ldr	x1, [x1, _NDIV_MIN@GOTPAGEOFF]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w10, w24, #1
	cmp	w24, w9
	mov	x24, x10
	b.ge	LBB0_3
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mul	w10, w14, w24
	sdiv	w10, w10, w17
	add	w11, w10, #1
	ldr	w10, [x0]
	cmp	w11, w10
	b.ge	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mul	w12, w16, w24
	sdiv	w12, w12, w17
	ldr	w13, [x1]
	cmp	w11, w13
	csel	w19, w11, w13, gt
	cmp	w12, w10
	csel	w20, w12, w10, lt
	ldr	w25, [x15]
	cmp	w25, w8
	b.gt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mul	w21, w24, w22
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	cmp	w0, w22
	b.eq	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	lsl	w25, w25, #1
	ldr	w8, [x28]
	cmp	w25, w8
	b.gt	LBB0_7
LBB0_14:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	w0, w21, w25
	mov	x1, x23
	bl	_DIV_ROUND_CLOSEST
	cmp	w0, w19
	ccmp	w0, w20, #0, ge
	b.gt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x26, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x26
	mov	x3, x25
	bl	_dsi_pll_get_clkout_khz
	subs	w8, w0, w22
	cneg	w8, w8, mi
	cmp	w8, w27
	b.ge	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w24, [x9]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	w26, [x9]
	mov	x27, x8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	w25, [x8]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ODF_MAX,4,2                    ; @ODF_MAX
	.comm	_ODF_MIN,4,2                    ; @ODF_MIN
	.comm	_IDF_MIN,4,2                    ; @IDF_MIN
	.comm	_IDF_MAX,4,2                    ; @IDF_MAX
	.comm	_NDIV_MAX,4,2                   ; @NDIV_MAX
	.comm	_NDIV_MIN,4,2                   ; @NDIV_MIN
	.no_dead_strip	_dsi_pll_get_params
.subsections_via_symbols
