	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_open
_enic_open:                             ## @enic_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_enic_request_intr
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_28
LBB0_2:
	movq	%r12, %rdi
	callq	_enic_dev_notify_set
	testl	%eax, %eax
	je	LBB0_3
## %bb.26:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_27:
	movq	%r12, %rdi
	callq	_enic_free_intr
	jmp	LBB0_28
LBB0_3:
	cmpl	$0, (%r12)
	je	LBB0_4
## %bb.23:
	xorl	%ebx, %ebx
	movq	_enic_rq_alloc_buf@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	addq	%rbx, %rdi
	movl	(%r15), %esi
	callq	_vnic_rq_fill
	movq	32(%r12), %rdi
	addq	%rbx, %rdi
	callq	_vnic_rq_desc_used
	testq	%rax, %rax
	je	LBB0_25
## %bb.5:                               ##   in Loop: Header=BB0_24 Depth=1
	incq	%r13
	movl	(%r12), %eax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jb	LBB0_24
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	cmpl	$0, 4(%r12)
	je	LBB0_10
## %bb.7:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rdi
	addq	%r15, %rdi
	callq	_vnic_wq_enable
	incq	%rbx
	movl	4(%r12), %eax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jb	LBB0_8
## %bb.9:
	movl	(%r12), %eax
LBB0_10:
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	addq	%r15, %rdi
	callq	_vnic_rq_enable
	incq	%rbx
	movl	(%r12), %eax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jb	LBB0_12
LBB0_13:
	movq	%r12, %rdi
	callq	_enic_is_dynamic
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	%r12, %rdi
	callq	_enic_is_sriov_vf
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	_enic_dev_add_station_addr
LBB0_16:
	movq	%r14, %rdi
	callq	_enic_set_rx_mode
	movq	%r14, %rdi
	callq	_netif_wake_queue
	cmpl	$0, (%r12)
	je	LBB0_19
## %bb.17:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	addq	%r14, %rdi
	callq	_napi_enable
	incq	%rbx
	movl	(%r12), %eax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jb	LBB0_18
LBB0_19:
	movq	%r12, %rdi
	callq	_enic_dev_enable
	cmpl	$0, 8(%r12)
	je	LBB0_22
## %bb.20:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r14, %rdi
	callq	_vnic_intr_unmask
	incq	%rbx
	movl	8(%r12), %eax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jb	LBB0_21
LBB0_22:
	movq	%r12, %rdi
	callq	_enic_notify_timer_start
	xorl	%r15d, %r15d
LBB0_28:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_enic_dev_notify_unset
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to request irq.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to alloc notify buffer, aborting.\n"

	.comm	_enic_rq_alloc_buf,4,2          ## @enic_rq_alloc_buf
L_.str.2:                               ## @.str.2
	.asciz	"Unable to alloc receive buffers\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_enic_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enic_open
_enic_open:                             ; @enic_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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_enic_request_intr
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_26
LBB0_2:
	mov	x0, x19
	bl	_enic_dev_notify_set
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_4:
	mov	x0, x19
	bl	_enic_free_intr
	b	LBB0_26
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.6:
	mov	x21, #0
	mov	x22, #0
Lloh4:
	adrp	x23, _enic_rq_alloc_buf@GOTPAGE
Lloh5:
	ldr	x23, [x23, _enic_rq_alloc_buf@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x21
	ldr	w1, [x23]
	bl	_vnic_rq_fill
	ldr	x8, [x19, #32]
	add	x0, x8, x21
	bl	_vnic_rq_desc_used
	cbz	x0, LBB0_27
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_7
LBB0_9:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_13
; %bb.10:
	mov	x21, #0
	mov	x22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x0, x8, x21
	bl	_vnic_wq_enable
	add	x22, x22, #1
	ldr	w8, [x19, #4]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_11
; %bb.12:
	ldr	w8, [x19]
LBB0_13:
	cbz	w8, LBB0_16
; %bb.14:
	mov	x21, #0
	mov	x22, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x21
	bl	_vnic_rq_enable
	add	x22, x22, #1
	ldr	w8, [x19]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_15
LBB0_16:
	mov	x0, x19
	bl	_enic_is_dynamic
	cbnz	w0, LBB0_19
; %bb.17:
	mov	x0, x19
	bl	_enic_is_sriov_vf
	cbnz	w0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_enic_dev_add_station_addr
LBB0_19:
	mov	x0, x20
	bl	_enic_set_rx_mode
	mov	x0, x20
	bl	_netif_wake_queue
	ldr	w8, [x19]
	cbz	w8, LBB0_22
; %bb.20:
	mov	x20, #0
	mov	x21, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x20
	bl	_napi_enable
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lo	LBB0_21
LBB0_22:
	mov	x0, x19
	bl	_enic_dev_enable
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_25
; %bb.23:
	mov	x20, #0
	mov	x21, #0
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_vnic_intr_unmask
	add	x21, x21, #1
	ldr	w8, [x19, #8]
	add	x20, x20, #4
	cmp	x21, x8
	b.lo	LBB0_24
LBB0_25:
	mov	x0, x19
	bl	_enic_notify_timer_start
	mov	w21, #0
LBB0_26:
	mov	x0, x21
	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
LBB0_27:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x19
	bl	_enic_dev_notify_unset
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to request irq.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to alloc notify buffer, aborting.\n"

	.comm	_enic_rq_alloc_buf,4,2          ; @enic_rq_alloc_buf
l_.str.2:                               ; @.str.2
	.asciz	"Unable to alloc receive buffers\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_enic_open
.subsections_via_symbols
