	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xennet_release_tx_bufs
_xennet_release_tx_bufs:                ## @xennet_release_tx_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	_NET_TX_RING_SIZE@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	leaq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%rbx,8), %rdi
	addq	(%r15), %rdi
	callq	_skb_entry_is_link
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movq	24(%r15), %rcx
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%rbx,8), %rdi
	callq	_get_page
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movl	(%rax,%rbx,4), %r13d
	movq	_GNTMAP_readonly@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rcx,%rbx,8), %rdi
	callq	_page_address
	movl	%r13d, %edi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_gnttab_end_foreign_access
	movq	24(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	movq	_GRANT_INVALID_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_add_id_to_freelist
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb_irq
	jmp	LBB0_4
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_TX_RING_SIZE,4,2           ## @NET_TX_RING_SIZE
	.comm	_GNTMAP_readonly,4,2            ## @GNTMAP_readonly
	.comm	_GRANT_INVALID_REF,4,2          ## @GRANT_INVALID_REF
	.no_dead_strip	_xennet_release_tx_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_tx_bufs
_xennet_release_tx_bufs:                ; @xennet_release_tx_bufs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x25, _NET_TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NET_TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x26, #0
	mov	x27, #0
	mov	x20, #0
	add	x21, x0, #8
Lloh2:
	adrp	x28, _GRANT_INVALID_REF@GOTPAGE
Lloh3:
	ldr	x28, [x28, _GRANT_INVALID_REF@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x25]
	add	x27, x27, #4
	add	x26, x26, #8
	cmp	x20, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x26
	bl	_skb_entry_is_link
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x22, [x8, x26]
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x26]
	bl	_get_page
	ldp	x8, x9, [x19, #16]
	ldr	w23, [x8, x27]
Lloh4:
	adrp	x8, _GNTMAP_readonly@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GNTMAP_readonly@GOTPAGEOFF]
Lloh6:
	ldr	w24, [x8]
	ldr	x0, [x9, x26]
	bl	_page_address
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_gnttab_end_foreign_access
	ldr	x8, [x19, #24]
	str	xzr, [x8, x26]
	ldr	w8, [x28]
	ldr	x9, [x19, #16]
	str	w8, [x9, x27]
	ldr	x1, [x19]
	mov	x0, x21
	mov	x2, x20
	bl	_add_id_to_freelist
	mov	x0, x22
	bl	_dev_kfree_skb_irq
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_TX_RING_SIZE,4,2           ; @NET_TX_RING_SIZE
	.comm	_GNTMAP_readonly,4,2            ; @GNTMAP_readonly
	.comm	_GRANT_INVALID_REF,4,2          ; @GRANT_INVALID_REF
	.no_dead_strip	_xennet_release_tx_bufs
.subsections_via_symbols
