	.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_32
LBB0_2:
	movq	%r12, %rdi
	callq	_enic_init_affinity_hint
	movq	%r12, %rdi
	callq	_enic_set_affinity_hint
	movq	%r12, %rdi
	callq	_enic_dev_notify_set
	testl	%eax, %eax
	je	LBB0_3
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_13:
	movq	%r12, %rdi
	callq	_enic_unset_affinity_hint
	movq	%r12, %rdi
	callq	_enic_free_intr
	jmp	LBB0_32
LBB0_3:
	cmpl	$0, (%r12)
	je	LBB0_15
## %bb.4:
	xorl	%ebx, %ebx
	movq	_enic_rq_alloc_buf@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%rbx, %rdi
	callq	_vnic_rq_enable
	movq	16(%r12), %rdi
	addq	%rbx, %rdi
	movl	(%r15), %esi
	callq	_vnic_rq_fill
	movq	16(%r12), %rdi
	addq	%rbx, %rdi
	callq	_vnic_rq_desc_used
	testq	%rax, %rax
	je	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movl	(%r12), %eax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jb	LBB0_5
LBB0_15:
	cmpl	$0, 4(%r12)
	je	LBB0_18
## %bb.16:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rdi
	addq	%r15, %rdi
	callq	_vnic_wq_enable
	incq	%rbx
	movl	4(%r12), %eax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jb	LBB0_17
LBB0_18:
	movq	%r12, %rdi
	callq	_enic_is_dynamic
	testl	%eax, %eax
	jne	LBB0_21
## %bb.19:
	movq	%r12, %rdi
	callq	_enic_is_sriov_vf
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_enic_dev_add_station_addr
LBB0_21:
	movq	%r14, %rdi
	callq	_enic_set_rx_mode
	movq	%r14, %rdi
	callq	_netif_tx_wake_all_queues
	cmpl	$0, (%r12)
	je	LBB0_24
## %bb.22:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	addq	%r14, %rdi
	callq	_napi_enable
	incq	%rbx
	movl	(%r12), %eax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jb	LBB0_23
LBB0_24:
	movl	40(%r12), %edi
	callq	_vnic_dev_get_intr_mode
	movq	_VNIC_DEV_INTR_MODE_MSIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.25:
	cmpl	$0, 4(%r12)
	je	LBB0_28
## %bb.26:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_enic_cq_wq
	leaq	(%r14,%rax,4), %rdi
	callq	_napi_enable
	incl	%ebx
	cmpl	4(%r12), %ebx
	jb	LBB0_27
LBB0_28:
	movq	%r12, %rdi
	callq	_enic_dev_enable
	cmpl	$0, 8(%r12)
	je	LBB0_31
## %bb.29:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	addq	%r14, %rdi
	callq	_vnic_intr_unmask
	incq	%rbx
	movl	8(%r12), %eax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jb	LBB0_30
LBB0_31:
	movq	%r12, %rdi
	callq	_enic_notify_timer_start
	movq	%r12, %rdi
	callq	_enic_rfs_timer_start
	xorl	%r15d, %r15d
LBB0_32:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	cmpl	$0, (%r12)
	je	LBB0_11
## %bb.7:
	xorl	%r13d, %r13d
	movq	_enic_free_rq_buf@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movl	(%r12), %eax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jae	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	callq	_vnic_rq_disable
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	movl	(%r14), %esi
	callq	_vnic_rq_clean
	jmp	LBB0_10
LBB0_11:
	movq	%r12, %rdi
	callq	_enic_dev_notify_unset
	jmp	LBB0_13
	.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
	.comm	_VNIC_DEV_INTR_MODE_MSIX,8,3    ## @VNIC_DEV_INTR_MODE_MSIX
	.comm	_enic_free_rq_buf,4,2           ## @enic_free_rq_buf
	.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_init_affinity_hint
	mov	x0, x19
	bl	_enic_set_affinity_hint
	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_unset_affinity_hint
	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, #16]
	add	x0, x8, x21
	bl	_vnic_rq_enable
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	ldr	w1, [x23]
	bl	_vnic_rq_fill
	ldr	x8, [x19, #16]
	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	w8, [x19, #4]
	cbz	w8, LBB0_12
; %bb.10:
	mov	x21, #0
	mov	x22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	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
LBB0_12:
	mov	x0, x19
	bl	_enic_is_dynamic
	cbnz	w0, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_enic_is_sriov_vf
	cbnz	w0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_enic_dev_add_station_addr
LBB0_15:
	mov	x0, x20
	bl	_enic_set_rx_mode
	mov	x0, x20
	bl	_netif_tx_wake_all_queues
	ldr	w8, [x19]
	cbz	w8, LBB0_18
; %bb.16:
	mov	x20, #0
	mov	x21, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x20
	bl	_napi_enable
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lo	LBB0_17
LBB0_18:
	ldr	w0, [x19, #40]
	bl	_vnic_dev_get_intr_mode
Lloh6:
	adrp	x8, _VNIC_DEV_INTR_MODE_MSIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VNIC_DEV_INTR_MODE_MSIX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.19:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_22
; %bb.20:
	mov	w20, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_enic_cq_wq
	add	x0, x21, x0, lsl #2
	bl	_napi_enable
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	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, #24]
	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	x0, x19
	bl	_enic_rfs_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:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	w8, [x19]
	cbz	w8, LBB0_32
; %bb.28:
	mov	x20, #0
	mov	x22, #0
Lloh14:
	adrp	x23, _enic_free_rq_buf@GOTPAGE
Lloh15:
	ldr	x23, [x23, _enic_free_rq_buf@GOTPAGEOFF]
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19]
	add	x20, x20, #4
	cmp	x22, x8
	b.hs	LBB0_32
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_vnic_rq_disable
	cbnz	w0, LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	ldr	w1, [x23]
	bl	_vnic_rq_clean
	b	LBB0_29
LBB0_32:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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
	.comm	_VNIC_DEV_INTR_MODE_MSIX,8,3    ; @VNIC_DEV_INTR_MODE_MSIX
	.comm	_enic_free_rq_buf,4,2           ; @enic_free_rq_buf
	.no_dead_strip	_enic_open
.subsections_via_symbols
