	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_free_all_qps               ## -- Begin function qib_free_all_qps
	.p2align	4, 0x90
_qib_free_all_qps:                      ## @qib_free_all_qps
	.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	%rdi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r13
	leaq	(%rbx,%r13), %rdi
	callq	_qib_mcast_tree_empty
	cmpl	$1, %eax
	adcl	$0, %r12d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	4(%r13,%rbx), %edi
	callq	_rcu_dereference
	cmpq	$1, %rax
	sbbl	$-1, %r12d
	movl	(%r13,%rbx), %edi
	callq	_rcu_dereference
	cmpq	$1, %rax
	sbbl	$-1, %r12d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	incq	%r15
	movl	(%r14), %eax
	addq	$8, %rbx
	cmpq	%rax, %r15
	jb	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r12d, %r12d
LBB0_4:
	leaq	20(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 16(%r14)
	je	LBB0_9
## %bb.5:
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movl	16(%r14), %eax
	cmpq	%rax, %r13
	jae	LBB0_9
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	24(%r14), %rax
	movl	(%rax,%r13,4), %ebx
	movq	%r15, %rdi
	callq	_lockdep_is_held
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %rbx
	movq	24(%r14), %rax
	movl	(%rax,%r13,4), %edi
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r12d
	movl	(%rbx), %ebx
	movq	%r15, %rdi
	callq	_lockdep_is_held
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_free_all_qps               ; -- Begin function qib_free_all_qps
	.p2align	2
_qib_free_all_qps:                      ; @qib_free_all_qps
	.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	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x21, x8, x22
	mov	x0, x21
	bl	_qib_mcast_tree_empty
	cmp	w0, #0
	cinc	w20, w20, eq
	bl	_rcu_read_lock
	ldr	w0, [x21, #4]
	bl	_rcu_dereference
	cmp	x0, #0
	cinc	w20, w20, ne
	ldr	w0, [x21]
	bl	_rcu_dereference
	cmp	x0, #0
	cinc	w20, w20, ne
	bl	_rcu_read_unlock
	add	x23, x23, #1
	ldr	w8, [x19]
	add	x22, x22, #8
	cmp	x23, x8
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	add	x21, x19, #20
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
; %bb.5:
	mov	x23, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldr	w8, [x19, #16]
	cmp	x23, x8
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x19, #24]
	lsl	x24, x23, #2
	ldr	w22, [x8, x24]
	mov	x0, x21
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x22
	bl	_rcu_dereference_protected
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x24]
	mov	x1, #0
	bl	_rcu_assign_pointer
	cbz	x22, LBB0_6
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w20, w20, #1
	ldr	w22, [x22]
	mov	x0, x21
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x22
	bl	_rcu_dereference_protected
	mov	x22, x0
	cbnz	x0, LBB0_8
	b	LBB0_6
LBB0_9:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	bl	_synchronize_rcu
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
