	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_link_validate_mode_timing   ## -- Begin function dc_link_validate_mode_timing
	.p2align	4, 0x90
_dc_link_validate_mode_timing:          ## @dc_link_validate_mode_timing
	.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	(%rsi), %rax
	movq	_DC_OK@GOTPCREL(%rip), %r12
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movslq	(%rax), %rax
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	addq	%rax, %rax
	leaq	(%rax,%rax,4), %r13
	movq	%r14, %rdi
	callq	_get_timing_pixel_clock_100hz
	cmpq	%r13, %rax
	jg	LBB0_4
LBB0_5:
	leaq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_dp_active_dongle_validate_timing
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	(%r15), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dp_validate_mode_timing
	testl	%eax, %eax
	jne	LBB0_1
## %bb.8:
	movq	_DC_NO_DP_LINK_BANDWIDTH@GOTPCREL(%rip), %r12
	jmp	LBB0_1
LBB0_4:
	movq	_DC_EXCEED_DONGLE_CAP@GOTPCREL(%rip), %r12
LBB0_1:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_OK,4,2                      ## @DC_OK
	.comm	_DC_EXCEED_DONGLE_CAP,4,2       ## @DC_EXCEED_DONGLE_CAP
	.comm	_DC_NO_DP_LINK_BANDWIDTH,4,2    ## @DC_NO_DP_LINK_BANDWIDTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_link_validate_mode_timing   ; -- Begin function dc_link_validate_mode_timing
	.p2align	2
_dc_link_validate_mode_timing:          ; @dc_link_validate_mode_timing
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	ldr	x8, [x22], #8
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _DC_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldrsw	x8, [x8]
	cbz	w8, LBB0_4
; %bb.3:
	add	x8, x8, x8, lsl #2
	lsl	x23, x8, #1
	mov	x0, x19
	bl	_get_timing_pixel_clock_100hz
	cmp	x0, x23
	b.gt	LBB0_8
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	bl	_dp_active_dongle_validate_timing
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w8, [x21]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_dp_validate_mode_timing
	cbnz	w0, LBB0_1
; %bb.7:
Lloh2:
	adrp	x8, _DC_NO_DP_LINK_BANDWIDTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DC_NO_DP_LINK_BANDWIDTH@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _DC_EXCEED_DONGLE_CAP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DC_EXCEED_DONGLE_CAP@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_OK,4,2                      ; @DC_OK
	.comm	_DC_EXCEED_DONGLE_CAP,4,2       ; @DC_EXCEED_DONGLE_CAP
	.comm	_DC_NO_DP_LINK_BANDWIDTH,4,2    ; @DC_NO_DP_LINK_BANDWIDTH
.subsections_via_symbols
