	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tc35815_free_queues
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tc35815_free_queues:                   ## @tc35815_free_queues
	.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
	callq	_netdev_priv
	movq	%rax, %r14
	movq	56(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.1:
	movq	_TX_FD_NUM@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %edi
	callq	_cpu_to_le32
	movq	56(%r14), %rcx
	movl	%eax, (%rcx,%rbx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx), %edi
	callq	_le32_to_cpu
	movq	64(%r14), %rcx
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cltq
	shlq	$4, %rax
	movq	8(%rcx,%rax), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	cmpq	%r12, 8(%rcx,%rbx,4)
	setne	%dil
	callq	_BUG_ON
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r14), %edi
	movq	64(%r14), %rax
	movq	(%rax,%rbx,4), %rsi
	movl	(%r12), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	movq	64(%r14), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%rbx,4)
	jmp	LBB0_8
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	movups	%xmm0, 24(%r14)
	movq	_RX_BUF_NUM@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.10:
	movq	16(%r14), %rcx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	movslq	%eax, %rdx
	addq	$16, %rbx
	cmpq	%rdx, %r12
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	12(%r14), %edi
	movl	8(%rcx,%rbx), %edx
	callq	_free_rxbuf_skb
	movq	16(%r14), %rcx
	movq	$0, (%rcx,%rbx)
	movl	(%r15), %eax
	jmp	LBB0_13
LBB0_14:
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movl	8(%r14), %ecx
	movl	12(%r14), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	_FD_PAGE_NUM@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	imull	(%rax), %esi
	callq	_pci_free_consistent
	movq	$0, (%r14)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_FD_NUM,4,2                  ## @TX_FD_NUM
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_RX_BUF_NUM,4,2                 ## @RX_BUF_NUM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_FD_PAGE_NUM,4,2                ## @FD_PAGE_NUM
	.no_dead_strip	_tc35815_free_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc35815_free_queues
_tc35815_free_queues:                   ; @tc35815_free_queues
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #56]
Lloh0:
	adrp	x21, _TX_FD_NUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TX_FD_NUM@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	x8, #0
	ccmp	w9, #1, #8, ne
	b.ge	LBB0_9
LBB0_1:
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #40]
	stur	q0, [x19, #24]
Lloh2:
	adrp	x20, _RX_BUF_NUM@GOTPAGE
Lloh3:
	ldr	x20, [x20, _RX_BUF_NUM@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x21, #0
	mov	x22, #0
	ldr	x8, [x19, #16]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, w9, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x8, x21]
	cbz	x1, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #12]
	add	x8, x8, x21
	ldr	w2, [x8, #8]
	bl	_free_rxbuf_skb
	ldr	x8, [x19, #16]
	str	xzr, [x8, x21]
	ldr	w9, [x20]
	b	LBB0_3
LBB0_6:
	ldr	x2, [x19]
	cbz	x2, LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _FD_PAGE_NUM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FD_PAGE_NUM@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mul	w1, w9, w8
	ldp	w3, w0, [x19, #8]
	bl	_pci_free_consistent
	str	xzr, [x19]
LBB0_8:
	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
LBB0_9:
	mov	x22, #0
	mov	x23, #0
Lloh10:
	adrp	x24, _PCI_DMA_TODEVICE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #-1
	bl	_cpu_to_le32
	ldr	x8, [x19, #56]
	str	w0, [x8, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x9, [x21]
	add	x22, x22, #16
	cmp	x23, x9
	b.ge	LBB0_1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x23, lsl #2]
	bl	_le32_to_cpu
	ldr	x8, [x19, #64]
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x8, w0, sxtw #4
	ldr	x20, [x9, #8]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x20, #0
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, x22
	ldr	x8, [x8, #8]
	cmp	x8, x20
	cset	w0, ne
	bl	_BUG_ON
	cbz	x20, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x19, #12]
	ldr	x8, [x19, #64]
	ldr	x1, [x8, x22]
	ldr	w2, [x20]
	ldr	w3, [x24]
	bl	_pci_unmap_single
	mov	x0, x20
	bl	_dev_kfree_skb
	ldr	x8, [x19, #64]
	add	x8, x8, x22
	stp	xzr, xzr, [x8]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_FD_NUM,4,2                  ; @TX_FD_NUM
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_RX_BUF_NUM,4,2                 ; @RX_BUF_NUM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_FD_PAGE_NUM,4,2                ; @FD_PAGE_NUM
	.no_dead_strip	_tc35815_free_queues
.subsections_via_symbols
