	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn20_calc_max_scaled_time     ## -- Begin function dcn20_calc_max_scaled_time
	.p2align	4, 0x90
_dcn20_calc_max_scaled_time:            ## @dcn20_calc_max_scaled_time
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PACKED_444@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%esi, %ecx
	jne	LBB0_2
## %bb.1:
	shrl	$2, %edi
	jmp	LBB0_5
LBB0_2:
	movq	_PLANAR_420_8BPC@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_PLANAR_420_10BPC@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_6
## %bb.4:
	imull	$819, %edi, %edi                ## imm = 0x333
	shrl	$10, %edi
LBB0_5:
	testl	%edi, %edi
	jne	LBB0_7
LBB0_6:
	movl	$1, %edi
LBB0_7:
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	sete	%al
	shll	$10, %eax
	orl	$640, %eax                      ## imm = 0x280
	imull	%edi, %eax
	andl	$268435328, %eax                ## imm = 0xFFFFF80
	subl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKED_444,4,2                 ## @PACKED_444
	.comm	_PLANAR_420_8BPC,4,2            ## @PLANAR_420_8BPC
	.comm	_PLANAR_420_10BPC,4,2           ## @PLANAR_420_10BPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn20_calc_max_scaled_time     ; -- Begin function dcn20_calc_max_scaled_time
	.p2align	2
_dcn20_calc_max_scaled_time:            ; @dcn20_calc_max_scaled_time
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PACKED_444@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKED_444@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	lsr	w0, w0, #2
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x9, _PLANAR_420_8BPC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLANAR_420_8BPC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w1
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x9, _PLANAR_420_10BPC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PLANAR_420_10BPC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_6
; %bb.4:
	mov	w9, #819
	mul	w9, w0, w9
	lsr	w0, w9, #10
LBB0_5:
	cbnz	w0, LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	mov	w9, #640
	mov	w10, #1664
	cmp	w8, w1
	csel	w8, w10, w9, eq
	mul	w8, w8, w0
	and	w8, w8, #0xfffff80
	sub	w0, w8, w2
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKED_444,4,2                 ; @PACKED_444
	.comm	_PLANAR_420_8BPC,4,2            ; @PLANAR_420_8BPC
	.comm	_PLANAR_420_10BPC,4,2           ; @PLANAR_420_10BPC
.subsections_via_symbols
