	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_free_lbq_buffers
_ql_free_lbq_buffers:                   ## @ql_free_lbq_buffers
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r13
	movq	8(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r13
	jne	LBB0_1
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %r14
	leaq	(,%r13,2), %r15
	addq	%r13, %r15
	cmpq	$0, 8(%r14,%r15,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r15,8), %rax
	addq	$8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %ebx
	movl	16(%r14,%r15,8), %r12d
	callq	_ql_lbq_block_size
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_pci_unmap_page
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14,%r15,8), %rdi
	callq	_put_page
	movq	$0, (%r14,%r15,8)
	incq	%r13
	cmpq	16(%rbx), %r13
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_ql_free_lbq_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_free_lbq_buffers
_ql_free_lbq_buffers:                   ; @ql_free_lbq_buffers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	x23, x24, [x1]
	cmp	x23, x24
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	mov	w25, #24
Lloh0:
	adrp	x26, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mul	x21, x23, x25
	ldr	x0, [x27, x21]
	bl	_put_page
	str	xzr, [x27, x21]
	add	x8, x23, #1
	ldr	x9, [x19, #16]
	cmp	x8, x9
	csinc	x23, xzr, x23, eq
	cmp	x23, x24
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #24]
	madd	x28, x23, x25, x27
	ldr	x8, [x28, #8]!
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w21, [x20]
	madd	x8, x23, x25, x27
	ldr	w22, [x8, #16]
	mov	x0, x20
	bl	_ql_lbq_block_size
	mov	x2, x0
	ldr	w3, [x26]
	mov	x0, x21
	mov	x1, x22
	bl	_pci_unmap_page
	str	xzr, [x28]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_ql_free_lbq_buffers
.subsections_via_symbols
