	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_hw_txq_free_tfd         ## -- Begin function il4965_hw_txq_free_tfd
	.p2align	4, 0x90
_il4965_hw_txq_free_tfd:                ## @il4965_hw_txq_free_tfd
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movslq	(%rsi), %r13
	shlq	$2, %r13
	movq	24(%rsi), %r14
	addq	%r13, %r14
	movq	%r14, %rdi
	callq	_il4965_tfd_get_num_tbs
	movl	%eax, %r12d
	movq	_IL_NUM_OF_TBS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_9
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.2:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	addq	%r13, %rdi
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_unmap_addr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	16(%rbx), %r13
	movq	_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dma_unmap_len
	movq	_PCI_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_pci_unmap_single
	cmpl	$2, %r12d
	jl	LBB0_5
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_il4965_tfd_tb_get_addr
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_il4965_tfd_tb_get_len
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_pci_unmap_single
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movslq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_dev_kfree_skb_any
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IL_ERR                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IL_NUM_OF_TBS,4,2              ## @IL_NUM_OF_TBS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many chunks: %i\n"

	.comm	_mapping,4,2                    ## @mapping
	.comm	_len,4,2                        ## @len
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ## @PCI_DMA_BIDIRECTIONAL
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_hw_txq_free_tfd         ; -- Begin function il4965_hw_txq_free_tfd
	.p2align	2
_il4965_hw_txq_free_tfd:                ; @il4965_hw_txq_free_tfd
	.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, x1
	ldr	x8, [x1, #24]
	ldr	x20, [x0]
	ldrsw	x23, [x1]
	add	x21, x8, x23, lsl #2
	mov	x0, x21
	bl	_il4965_tfd_get_num_tbs
	mov	x22, x0
Lloh0:
	adrp	x8, _IL_NUM_OF_TBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IL_NUM_OF_TBS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_9
; %bb.1:
	cbz	w22, LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	lsl	x24, x23, #2
	add	x0, x8, x24
Lloh3:
	adrp	x8, _mapping@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_dma_unmap_addr
	mov	x23, x0
	ldr	x8, [x19, #16]
	add	x0, x8, x24
Lloh6:
	adrp	x8, _len@GOTPAGE
Lloh7:
	ldr	x8, [x8, _len@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_dma_unmap_len
	mov	x2, x0
Lloh9:
	adrp	x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	_pci_unmap_single
	cmp	w22, #2
	b.lt	LBB0_5
; %bb.3:
	mov	w23, #1
Lloh12:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_il4965_tfd_tb_get_addr
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_il4965_tfd_tb_get_len
	mov	x2, x0
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, x24
	bl	_pci_unmap_single
	add	w23, w23, #1
	cmp	w22, w23
	b.ne	LBB0_4
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldrsw	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
LBB0_8:
	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
LBB0_9:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	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
	b	_IL_ERR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IL_NUM_OF_TBS,4,2              ; @IL_NUM_OF_TBS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many chunks: %i\n"

	.comm	_mapping,4,2                    ; @mapping
	.comm	_len,4,2                        ; @len
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ; @PCI_DMA_BIDIRECTIONAL
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
.subsections_via_symbols
