	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdn_dp_mailbox_validate_receive
_cdn_dp_mailbox_validate_receive:       ## @cdn_dp_mailbox_validate_receive
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_cdn_dp_mailbox_read
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_cdn_dp_mailbox_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_cdn_dp_mailbox_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_cdn_dp_mailbox_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	shll	$8, %ebx
	orl	%eax, %ebx
	cmpl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.8:
	cmpl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.9:
	xorl	%r15d, %r15d
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_15
LBB0_10:
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.11:
	decl	%ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_cdn_dp_mailbox_read
	subl	$1, %ebx
	setb	%cl
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testb	%cl, %cl
	je	LBB0_12
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_2:
	movl	%r13d, %r15d
	jmp	LBB0_15
LBB0_4:
	movl	%ebx, %r15d
	jmp	LBB0_15
LBB0_6:
	movl	%eax, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cdn_dp_mailbox_validate_receive
.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_validate_receive
_cdn_dp_mailbox_validate_receive:       ; @cdn_dp_mailbox_validate_receive
	.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	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	bl	_cdn_dp_mailbox_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_15
; %bb.1:
	mov	x0, x19
	bl	_cdn_dp_mailbox_read
	mov	x24, x0
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_cdn_dp_mailbox_read
	mov	x25, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_cdn_dp_mailbox_read
	tbnz	w0, #31, LBB0_10
; %bb.4:
	orr	w8, w0, w25, lsl #8
	cmp	w20, w23
	b.ne	LBB0_11
; %bb.5:
	cmp	w24, w22
	b.ne	LBB0_11
; %bb.6:
	cmp	w8, w21
	b.ne	LBB0_11
; %bb.7:
	mov	w20, #0
	b	LBB0_15
LBB0_8:
	mov	x20, x24
	b	LBB0_15
LBB0_9:
	mov	x20, x25
	b	LBB0_15
LBB0_10:
	mov	x20, x0
	b	LBB0_15
LBB0_11:
	subs	w8, w8, #1
	b.lt	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	mov	x0, x19
	bl	_cdn_dp_mailbox_read
	tbnz	w0, #31, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w8, w20, #1
	cbnz	w20, LBB0_12
LBB0_14:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cdn_dp_mailbox_validate_receive
.subsections_via_symbols
