	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_ddc_service_i2c_query_dp_dual_mode_adaptor ## -- Begin function dal_ddc_service_i2c_query_dp_dual_mode_adaptor
	.p2align	4, 0x90
_dal_ddc_service_i2c_query_dp_dual_mode_adaptor: ## @dal_ddc_service_i2c_query_dp_dual_mode_adaptor
	.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, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DP_ADAPTOR_TYPE2_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_DISPLAY_DONGLE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_DP_ADAPTOR_HDMI_SAFE_MAX_TMDS_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_DP_HDMI_DONGLE_ADDRESS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leal	(,%rbx,8), %ebx
	movq	%r12, %rdi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_i2c_read
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_i2c_read
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	(%r14), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_i2c_read
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movl	%ebx, %edx
	movq	_DP_ADAPTOR_TYPE2_REG_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %r10
	movq	_DP_ADAPTOR_TYPE2_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%r13), %r8
	movq	8(%r13), %rbx
	movq	_DP_HDMI_DONGLE_SIGNATURE_EOT@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_dp_hdmi_dongle_signature_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rbx), %rsi
	xorl	%eax, %eax
	cmpq	(%rcx), %rsi
	je	LBB0_6
## %bb.5:
	cmpq	%rdi, %r10
	je	LBB0_18
LBB0_6:
	movq	8(%rbx), %rsi
	cmpq	8(%rcx), %rsi
	je	LBB0_8
## %bb.7:
	cmpq	%rdi, %r10
	je	LBB0_18
LBB0_8:
	movq	16(%rbx), %rsi
	cmpq	16(%rcx), %rsi
	je	LBB0_10
## %bb.9:
	cmpq	%rdi, %r10
	je	LBB0_18
LBB0_10:
	movq	32(%rbx), %rsi
	cmpq	32(%rcx), %rsi
	je	LBB0_12
## %bb.11:
	cmpq	%rdi, %r10
	je	LBB0_18
LBB0_12:
	movq	40(%rbx), %rsi
	cmpq	40(%rcx), %rsi
	je	LBB0_14
## %bb.13:
	cmpq	%rdi, %r10
	je	LBB0_18
LBB0_14:
	movq	48(%rbx), %rsi
	cmpq	48(%rcx), %rsi
	je	LBB0_16
## %bb.15:
	cmpq	%rdi, %r10
	je	LBB0_18
LBB0_16:
	cmpq	%r9, %r8
	sete	%sil
	cmpq	%rdi, %r10
	sete	%al
	movq	56(%rbx), %rbx
	cmpq	56(%rcx), %rbx
	setne	%cl
	andb	%al, %cl
	movl	%ecx, %eax
	notb	%al
	andb	%sil, %al
	movzbl	%al, %eax
	testb	%cl, %cl
	jne	LBB0_18
## %bb.17:
	cmpq	%rdi, %r10
	je	LBB0_18
## %bb.23:
	cmpq	%r9, %r8
	jne	LBB0_25
## %bb.24:
	movq	_DISPLAY_DONGLE_DP_HDMI_DONGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	(%r12), %edi
	movslq	4(%r15), %rax
	imulq	$274877907, %rax, %r8           ## imm = 0x10624DD3
	movq	%r8, %rax
	shrq	$63, %rax
	sarq	$38, %r8
	addl	%eax, %r8d
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_26
LBB0_18:
	movq	_DP_ADAPTOR_TYPE2_REG_MAX_TMDS_CLK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r13,%rcx,8), %ecx
	leal	(%rcx,%rcx), %esi
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	addl	%esi, %ebx
	je	LBB0_21
## %bb.19:
	movq	_DP_ADAPTOR_TYPE2_MIN_TMDS_CLK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jl	LBB0_21
## %bb.20:
	movq	_DP_ADAPTOR_TYPE2_MAX_TMDS_CLK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jg	LBB0_21
## %bb.22:
	testl	%eax, %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmovneq	%rax, %rcx
	movq	_DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE@GOTPCREL(%rip), %rax
	cmovneq	_DISPLAY_DONGLE_DP_HDMI_DONGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	%ebx, %r8d
	callq	_CONN_DATA_DETECT
	imull	$1000, %ebx, %eax               ## imm = 0x3E8
	movl	%eax, 4(%r15)
	jmp	LBB0_28
LBB0_21:
	movq	_DISPLAY_DONGLE_DP_DVI_DONGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	(%r12), %edi
	movq	_DP_ADAPTOR_DVI_MAX_TMDS_CLK@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$274877907, %rax, %r8           ## imm = 0x10624DD3
	movq	%r8, %rax
	shrq	$63, %rax
	sarq	$38, %r8
	addl	%eax, %r8d
	leaq	L_.str(%rip), %rcx
LBB0_26:
	movq	%r13, %rsi
LBB0_27:
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_CONN_DATA_DETECT
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_DISPLAY_DONGLE_DP_DVI_DONGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_DP_ADAPTOR_DVI_MAX_TMDS_CLK@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%eax, 4(%r15)
	movl	(%r12), %edi
	imulq	$274877907, %rax, %r8           ## imm = 0x10624DD3
	movq	%r8, %rax
	shrq	$63, %rax
	sarq	$38, %r8
	addl	%eax, %r8d
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rsi
	movl	%ebx, %edx
	jmp	LBB0_27
LBB0_25:
	movq	_DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	(%r12), %edi
	movslq	4(%r15), %rax
	imulq	$274877907, %rax, %r8           ## imm = 0x10624DD3
	movq	%r8, %rax
	shrq	$63, %rax
	sarq	$38, %r8
	addl	%eax, %r8d
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_26
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_ADAPTOR_TYPE2_SIZE,4,2      ## @DP_ADAPTOR_TYPE2_SIZE
	.comm	_DISPLAY_DONGLE_NONE,4,2        ## @DISPLAY_DONGLE_NONE
	.comm	_DP_ADAPTOR_HDMI_SAFE_MAX_TMDS_CLK,4,2 ## @DP_ADAPTOR_HDMI_SAFE_MAX_TMDS_CLK
	.comm	_DP_HDMI_DONGLE_ADDRESS,4,2     ## @DP_HDMI_DONGLE_ADDRESS
	.comm	_DISPLAY_DONGLE_DP_DVI_DONGLE,4,2 ## @DISPLAY_DONGLE_DP_DVI_DONGLE
	.comm	_DP_ADAPTOR_DVI_MAX_TMDS_CLK,4,2 ## @DP_ADAPTOR_DVI_MAX_TMDS_CLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DP-DVI passive dongle %dMhz: "

	.comm	_DP_ADAPTOR_TYPE2_REG_ID,8,3    ## @DP_ADAPTOR_TYPE2_REG_ID
	.comm	_DP_ADAPTOR_TYPE2_ID,8,3        ## @DP_ADAPTOR_TYPE2_ID
	.comm	_DP_HDMI_DONGLE_SIGNATURE_EOT,8,3 ## @DP_HDMI_DONGLE_SIGNATURE_EOT
	.comm	_dp_hdmi_dongle_signature_str,8,3 ## @dp_hdmi_dongle_signature_str
	.comm	_DP_ADAPTOR_TYPE2_REG_MAX_TMDS_CLK,8,3 ## @DP_ADAPTOR_TYPE2_REG_MAX_TMDS_CLK
	.comm	_DP_ADAPTOR_TYPE2_MIN_TMDS_CLK,4,2 ## @DP_ADAPTOR_TYPE2_MIN_TMDS_CLK
	.comm	_DP_ADAPTOR_TYPE2_MAX_TMDS_CLK,4,2 ## @DP_ADAPTOR_TYPE2_MAX_TMDS_CLK
	.comm	_DISPLAY_DONGLE_DP_HDMI_DONGLE,4,2 ## @DISPLAY_DONGLE_DP_HDMI_DONGLE
L_.str.1:                               ## @.str.1
	.asciz	"Type 2 DP-HDMI passive dongle %dMhz: "

	.comm	_DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE,4,2 ## @DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE
L_.str.2:                               ## @.str.2
	.asciz	"Type 2 DP-HDMI passive dongle (no signature) %dMhz: "

L_.str.3:                               ## @.str.3
	.asciz	"Type 1 DP-HDMI passive dongle %dMhz: "

L_.str.4:                               ## @.str.4
	.asciz	"Type 1 DP-HDMI passive dongle (no signature) %dMhz: "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dal_ddc_service_i2c_query_dp_dual_mode_adaptor ; -- Begin function dal_ddc_service_i2c_query_dp_dual_mode_adaptor
	.p2align	2
_dal_ddc_service_i2c_query_dp_dual_mode_adaptor: ; @dal_ddc_service_i2c_query_dp_dual_mode_adaptor
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _DP_ADAPTOR_TYPE2_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_ADAPTOR_TYPE2_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _DISPLAY_DONGLE_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DISPLAY_DONGLE_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x1]
Lloh11:
	adrp	x8, _DP_ADAPTOR_HDMI_SAFE_MAX_TMDS_CLK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DP_ADAPTOR_HDMI_SAFE_MAX_TMDS_CLK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x1, #4]
Lloh14:
	adrp	x23, _DP_HDMI_DONGLE_ADDRESS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _DP_HDMI_DONGLE_ADDRESS@GOTPAGEOFF]
	ldr	w1, [x23]
	lsl	w20, w12, #3
	mov	x2, x19
	mov	x3, x20
	bl	_i2c_read
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x22
	mov	x2, x19
	mov	x3, x20
	bl	_i2c_read
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x22
	mov	x2, x19
	mov	x3, x20
	bl	_i2c_read
	cbz	x0, LBB0_21
LBB0_3:
Lloh16:
	adrp	x8, _DP_ADAPTOR_TYPE2_REG_ID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DP_ADAPTOR_TYPE2_REG_ID@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x8, [x19, x8, lsl #3]
Lloh19:
	adrp	x9, _DP_ADAPTOR_TYPE2_ID@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DP_ADAPTOR_TYPE2_ID@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	adrp	x10, _dp_hdmi_dongle_signature_str@GOTPAGE
Lloh23:
	ldr	x10, [x10, _dp_hdmi_dongle_signature_str@GOTPAGEOFF]
	ldr	x11, [x19, #8]
Lloh24:
	ldr	x10, [x10]
	ldr	x12, [x11]
	ldr	x13, [x10]
	cmp	x12, x13
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_13
; %bb.4:
	ldr	x12, [x11, #8]
	ldr	x13, [x10, #8]
	cmp	x12, x13
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_13
; %bb.5:
	ldr	x12, [x11, #16]
	ldr	x13, [x10, #16]
	cmp	x12, x13
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_13
; %bb.6:
	ldr	x12, [x11, #32]
	ldr	x13, [x10, #32]
	cmp	x12, x13
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_13
; %bb.7:
	ldr	x12, [x11, #40]
	ldr	x13, [x10, #40]
	cmp	x12, x13
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_13
; %bb.8:
	ldr	x12, [x11, #48]
	ldr	x13, [x10, #48]
	cmp	x12, x13
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_13
; %bb.9:
	ldr	x12, [x19]
Lloh25:
	adrp	x13, _DP_HDMI_DONGLE_SIGNATURE_EOT@GOTPAGE
Lloh26:
	ldr	x13, [x13, _DP_HDMI_DONGLE_SIGNATURE_EOT@GOTPAGEOFF]
Lloh27:
	ldr	x13, [x13]
	cmp	x12, x13
	cset	w14, eq
	ldr	x11, [x11, #56]
	ldr	x10, [x10, #56]
	cmp	x11, x10
	ccmp	x8, x9, #0, ne
	cset	w10, eq
	bic	w10, w14, w10
	b.eq	LBB0_14
; %bb.10:
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.11:
	cmp	x12, x13
	b.ne	LBB0_22
; %bb.12:
Lloh28:
	adrp	x8, _DISPLAY_DONGLE_DP_HDMI_DONGLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DISPLAY_DONGLE_DP_HDMI_DONGLE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	w0, [x22]
	ldrsw	x8, [x21, #4]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w4, w8, w9
Lloh31:
	adrp	x3, l_.str.3@PAGE
Lloh32:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_13:
	mov	w10, #0
LBB0_14:
Lloh33:
	adrp	x8, _DP_ADAPTOR_TYPE2_REG_MAX_TMDS_CLK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DP_ADAPTOR_TYPE2_REG_MAX_TMDS_CLK@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	x8, [x19, x8, lsl #3]
	lsl	w9, w8, #1
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w23, w9, w8, asr #1
Lloh36:
	adrp	x8, _DP_ADAPTOR_TYPE2_MIN_TMDS_CLK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DP_ADAPTOR_TYPE2_MIN_TMDS_CLK@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _DP_ADAPTOR_TYPE2_MAX_TMDS_CLK@GOTPAGE
Lloh40:
	ldr	x9, [x9, _DP_ADAPTOR_TYPE2_MAX_TMDS_CLK@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	cmp	w23, #0
	ccmp	w23, w8, #8, ne
	ccmp	w23, w9, #0, ge
	b.le	LBB0_18
; %bb.15:
Lloh42:
	adrp	x8, _DISPLAY_DONGLE_DP_DVI_DONGLE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _DISPLAY_DONGLE_DP_DVI_DONGLE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	w0, [x22]
Lloh45:
	adrp	x8, _DP_ADAPTOR_DVI_MAX_TMDS_CLK@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DP_ADAPTOR_DVI_MAX_TMDS_CLK@GOTPAGEOFF]
Lloh47:
	ldrsw	x8, [x8]
LBB0_16:
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w4, w8, w9
Lloh48:
	adrp	x3, l_.str@PAGE
Lloh49:
	add	x3, x3, l_.str@PAGEOFF
LBB0_17:
	mov	x1, x19
	mov	x2, x20
	bl	_CONN_DATA_DETECT
	b	LBB0_19
LBB0_18:
Lloh50:
	adrp	x8, l_.str.2@PAGE
Lloh51:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh52:
	adrp	x9, l_.str.1@PAGE
Lloh53:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w10, #0
	csel	x3, x9, x8, ne
Lloh54:
	adrp	x8, _DISPLAY_DONGLE_DP_HDMI_DONGLE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DISPLAY_DONGLE_DP_HDMI_DONGLE@GOTPAGEOFF]
Lloh56:
	adrp	x9, _DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE@GOTPAGE
Lloh57:
	ldr	x9, [x9, _DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE@GOTPAGEOFF]
	csel	x8, x8, x9, ne
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x20
	mov	x4, x23
	bl	_CONN_DATA_DETECT
	mov	w8, #1000
	mul	w8, w23, w8
	str	w8, [x21, #4]
LBB0_19:
	ldur	x8, [x29, #-56]
Lloh58:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh59:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.20:
	sub	sp, x29, #48
	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
LBB0_21:
Lloh61:
	adrp	x8, _DISPLAY_DONGLE_DP_DVI_DONGLE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _DISPLAY_DONGLE_DP_DVI_DONGLE@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh64:
	adrp	x8, _DP_ADAPTOR_DVI_MAX_TMDS_CLK@GOTPAGE
Lloh65:
	ldr	x8, [x8, _DP_ADAPTOR_DVI_MAX_TMDS_CLK@GOTPAGEOFF]
Lloh66:
	ldrsw	x8, [x8]
	str	w8, [x21, #4]
	ldr	w0, [x22]
	b	LBB0_16
LBB0_22:
Lloh67:
	adrp	x8, _DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	w0, [x22]
	ldrsw	x8, [x21, #4]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w4, w8, w9
Lloh70:
	adrp	x3, l_.str.4@PAGE
Lloh71:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_ADAPTOR_TYPE2_SIZE,4,2      ; @DP_ADAPTOR_TYPE2_SIZE
	.comm	_DISPLAY_DONGLE_NONE,4,2        ; @DISPLAY_DONGLE_NONE
	.comm	_DP_ADAPTOR_HDMI_SAFE_MAX_TMDS_CLK,4,2 ; @DP_ADAPTOR_HDMI_SAFE_MAX_TMDS_CLK
	.comm	_DP_HDMI_DONGLE_ADDRESS,4,2     ; @DP_HDMI_DONGLE_ADDRESS
	.comm	_DISPLAY_DONGLE_DP_DVI_DONGLE,4,2 ; @DISPLAY_DONGLE_DP_DVI_DONGLE
	.comm	_DP_ADAPTOR_DVI_MAX_TMDS_CLK,4,2 ; @DP_ADAPTOR_DVI_MAX_TMDS_CLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DP-DVI passive dongle %dMhz: "

	.comm	_DP_ADAPTOR_TYPE2_REG_ID,8,3    ; @DP_ADAPTOR_TYPE2_REG_ID
	.comm	_DP_ADAPTOR_TYPE2_ID,8,3        ; @DP_ADAPTOR_TYPE2_ID
	.comm	_DP_HDMI_DONGLE_SIGNATURE_EOT,8,3 ; @DP_HDMI_DONGLE_SIGNATURE_EOT
	.comm	_dp_hdmi_dongle_signature_str,8,3 ; @dp_hdmi_dongle_signature_str
	.comm	_DP_ADAPTOR_TYPE2_REG_MAX_TMDS_CLK,8,3 ; @DP_ADAPTOR_TYPE2_REG_MAX_TMDS_CLK
	.comm	_DP_ADAPTOR_TYPE2_MIN_TMDS_CLK,4,2 ; @DP_ADAPTOR_TYPE2_MIN_TMDS_CLK
	.comm	_DP_ADAPTOR_TYPE2_MAX_TMDS_CLK,4,2 ; @DP_ADAPTOR_TYPE2_MAX_TMDS_CLK
	.comm	_DISPLAY_DONGLE_DP_HDMI_DONGLE,4,2 ; @DISPLAY_DONGLE_DP_HDMI_DONGLE
l_.str.1:                               ; @.str.1
	.asciz	"Type 2 DP-HDMI passive dongle %dMhz: "

	.comm	_DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE,4,2 ; @DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE
l_.str.2:                               ; @.str.2
	.asciz	"Type 2 DP-HDMI passive dongle (no signature) %dMhz: "

l_.str.3:                               ; @.str.3
	.asciz	"Type 1 DP-HDMI passive dongle %dMhz: "

l_.str.4:                               ; @.str.4
	.asciz	"Type 1 DP-HDMI passive dongle (no signature) %dMhz: "

.subsections_via_symbols
