	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_active_converter_info
_get_active_converter_info:             ## @get_active_converter_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	testl	%edi, %edi
	je	LBB0_5
## %bb.1:
	movl	%edi, (%rbx)
	movq	_DISPLAY_DONGLE_DP_VGA_CONVERTER@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rsi, 16(%rbx)
	movq	64(%rbx), %rax
	movq	_DPCD_REV_11@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_12
## %bb.2:
	movq	_DP_DOWNSTREAM_PORT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$64, %ecx
	callq	_core_link_read_dpcd
	movl	-96(%rbp), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_6
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_DISPLAY_DONGLE_DP_HDMI_CONVERTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, 16(%rbx)
	movq	%rsi, 56(%rbx)
	jmp	LBB0_12
LBB0_5:
	movq	_DISPLAY_DONGLE_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, 16(%rbx)
	movl	72(%rbx), %edi
	callq	_ddc_service_set_dongle_type
	movl	$0, (%rbx)
	jmp	LBB0_13
LBB0_6:
	movq	16(%rbx), %rsi
	jmp	LBB0_12
LBB0_7:
	movq	(%r14), %rsi
	jmp	LBB0_11
LBB0_8:
	movq	_DISPLAY_DONGLE_DP_DVI_CONVERTER@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_DISPLAY_DONGLE_NONE@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rsi
LBB0_11:
	movq	%rsi, 16(%rbx)
LBB0_12:
	movl	72(%rbx), %edi
	callq	_ddc_service_set_dongle_type
	movq	_DP_BRANCH_REVISION_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$8, %ecx
	callq	_core_link_read_dpcd
	movl	-92(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movl	-96(%rbp), %esi
	movl	$4, %edx
	callq	_memmove
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_DISPLAY_DONGLE_NONE,8,3        ## @DISPLAY_DONGLE_NONE
	.comm	_DOWNSTREAM_DP,4,2              ## @DOWNSTREAM_DP
	.comm	_DISPLAY_DONGLE_DP_VGA_CONVERTER,8,3 ## @DISPLAY_DONGLE_DP_VGA_CONVERTER
	.comm	_DISPLAY_DONGLE_DP_DVI_CONVERTER,8,3 ## @DISPLAY_DONGLE_DP_DVI_CONVERTER
	.comm	_DPCD_REV_11,8,3                ## @DPCD_REV_11
	.comm	_DP_DOWNSTREAM_PORT_0,4,2       ## @DP_DOWNSTREAM_PORT_0
	.comm	_DISPLAY_DONGLE_DP_HDMI_CONVERTER,8,3 ## @DISPLAY_DONGLE_DP_HDMI_CONVERTER
	.comm	_DP_BRANCH_REVISION_START,4,2   ## @DP_BRANCH_REVISION_START
	.no_dead_strip	_get_active_converter_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_active_converter_info
_get_active_converter_info:             ; @get_active_converter_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	cbz	w0, LBB0_5
; %bb.1:
	str	w0, [x19]
Lloh3:
	adrp	x20, _DISPLAY_DONGLE_DP_VGA_CONVERTER@GOTPAGE
Lloh4:
	ldr	x20, [x20, _DISPLAY_DONGLE_DP_VGA_CONVERTER@GOTPAGEOFF]
	ldr	x1, [x20]
	str	x1, [x19, #16]
	ldr	x8, [x19, #64]
Lloh5:
	adrp	x9, _DPCD_REV_11@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DPCD_REV_11@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.2:
Lloh8:
	adrp	x8, _DP_DOWNSTREAM_PORT_0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DP_DOWNSTREAM_PORT_0@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #64
	bl	_core_link_read_dpcd
	ldr	w8, [sp, #8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.3:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh13:
	adrp	x8, _DISPLAY_DONGLE_DP_HDMI_CONVERTER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DISPLAY_DONGLE_DP_HDMI_CONVERTER@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	str	x1, [x19, #16]
	str	x1, [x19, #56]
	b	LBB0_12
LBB0_5:
Lloh16:
	adrp	x8, _DISPLAY_DONGLE_NONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DISPLAY_DONGLE_NONE@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x8]
	str	x1, [x19, #16]
	ldr	w0, [x19, #72]
	bl	_ddc_service_set_dongle_type
	str	wzr, [x19]
	b	LBB0_13
LBB0_6:
	ldr	x1, [x19, #16]
	b	LBB0_12
LBB0_7:
	ldr	x1, [x20]
	b	LBB0_11
LBB0_8:
Lloh19:
	adrp	x8, _DISPLAY_DONGLE_DP_DVI_CONVERTER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DISPLAY_DONGLE_DP_DVI_CONVERTER@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x8, _DISPLAY_DONGLE_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DISPLAY_DONGLE_NONE@GOTPAGEOFF]
LBB0_10:
	ldr	x1, [x8]
LBB0_11:
	str	x1, [x19, #16]
LBB0_12:
	ldr	w0, [x19, #72]
	bl	_ddc_service_set_dongle_type
Lloh23:
	adrp	x8, _DP_BRANCH_REVISION_START@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DP_BRANCH_REVISION_START@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	bl	_core_link_read_dpcd
	ldp	w1, w8, [sp, #8]
	str	w8, [x19, #8]
	ldr	w0, [x19, #4]
	mov	w2, #4
	bl	_memmove
LBB0_13:
	ldur	x8, [x29, #-24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_DISPLAY_DONGLE_NONE,8,3        ; @DISPLAY_DONGLE_NONE
	.comm	_DOWNSTREAM_DP,4,2              ; @DOWNSTREAM_DP
	.comm	_DISPLAY_DONGLE_DP_VGA_CONVERTER,8,3 ; @DISPLAY_DONGLE_DP_VGA_CONVERTER
	.comm	_DISPLAY_DONGLE_DP_DVI_CONVERTER,8,3 ; @DISPLAY_DONGLE_DP_DVI_CONVERTER
	.comm	_DPCD_REV_11,8,3                ; @DPCD_REV_11
	.comm	_DP_DOWNSTREAM_PORT_0,4,2       ; @DP_DOWNSTREAM_PORT_0
	.comm	_DISPLAY_DONGLE_DP_HDMI_CONVERTER,8,3 ; @DISPLAY_DONGLE_DP_HDMI_CONVERTER
	.comm	_DP_BRANCH_REVISION_START,4,2   ; @DP_BRANCH_REVISION_START
	.no_dead_strip	_get_active_converter_info
.subsections_via_symbols
