	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_qcheck
_ipath_qcheck:                          ## @ipath_qcheck
	.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	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	32(%rdi), %rax
	movq	(%rax), %r14
	movb	$0, -176(%rbp)
	movq	(%r14), %rcx
	subq	(%rdi), %rcx
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdx
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	%rax, (%r15)
LBB0_3:
	movq	_ipath_stats@GOTPCREL(%rip), %r12
	movq	(%r12), %r8
	subq	8(%r15), %r8
	je	LBB0_5
## %bb.4:
	leaq	(%rbx,%rbp), %rdi
	addq	$-176, %rdi
	movl	$128, %esi
	subl	%ebx, %esi
	testq	%rbx, %rbx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	addq	%rax, %rbx
	movq	(%r12), %rax
	movq	%rax, 8(%r15)
LBB0_5:
	movq	_ipath_debug@GOTPCREL(%rip), %rax
	movq	___IPATH_PKTDBG@GOTPCREL(%rip), %rcx
	movq	___IPATH_DBG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, (%rax)
	je	LBB0_8
## %bb.6:
	movq	8(%r12), %r8
	subq	_ipath_qcheck.last_tot_hdrqfull(%rip), %r8
	je	LBB0_8
## %bb.7:
	leaq	(%rbx,%rbp), %rdi
	addq	$-176, %rdi
	movl	$128, %esi
	subl	%ebx, %esi
	testq	%rbx, %rbx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	addq	%rax, %rbx
	movq	8(%r12), %rax
	movq	%rax, _ipath_qcheck.last_tot_hdrqfull(%rip)
LBB0_8:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	leaq	-176(%rbp), %rsi
	callq	_ipath_dbg
LBB0_10:
	movq	%r14, %rdi
	callq	_ipath_get_hdrqtail
	movl	8(%r14), %edx
	cmpl	%eax, %edx
	je	LBB0_14
## %bb.11:
	movl	%eax, %ebx
	movq	16(%r15), %r8
	movq	16(%r12), %rax
	cmpq	%rax, %r8
	jne	LBB0_13
## %bb.12:
	movq	_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %ecx
	callq	_ipath_cdbg
	movq	_ur_rcvhdrhead@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	24(%r15), %ebx
	movl	12(%r14), %ecx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_ipath_write_ureg
	movq	16(%r12), %rax
LBB0_13:
	movq	%rax, 16(%r15)
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ipath_qcheck.last_tot_hdrqfull,8,3 ## @ipath_qcheck.last_tot_hdrqfull
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port 0 hdrqfull %u"

	.comm	_ipath_stats,24,3               ## @ipath_stats
L_.str.1:                               ## @.str.1
	.asciz	"%srcvegrfull %llu"

L_.str.2:                               ## @.str.2
	.asciz	", "

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_ipath_debug,4,2                ## @ipath_debug
	.comm	___IPATH_PKTDBG,4,2             ## @__IPATH_PKTDBG
	.comm	___IPATH_DBG,4,2                ## @__IPATH_DBG
L_.str.4:                               ## @.str.4
	.asciz	"%shdrqfull %llu (all ports)"

L_.str.5:                               ## @.str.5
	.asciz	"%s\n"

	.comm	_PKT,4,2                        ## @PKT
L_.str.6:                               ## @.str.6
	.asciz	"missing rcv interrupts? port0 hd=%x tl=%x; port0pkts %llx; write hd (w/intr)\n"

	.comm	_ur_rcvhdrhead,4,2              ## @ur_rcvhdrhead
	.no_dead_strip	_ipath_qcheck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_qcheck
_ipath_qcheck:                          ; @ipath_qcheck
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	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, #-56]
	ldr	x8, [x0, #32]
	ldr	x20, [x8]
	strb	wzr, [sp, #8]
	ldr	x8, [x20]
	ldr	x9, [x0]
	subs	x3, x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x21, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #128
	bl	_snprintf
	mov	x21, x0
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_3:
Lloh5:
	adrp	x22, _ipath_stats@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ipath_stats@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x19, #8]
	subs	x8, x8, x9
	b.eq	LBB0_5
; %bb.4:
	add	x9, sp, #8
	add	x0, x9, x21
	mov	w9, #128
	sub	w1, w9, w21
Lloh7:
	adrp	x9, l_.str.2@PAGE
Lloh8:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh9:
	adrp	x10, l_.str.3@PAGE
Lloh10:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x21, #0
	csel	x3, x10, x9, eq
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	add	x21, x0, x21
	ldr	x8, [x22]
	str	x8, [x19, #8]
LBB0_5:
Lloh13:
	adrp	x8, _ipath_debug@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ipath_debug@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, ___IPATH_PKTDBG@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___IPATH_PKTDBG@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, ___IPATH_DBG@GOTPAGE
Lloh20:
	ldr	x10, [x10, ___IPATH_DBG@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x22, #8]
	adrp	x23, _ipath_qcheck.last_tot_hdrqfull@PAGE
	ldr	x9, [x23, _ipath_qcheck.last_tot_hdrqfull@PAGEOFF]
	subs	x8, x8, x9
	b.eq	LBB0_8
; %bb.7:
	add	x9, sp, #8
	add	x0, x9, x21
	mov	w9, #128
	sub	w1, w9, w21
Lloh22:
	adrp	x9, l_.str.2@PAGE
Lloh23:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh24:
	adrp	x10, l_.str.3@PAGE
Lloh25:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x21, #0
	csel	x3, x10, x9, eq
	str	x8, [sp]
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_snprintf
	add	x21, x0, x21
	ldr	x8, [x22, #8]
	str	x8, [x23, _ipath_qcheck.last_tot_hdrqfull@PAGEOFF]
LBB0_8:
	cbz	x21, LBB0_10
; %bb.9:
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	add	x1, sp, #8
	bl	_ipath_dbg
LBB0_10:
	mov	x0, x20
	bl	_ipath_get_hdrqtail
	ldr	w2, [x20, #8]
	cmp	w2, w0
	b.eq	LBB0_14
; %bb.11:
	ldr	x4, [x19, #16]
	ldr	x8, [x22, #16]
	cmp	x4, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x21, x0
Lloh30:
	adrp	x8, _PKT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PKT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x3, x21
	bl	_ipath_cdbg
Lloh35:
	adrp	x8, _ur_rcvhdrhead@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ur_rcvhdrhead@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w8, [x19, #24]
	orr	w2, w8, w21
	ldr	w3, [x20, #12]
	mov	x0, x19
	bl	_ipath_write_ureg
	ldr	x8, [x22, #16]
LBB0_13:
	str	x8, [x19, #16]
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ipath_qcheck.last_tot_hdrqfull,8,3 ; @ipath_qcheck.last_tot_hdrqfull
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port 0 hdrqfull %u"

	.comm	_ipath_stats,24,3               ; @ipath_stats
l_.str.1:                               ; @.str.1
	.asciz	"%srcvegrfull %llu"

l_.str.2:                               ; @.str.2
	.asciz	", "

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_ipath_debug,4,2                ; @ipath_debug
	.comm	___IPATH_PKTDBG,4,2             ; @__IPATH_PKTDBG
	.comm	___IPATH_DBG,4,2                ; @__IPATH_DBG
l_.str.4:                               ; @.str.4
	.asciz	"%shdrqfull %llu (all ports)"

l_.str.5:                               ; @.str.5
	.asciz	"%s\n"

	.comm	_PKT,4,2                        ; @PKT
l_.str.6:                               ; @.str.6
	.asciz	"missing rcv interrupts? port0 hd=%x tl=%x; port0pkts %llx; write hd (w/intr)\n"

	.comm	_ur_rcvhdrhead,4,2              ; @ur_rcvhdrhead
	.no_dead_strip	_ipath_qcheck
.subsections_via_symbols
