	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_get_hpd_status          ## -- Begin function cdn_dp_get_hpd_status
	.p2align	4, 0x90
_cdn_dp_get_hpd_status:                 ## @cdn_dp_get_hpd_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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MB_MODULE_ID_DP_TX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DPTX_HPD_STATE@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	$4, %ecx
	callq	_cdn_dp_mailbox_validate_receive
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %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:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-36(%rbp), %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_MODULE_ID_DP_TX,4,2         ## @MB_MODULE_ID_DP_TX
	.comm	_DPTX_HPD_STATE,4,2             ## @DPTX_HPD_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get hpd status failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_get_hpd_status          ; -- Begin function cdn_dp_get_hpd_status
	.p2align	2
_cdn_dp_get_hpd_status:                 ; @cdn_dp_get_hpd_status
	.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	x19, x0
Lloh0:
	adrp	x21, _MB_MODULE_ID_DP_TX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MB_MODULE_ID_DP_TX@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _DPTX_HPD_STATE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DPTX_HPD_STATE@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, #4
	bl	_cdn_dp_mailbox_validate_receive
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.2:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_cdn_dp_mailbox_read_receive
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_3:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEV_ERROR
LBB0_4:
	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
LBB0_5:
	ldr	w20, [sp, #12]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_MODULE_ID_DP_TX,4,2         ; @MB_MODULE_ID_DP_TX
	.comm	_DPTX_HPD_STATE,4,2             ; @DPTX_HPD_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get hpd status failed: %d\n"

.subsections_via_symbols
