	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_restart_qp
_set_restart_qp:                        ## @set_restart_qp
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	_RVT_R_RDMAR_SEQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_1
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	orl	%eax, %ecx
	movl	%ecx, (%rdi)
	movq	8(%rdi), %rsi
	incq	%rsi
	xorl	%edx, %edx
	callq	_hfi1_restart_rc
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_RVT_R_RSP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_rvt_get_qp
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_list_add_tail                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RVT_R_RDMAR_SEQ,4,2            ## @RVT_R_RDMAR_SEQ
	.comm	_RVT_R_RSP_SEND,4,2             ## @RVT_R_RSP_SEND
	.no_dead_strip	_set_restart_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_restart_qp
_set_restart_qp:                        ; @set_restart_qp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RVT_R_RDMAR_SEQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RVT_R_RDMAR_SEQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	x8, [x0, #8]
	add	x1, x8, #1
	mov	w2, #0
	bl	_hfi1_restart_rc
	add	x21, x20, #4
	mov	x0, x21
	bl	_list_empty
	cbz	x0, LBB0_1
; %bb.3:
Lloh3:
	adrp	x8, _RVT_R_RSP_SEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RVT_R_RSP_SEND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_rvt_get_qp
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_list_add_tail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RVT_R_RDMAR_SEQ,4,2            ; @RVT_R_RDMAR_SEQ
	.comm	_RVT_R_RSP_SEND,4,2             ; @RVT_R_RSP_SEND
	.no_dead_strip	_set_restart_qp
.subsections_via_symbols
