	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nouveau_connector
	movq	%rax, %r15
	movq	24(%rax), %r12
	movl	(%rbx), %edi
	callq	_nouveau_drm
	movq	%rax, %r14
	movq	24(%r15), %rax
	movq	_nouveau_duallink@GOTPCREL(%rip), %rcx
	movl	$1, %r13d
	cmpq	$0, (%rcx)
	movl	$1, %ebx
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rcx
	cmpq	$1, 8(%rcx)
	movl	$2, %ebx
	sbbl	$0, %ebx
LBB0_2:
	movq	(%rax), %r12
	movl	16(%r15), %edi
	callq	_drm_detect_hdmi_monitor
	testq	%rax, %rax
	cmovel	%ebx, %r13d
	je	LBB0_10
## %bb.3:
	movq	_nouveau_hdmimhz@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	jmp	LBB0_18
LBB0_5:
	cmpl	$288, (%r14)                    ## imm = 0x120
	jl	LBB0_8
## %bb.6:
	cmpq	$0, 8(%r15)
	movl	$340000, %ecx                   ## imm = 0x53020
	movl	$594000, %eax                   ## imm = 0x91050
	cmovel	%ecx, %eax
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_18
## %bb.7:
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_min                            ## TAILCALL
LBB0_8:
	movq	8(%r14), %rcx
	movq	_NV_DEVICE_INFO_V0_KEPLER@GOTPCREL(%rip), %rdx
	movl	$297000, %eax                   ## imm = 0x48828
	cmpq	(%rdx), %rcx
	jge	LBB0_18
## %bb.9:
	movq	_NV_DEVICE_INFO_V0_FERMI@GOTPCREL(%rip), %rdx
	movl	$225000, %eax                   ## imm = 0x36EE8
	cmpq	(%rdx), %rcx
	jge	LBB0_18
LBB0_10:
	movq	(%r12), %rax
	movq	_DCB_LOC_ON_CHIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	(%r14), %eax
	cmpl	$70, %eax
	jl	LBB0_13
LBB0_12:
	imull	$165000, %r13d, %eax            ## imm = 0x28488
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	cmpl	$64, %eax
	jl	LBB0_15
## %bb.14:
	imull	$155000, %r13d, %eax            ## imm = 0x25D78
	jmp	LBB0_18
LBB0_15:
	cmpl	$24, %eax
	jl	LBB0_17
## %bb.16:
	imull	$135000, %r13d, %eax            ## imm = 0x20F58
	jmp	LBB0_18
LBB0_17:
	imull	$112000, %r13d, %eax            ## imm = 0x1B580
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_nouveau_duallink,8,3           ## @nouveau_duallink
	.comm	_nouveau_hdmimhz,4,2            ## @nouveau_hdmimhz
	.comm	_NV_DEVICE_INFO_V0_KEPLER,8,3   ## @NV_DEVICE_INFO_V0_KEPLER
	.comm	_NV_DEVICE_INFO_V0_FERMI,8,3    ## @NV_DEVICE_INFO_V0_FERMI
	.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	x19, x0
	bl	_nouveau_connector
	mov	x20, x0
	ldr	x21, [x0, #24]
	ldr	w0, [x19]
	bl	_nouveau_drm
	mov	x19, x0
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x9, _nouveau_duallink@GOTPAGE
Lloh1:
	ldr	x9, [x9, _nouveau_duallink@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w22, #1
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x9, [x21]
	ldr	x9, [x9, #8]
	cmp	x9, #0
	cinc	w22, w22, ne
LBB0_2:
	ldr	x21, [x8]
	ldr	w0, [x20, #16]
	bl	_drm_detect_hdmi_monitor
	cmp	x0, #0
	csinc	w8, w22, wzr, eq
	cbz	x0, LBB0_10
; %bb.3:
Lloh3:
	adrp	x9, _nouveau_hdmimhz@GOTPAGE
Lloh4:
	ldr	x9, [x9, _nouveau_hdmimhz@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.4:
	mov	w8, #1000
	mul	w1, w9, w8
	b	LBB0_16
LBB0_5:
	ldr	w9, [x19]
	cmp	w9, #288
	b.lt	LBB0_8
; %bb.6:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	mov	w8, #4176
	movk	w8, #9, lsl #16
	mov	w9, #12320
	movk	w9, #5, lsl #16
	csel	w1, w9, w8, eq
	ldr	w0, [x20]
	cbz	w0, LBB0_16
; %bb.7:
	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
	b	_min
LBB0_8:
	ldr	x9, [x19, #8]
Lloh6:
	adrp	x10, _NV_DEVICE_INFO_V0_KEPLER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NV_DEVICE_INFO_V0_KEPLER@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_14
; %bb.9:
Lloh9:
	adrp	x10, _NV_DEVICE_INFO_V0_FERMI@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NV_DEVICE_INFO_V0_FERMI@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_15
LBB0_10:
	ldr	x9, [x21]
Lloh12:
	adrp	x10, _DCB_LOC_ON_CHIP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DCB_LOC_ON_CHIP@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.11:
	ldr	w9, [x19]
	cmp	w9, #70
	b.lt	LBB0_13
LBB0_12:
	mov	w9, #33928
	movk	w9, #2, lsl #16
	mul	w1, w8, w9
	b	LBB0_16
LBB0_13:
	mov	w10, #46464
	movk	w10, #1, lsl #16
	mul	w10, w8, w10
	mov	w11, #3928
	movk	w11, #2, lsl #16
	mul	w11, w8, w11
	cmp	w9, #24
	csel	w10, w10, w11, lt
	mov	w11, #23928
	movk	w11, #2, lsl #16
	mul	w8, w8, w11
	cmp	w9, #64
	csel	w1, w10, w8, lt
	b	LBB0_16
LBB0_14:
	mov	w1, #34856
	movk	w1, #4, lsl #16
	b	LBB0_16
LBB0_15:
	mov	w1, #28392
	movk	w1, #3, lsl #16
LBB0_16:
	mov	x0, x1
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_nouveau_duallink,8,3           ; @nouveau_duallink
	.comm	_nouveau_hdmimhz,4,2            ; @nouveau_hdmimhz
	.comm	_NV_DEVICE_INFO_V0_KEPLER,8,3   ; @NV_DEVICE_INFO_V0_KEPLER
	.comm	_NV_DEVICE_INFO_V0_FERMI,8,3    ; @NV_DEVICE_INFO_V0_FERMI
	.comm	_DCB_LOC_ON_CHIP,8,3            ; @DCB_LOC_ON_CHIP
	.no_dead_strip	_get_tmds_link_bandwidth
.subsections_via_symbols
