	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_qp_priv_tid_free          ## -- Begin function hfi1_qp_priv_tid_free
	.p2align	4, 0x90
_hfi1_qp_priv_tid_free:                 ## @hfi1_qp_priv_tid_free
	.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	16(%rsi), %rax
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	24(%rsi), %r13
	movq	_TID_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HFI1_CAP_IS_KSET
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %r12
	movq	(%rax), %rdi
	callq	_kfree
	movq	$0, (%r12)
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_rvt_max_atomic
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_kfree
	movq	8(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movq	%r14, %rdi
	callq	_rvt_max_atomic
	cmpq	%rax, %rbx
	jae	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_hfi1_kern_exp_rcv_free_flows
	jmp	LBB0_9
LBB0_10:
	leaq	8(%r13), %rdi
	callq	_cancel_work_sync
	movq	(%r13), %rdi
	callq	_kfree
	movq	$0, (%r13)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_RC,8,3                  ## @IB_QPT_RC
	.comm	_TID_RDMA,4,2                   ## @TID_RDMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_qp_priv_tid_free          ; -- Begin function hfi1_qp_priv_tid_free
	.p2align	2
_hfi1_qp_priv_tid_free:                 ; @hfi1_qp_priv_tid_free
	.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
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x9, _IB_QPT_RC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_RC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x1, #24]
Lloh3:
	adrp	x8, _TID_RDMA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TID_RDMA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_HFI1_CAP_IS_KSET
	cbz	x0, LBB0_11
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_rvt_get_swqe_ptr
	mov	x22, x0
	ldr	x0, [x0]
	bl	_kfree
	str	xzr, [x22]
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_5:
	mov	x0, x20
	bl	_rvt_max_atomic
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_kfree
	ldr	x8, [x19, #8]
	str	xzr, [x8, x22, lsl #3]
	add	x22, x22, #1
	mov	x0, x20
	bl	_rvt_max_atomic
	cmp	x22, x0
	b.hs	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x21, [x8, x22, lsl #3]
	cbz	x21, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_hfi1_kern_exp_rcv_free_flows
	b	LBB0_7
LBB0_10:
	add	x0, x23, #8
	bl	_cancel_work_sync
	ldr	x0, [x23]
	bl	_kfree
	str	xzr, [x23]
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_RC,8,3                  ; @IB_QPT_RC
	.comm	_TID_RDMA,4,2                   ; @TID_RDMA
.subsections_via_symbols
