	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdn_dp_get_training_status
_cdn_dp_get_training_status:            ## @cdn_dp_get_training_status
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MB_MODULE_ID_DP_TX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DPTX_READ_LINK_STAT@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_cdn_dp_mailbox_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$40, %ecx
	callq	_cdn_dp_mailbox_validate_receive
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$40, %edx
	callq	_cdn_dp_mailbox_read_receive
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DRM_DEV_ERROR
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-80(%rbp), %edi
	callq	_drm_dp_bw_code_to_link_rate
	movl	%eax, 8(%r14)
	movl	-76(%rbp), %eax
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_MODULE_ID_DP_TX,4,2         ## @MB_MODULE_ID_DP_TX
	.comm	_DPTX_READ_LINK_STAT,4,2        ## @DPTX_READ_LINK_STAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get training status failed: %d\n"

	.no_dead_strip	_cdn_dp_get_training_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdn_dp_get_training_status
_cdn_dp_get_training_status:            ; @cdn_dp_get_training_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x21, _MB_MODULE_ID_DP_TX@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MB_MODULE_ID_DP_TX@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x22, _DPTX_READ_LINK_STAT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _DPTX_READ_LINK_STAT@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w3, #0
	mov	x4, #0
	bl	_cdn_dp_mailbox_send
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #40
	bl	_cdn_dp_mailbox_validate_receive
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #40
	bl	_cdn_dp_mailbox_read_receive
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_3:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEV_ERROR
LBB0_4:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	w0, [sp]
	bl	_drm_dp_bw_code_to_link_rate
	ldr	w8, [sp, #4]
	stp	w8, w0, [x19, #4]
	b	LBB0_4
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_MODULE_ID_DP_TX,4,2         ; @MB_MODULE_ID_DP_TX
	.comm	_DPTX_READ_LINK_STAT,4,2        ; @DPTX_READ_LINK_STAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get training status failed: %d\n"

	.no_dead_strip	_cdn_dp_get_training_status
.subsections_via_symbols
