	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dp_phy_pattern_hbr2_compliance_cp2520_2
_set_dp_phy_pattern_hbr2_compliance_cp2520_2: ## @set_dp_phy_pattern_hbr2_compliance_cp2520_2
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_enable_phy_bypass_mode
	movq	(%rbx), %rax
	movq	_SIGNAL_TYPE_DISPLAY_PORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_DP_PANEL_MODE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_setup_panel_mode
	movq	_DP_LINK_FRAMING_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DP_IDLE_BS_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DP_VBID_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DP_VID_ENHANCED_FRAME_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, (%rsp)
	movl	$252, %edx
	movl	$1, %r8d
	callq	_REG_UPDATE_3
	movq	_DP_DPHY_SCRAM_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DPHY_SCRAMBLER_BS_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movq	_DP_DPHY_HBR2_PATTERN_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movl	%edi, %esi
	movl	%r14d, %edx
	callq	_REG_UPDATE
	jmp	LBB0_3
LBB0_2:
	xorl	%edi, %edi
	cmpl	$2, %r14d
	sete	%dil
	callq	_ASSERT
LBB0_3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_set_link_training_complete
	movq	_DP_VID_STREAM_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DP_VID_STREAM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enable_phy_bypass_mode         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGNAL_TYPE_DISPLAY_PORT,4,2   ## @SIGNAL_TYPE_DISPLAY_PORT
	.comm	_DP_PANEL_MODE_DEFAULT,4,2      ## @DP_PANEL_MODE_DEFAULT
	.comm	_DP_LINK_FRAMING_CNTL,4,2       ## @DP_LINK_FRAMING_CNTL
	.comm	_DP_IDLE_BS_INTERVAL,4,2        ## @DP_IDLE_BS_INTERVAL
	.comm	_DP_VBID_DISABLE,4,2            ## @DP_VBID_DISABLE
	.comm	_DP_VID_ENHANCED_FRAME_MODE,4,2 ## @DP_VID_ENHANCED_FRAME_MODE
	.comm	_DP_DPHY_SCRAM_CNTL,4,2         ## @DP_DPHY_SCRAM_CNTL
	.comm	_DPHY_SCRAMBLER_BS_COUNT,4,2    ## @DPHY_SCRAMBLER_BS_COUNT
	.comm	_DP_DPHY_HBR2_PATTERN_CONTROL,4,2 ## @DP_DPHY_HBR2_PATTERN_CONTROL
	.comm	_DP_VID_STREAM_CNTL,4,2         ## @DP_VID_STREAM_CNTL
	.comm	_DP_VID_STREAM_ENABLE,4,2       ## @DP_VID_STREAM_ENABLE
	.no_dead_strip	_set_dp_phy_pattern_hbr2_compliance_cp2520_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dp_phy_pattern_hbr2_compliance_cp2520_2
_set_dp_phy_pattern_hbr2_compliance_cp2520_2: ; @set_dp_phy_pattern_hbr2_compliance_cp2520_2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	mov	w1, #0
	bl	_enable_phy_bypass_mode
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _SIGNAL_TYPE_DISPLAY_PORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIGNAL_TYPE_DISPLAY_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
Lloh3:
	adrp	x8, _DP_PANEL_MODE_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_PANEL_MODE_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_setup_panel_mode
Lloh6:
	adrp	x8, _DP_LINK_FRAMING_CNTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DP_LINK_FRAMING_CNTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _DP_IDLE_BS_INTERVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DP_IDLE_BS_INTERVAL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _DP_VBID_DISABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DP_VBID_DISABLE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _DP_VID_ENHANCED_FRAME_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DP_VID_ENHANCED_FRAME_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	mov	w2, #252
	mov	w4, #1
	mov	w6, #1
	bl	_REG_UPDATE_3
Lloh18:
	adrp	x8, _DP_DPHY_SCRAM_CNTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DP_DPHY_SCRAM_CNTL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _DPHY_SCRAMBLER_BS_COUNT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DPHY_SCRAMBLER_BS_COUNT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_REG_UPDATE
Lloh24:
	adrp	x21, _DP_DPHY_HBR2_PATTERN_CONTROL@GOTPAGE
Lloh25:
	ldr	x21, [x21, _DP_DPHY_HBR2_PATTERN_CONTROL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_REG
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	mov	x1, x0
	mov	x2, x20
	bl	_REG_UPDATE
	b	LBB0_3
LBB0_2:
	cmp	w20, #2
	cset	w0, eq
	bl	_ASSERT
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_set_link_training_complete
Lloh26:
	adrp	x8, _DP_VID_STREAM_CNTL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DP_VID_STREAM_CNTL@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _DP_VID_STREAM_ENABLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DP_VID_STREAM_ENABLE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_REG_UPDATE
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_enable_phy_bypass_mode
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGNAL_TYPE_DISPLAY_PORT,4,2   ; @SIGNAL_TYPE_DISPLAY_PORT
	.comm	_DP_PANEL_MODE_DEFAULT,4,2      ; @DP_PANEL_MODE_DEFAULT
	.comm	_DP_LINK_FRAMING_CNTL,4,2       ; @DP_LINK_FRAMING_CNTL
	.comm	_DP_IDLE_BS_INTERVAL,4,2        ; @DP_IDLE_BS_INTERVAL
	.comm	_DP_VBID_DISABLE,4,2            ; @DP_VBID_DISABLE
	.comm	_DP_VID_ENHANCED_FRAME_MODE,4,2 ; @DP_VID_ENHANCED_FRAME_MODE
	.comm	_DP_DPHY_SCRAM_CNTL,4,2         ; @DP_DPHY_SCRAM_CNTL
	.comm	_DPHY_SCRAMBLER_BS_COUNT,4,2    ; @DPHY_SCRAMBLER_BS_COUNT
	.comm	_DP_DPHY_HBR2_PATTERN_CONTROL,4,2 ; @DP_DPHY_HBR2_PATTERN_CONTROL
	.comm	_DP_VID_STREAM_CNTL,4,2         ; @DP_VID_STREAM_CNTL
	.comm	_DP_VID_STREAM_ENABLE,4,2       ; @DP_VID_STREAM_ENABLE
	.no_dead_strip	_set_dp_phy_pattern_hbr2_compliance_cp2520_2
.subsections_via_symbols
