	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_receive_error
_process_receive_error:                 ## @process_receive_error
	.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	8(%rdi), %rax
	movq	(%rax), %rdi
	callq	_hfi1_dbg_fault_suppress_err
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_rhf_rcv_type_err
	movq	_RHF_RCV_TYPE_ERROR@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_RHF_DC_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	testl	%eax, (%rbx)
	setne	%dil
	jmp	LBB0_4
LBB0_1:
	xorl	%edi, %edi
LBB0_4:
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_hfi1_setup_ib_header
	movq	%rbx, %rdi
	callq	_handle_eflags
	movl	(%rbx), %edi
	callq	_rhf_err_flags
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dd_dev_err
LBB0_7:
	movq	_RHF_RCV_CONTINUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RHF_RCV_TYPE_ERROR,8,3         ## @RHF_RCV_TYPE_ERROR
	.comm	_RHF_DC_ERR,4,2                 ## @RHF_DC_ERR
	.comm	_RHF_RCV_CONTINUE,4,2           ## @RHF_RCV_CONTINUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled error packet received. Dropping.\n"

	.no_dead_strip	_process_receive_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_receive_error
_process_receive_error:                 ; @process_receive_error
	.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, #8]
	ldr	x0, [x8]
	bl	_hfi1_dbg_fault_suppress_err
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_rhf_rcv_type_err
Lloh0:
	adrp	x8, _RHF_RCV_TYPE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RHF_RCV_TYPE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
LBB0_3:
	bl	_unlikely
	cbnz	x0, LBB0_7
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _RHF_DC_ERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RHF_DC_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_hfi1_setup_ib_header
	mov	x0, x19
	bl	_handle_eflags
	ldr	w0, [x19]
	bl	_rhf_err_flags
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dd_dev_err
LBB0_7:
Lloh8:
	adrp	x8, _RHF_RCV_CONTINUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RHF_RCV_CONTINUE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RHF_RCV_TYPE_ERROR,8,3         ; @RHF_RCV_TYPE_ERROR
	.comm	_RHF_DC_ERR,4,2                 ; @RHF_DC_ERR
	.comm	_RHF_RCV_CONTINUE,4,2           ; @RHF_RCV_CONTINUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled error packet received. Dropping.\n"

	.no_dead_strip	_process_receive_error
.subsections_via_symbols
