	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xennet_open
_xennet_open:                           ## @xennet_open
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_10
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	leaq	(%rax,%rax,2), %rax
	leaq	-24(,%rax,8), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r14), %rbx
	leaq	(%r15,%r14), %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_napi_enable
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_xennet_alloc_rx_buffers
	leaq	(%r15,%r14), %rdi
	addq	$8, %rdi
	movq	8(%r15,%r14), %rax
	movq	16(%r15,%r14), %rcx
	incq	%rax
	movq	%rax, (%rcx)
	callq	_RING_HAS_UNCONSUMED_RESPONSES
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_napi_schedule
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	cmpq	%r14, %r13
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	addq	$24, %r14
	jmp	LBB0_3
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_tx_start_all_queues
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_xennet_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xennet_open
_xennet_open:                           ; @xennet_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	w9, [x19]
	cbz	w9, LBB0_8
; %bb.2:
	mov	x20, x0
	mov	x23, #0
	mov	w10, #24
	mul	x9, x9, x10
	sub	x24, x9, #24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x21, x8, x23
	add	x22, x21, #4
	mov	x0, x22
	bl	_napi_enable
	mov	x0, x21
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_netif_carrier_ok
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_xennet_alloc_rx_buffers
	mov	x0, x21
	ldp	x8, x9, [x0, #8]!
	add	x8, x8, #1
	str	x8, [x9]
	bl	_RING_HAS_UNCONSUMED_RESPONSES
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_napi_schedule
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_spin_unlock_bh
	cmp	x24, x23
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	add	x23, x23, #24
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	bl	_netif_tx_start_all_queues
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_xennet_open
.subsections_via_symbols
