	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_dual_mode_max_tmds_clock ## -- Begin function drm_dp_dual_mode_max_tmds_clock
	.p2align	4, 0x90
_drm_dp_dual_mode_max_tmds_clock:       ## @drm_dp_dual_mode_max_tmds_clock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_DRM_DP_DUAL_MODE_NONE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%edi, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_DRM_DP_DUAL_MODE_TYPE2_DVI@GOTPCREL(%rip), %rax
	movl	$165000, %ebx                   ## imm = 0x28488
	cmpl	%edi, (%rax)
	ja	LBB0_7
## %bb.2:
	movq	_DP_DUAL_MODE_MAX_TMDS_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-12(%rbp), %rdx
	movq	%rsi, %rdi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_drm_dp_dual_mode_read
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	-12(%rbp), %eax
	cmpl	$255, %eax
	je	LBB0_5
## %bb.4:
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	imull	$2500, %eax, %ebx               ## imm = 0x9C4
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_DP_DUAL_MODE_NONE,4,2      ## @DRM_DP_DUAL_MODE_NONE
	.comm	_DRM_DP_DUAL_MODE_TYPE2_DVI,4,2 ## @DRM_DP_DUAL_MODE_TYPE2_DVI
	.comm	_DP_DUAL_MODE_MAX_TMDS_CLOCK,4,2 ## @DP_DUAL_MODE_MAX_TMDS_CLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to query max TMDS clock\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_dp_dual_mode_max_tmds_clock ; -- Begin function drm_dp_dual_mode_max_tmds_clock
	.p2align	2
_drm_dp_dual_mode_max_tmds_clock:       ; @drm_dp_dual_mode_max_tmds_clock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _DRM_DP_DUAL_MODE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_DP_DUAL_MODE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_5
LBB0_2:
	mov	w19, #33928
	movk	w19, #2, lsl #16
Lloh3:
	adrp	x8, _DRM_DP_DUAL_MODE_TYPE2_DVI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_DP_DUAL_MODE_TYPE2_DVI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
	b.hi	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _DP_DUAL_MODE_MAX_TMDS_CLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DP_DUAL_MODE_MAX_TMDS_CLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	x2, sp, #12
	mov	x0, x1
	mov	x1, x8
	mov	w3, #4
	bl	_drm_dp_dual_mode_read
	cbz	x0, LBB0_6
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldr	w8, [sp, #12]
	cmp	w8, #255
	b.eq	LBB0_4
; %bb.7:
	cbz	w8, LBB0_4
; %bb.8:
	mov	w9, #2500
	mul	w19, w8, w9
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_DP_DUAL_MODE_NONE,4,2      ; @DRM_DP_DUAL_MODE_NONE
	.comm	_DRM_DP_DUAL_MODE_TYPE2_DVI,4,2 ; @DRM_DP_DUAL_MODE_TYPE2_DVI
	.comm	_DP_DUAL_MODE_MAX_TMDS_CLOCK,4,2 ; @DP_DUAL_MODE_MAX_TMDS_CLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to query max TMDS clock\n"

.subsections_via_symbols
