	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenvif_rx_ring_slots_available
_xenvif_rx_ring_slots_available:        ## @xenvif_rx_ring_slots_available
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$16, %rdi
	callq	_skb_peek
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	8(%rax), %edi
	movq	_XEN_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_skb_is_gso
	cmpq	$1, %rax
	sbbl	$-1, %ebx
	cmpq	$1, (%r14)
	sbbl	$-1, %ebx
	movslq	%ebx, %r14
	movq	8(%r15), %rax
	movq	(%rax), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rcx
	subq	(%r15), %rcx
	cmpq	%r14, %rcx
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rbx), %rcx
	movq	%rcx, 8(%rax)
	xorl	%eax, %eax
	callq	_mb
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	cmpq	%rbx, %rcx
	movq	%rcx, %rbx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_4:
	movl	$1, %r12d
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XEN_PAGE_SIZE,4,2              ## @XEN_PAGE_SIZE
	.no_dead_strip	_xenvif_rx_ring_slots_available
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenvif_rx_ring_slots_available
_xenvif_rx_ring_slots_available:        ; @xenvif_rx_ring_slots_available
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	add	x0, x0, #16
	bl	_skb_peek
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _XEN_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XEN_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_DIV_ROUND_UP
	mov	x21, x0
	mov	x0, x20
	bl	_skb_is_gso
	cmp	x0, #0
	cinc	w8, w21, ne
	ldr	x9, [x20]
	cmp	x9, #0
	cinc	w8, w8, ne
	sxtw	x20, w8
	ldr	x8, [x19, #8]
	ldr	x21, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	sub	x9, x21, x9
	cmp	x9, x20
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x21, #1
	str	x9, [x8, #8]
	bl	_mb
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cmp	x9, x21
	mov	x21, x9
	b.ne	LBB0_2
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XEN_PAGE_SIZE,4,2              ; @XEN_PAGE_SIZE
	.no_dead_strip	_xenvif_rx_ring_slots_available
.subsections_via_symbols
