	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_rcv_hdrerr
_ipath_rcv_hdrerr:                      ## @ipath_rcv_hdrerr
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r15
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	movl	%edx, -180(%rbp)                ## 4-byte Spill
	movl	%esi, %r13d
	movq	%rdi, -192(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-176(%rbp), %rsi
	movl	%r13d, %edi
	movl	$128, %edx
	callq	_get_rhf_errstring
	movq	_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_ipath_hdrget_rcv_type
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_ipath_hdrget_length_in_bytes
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	sarl	$24, %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%r13d, %edx
	movl	-180(%rbp), %ecx                ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	leaq	-176(%rbp), %rbx
	pushq	%rbx
	pushq	-200(%rbp)                      ## 8-byte Folded Reload
	pushq	%rax
	callq	_ipath_cdbg
	addq	$32, %rsp
	movq	_INFINIPATH_RHF_H_ICRCERR@GOTPCREL(%rip), %rax
	movq	_INFINIPATH_RHF_H_VCRCERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r13d, %ecx
	je	LBB0_3
## %bb.1:
	movq	_INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	movq	(%rsi), %rax
	sarq	%cl, %rax
	movq	_INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	8(%rsi), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%rsi)
	cmpq	%rax, %rcx
	jl	LBB0_3
## %bb.2:
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movq	$0, 8(%rax)
	incl	16(%rax)
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT,4,2                        ## @PKT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RHFerrs %x hdrqtail=%x typ=%u tlen=%x opcode=%x egridx=%x: %s\n"

	.comm	_INFINIPATH_RHF_H_ICRCERR,4,2   ## @INFINIPATH_RHF_H_ICRCERR
	.comm	_INFINIPATH_RHF_H_VCRCERR,4,2   ## @INFINIPATH_RHF_H_VCRCERR
	.comm	_INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT,8,3 ## @INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT
	.comm	_INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK,8,3 ## @INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK
	.no_dead_strip	_ipath_rcv_hdrerr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_rcv_hdrerr
_ipath_rcv_hdrerr:                      ; @ipath_rcv_hdrerr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x27, sp, #8
	add	x1, sp, #8
	mov	x0, x24
	mov	w2, #128
	bl	_get_rhf_errstring
Lloh3:
	adrp	x8, _PKT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PKT@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x0, x21
	bl	_ipath_hdrget_rcv_type
	mov	x26, x0
	mov	x0, x21
	bl	_ipath_hdrget_length_in_bytes
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_be32_to_cpu
	asr	w6, w0, #24
	str	x27, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x26
	mov	x5, x21
	mov	x7, x22
	bl	_ipath_cdbg
Lloh8:
	adrp	x8, _INFINIPATH_RHF_H_ICRCERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INFINIPATH_RHF_H_ICRCERR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _INFINIPATH_RHF_H_VCRCERR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _INFINIPATH_RHF_H_VCRCERR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w24
	b.eq	LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, _INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK@GOTPAGEOFF]
	ldp	x10, x11, [x19]
	asr	x8, x10, x8
Lloh19:
	ldr	x9, [x9]
	and	x8, x8, x9
	add	x9, x11, #1
	str	x9, [x19, #8]
	cmp	x11, x8
	b.lt	LBB0_3
; %bb.2:
	str	xzr, [x19, #8]
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT,4,2                        ; @PKT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RHFerrs %x hdrqtail=%x typ=%u tlen=%x opcode=%x egridx=%x: %s\n"

	.comm	_INFINIPATH_RHF_H_ICRCERR,4,2   ; @INFINIPATH_RHF_H_ICRCERR
	.comm	_INFINIPATH_RHF_H_VCRCERR,4,2   ; @INFINIPATH_RHF_H_VCRCERR
	.comm	_INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT,8,3 ; @INFINIPATH_IBCC_PHYERRTHRESHOLD_SHIFT
	.comm	_INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK,8,3 ; @INFINIPATH_IBCC_PHYERRTHRESHOLD_MASK
	.no_dead_strip	_ipath_rcv_hdrerr
.subsections_via_symbols
