	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_dsc_get_output_bpp
_intel_dp_dsc_get_output_bpp:           ## @intel_dp_dsc_get_output_bpp
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
                                        ## kill: def $edi killed $edi def $rdi
	imull	%esi, %edi
	leal	(,%rdi,8), %ebx
	movl	%edx, %edi
	callq	_intel_dp_mode_to_fec_clock
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_DP_DSC_MAX_SMALL_JOINER_RAM_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r15d
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_min
	movl	%eax, %r12d
	movq	_valid_dsc_bpp@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movl	(%rdi), %edx
	cmpl	%edx, %eax
	jge	LBB0_1
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	callq	_ARRAY_SIZE
	decl	%eax
	cltq
	movq	(%r15), %rdi
	cmpq	%rax, %rbx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rbx), %rax
	cmpl	4(%rdi,%rbx,4), %r12d
	jge	LBB0_2
LBB0_4:
	movl	(%rdi,%rbx,4), %r14d
	shll	$4, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Max link bpp: %u\n"

	.comm	_DP_DSC_MAX_SMALL_JOINER_RAM_BUFFER,4,2 ## @DP_DSC_MAX_SMALL_JOINER_RAM_BUFFER
L_.str.1:                               ## @.str.1
	.asciz	"Max small joiner bpp: %u\n"

	.comm	_valid_dsc_bpp,8,3              ## @valid_dsc_bpp
L_.str.2:                               ## @.str.2
	.asciz	"Unsupported BPP %u, min %u\n"

	.no_dead_strip	_intel_dp_dsc_get_output_bpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_dsc_get_output_bpp
_intel_dp_dsc_get_output_bpp:           ; @intel_dp_dsc_get_output_bpp
	.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, x3
	mul	w8, w0, w1
	lsl	w20, w8, #3
	mov	x0, x2
	bl	_intel_dp_mode_to_fec_clock
	sdiv	w20, w20, w0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _DP_DSC_MAX_SMALL_JOINER_RAM_BUFFER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DP_DSC_MAX_SMALL_JOINER_RAM_BUFFER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sdiv	w19, w8, w19
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	mov	x1, x19
	bl	_min
	mov	x19, x0
Lloh7:
	adrp	x20, _valid_dsc_bpp@GOTPAGE
Lloh8:
	ldr	x20, [x20, _valid_dsc_bpp@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	w8, [x0]
	cmp	w19, w8
	b.ge	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x8, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	ldr	x0, [x20]
	cmp	x21, w8, sxtw
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x21, #1
	add	x9, x0, x21, lsl #2
	ldr	w9, [x9, #4]
	cmp	w19, w9
	b.ge	LBB0_3
LBB0_5:
	ldr	w8, [x0, x21, lsl #2]
	lsl	w0, w8, #4
LBB0_6:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Max link bpp: %u\n"

	.comm	_DP_DSC_MAX_SMALL_JOINER_RAM_BUFFER,4,2 ; @DP_DSC_MAX_SMALL_JOINER_RAM_BUFFER
l_.str.1:                               ; @.str.1
	.asciz	"Max small joiner bpp: %u\n"

	.comm	_valid_dsc_bpp,8,3              ; @valid_dsc_bpp
l_.str.2:                               ; @.str.2
	.asciz	"Unsupported BPP %u, min %u\n"

	.no_dead_strip	_intel_dp_dsc_get_output_bpp
.subsections_via_symbols
