	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_recycle_rx_skb
_typhoon_recycle_rx_skb:                ## @typhoon_recycle_rx_skb
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	movq	24(%rdi), %r12
	movslq	(%rdi), %rax
	addq	$16, %rax
	movq	_RXFREE_ENTRIES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r15
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r15d
LBB0_3:
	movl	8(%r12), %edi
	callq	_le32_to_cpu
	cltq
	cmpq	%rax, %r15
	jne	LBB0_5
## %bb.4:
	shlq	$4, %r14
	movq	8(%r13,%r14), %rdi
	callq	_dev_kfree_skb_any
	movq	$0, 8(%r13,%r14)
	jmp	LBB0_6
LBB0_5:
	movq	8(%rbx), %r15
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %r12
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_typhoon_inc_rxfree_index
	movq	%r14, (%r15,%r12)
	shlq	$4, %r14
	movl	(%r13,%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15,%r12)
	xorl	%eax, %eax
	callq	_wmb
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXFREE_ENTRIES,4,2             ## @RXFREE_ENTRIES
	.no_dead_strip	_typhoon_recycle_rx_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_recycle_rx_skb
_typhoon_recycle_rx_skb:                ; @typhoon_recycle_rx_skb
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x22, x21, [x0, #16]
	ldrsw	x8, [x0]
Lloh0:
	adrp	x9, _RXFREE_ENTRIES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXFREE_ENTRIES@GOTPAGEOFF]
	add	x8, x8, #16
Lloh2:
	ldrsw	x9, [x9]
	lsl	x9, x9, #4
	udiv	x10, x8, x9
	msub	x23, x10, x9, x8
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	cmp	x23, w0, sxtw
	b.ne	LBB0_2
; %bb.1:
	add	x19, x22, x20, lsl #4
	ldr	x0, [x19, #8]
	bl	_dev_kfree_skb_any
	str	xzr, [x19, #8]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x23, x8, x9
	mov	x0, x19
	mov	w1, #1
	bl	_typhoon_inc_rxfree_index
	str	x20, [x23]
	lsl	x8, x20, #4
	ldr	w0, [x22, x8]
	bl	_cpu_to_le32
	str	x0, [x23, #8]
	bl	_wmb
	ldr	w0, [x19]
	bl	_cpu_to_le32
	str	x0, [x21]
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RXFREE_ENTRIES,4,2             ; @RXFREE_ENTRIES
	.no_dead_strip	_typhoon_recycle_rx_skb
.subsections_via_symbols
