	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_all_rx_skbs
_free_all_rx_skbs:                      ## @free_all_rx_skbs
	.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	%rdi, %r14
	movq	(%rdi), %r13
	movl	8(%r13), %edi
	movq	_HINIC_RQ_WQE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-48(%rbp), %rdx
	callq	_hinic_read_wqe
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rcx
	callq	_hinic_rq_get_sge
	movl	8(%r13), %edi
	movl	(%r12), %esi
	callq	_hinic_put_wqe
	movq	(%r13), %rax
	movq	-48(%rbp), %rcx
	movl	(%rax,%rcx,4), %ebx
	movq	%r15, %rdi
	callq	_hinic_sge_to_dma
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rx_free_skb
	movl	8(%r13), %edi
	movl	(%r12), %esi
	leaq	-48(%rbp), %rdx
	callq	_hinic_read_wqe
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_RQ_WQE_SIZE,4,2          ## @HINIC_RQ_WQE_SIZE
	.no_dead_strip	_free_all_rx_skbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_all_rx_skbs
_free_all_rx_skbs:                      ; @free_all_rx_skbs
	.cfi_startproc
; %bb.0:
	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	x19, x0
	ldr	x20, [x0]
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x22, _HINIC_RQ_WQE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HINIC_RQ_WQE_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, sp
	bl	_hinic_read_wqe
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [sp]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_hinic_rq_get_sge
	ldr	w0, [x20, #8]
	ldr	w1, [x22]
	bl	_hinic_put_wqe
	ldr	x8, [x20]
	ldr	x9, [sp]
	ldr	w21, [x8, x9, lsl #2]
	add	x0, sp, #8
	bl	_hinic_sge_to_dma
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_rx_free_skb
	ldr	w0, [x20, #8]
	ldr	w1, [x22]
	mov	x2, sp
	bl	_hinic_read_wqe
	mov	x21, x0
	cbnz	x0, LBB0_2
LBB0_4:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_RQ_WQE_SIZE,4,2          ; @HINIC_RQ_WQE_SIZE
	.no_dead_strip	_free_all_rx_skbs
.subsections_via_symbols
