	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_compute_bpp
_intel_dp_compute_bpp:                  ## @intel_dp_compute_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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_dp_to_i915
	movq	%rax, %r14
	movq	8(%rbx), %r12
	movl	(%r15), %r15d
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_drm_dp_downstream_max_bpc
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	leal	(%rax,%rax,2), %esi
	movl	%r15d, %edi
	callq	_min
	movl	%eax, %r15d
LBB0_2:
	movq	%rbx, %rdi
	callq	_intel_dp_is_edp
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpq	$0, (%r12)
	jne	LBB0_7
## %bb.4:
	movl	(%r14), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.5:
	cmpl	%r15d, %esi
	jge	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	(%r14), %r15d
LBB0_7:
	movl	%r15d, %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	"clamping bpp for eDP panel to BIOS-provided %i\n"

	.no_dead_strip	_intel_dp_compute_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_compute_bpp
_intel_dp_compute_bpp:                  ; @intel_dp_compute_bpp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x21, x0
	bl	_dp_to_i915
	mov	x19, x0
	ldr	x22, [x21, #8]
	ldr	w20, [x20]
	ldp	w1, w0, [x21]
	bl	_drm_dp_downstream_max_bpc
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	add	w1, w0, w0, lsl #1
	mov	x0, x20
	bl	_min
	mov	x20, x0
LBB0_2:
	mov	x0, x21
	bl	_intel_dp_is_edp
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x22]
	cbnz	x8, LBB0_7
; %bb.4:
	ldr	w1, [x19]
	cbz	w1, LBB0_7
; %bb.5:
	cmp	w1, w20
	b.ge	LBB0_7
; %bb.6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w20, [x19]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clamping bpp for eDP panel to BIOS-provided %i\n"

	.no_dead_strip	_intel_dp_compute_bpp
.subsections_via_symbols
