	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xennet_alloc_rx_buffers
_xennet_alloc_rx_buffers:               ## @xennet_alloc_rx_buffers
	.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	$40, %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	32(%rdi), %rax
	movl	8(%rax), %edi
	callq	_netif_carrier_ok
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	8(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r12
	movq	16(%r14), %rax
	movq	%r12, %rcx
	subq	%rax, %rcx
	movq	_NET_RX_RING_SIZE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_2
## %bb.3:
	leaq	48(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_xennet_alloc_one_rx_buffer
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_xennet_rxidx
	movq	56(%r14), %rcx
	movzwl	%ax, %r13d
	movq	(%rcx,%r13,8), %rdi
	callq	_BUG_ON
	movq	56(%r14), %rax
	movq	%rbx, (%rax,%r13,8)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_gnttab_claim_grant_reference
	movq	%rax, %r14
	movslq	%r14d, %rdi
	callq	_IS_ERR_VALUE
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rax
	movq	%r14, (%rax,%r13,8)
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rdi
	callq	_skb_frag_page
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_RING_GET_REQUEST
	movq	%rax, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_gnttab_page_grant_foreign_access_ref_one
	movw	%r13w, (%r15)
	movq	%r14, 8(%r15)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	incq	%r12
	movq	16(%r14), %rax
	movq	%r12, %rcx
	subq	%rax, %rcx
	movq	_NET_RX_RING_SIZE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	16(%r14), %rax
LBB0_7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rcx)
	subq	%rax, %r12
	movq	_NET_RX_SLOTS_MIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jl	LBB0_11
## %bb.8:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
LBB0_11:
	addq	$24, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RING_PUSH_REQUESTS_AND_CHECK_NOTIFY ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_RX_RING_SIZE,8,3           ## @NET_RX_RING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NET_RX_SLOTS_MIN,8,3           ## @NET_RX_SLOTS_MIN
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_xennet_alloc_rx_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xennet_alloc_rx_buffers
_xennet_alloc_rx_buffers:               ; @xennet_alloc_rx_buffers
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	w0, [x8, #8]
	bl	_netif_carrier_ok
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	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
LBB0_2:
	add	x20, x19, #8
	ldp	x21, x8, [x19, #8]
Lloh0:
	adrp	x27, _NET_RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NET_RX_RING_SIZE@GOTPAGEOFF]
	ldr	x9, [x27]
	sub	x10, x21, x8
	cmp	x10, x9
	b.ge	LBB0_6
; %bb.3:
	add	x22, x19, #48
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_xennet_alloc_one_rx_buffer
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	mov	x0, x21
	bl	_xennet_rxidx
	mov	x24, x0
	ldr	x8, [x19, #56]
	mov	w9, w0
	lsl	x26, x9, #3
	ldr	x0, [x8, x26]
	bl	_BUG_ON
	ldr	x8, [x19, #56]
	str	x23, [x8, x26]
	mov	x0, x22
	bl	_gnttab_claim_grant_reference
	mov	x25, x0
	sxtw	x0, w0
	bl	_IS_ERR_VALUE
	bl	_WARN_ON_ONCE
	ldr	x8, [x19, #40]
	str	x25, [x8, x26]
	mov	x0, x23
	bl	_skb_shinfo
	ldr	x0, [x0]
	bl	_skb_frag_page
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	bl	_RING_GET_REQUEST
	mov	x26, x0
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x23
	mov	w3, #0
	bl	_gnttab_page_grant_foreign_access_ref_one
	strh	w24, [x26]
	str	x25, [x26, #8]
	add	x21, x21, #1
	ldr	x8, [x19, #16]
	ldr	x9, [x27]
	sub	x10, x21, x8
	cmp	x10, x9
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x8, [x19, #16]
LBB0_8:
	str	x21, [x20]
Lloh5:
	adrp	x9, _NET_RX_SLOTS_MIN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NET_RX_SLOTS_MIN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sub	x8, x21, x8
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.9:
	bl	_unlikely
	cbz	x0, LBB0_11
LBB0_10:
	add	x0, x19, #24
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _HZ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh13:
	ldrsw	x9, [x9]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	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
	b	_mod_timer
LBB0_11:
	mov	x0, x20
	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
	b	_RING_PUSH_REQUESTS_AND_CHECK_NOTIFY
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_RX_RING_SIZE,8,3           ; @NET_RX_RING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NET_RX_SLOTS_MIN,8,3           ; @NET_RX_SLOTS_MIN
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_xennet_alloc_rx_buffers
.subsections_via_symbols
