	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_set_host_cap            ## -- Begin function cdn_dp_set_host_cap
	.p2align	4, 0x90
_cdn_dp_set_host_cap:                   ## @cdn_dp_set_host_cap
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_SCRAMBLER_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_CDN_DP_MAX_LINK_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	%esi, -60(%rbp)
	movq	_VOLTAGE_LEVEL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_PTS1@GOTPCREL(%rip), %rax
	movq	_PTS2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PRE_EMPHASIS_LEVEL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_PTS3@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_PTS4@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movq	_FAST_LT_NOT_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_LANE_MAPPING_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_LANE_MAPPING_FLIPPED@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_ENHANCED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_MB_MODULE_ID_DP_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DPTX_SET_HOST_CAPABILITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %r8
	movq	%r14, %rdi
	movl	$32, %ecx
	callq	_cdn_dp_mailbox_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_DP_AUX_SWAP_INVERSION_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AUX_HOST_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DRM_DEV_ERROR
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CDN_DP_MAX_LINK_RATE,4,2       ## @CDN_DP_MAX_LINK_RATE
	.comm	_SCRAMBLER_EN,4,2               ## @SCRAMBLER_EN
	.comm	_VOLTAGE_LEVEL_2,4,2            ## @VOLTAGE_LEVEL_2
	.comm	_PRE_EMPHASIS_LEVEL_3,4,2       ## @PRE_EMPHASIS_LEVEL_3
	.comm	_PTS1,4,2                       ## @PTS1
	.comm	_PTS2,4,2                       ## @PTS2
	.comm	_PTS3,4,2                       ## @PTS3
	.comm	_PTS4,4,2                       ## @PTS4
	.comm	_FAST_LT_NOT_SUPPORT,4,2        ## @FAST_LT_NOT_SUPPORT
	.comm	_LANE_MAPPING_FLIPPED,4,2       ## @LANE_MAPPING_FLIPPED
	.comm	_LANE_MAPPING_NORMAL,4,2        ## @LANE_MAPPING_NORMAL
	.comm	_ENHANCED,4,2                   ## @ENHANCED
	.comm	_MB_MODULE_ID_DP_TX,4,2         ## @MB_MODULE_ID_DP_TX
	.comm	_DPTX_SET_HOST_CAPABILITIES,4,2 ## @DPTX_SET_HOST_CAPABILITIES
	.comm	_DP_AUX_SWAP_INVERSION_CONTROL,4,2 ## @DP_AUX_SWAP_INVERSION_CONTROL
	.comm	_AUX_HOST_INVERT,4,2            ## @AUX_HOST_INVERT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set host cap failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_set_host_cap            ; -- Begin function cdn_dp_set_host_cap
	.p2align	2
_cdn_dp_set_host_cap:                   ; @cdn_dp_set_host_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CDN_DP_MAX_LINK_RATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CDN_DP_MAX_LINK_RATE@GOTPAGEOFF]
	stur	x8, [x29, #-24]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _SCRAMBLER_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCRAMBLER_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w9, w9, w1
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _VOLTAGE_LEVEL_2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VOLTAGE_LEVEL_2@GOTPAGEOFF]
Lloh11:
	adrp	x9, _PRE_EMPHASIS_LEVEL_3@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PRE_EMPHASIS_LEVEL_3@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh15:
	adrp	x8, _PTS1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PTS1@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _PTS2@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PTS2@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _PTS3@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PTS3@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh23:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _PTS4@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PTS4@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _FAST_LT_NOT_SUPPORT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _FAST_LT_NOT_SUPPORT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh30:
	adrp	x8, _LANE_MAPPING_FLIPPED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LANE_MAPPING_FLIPPED@GOTPAGEOFF]
Lloh32:
	adrp	x9, _LANE_MAPPING_NORMAL@GOTPAGE
Lloh33:
	ldr	x9, [x9, _LANE_MAPPING_NORMAL@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _ENHANCED@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ENHANCED@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
Lloh37:
	adrp	x8, _MB_MODULE_ID_DP_TX@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MB_MODULE_ID_DP_TX@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _DPTX_SET_HOST_CAPABILITIES@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DPTX_SET_HOST_CAPABILITIES@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	w3, #32
	bl	_cdn_dp_mailbox_send
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh43:
	adrp	x8, _DP_AUX_SWAP_INVERSION_CONTROL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DP_AUX_SWAP_INVERSION_CONTROL@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _AUX_HOST_INVERT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AUX_HOST_INVERT@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x20, x0
	cbz	w0, LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh49:
	adrp	x1, l_.str@PAGE
Lloh50:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEV_ERROR
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_CDN_DP_MAX_LINK_RATE,4,2       ; @CDN_DP_MAX_LINK_RATE
	.comm	_SCRAMBLER_EN,4,2               ; @SCRAMBLER_EN
	.comm	_VOLTAGE_LEVEL_2,4,2            ; @VOLTAGE_LEVEL_2
	.comm	_PRE_EMPHASIS_LEVEL_3,4,2       ; @PRE_EMPHASIS_LEVEL_3
	.comm	_PTS1,4,2                       ; @PTS1
	.comm	_PTS2,4,2                       ; @PTS2
	.comm	_PTS3,4,2                       ; @PTS3
	.comm	_PTS4,4,2                       ; @PTS4
	.comm	_FAST_LT_NOT_SUPPORT,4,2        ; @FAST_LT_NOT_SUPPORT
	.comm	_LANE_MAPPING_FLIPPED,4,2       ; @LANE_MAPPING_FLIPPED
	.comm	_LANE_MAPPING_NORMAL,4,2        ; @LANE_MAPPING_NORMAL
	.comm	_ENHANCED,4,2                   ; @ENHANCED
	.comm	_MB_MODULE_ID_DP_TX,4,2         ; @MB_MODULE_ID_DP_TX
	.comm	_DPTX_SET_HOST_CAPABILITIES,4,2 ; @DPTX_SET_HOST_CAPABILITIES
	.comm	_DP_AUX_SWAP_INVERSION_CONTROL,4,2 ; @DP_AUX_SWAP_INVERSION_CONTROL
	.comm	_AUX_HOST_INVERT,4,2            ; @AUX_HOST_INVERT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set host cap failed: %d\n"

.subsections_via_symbols
