	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_vm_calc
_dsi_vm_calc:                           ## @dsi_vm_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	24(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	20(%rsi), %edi
	callq	_dsi_get_pixel_size
	movl	%eax, %r12d
	leaq	4(%rbx), %r14
	movl	4(%rbx), %edi
	callq	_clk_get_rate
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%rbx, 40(%r13)
	movq	%r14, (%r13)
	movq	%r15, 32(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	leaq	-1000(%rax), %rdi
	movq	%rdi, 16(%r13)
	movq	%rax, 24(%r13)
	addq	$1000, %rax                     ## imm = 0x3E8
	movq	%rax, 8(%r13)
	imull	%r12d, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-8(,%rax,8), %r14d
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r14d, %esi
	callq	_div64_u64
	movl	(%r15), %edi
	shll	$2, %edi
	shlq	$4, %rax
	movq	%rax, %rsi
	callq	_max
	movq	%rax, %rbx
	movq	8(%r15), %rax
	movq	_OMAP_DSS_DSI_BURST_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movslq	16(%r15), %rcx
	shlq	$2, %rcx
	jmp	LBB0_3
LBB0_2:
	imull	8(%r13), %r12d
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_div64_u64
	movq	%rax, %rcx
	shlq	$4, %rcx
LBB0_3:
	movq	(%r13), %rdi
	movq	_dsi_vm_calc_pll_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r13, %r9
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dss_pll_calc_a                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_DSS_DSI_BURST_MODE,8,3    ## @OMAP_DSS_DSI_BURST_MODE
	.comm	_dsi_vm_calc_pll_cb,4,2         ## @dsi_vm_calc_pll_cb
	.no_dead_strip	_dsi_vm_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_vm_calc
_dsi_vm_calc:                           ; @dsi_vm_calc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x24, [x1, #24]
	ldr	w25, [x0]
	ldr	w0, [x1, #20]
	bl	_dsi_get_pixel_size
	mov	x22, x0
	mov	x26, x23
	ldr	w0, [x26, #4]!
	bl	_clk_get_rate
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	stp	x21, x23, [x19, #32]
	ldr	x8, [x24]
	sub	x9, x8, #1000
	stp	x9, x8, [x19, #16]
	add	x8, x8, #1000
	stp	x26, x8, [x19]
	mul	w0, w22, w9
	lsl	w8, w25, #3
	sub	w24, w8, #8
	mov	x1, x24
	bl	_div64_u64
	ldr	w8, [x21]
	lsl	w8, w8, #2
	lsl	x1, x0, #4
	mov	x0, x8
	bl	_max
	mov	x23, x0
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _OMAP_DSS_DSI_BURST_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OMAP_DSS_DSI_BURST_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldrsw	x8, [x21, #16]
	lsl	x3, x8, #2
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #8]
	mul	w0, w22, w8
	mov	x1, x24
	bl	_div64_u64
	lsl	x3, x0, #4
LBB0_3:
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _dsi_vm_calc_pll_cb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dsi_vm_calc_pll_cb@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x1, x20
	mov	x2, x23
	mov	x5, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dss_pll_calc_a
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_DSS_DSI_BURST_MODE,8,3    ; @OMAP_DSS_DSI_BURST_MODE
	.comm	_dsi_vm_calc_pll_cb,4,2         ; @dsi_vm_calc_pll_cb
	.no_dead_strip	_dsi_vm_calc
.subsections_via_symbols
