	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dp_link_train_commit
_dp_link_train_commit:                  ## @dp_link_train_commit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_7
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DBG
	movq	40(%r15), %rax
	movl	36(%r15), %edi
	movl	28(%r15), %edx
	movl	32(%r15), %esi
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	*(%rax)
	incq	%rbx
	movslq	(%r15), %rax
	addl	$4, %r14d
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	shrl	%eax
	movq	8(%r15), %rcx
	movl	16(%rcx,%rax,4), %r12d
	movl	%r14d, %ecx
	andb	$4, %cl
	sarl	%cl, %r12d
	movq	16(%r15), %rax
	movl	%r12d, %r13d
	shrl	$2, %r13d
	andl	$3, %r13d
	andl	$3, %r12d
	leal	(%r12,%r13,8), %edx
	movl	%edx, (%rax,%rbx,4)
	cmpl	$3, %r12d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DPCD_LC03_MAX_SWING_REACHED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax,%rbx,4)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %r13d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DPCD_LC03_MAX_PRE_EMPHASIS_REACHED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax,%rbx,4)
	jmp	LBB0_6
LBB0_7:
	movl	24(%r15), %ebx
	xorl	%edi, %edi
	callq	_DPCD_LC03
	movq	16(%r15), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wraux                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPCD_LC03_MAX_SWING_REACHED,4,2 ## @DPCD_LC03_MAX_SWING_REACHED
	.comm	_DPCD_LC03_MAX_PRE_EMPHASIS_REACHED,4,2 ## @DPCD_LC03_MAX_PRE_EMPHASIS_REACHED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"config lane %d %02x\n"

	.no_dead_strip	_dp_link_train_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dp_link_train_commit
_dp_link_train_commit:                  ; @dp_link_train_commit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w24, #0
	mov	x20, #0
Lloh0:
	adrp	x25, _DPCD_LC03_MAX_SWING_REACHED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DPCD_LC03_MAX_SWING_REACHED@GOTPAGEOFF]
Lloh2:
	adrp	x26, _DPCD_LC03_MAX_PRE_EMPHASIS_REACHED@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DPCD_LC03_MAX_PRE_EMPHASIS_REACHED@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_DBG
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldp	w1, w0, [x19, #32]
	ldr	w2, [x19, #28]
	mov	x3, x20
	mov	x4, x23
	mov	x5, x22
	blr	x8
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	w24, w24, #4
	cmp	x20, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ubfx	x8, x20, #1, #31
	add	w9, w8, #4
	ldp	x10, x8, [x19, #8]
	ldr	w9, [x10, w9, uxtw #2]
	and	w10, w24, #0x4
	asr	w9, w9, w10
	ubfx	w22, w9, #2, #2
	and	w23, w9, #0x3
	mov	x2, x23
	bfi	w2, w22, #3, #2
	str	w2, [x8, x20, lsl #2]
	cmp	w23, #3
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x25]
	orr	w2, w9, w2
	str	w2, [x8, x20, lsl #2]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #3
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x26]
	orr	w2, w2, w9
	str	w2, [x8, x20, lsl #2]
	b	LBB0_2
LBB0_7:
	ldr	w20, [x19, #24]
	mov	w0, #0
	bl	_DPCD_LC03
	mov	x1, x0
	ldr	x2, [x19, #16]
	mov	x0, x20
	mov	w3, #4
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nv_wraux
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DPCD_LC03_MAX_SWING_REACHED,4,2 ; @DPCD_LC03_MAX_SWING_REACHED
	.comm	_DPCD_LC03_MAX_PRE_EMPHASIS_REACHED,4,2 ; @DPCD_LC03_MAX_PRE_EMPHASIS_REACHED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"config lane %d %02x\n"

	.no_dead_strip	_dp_link_train_commit
.subsections_via_symbols
