	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_psn
_reset_psn:                             ## @reset_psn
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	%r13, %rsi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %r12
	movq	80(%r15), %rbx
	leaq	72(%r15), %rdi
	callq	_lockdep_assert_held
	movq	%r13, 8(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 64(%r15)
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_cmp_psn
	testl	%eax, %eax
	jle	LBB0_1
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_update_num_rd_atomic
	incq	%r13
	xorl	%ebx, %ebx
	cmpq	16(%r15), %r13
	cmovneq	%r13, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	24(%r15), %rbx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %r12
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_cmp_psn
	testl	%eax, %eax
	js	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, 8(%r15)
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_update_num_rd_atomic
	incq	%rbx
	cmpq	16(%r15), %rbx
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_SEND_LAST@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %r12
LBB0_7:
	movq	(%r12), %rax
	addq	$-128, %rax
	cmpq	$6, %rax
	ja	LBB0_18
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmpq	*%rax
LBB0_12:
	movq	_RDMA_READ_RESPONSE_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_18:
	movq	_SEND_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_13:
	movq	_RDMA_READ_RESPONSE_LAST@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_14:
	movq	_WRITE_RESP@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_17:
	movq	_READ_RESP@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edi
	callq	_TID_OP
	jmp	LBB0_19
LBB0_16:
	movq	_RDMA_READ_RESPONSE_MIDDLE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	callq	_OP
LBB0_19:
	movq	%rax, 56(%r15)
	movq	_HFI1_S_TID_WAIT_INTERLCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	%r14, 32(%r15)
	movl	52(%r15), %esi
	movq	%r14, %rdi
	callq	_cmp_psn
	testl	%eax, %eax
	jg	LBB0_22
## %bb.20:
	movq	40(%r15), %rdi
	movl	52(%r15), %esi
	callq	_cmp_psn
	testl	%eax, %eax
	jg	LBB0_22
## %bb.21:
	movq	_RVT_S_WAIT_PSN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 48(%r15)
LBB0_22:
	movq	_HFI1_S_AHG_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 48(%r15)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trace_hfi1_sender_reset_psn    ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_17
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_SEND_LAST,4,2                  ## @SEND_LAST
	.comm	_RDMA_READ_RESPONSE_FIRST,4,2   ## @RDMA_READ_RESPONSE_FIRST
	.comm	_RDMA_READ_RESPONSE_LAST,4,2    ## @RDMA_READ_RESPONSE_LAST
	.comm	_WRITE_RESP,4,2                 ## @WRITE_RESP
	.comm	_RDMA_READ_RESPONSE_MIDDLE,4,2  ## @RDMA_READ_RESPONSE_MIDDLE
	.comm	_READ_RESP,4,2                  ## @READ_RESP
	.comm	_HFI1_S_TID_WAIT_INTERLCK,4,2   ## @HFI1_S_TID_WAIT_INTERLCK
	.comm	_RVT_S_WAIT_PSN,4,2             ## @RVT_S_WAIT_PSN
	.comm	_HFI1_S_AHG_VALID,4,2           ## @HFI1_S_AHG_VALID
	.no_dead_strip	_reset_psn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_psn
_reset_psn:                             ; @reset_psn
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	mov	x1, x22
	bl	_rvt_get_swqe_ptr
	mov	x21, x0
	ldr	x23, [x19, #80]
	add	x0, x19, #72
	bl	_lockdep_assert_held
	str	x22, [x19, #8]
	stp	xzr, xzr, [x23, #8]
	str	xzr, [x19, #64]
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_cmp_psn
	cmp	w0, #0
	b.le	LBB0_8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_update_num_rd_atomic
	add	x8, x22, #1
	ldp	x9, x10, [x19, #16]
	cmp	x8, x9
	csinc	x22, xzr, x22, eq
	cmp	x22, x10
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_rvt_get_swqe_ptr
	mov	x21, x0
	ldr	w1, [x0, #8]
	mov	x0, x20
	bl	_cmp_psn
	tbnz	w0, #31, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x22, [x19, #8]
	cbnz	w0, LBB0_1
	b	LBB0_8
LBB0_4:
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_rvt_get_swqe_ptr
	mov	x21, x0
LBB0_5:
	ldr	x8, [x21]
	sub	x8, x8, #128
	cmp	x8, #6
	b.hi	LBB0_8
; %bb.6:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
Lloh2:
	adrp	x8, _RDMA_READ_RESPONSE_FIRST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RDMA_READ_RESPONSE_FIRST@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _SEND_LAST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SEND_LAST@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	bl	_OP
LBB0_10:
	str	x0, [x19, #56]
Lloh6:
	adrp	x8, _HFI1_S_TID_WAIT_INTERLCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HFI1_S_TID_WAIT_INTERLCK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x23]
	bic	w8, w9, w8
	str	w8, [x23]
	str	x20, [x19, #32]
	ldr	w1, [x19, #52]
	mov	x0, x20
	bl	_cmp_psn
	cmp	w0, #0
	b.gt	LBB0_13
; %bb.11:
	ldr	x0, [x19, #40]
	ldr	w1, [x19, #52]
	bl	_cmp_psn
	cmp	w0, #0
	b.gt	LBB0_13
; %bb.12:
Lloh9:
	adrp	x8, _RVT_S_WAIT_PSN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RVT_S_WAIT_PSN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #48]
LBB0_13:
Lloh12:
	adrp	x8, _HFI1_S_AHG_VALID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HFI1_S_AHG_VALID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	bic	w8, w9, w8
	str	w8, [x19, #48]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_trace_hfi1_sender_reset_psn
LBB0_14:
Lloh15:
	adrp	x8, _RDMA_READ_RESPONSE_LAST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RDMA_READ_RESPONSE_LAST@GOTPAGEOFF]
	b	LBB0_9
LBB0_15:
Lloh17:
	adrp	x8, _WRITE_RESP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WRITE_RESP@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh19:
	adrp	x8, _READ_RESP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _READ_RESP@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	bl	_TID_OP
	b	LBB0_10
LBB0_18:
Lloh21:
	adrp	x8, _RDMA_READ_RESPONSE_MIDDLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RDMA_READ_RESPONSE_MIDDLE@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
                                        ; -- End function
	.comm	_SEND_LAST,4,2                  ; @SEND_LAST
	.comm	_RDMA_READ_RESPONSE_FIRST,4,2   ; @RDMA_READ_RESPONSE_FIRST
	.comm	_RDMA_READ_RESPONSE_LAST,4,2    ; @RDMA_READ_RESPONSE_LAST
	.comm	_WRITE_RESP,4,2                 ; @WRITE_RESP
	.comm	_RDMA_READ_RESPONSE_MIDDLE,4,2  ; @RDMA_READ_RESPONSE_MIDDLE
	.comm	_READ_RESP,4,2                  ; @READ_RESP
	.comm	_HFI1_S_TID_WAIT_INTERLCK,4,2   ; @HFI1_S_TID_WAIT_INTERLCK
	.comm	_RVT_S_WAIT_PSN,4,2             ; @RVT_S_WAIT_PSN
	.comm	_HFI1_S_AHG_VALID,4,2           ; @HFI1_S_AHG_VALID
	.no_dead_strip	_reset_psn
.subsections_via_symbols
