	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp550_se_calc_mclk
_malidp550_se_calc_mclk:                ## @malidp550_se_calc_mclk
	.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	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdx), %rax
	movl	$1, %esi
	cmpq	$0, 32(%r15)
	movl	$1, %ebx
	movl	$1, %ecx
	je	LBB0_2
## %bb.1:
	movdqu	8(%rdx), %xmm0
	movdqu	24(%rdx), %xmm1
	paddq	%xmm0, %xmm1
	movdqa	%xmm1, -64(%rbp)                ## 16-byte Spill
	movl	24(%r15), %edi
	movq	(%r15), %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_max
	movq	%rax, %r12
	movq	(%r15), %r14
	movq	8(%r15), %rdi
	imulq	%rdi, %r12
	movq	16(%r15), %rbx
	movq	%rbx, %rsi
	callq	_min
	movl	$1, %esi
	subq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	imulq	%r14, %rbx
	addq	%r12, %rbx
	movdqa	-64(%rbp), %xmm1                ## 16-byte Reload
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rcx
	addq	$-2, %rcx
	imulq	16(%r15), %rcx
LBB0_2:
	cmpq	%rcx, %rbx
	cmovbq	%rsi, %rbx
	cmovbq	%rsi, %rcx
	imulq	%rax, %rbx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_3:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_5:
	movl	(%r13), %edi
	callq	_clk_get_rate
	cmpq	%rbx, %rax
	jae	LBB0_7
## %bb.6:
	shrq	$3, %rbx
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	movq	%rbx, %rax
	mulq	%rcx
	shrq	$4, %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	callq	_DRM_DEBUG_DRIVER
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mclk requirement of %lu kHz can't be met.\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_malidp550_se_calc_mclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp550_se_calc_mclk
_malidp550_se_calc_mclk:                ; @malidp550_se_calc_mclk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x22, [x2]
	ldr	x8, [x1, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x1
	ldp	x23, x24, [x2, #8]
	ldp	x25, x26, [x2, #24]
	ldr	w0, [x1, #24]
	ldr	x1, [x1]
	bl	_max
	ldp	x27, x8, [x20]
	mul	x28, x8, x0
	ldr	x21, [x20, #16]
	mov	x0, x8
	mov	x1, x21
	bl	_min
	sub	x8, x21, x0
	madd	x8, x8, x27, x28
	add	x9, x23, x24
	add	x9, x9, x25
	add	x9, x9, x26
	sub	x9, x9, #2
	ldr	x10, [x20, #16]
	mul	x9, x10, x9
	b	LBB0_3
LBB0_2:
	mov	w8, #1
	mov	w9, #1
LBB0_3:
	cmp	x8, x9
	csinc	x8, x8, xzr, hs
	csinc	x9, x9, xzr, hs
	mul	x8, x8, x22
	ldr	w0, [x19]
	udiv	x19, x8, x9
	bl	_clk_get_rate
	cmp	x0, x19
	b.hs	LBB0_5
; %bb.4:
	lsr	x8, x19, #3
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	umulh	x8, x8, x9
	lsr	x1, x8, #4
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mclk requirement of %lu kHz can't be met.\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_malidp550_se_calc_mclk
.subsections_via_symbols
