	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tmds_link_bandwidth
_get_tmds_link_bandwidth:               ## @get_tmds_link_bandwidth
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nouveau_connector
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_nouveau_drm
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_DCB_LOC_ON_CHIP@GOTPCREL(%rip), %rcx
	movl	$165000, %ebx                   ## imm = 0x28488
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %edi
	callq	_nv_device
	cmpl	$69, (%rax)
	jg	LBB0_4
## %bb.2:
	movl	(%r14), %edi
	callq	_nv_device
	movl	$155000, %ebx                   ## imm = 0x25D78
	cmpl	$63, (%rax)
	jg	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_nv_device
	cmpl	$24, (%rax)
	movl	$135000, %eax                   ## imm = 0x20F58
	movl	$112000, %ebx                   ## imm = 0x1B580
	cmovgel	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_LOC_ON_CHIP,8,3            ## @DCB_LOC_ON_CHIP
	.no_dead_strip	_get_tmds_link_bandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tmds_link_bandwidth
_get_tmds_link_bandwidth:               ; @get_tmds_link_bandwidth
	.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, x0
	mov	w19, #33928
	movk	w19, #2, lsl #16
	bl	_nouveau_connector
	mov	x21, x0
	ldr	w0, [x20]
	bl	_nouveau_drm
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DCB_LOC_ON_CHIP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCB_LOC_ON_CHIP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0]
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #69
	b.gt	LBB0_5
; %bb.2:
	ldr	w0, [x20]
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #63
	b.le	LBB0_4
; %bb.3:
	mov	w19, #23928
	movk	w19, #2, lsl #16
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20]
	bl	_nv_device
	ldr	w8, [x0]
	mov	w9, #46464
	movk	w9, #1, lsl #16
	mov	w10, #3928
	movk	w10, #2, lsl #16
	cmp	w8, #23
	csel	w19, w10, w9, gt
LBB0_5:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_LOC_ON_CHIP,8,3            ; @DCB_LOC_ON_CHIP
	.no_dead_strip	_get_tmds_link_bandwidth
.subsections_via_symbols
