	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_get_vc_payload_bw
_drm_dp_get_vc_payload_bw:              ## @drm_dp_get_vc_payload_bw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movl	%edi, %esi
	leal	-128(%rsi), %ecx
	cmpl	$3, %ecx
	ja	LBB0_2
## %bb.1:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_5:
	leal	(%rax,%rax,4), %eax
LBB0_6:
	leal	(%rax,%rax,2), %eax
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %edx
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	addl	%eax, %eax
LBB0_4:
	leal	(%rax,%rax,4), %eax
LBB0_7:
	movl	%eax, (%rdx)
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid link bandwidth in DPCD: %x (link count: %d)\n"

	.no_dead_strip	_drm_dp_get_vc_payload_bw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_get_vc_payload_bw
_drm_dp_get_vc_payload_bw:              ; @drm_dp_get_vc_payload_bw
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
	sub	w9, w0, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	lsl	w9, w8, #4
	sub	w8, w9, w8
	b	LBB0_7
LBB0_3:
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x8
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	b	LBB0_7
LBB0_5:
	add	w8, w8, w8, lsl #2
	b	LBB0_7
LBB0_6:
	add	w8, w8, w8, lsl #1
LBB0_7:
	str	w8, [x2]
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid link bandwidth in DPCD: %x (link count: %d)\n"

	.no_dead_strip	_drm_dp_get_vc_payload_bw
.subsections_via_symbols
