	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_dp_train_sense
_nvkm_dp_train_sense:                   ## @nvkm_dp_train_sense
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_DPCD_RC0E_AUX_RD_INTERVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	shll	$2, %edi
	callq	_mdelay
	jmp	LBB0_3
LBB0_2:
	movl	%edx, %edi
	callq	_udelay
LBB0_3:
	movl	12(%rbx), %edi
	movq	_DPCD_LS02@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movl	$6, %ecx
	callq	_nvkm_rdaux
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.5:
	movl	12(%rbx), %edi
	movq	_DPCD_LS0C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%r14), %r12
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_nvkm_rdaux
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	$0, (%r12)
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rbx
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_OUTP_TRACE
	jmp	LBB0_10
LBB0_6:
	movl	(%r12), %ecx
LBB0_8:
	addq	$8, %rbx
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_OUTP_TRACE
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPCD_RC0E_AUX_RD_INTERVAL,8,3  ## @DPCD_RC0E_AUX_RD_INTERVAL
	.comm	_DPCD_LS02,4,2                  ## @DPCD_LS02
	.comm	_DPCD_LS0C,4,2                  ## @DPCD_LS0C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status %6ph pc2 %02x"

L_.str.1:                               ## @.str.1
	.asciz	"status %6ph"

	.no_dead_strip	_nvkm_dp_train_sense
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_dp_train_sense
_nvkm_dp_train_sense:                   ; @nvkm_dp_train_sense
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _DPCD_RC0E_AUX_RD_INTERVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DPCD_RC0E_AUX_RD_INTERVAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_2
; %bb.1:
	lsl	w0, w8, #2
	bl	_mdelay
	b	LBB0_3
LBB0_2:
	mov	x0, x2
	bl	_udelay
LBB0_3:
	ldr	w0, [x22, #12]
Lloh3:
	adrp	x8, _DPCD_LS02@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPCD_LS02@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x2, [x19]
	mov	w3, #6
	bl	_nvkm_rdaux
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.4:
	cbz	w21, LBB0_7
; %bb.5:
	ldr	w0, [x22, #12]
Lloh6:
	adrp	x8, _DPCD_LS0C@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPCD_LS0C@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x21, x19, #8
	mov	x2, x21
	mov	w3, #1
	bl	_nvkm_rdaux
	cbz	w0, LBB0_8
; %bb.6:
	mov	w8, #0
	str	wzr, [x21]
	b	LBB0_9
LBB0_7:
	add	x0, x22, #8
	ldr	x2, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w8, [x21]
LBB0_9:
	add	x0, x22, #8
	ldr	x2, [x19]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	bl	_OUTP_TRACE
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DPCD_RC0E_AUX_RD_INTERVAL,8,3  ; @DPCD_RC0E_AUX_RD_INTERVAL
	.comm	_DPCD_LS02,4,2                  ; @DPCD_LS02
	.comm	_DPCD_LS0C,4,2                  ; @DPCD_LS0C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status %6ph pc2 %02x"

l_.str.1:                               ; @.str.1
	.asciz	"status %6ph"

	.no_dead_strip	_nvkm_dp_train_sense
.subsections_via_symbols
