	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xennet_release_rx_bufs
_xennet_release_rx_bufs:                ## @xennet_release_rx_bufs
	.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, %r15
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movq	_NET_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%r14d, %r14d
	movq	_GRANT_INVALID_REF@GOTPCREL(%rip), %r13
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movq	(%rcx,%r14,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rcx
	movl	(%rcx,%r14,4), %r12d
	cmpl	(%r13), %r12d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rdi
	callq	_skb_frag_page
	movq	%r13, %r15
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_get_page
	movq	%r13, %rdi
	movq	%r15, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_page_address
	movl	%r12d, %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_gnttab_end_foreign_access
	movl	(%r13), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	_NET_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_RX_RING_SIZE,4,2           ## @NET_RX_RING_SIZE
	.comm	_GRANT_INVALID_REF,4,2          ## @GRANT_INVALID_REF
	.no_dead_strip	_xennet_release_rx_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xennet_release_rx_bufs
_xennet_release_rx_bufs:                ; @xennet_release_rx_bufs
	.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	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_bh
Lloh0:
	adrp	x24, _NET_RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NET_RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x25, #0
Lloh2:
	adrp	x26, _GRANT_INVALID_REF@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GRANT_INVALID_REF@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	x21, [x9, x25, lsl #3]
	cbz	x21, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20]
	ldr	w22, [x9, x25, lsl #2]
	ldr	w9, [x26]
	cmp	w22, w9
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x0, [x0]
	bl	_skb_frag_page
	mov	x23, x0
	bl	_get_page
	mov	x0, x23
	bl	_page_address
	mov	x2, x0
	mov	x0, x22
	mov	w1, #0
	bl	_gnttab_end_foreign_access
	ldr	w8, [x26]
	ldr	x9, [x20]
	str	w8, [x9, x25, lsl #2]
	mov	x0, x21
	bl	_kfree_skb
	ldr	w8, [x24]
	b	LBB0_2
LBB0_6:
	mov	x0, x19
	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	_spin_unlock_bh
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_RX_RING_SIZE,4,2           ; @NET_RX_RING_SIZE
	.comm	_GRANT_INVALID_REF,4,2          ; @GRANT_INVALID_REF
	.no_dead_strip	_xennet_release_rx_bufs
.subsections_via_symbols
