	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdn_dp_mailbox_read
_cdn_dp_mailbox_read:                   ## @cdn_dp_mailbox_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MAILBOX_EMPTY_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rdi), %rsi
	movq	_MAILBOX_RETRY_US@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MAILBOX_TIMEOUT_US@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_readl@GOTPCREL(%rip), %rdi
	xorl	%ecx, %ecx
	callq	_readx_poll_timeout
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_MAILBOX0_RD_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movzbl	%al, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAILBOX_EMPTY_ADDR,8,3         ## @MAILBOX_EMPTY_ADDR
	.comm	_MAILBOX_RETRY_US,4,2           ## @MAILBOX_RETRY_US
	.comm	_MAILBOX_TIMEOUT_US,4,2         ## @MAILBOX_TIMEOUT_US
	.comm	_MAILBOX0_RD_DATA,8,3           ## @MAILBOX0_RD_DATA
	.no_dead_strip	_cdn_dp_mailbox_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdn_dp_mailbox_read
_cdn_dp_mailbox_read:                   ; @cdn_dp_mailbox_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAILBOX_EMPTY_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAILBOX_EMPTY_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh3:
	adrp	x8, _MAILBOX_RETRY_US@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAILBOX_RETRY_US@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _MAILBOX_TIMEOUT_US@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAILBOX_TIMEOUT_US@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x0, _readl@GOTPAGE
Lloh10:
	ldr	x0, [x0, _readl@GOTPAGEOFF]
	mov	w3, #0
	bl	_readx_poll_timeout
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _MAILBOX0_RD_DATA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAILBOX0_RD_DATA@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	and	w0, w0, #0xff
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAILBOX_EMPTY_ADDR,8,3         ; @MAILBOX_EMPTY_ADDR
	.comm	_MAILBOX_RETRY_US,4,2           ; @MAILBOX_RETRY_US
	.comm	_MAILBOX_TIMEOUT_US,4,2         ; @MAILBOX_TIMEOUT_US
	.comm	_MAILBOX0_RD_DATA,8,3           ; @MAILBOX0_RD_DATA
	.no_dead_strip	_cdn_dp_mailbox_read
.subsections_via_symbols
