	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_from_rx_queue
_remove_from_rx_queue:                  ## @remove_from_rx_queue
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %rsi
	movq	8(%rdi), %rdx
	movl	(%rdi), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE_Q
	movslq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE_Q
	leaq	24(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r14), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rax
	movq	(%rcx), %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_5
## %bb.7:
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	decl	(%r14)
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.8:
	movq	%rax, 8(%r14)
	jmp	LBB0_9
LBB0_10:
	retq
LBB0_2:
	movq	(%rbx), %rax
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	$0, 8(%r14)
LBB0_4:
	decl	(%r14)
LBB0_9:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_kfree
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TRACE_M
	movq	16(%r14), %rsi
	movq	8(%r14), %rdx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TRACE_Q                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remove_from_rx_queue: rx_first = %p, rx_last = %p, count = %d"

L_.str.1:                               ## @.str.1
	.asciz	"remove_from_rx_queue: %p, length %u"

L_.str.2:                               ## @.str.2
	.asciz	"remove_from_rx_queue - kfree %p"

	.no_dead_strip	_remove_from_rx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_from_rx_queue
_remove_from_rx_queue:                  ; @remove_from_rx_queue
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_10
; %bb.1:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x2, x1, [x0, #8]
	ldr	w8, [x0]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE_Q
	ldrsw	x2, [x20, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_TRACE_Q
	add	x21, x19, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x9, [x19, #16]
	cmp	x9, x20
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x9, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x9
	ldr	x9, [x9]
	cmp	x9, x20
	b.ne	LBB0_2
; %bb.4:
	ldr	x9, [x20]
	str	x9, [x8]
	ldr	w10, [x19]
	sub	w10, w10, #1
	str	w10, [x19]
	cbnz	x9, LBB0_9
; %bb.5:
	str	x8, [x19, #8]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x20]
	str	x8, [x19, #16]
	cbnz	x8, LBB0_8
; %bb.7:
	str	xzr, [x19, #8]
LBB0_8:
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_9:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_kfree
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_TRACE_M
	ldp	x2, x1, [x19, #8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE_Q
	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
	add	sp, sp, #64
LBB0_10:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remove_from_rx_queue: rx_first = %p, rx_last = %p, count = %d"

l_.str.1:                               ; @.str.1
	.asciz	"remove_from_rx_queue: %p, length %u"

l_.str.2:                               ; @.str.2
	.asciz	"remove_from_rx_queue - kfree %p"

	.no_dead_strip	_remove_from_rx_queue
.subsections_via_symbols
