	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_seqfile_dump_rcd               ## -- Begin function seqfile_dump_rcd
	.p2align	4, 0x90
_seqfile_dump_rcd:                      ## @seqfile_dump_rcd
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	32(%rsi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movslq	28(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	16(%rsi), %r12d
	movl	24(%rsi), %edi
	movq	_DMA_RTAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HFI1_CAP_KGET_MASK
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movl	16(%r13), %esi
	movl	20(%r13), %edi
	movq	_RCV_HDR_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_read_uctxt_csr
	movl	%eax, %r14d
	movq	_RCV_HDR_HEAD_HEAD_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movl	16(%r13), %esi
	movl	20(%r13), %edi
	movq	_RCV_HDR_TAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_read_uctxt_csr
	movl	%eax, %r10d
	leaq	L_.str(%rip), %rsi
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r9
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r14
	callq	_seq_printf
	addq	$16, %rsp
	leaq	-72(%rbp), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_init_packet
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_init_ps_mdata
	movslq	-48(%rbp), %rax
	shlq	$2, %rax
	addq	8(%r13), %rax
	movslq	(%r13), %rcx
	leaq	(%rax,%rcx,4), %rbx
	movq	%rbx, %rdi
	callq	_rhf_to_cpu
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_rhf_rcv_type
	movq	%rax, %r14
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_ps_done
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-48(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -72(%rbp)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %ebx
	sarl	$24, %ebx
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_be32_to_cpu
	movq	_RVT_QPN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movslq	%eax, %r14
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_mask_psn
	movl	-48(%rbp), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %ecx
	movq	%r14, %r8
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_seq_printf
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_update_ps_mdata
	movslq	-48(%rbp), %rax
	shlq	$2, %rax
	addq	8(%r13), %rax
	movslq	(%r13), %rcx
	leaq	(%rax,%rcx,4), %rbx
	movq	%rbx, %rdi
	callq	_rhf_to_cpu
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_rhf_rcv_type
	movq	%rax, %r14
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_ps_done
	testq	%rax, %rax
	jne	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_ps_skip
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RHF_RCV_TYPE_IB@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jg	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_hfi1_get_msgheader
	movq	%rax, %rbx
	movq	%rax, -64(%rbp)
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	andl	$3, %eax
	movq	_HFI1_LRH_BTH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HFI1_LRH_GRH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rcd %u: RcvHdr cnt %u entsize %u %s head %llu tail %llu\n"

	.comm	_DMA_RTAIL,4,2                  ## @DMA_RTAIL
L_.str.1:                               ## @.str.1
	.asciz	"dma_rtail"

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

	.comm	_RCV_HDR_HEAD,4,2               ## @RCV_HDR_HEAD
	.comm	_RCV_HDR_HEAD_HEAD_MASK,4,2     ## @RCV_HDR_HEAD_HEAD_MASK
	.comm	_RCV_HDR_TAIL,4,2               ## @RCV_HDR_TAIL
	.comm	_RHF_RCV_TYPE_IB,8,3            ## @RHF_RCV_TYPE_IB
	.comm	_HFI1_LRH_BTH,4,2               ## @HFI1_LRH_BTH
	.comm	_HFI1_LRH_GRH,4,2               ## @HFI1_LRH_GRH
	.comm	_RVT_QPN_MASK,4,2               ## @RVT_QPN_MASK
L_.str.3:                               ## @.str.3
	.asciz	"\tEnt %u: opcode 0x%x, qpn 0x%x, psn 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_seqfile_dump_rcd               ; -- Begin function seqfile_dump_rcd
	.p2align	2
_seqfile_dump_rcd:                      ; @seqfile_dump_rcd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x1
	mov	x20, x0
	ldr	w21, [x1, #16]
	ldp	w23, w22, [x1, #28]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
	ldr	w0, [x1, #24]
Lloh0:
	adrp	x8, _DMA_RTAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_RTAIL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_HFI1_CAP_KGET_MASK
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x24, x9, x8, eq
	ldp	w1, w0, [x19, #16]
Lloh7:
	adrp	x8, _RCV_HDR_HEAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RCV_HDR_HEAD@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_read_uctxt_csr
Lloh10:
	adrp	x8, _RCV_HDR_HEAD_HEAD_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RCV_HDR_HEAD_HEAD_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w25, w8, w0
	ldp	w1, w0, [x19, #16]
Lloh13:
	adrp	x8, _RCV_HDR_TAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RCV_HDR_TAIL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_read_uctxt_csr
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	bl	_seq_printf
	add	x1, sp, #32
	mov	x0, x19
	bl	_init_packet
	add	x0, sp, #24
	add	x1, sp, #32
	bl	_init_ps_mdata
	ldr	x8, [x19, #8]
	ldrsw	x9, [sp, #24]
	add	x8, x8, x9, lsl #2
	ldrsw	x9, [x19]
	add	x22, x8, x9, lsl #2
	mov	x0, x22
	bl	_rhf_to_cpu
	mov	x23, x0
	bl	_rhf_rcv_type
	mov	x24, x0
	add	x0, sp, #24
	mov	x1, x23
	mov	x2, x19
	bl	_ps_done
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_2:
Lloh18:
	adrp	x25, _RHF_RCV_TYPE_IB@GOTPAGE
Lloh19:
	ldr	x25, [x25, _RHF_RCV_TYPE_IB@GOTPAGEOFF]
Lloh20:
	adrp	x26, _HFI1_LRH_BTH@GOTPAGE
Lloh21:
	ldr	x26, [x26, _HFI1_LRH_BTH@GOTPAGEOFF]
Lloh22:
	adrp	x27, _RVT_QPN_MASK@GOTPAGE
Lloh23:
	ldr	x27, [x27, _RVT_QPN_MASK@GOTPAGEOFF]
Lloh24:
	adrp	x21, l_.str.3@PAGE
Lloh25:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh26:
	adrp	x28, _HFI1_LRH_GRH@GOTPAGE
Lloh27:
	ldr	x28, [x28, _HFI1_LRH_GRH@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #8
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x22, [sp, #32]
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_be32_to_cpu
	asr	w22, w0, #24
	ldr	x8, [sp, #32]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	bl	_be32_to_cpu
	ldr	w8, [x27]
	and	w8, w8, w0
	sxtw	x23, w8
	ldr	x8, [sp, #32]
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	bl	_be32_to_cpu
	bl	_mask_psn
	mov	x5, x0
	ldr	w2, [sp, #24]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	mov	x4, x23
	bl	_seq_printf
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #24
	mov	x1, x19
	bl	_update_ps_mdata
	ldr	x8, [x19, #8]
	ldrsw	x9, [sp, #24]
	add	x8, x8, x9, lsl #2
	ldrsw	x9, [x19]
	add	x22, x8, x9, lsl #2
	mov	x0, x22
	bl	_rhf_to_cpu
	mov	x23, x0
	bl	_rhf_rcv_type
	mov	x24, x0
	add	x0, sp, #24
	mov	x1, x23
	mov	x2, x19
	bl	_ps_done
	cbnz	x0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	x1, x23
	mov	x2, x19
	bl	_ps_skip
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	cmp	x24, x8
	b.gt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_hfi1_get_msgheader
	mov	x22, x0
	str	x0, [sp, #40]
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_be16_to_cpu
	and	w8, w0, #0x3
	ldr	w9, [x26]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x28]
	cmp	w8, w9
	b.eq	LBB0_4
	b	LBB0_5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rcd %u: RcvHdr cnt %u entsize %u %s head %llu tail %llu\n"

	.comm	_DMA_RTAIL,4,2                  ; @DMA_RTAIL
l_.str.1:                               ; @.str.1
	.asciz	"dma_rtail"

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

	.comm	_RCV_HDR_HEAD,4,2               ; @RCV_HDR_HEAD
	.comm	_RCV_HDR_HEAD_HEAD_MASK,4,2     ; @RCV_HDR_HEAD_HEAD_MASK
	.comm	_RCV_HDR_TAIL,4,2               ; @RCV_HDR_TAIL
	.comm	_RHF_RCV_TYPE_IB,8,3            ; @RHF_RCV_TYPE_IB
	.comm	_HFI1_LRH_BTH,4,2               ; @HFI1_LRH_BTH
	.comm	_HFI1_LRH_GRH,4,2               ; @HFI1_LRH_GRH
	.comm	_RVT_QPN_MASK,4,2               ; @RVT_QPN_MASK
l_.str.3:                               ; @.str.3
	.asciz	"\tEnt %u: opcode 0x%x, qpn 0x%x, psn 0x%x\n"

.subsections_via_symbols
