	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_pll_calc_dec_frac
_dsi_pll_calc_dec_frac:                 ## @dsi_pll_calc_dec_frac
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	cmpq	$0, 48(%rdi)
	sete	%cl
	shll	%cl, %esi
	movb	40(%rdi), %cl
	movl	$1, %r14d
	shll	%cl, %r14d
	movl	4(%rdi), %r12d
	movl	%r12d, %edi
	shll	%cl, %edi
	callq	_div_u64
	movl	%eax, %r15d
	leaq	-36(%rbp), %rdx
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_div_u64_rem
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_div_u64
	cmpl	$1900000001, %r12d              ## imm = 0x713FB301
	jae	LBB0_1
## %bb.2:
	movl	$8, 8(%rbx)
	movl	$8, %ecx
	cmpl	$1100000000, %r12d              ## imm = 0x4190AB00
	jae	LBB0_3
	jmp	LBB0_4
LBB0_1:
	shrl	$31, %r12d
	leal	(%r12,%r12), %ecx
	addl	$10, %ecx
	movl	%ecx, 8(%rbx)
LBB0_3:
	xorl	%ecx, %ecx
LBB0_4:
	movl	%ecx, 12(%rbx)
	movl	44(%rbx), %ecx
	movl	%ecx, 32(%rbx)
	movl	%eax, 16(%rbx)
	movl	-36(%rbp), %eax
	movzbl	%al, %ecx
	movl	%ecx, 20(%rbx)
	movzbl	%ah, %ecx
	movl	%ecx, 24(%rbx)
	shrl	$16, %eax
	andl	$3, %eax
	movl	%eax, 28(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dsi_pll_calc_dec_frac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dsi_pll_calc_dec_frac
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
lCPI0_1:
	.long	255                             ; 0xff
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dsi_pll_calc_dec_frac:                 ; @dsi_pll_calc_dec_frac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	w8, w22, [x0]
	ldr	x9, [x0, #48]
	cmp	x9, #0
	cset	w9, eq
	lsl	w1, w8, w9
	ldr	w8, [x0, #40]
	mov	w9, #1
	lsl	w20, w9, w8
	lsl	w0, w22, w8
	bl	_div_u64
	mov	x21, x0
	add	x2, sp, #12
	mov	x1, x20
	bl	_div_u64_rem
	mov	x0, x21
	mov	x1, x20
	bl	_div_u64
	mov	w8, #45825
	movk	w8, #28991, lsl #16
	cmp	w22, w8
	b.hs	LBB0_2
; %bb.1:
	mov	w8, #8
	str	w8, [x19, #8]
	mov	w9, #43776
	movk	w9, #16784, lsl #16
	cmp	w22, w9
	b.hs	LBB0_3
	b	LBB0_4
LBB0_2:
	mov	w8, #12
	mov	w9, #10
	cmp	w22, #0
	csel	w8, w9, w8, ge
	str	w8, [x19, #8]
LBB0_3:
	mov	w8, #0
LBB0_4:
	ldr	w9, [x19, #44]
	str	w9, [x19, #32]
	stp	w8, w0, [x19, #12]
	ldr	w8, [sp, #12]
	and	w9, w8, #0xff
	str	w9, [x19, #20]
	dup.2s	v0, w8
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
Lloh2:
	adrp	x8, lCPI0_1@PAGE
Lloh3:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	and.8b	v0, v0, v1
	str	d0, [x19, #24]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dsi_pll_calc_dec_frac
.subsections_via_symbols
