	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn10_link_encoder_dp_set_lane_settings ## -- Begin function dcn10_link_encoder_dp_set_lane_settings
	.p2align	4, 0x90
_dcn10_link_encoder_dp_set_lane_settings: ## @dcn10_link_encoder_dp_set_lane_settings
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	callq	_TO_DCN10_LINK_ENC
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movups	%xmm0, -80(%rbp)
	movq	$0, -48(%rbp)
	testq	%r12, %r12
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	_TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -52(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -56(%rbp)
	movq	8(%r12), %rcx
	movq	%rcx, -88(%rbp)
	movl	(%r14), %eax
	movl	%eax, -60(%rbp)
	movl	16(%r12), %eax
	movq	_LINK_RATE_REF_FREQ_IN_KHZ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	%eax, %edx
	movl	%edx, -80(%rbp)
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_LINK_RATE_HIGH2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx), %r15d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, -72(%rbp)
	movl	%r15d, -64(%rbp)
	movq	%r14, %rdi
	leaq	-88(%rbp), %rsi
	callq	_link_transmitter_control
	incq	%r13
	cmpq	8(%r12), %r13
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r12), %eax
	addq	$12, %rbx
	jmp	LBB0_3
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BREAK_TO_DEBUGGER              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS,4,2 ## @TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS
	.comm	_LINK_RATE_REF_FREQ_IN_KHZ,4,2  ## @LINK_RATE_REF_FREQ_IN_KHZ
	.comm	_LINK_RATE_HIGH2,4,2            ## @LINK_RATE_HIGH2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn10_link_encoder_dp_set_lane_settings ; -- Begin function dcn10_link_encoder_dp_set_lane_settings
	.p2align	2
_dcn10_link_encoder_dp_set_lane_settings: ; @dcn10_link_encoder_dp_set_lane_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_TO_DCN10_LINK_ENC
	str	xzr, [sp, #40]
	movi.2d	v0, #0000000000000000
	stur	q0, [sp, #24]
	stur	q0, [sp, #8]
	cbz	x19, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldur	d0, [x0, #4]
	str	d0, [sp, #32]
	ldr	x9, [x19, #8]
	str	x9, [sp]
	ldr	w10, [x0]
	ldr	w8, [x19, #16]
Lloh3:
	adrp	x11, _LINK_RATE_REF_FREQ_IN_KHZ@GOTPAGE
Lloh4:
	ldr	x11, [x11, _LINK_RATE_REF_FREQ_IN_KHZ@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	mul	w11, w11, w8
	str	w10, [sp, #28]
	str	w11, [sp, #8]
	cbz	x9, LBB0_7
; %bb.2:
	mov	x21, #0
	mov	x22, #0
	mov	w23, #0
Lloh6:
	adrp	x24, _LINK_RATE_HIGH2@GOTPAGE
Lloh7:
	ldr	x24, [x24, _LINK_RATE_HIGH2@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	w23, [x8, x21]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x22, [sp, #16]
	str	w23, [sp, #24]
	mov	x1, sp
	mov	x0, x20
	bl	_link_transmitter_control
	add	x22, x22, #1
	ldr	x8, [x19, #8]
	cmp	x22, x8
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #16]
	add	x21, x21, #12
	b	LBB0_3
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_BREAK_TO_DEBUGGER
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS,4,2 ; @TRANSMITTER_CONTROL_SET_VOLTAGE_AND_PREEMPASIS
	.comm	_LINK_RATE_REF_FREQ_IN_KHZ,4,2  ; @LINK_RATE_REF_FREQ_IN_KHZ
	.comm	_LINK_RATE_HIGH2,4,2            ; @LINK_RATE_HIGH2
.subsections_via_symbols
