	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_free_all_qps             ## -- Begin function ipath_free_all_qps
	.p2align	4, 0x90
_ipath_free_all_qps:                    ## @ipath_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r14), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	cmpq	$1, %r8
	jne	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
LBB0_12:
	testb	$1, %r8b
	je	LBB0_16
## %bb.13:
	movq	24(%r14), %rdx
	movq	(%rdx,%rcx,8), %rax
	movq	$0, (%rdx,%rcx,8)
	testq	%rax, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	cmpq	%rax, %r15
	jae	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movq	(%rdi,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %rdi
	callq	_free_page
	movq	8(%r14), %rdi
	jmp	LBB0_20
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r8, %rdx
	andq	$-2, %rdx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rcx
	cmpq	%rdx, %rcx
	je	LBB0_12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	24(%r14), %rdi
	movq	(%rdi,%rcx,8), %rsi
	movq	$0, (%rdi,%rcx,8)
	testq	%rsi, %rsi
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(,%rcx,8), %rdi
	movq	24(%r14), %rax
	orq	$8, %rdi
	movq	(%rax,%rdi), %rsi
	movq	$0, (%rax,%rdi)
	testq	%rsi, %rsi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_9
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_free_all_qps             ; -- Begin function ipath_free_all_qps
	.p2align	2
_ipath_free_all_qps:                    ; @ipath_free_all_qps
	.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
	mov	x19, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x20, #0
	mov	x9, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x11, [x19, #24]
	lsl	x12, x9, #3
	ldr	x10, [x11, x12]
	str	xzr, [x11, x12]
	cbz	x10, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x20, x20, #1
	ldr	x10, [x10]
	cbnz	x10, LBB0_4
	b	LBB0_2
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_11
; %bb.7:
	mov	x21, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	ldr	x8, [x0, x21, lsl #3]
	cbz	x8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x8
	bl	_free_page
	ldr	x0, [x19, #8]
	b	LBB0_8
LBB0_11:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
