	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function qtnf_topaz_free_xfer_buffers
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_qtnf_topaz_free_xfer_buffers:          ## @qtnf_topaz_free_xfer_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
	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
	movl	16(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movl	$8, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r12
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx,%rbx,8), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %r13
	movq	(%r13,%r12), %rdi
	callq	_le32_to_cpu
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_QTN_HOST_ADDR
	movl	32(%r14), %edi
	movq	_SKB_BUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
	movq	40(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -8(%r13,%r12)
	movl	16(%r14), %eax
	jmp	LBB0_5
LBB0_6:
	movl	20(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.7:
	movl	$8, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r12
	cmpq	%rcx, %rbx
	jge	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rcx,%rbx,8), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %r13
	movq	(%r13,%r12), %rdi
	callq	_le32_to_cpu
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_QTN_HOST_ADDR
	movl	32(%r14), %edi
	movq	_SKB_BUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
	movq	24(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -8(%r13,%r12)
	movl	20(%r14), %eax
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SKB_BUF_SIZE,4,2               ## @SKB_BUF_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_qtnf_topaz_free_xfer_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qtnf_topaz_free_xfer_buffers
_qtnf_topaz_free_xfer_buffers:          ; @qtnf_topaz_free_xfer_buffers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x21, _SKB_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SKB_BUF_SIZE@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	mov	x23, #0
Lloh2:
	adrp	x24, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x9, x23, lsl #3]
	cbz	x20, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	add	x25, x8, x22
	ldr	x0, [x25, #8]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	w0, #0
	bl	_QTN_HOST_ADDR
	mov	x1, x0
	ldr	w0, [x19, #32]
	ldr	w2, [x21]
	ldr	w3, [x24]
	bl	_pci_unmap_single
	mov	x0, x20
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #40]
	str	xzr, [x8, x23, lsl #3]
	stp	xzr, xzr, [x25]
	ldr	w8, [x19, #16]
	b	LBB0_2
LBB0_6:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x22, #0
	mov	x23, #0
Lloh4:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x20, [x9, x23, lsl #3]
	cbz	x20, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	add	x25, x8, x22
	ldr	x0, [x25, #8]
	bl	_le32_to_cpu
	mov	x1, x0
	mov	w0, #0
	bl	_QTN_HOST_ADDR
	mov	x1, x0
	ldr	w0, [x19, #32]
	ldr	w2, [x21]
	ldr	w3, [x24]
	bl	_pci_unmap_single
	mov	x0, x20
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #24]
	str	xzr, [x8, x23, lsl #3]
	stp	xzr, xzr, [x25]
	ldr	w8, [x19, #20]
	b	LBB0_8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SKB_BUF_SIZE,4,2               ; @SKB_BUF_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_qtnf_topaz_free_xfer_buffers
.subsections_via_symbols
