	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dp_test_send_link_test_pattern
_dp_test_send_link_test_pattern:        ## @dp_test_send_link_test_pattern
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_DP_TEST_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$8, %ecx
	callq	_core_link_read_dpcd
	movq	_DP_TEST_MISC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	$8, %ecx
	callq	_core_link_read_dpcd
	movl	-40(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.3:
	movq	_DP_TEST_PATTERN_COLOR_RAMP@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_DP_TEST_PATTERN_VERTICAL_BARS@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movl	-28(%rbp), %eax
	movq	_TEST_DYN_RANGE_VESA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.7:
	movq	_DP_TEST_PATTERN_COLOR_SQUARES@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_DP_TEST_PATTERN_VIDEO_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_DP_TEST_PATTERN_COLOR_SQUARES_CEA@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_dc_link_dp_set_test_pattern
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_TEST_PATTERN,4,2            ## @DP_TEST_PATTERN
	.comm	_DP_TEST_MISC0,4,2              ## @DP_TEST_MISC0
	.comm	_DP_TEST_PATTERN_COLOR_RAMP,4,2 ## @DP_TEST_PATTERN_COLOR_RAMP
	.comm	_DP_TEST_PATTERN_VERTICAL_BARS,4,2 ## @DP_TEST_PATTERN_VERTICAL_BARS
	.comm	_TEST_DYN_RANGE_VESA,4,2        ## @TEST_DYN_RANGE_VESA
	.comm	_DP_TEST_PATTERN_COLOR_SQUARES,4,2 ## @DP_TEST_PATTERN_COLOR_SQUARES
	.comm	_DP_TEST_PATTERN_COLOR_SQUARES_CEA,4,2 ## @DP_TEST_PATTERN_COLOR_SQUARES_CEA
	.comm	_DP_TEST_PATTERN_VIDEO_MODE,4,2 ## @DP_TEST_PATTERN_VIDEO_MODE
	.no_dead_strip	_dp_test_send_link_test_pattern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dp_test_send_link_test_pattern
_dp_test_send_link_test_pattern:        ; @dp_test_send_link_test_pattern
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _DP_TEST_PATTERN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_TEST_PATTERN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	bl	_core_link_read_dpcd
Lloh3:
	adrp	x8, _DP_TEST_MISC0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_TEST_MISC0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #8
	bl	_core_link_read_dpcd
	ldr	w8, [sp, #8]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _DP_TEST_PATTERN_COLOR_RAMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DP_TEST_PATTERN_COLOR_RAMP@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _DP_TEST_PATTERN_VERTICAL_BARS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DP_TEST_PATTERN_VERTICAL_BARS@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w8, [sp, #4]
Lloh10:
	adrp	x9, _TEST_DYN_RANGE_VESA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TEST_DYN_RANGE_VESA@GOTPAGEOFF]
Lloh12:
	adrp	x10, _DP_TEST_PATTERN_COLOR_SQUARES@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DP_TEST_PATTERN_COLOR_SQUARES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x11, _DP_TEST_PATTERN_COLOR_SQUARES_CEA@GOTPAGE
Lloh16:
	ldr	x11, [x11, _DP_TEST_PATTERN_COLOR_SQUARES_CEA@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _DP_TEST_PATTERN_VIDEO_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DP_TEST_PATTERN_VIDEO_MODE@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_dc_link_dp_set_test_pattern
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_TEST_PATTERN,4,2            ; @DP_TEST_PATTERN
	.comm	_DP_TEST_MISC0,4,2              ; @DP_TEST_MISC0
	.comm	_DP_TEST_PATTERN_COLOR_RAMP,4,2 ; @DP_TEST_PATTERN_COLOR_RAMP
	.comm	_DP_TEST_PATTERN_VERTICAL_BARS,4,2 ; @DP_TEST_PATTERN_VERTICAL_BARS
	.comm	_TEST_DYN_RANGE_VESA,4,2        ; @TEST_DYN_RANGE_VESA
	.comm	_DP_TEST_PATTERN_COLOR_SQUARES,4,2 ; @DP_TEST_PATTERN_COLOR_SQUARES
	.comm	_DP_TEST_PATTERN_COLOR_SQUARES_CEA,4,2 ; @DP_TEST_PATTERN_COLOR_SQUARES_CEA
	.comm	_DP_TEST_PATTERN_VIDEO_MODE,4,2 ; @DP_TEST_PATTERN_VIDEO_MODE
	.no_dead_strip	_dp_test_send_link_test_pattern
.subsections_via_symbols
