	.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), %rbx
	movq	%rbx, %rsi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %r12
	movq	%rbx, 56(%r15)
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_qib_cmp24
	testl	%eax, %eax
	jle	LBB0_9
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	cmpq	8(%r15), %rbx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %r13
	cmpq	16(%r15), %rbx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %r12
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_qib_cmp24
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, 56(%r15)
	jne	LBB0_1
LBB0_9:
	movq	_SEND_LAST@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	leaq	-128(%r13), %rax
	cmpq	$4, %rax
	movq	_SEND_LAST@GOTPCREL(%rip), %rax
	ja	LBB0_10
## %bb.8:
	leaq	l_switch.table.reset_psn(%rip), %rax
	movq	-1024(%rax,%r13,8), %rax
LBB0_10:
	movl	(%rax), %edi
	callq	_OP
	movq	%rax, 48(%r15)
	movq	%r14, 24(%r15)
	movl	44(%r15), %esi
	movq	%r14, %rdi
	callq	_qib_cmp24
	testl	%eax, %eax
	jg	LBB0_13
## %bb.11:
	movq	32(%r15), %rdi
	movl	44(%r15), %esi
	callq	_qib_cmp24
	testl	%eax, %eax
	jg	LBB0_13
## %bb.12:
	movq	_RVT_S_WAIT_PSN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r15)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- 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	_RDMA_READ_RESPONSE_MIDDLE,4,2  ## @RDMA_READ_RESPONSE_MIDDLE
	.comm	_RVT_S_WAIT_PSN,4,2             ## @RVT_S_WAIT_PSN
	.no_dead_strip	_reset_psn
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.reset_psn
l_switch.table.reset_psn:
	.quad	_RDMA_READ_RESPONSE_FIRST
	.quad	_RDMA_READ_RESPONSE_FIRST
	.quad	_RDMA_READ_RESPONSE_LAST
	.quad	_RDMA_READ_RESPONSE_LAST
	.quad	_RDMA_READ_RESPONSE_MIDDLE

.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	x21, [x0]
	mov	x1, x21
	bl	_rvt_get_swqe_ptr
	mov	x22, x0
	str	x21, [x19, #56]
	ldr	w1, [x0, #8]
	mov	x0, x20
	bl	_qib_cmp24
Lloh0:
	adrp	x23, _SEND_LAST@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SEND_LAST@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_7
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x22]
	add	x8, x21, #1
	ldp	x9, x10, [x19, #8]
	cmp	x8, x9
	csinc	x21, xzr, x21, eq
	cmp	x21, x10
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_rvt_get_swqe_ptr
	mov	x22, x0
	ldr	w1, [x0, #8]
	mov	x0, x20
	bl	_qib_cmp24
	tbnz	w0, #31, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x21, [x19, #56]
	cbnz	w0, LBB0_1
	b	LBB0_7
LBB0_4:
	sub	x8, x24, #128
	cmp	x8, #4
	b.hi	LBB0_6
; %bb.5:
Lloh2:
	adrp	x9, l_switch.table.reset_psn@PAGE
Lloh3:
	add	x9, x9, l_switch.table.reset_psn@PAGEOFF
	ldr	x23, [x9, x8, lsl #3]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x23, _SEND_LAST@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SEND_LAST@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x23]
	bl	_OP
	str	x0, [x19, #48]
	str	x20, [x19, #24]
	ldr	w1, [x19, #44]
	mov	x0, x20
	bl	_qib_cmp24
	cmp	w0, #0
	b.gt	LBB0_10
; %bb.8:
	ldr	x0, [x19, #32]
	ldr	w1, [x19, #44]
	bl	_qib_cmp24
	cmp	w0, #0
	b.gt	LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _RVT_S_WAIT_PSN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RVT_S_WAIT_PSN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
LBB0_10:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- 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	_RDMA_READ_RESPONSE_MIDDLE,4,2  ; @RDMA_READ_RESPONSE_MIDDLE
	.comm	_RVT_S_WAIT_PSN,4,2             ; @RVT_S_WAIT_PSN
	.no_dead_strip	_reset_psn
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.reset_psn
l_switch.table.reset_psn:
	.quad	_RDMA_READ_RESPONSE_FIRST
	.quad	_RDMA_READ_RESPONSE_FIRST
	.quad	_RDMA_READ_RESPONSE_LAST
	.quad	_RDMA_READ_RESPONSE_LAST
	.quad	_RDMA_READ_RESPONSE_MIDDLE

.subsections_via_symbols
