	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_dev_init
_enic_dev_init:                         ## @enic_dev_init
	.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, %rbx
	callq	_enic_get_dev
	movq	%rax, %r12
	movq	24(%rbx), %r14
	movq	%rbx, %rdi
	callq	_enic_dev_intr_coal_timer_info
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
	movl	16(%rbx), %edi
	callq	_vnic_dev_intr_coal_timer_info_default
LBB0_2:
	movq	%rbx, %rdi
	callq	_enic_get_vnic_config
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_enic_get_res_counts
	movq	%rbx, %rdi
	callq	_enic_set_intr_mode
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r12, %rdi
	callq	_dev_err
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_enic_alloc_vnic_resources
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_enic_init_vnic_resources
	movq	%rbx, %rdi
	callq	_enic_set_rss_nic_cfg
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
LBB0_12:
	movq	%r12, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_enic_clear_intr_mode
	movq	%rbx, %rdi
	callq	_enic_free_vnic_resources
	jmp	LBB0_7
LBB0_13:
	movl	16(%rbx), %edi
	callq	_vnic_dev_get_intr_mode
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.14:
	cmpl	$0, (%rbx)
	je	LBB0_18
## %bb.15:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rsi
	addq	%r13, %rsi
	movq	_enic_poll_msix@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$64, %ecx
	callq	_netif_napi_add
	incq	%r12
	movl	(%rbx), %eax
	addq	$4, %r13
	cmpq	%rax, %r12
	jb	LBB0_16
	jmp	LBB0_7
LBB0_17:
	movq	8(%rbx), %rsi
	movq	_enic_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$64, %ecx
	callq	_netif_napi_add
LBB0_18:
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using default conversion factor for interrupt coalesce timer\n"

L_.str.1:                               ## @.str.1
	.asciz	"Get vNIC configuration failed, aborting\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to set intr mode based on resource counts and system capabilities, aborting\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to alloc vNIC resources, aborting\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to config nic, aborting\n"

	.comm	_enic_poll,4,2                  ## @enic_poll
	.comm	_enic_poll_msix,4,2             ## @enic_poll_msix
	.no_dead_strip	_enic_dev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enic_dev_init
_enic_dev_init:                         ; @enic_dev_init
	.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	_enic_get_dev
	mov	x21, x0
	ldr	x20, [x19, #24]
	mov	x0, x19
	bl	_enic_dev_intr_coal_timer_info
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
	ldr	w0, [x19, #16]
	bl	_vnic_dev_intr_coal_timer_info_default
LBB0_2:
	mov	x0, x19
	bl	_enic_get_vnic_config
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_enic_get_res_counts
	mov	x0, x19
	bl	_enic_set_intr_mode
	cbz	w0, LBB0_8
; %bb.5:
	mov	x22, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x21
	bl	_dev_err
LBB0_7:
	mov	x0, x22
	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_8:
	mov	x0, x19
	bl	_enic_alloc_vnic_resources
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_enic_init_vnic_resources
	mov	x0, x19
	bl	_enic_set_rss_nic_cfg
	cbz	w0, LBB0_13
; %bb.11:
	mov	x22, x0
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x21
	bl	_dev_err
	mov	x0, x19
	bl	_enic_clear_intr_mode
	mov	x0, x19
	bl	_enic_free_vnic_resources
	b	LBB0_7
LBB0_13:
	ldr	w0, [x19, #16]
	bl	_vnic_dev_get_intr_mode
	cmp	w0, #128
	b.ne	LBB0_17
; %bb.14:
	ldr	w8, [x19]
	cbz	w8, LBB0_18
; %bb.15:
	mov	x21, #0
	mov	x23, #0
Lloh10:
	adrp	x24, _enic_poll_msix@GOTPAGE
Lloh11:
	ldr	x24, [x24, _enic_poll_msix@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x21
	ldr	w2, [x24]
	mov	x0, x20
	mov	w3, #64
	bl	_netif_napi_add
	mov	w22, #0
	add	x23, x23, #1
	ldr	w8, [x19]
	add	x21, x21, #4
	cmp	x23, x8
	b.lo	LBB0_16
	b	LBB0_7
LBB0_17:
	ldr	x1, [x19, #8]
Lloh12:
	adrp	x8, _enic_poll@GOTPAGE
Lloh13:
	ldr	x8, [x8, _enic_poll@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #64
	bl	_netif_napi_add
LBB0_18:
	mov	w22, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using default conversion factor for interrupt coalesce timer\n"

l_.str.1:                               ; @.str.1
	.asciz	"Get vNIC configuration failed, aborting\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to set intr mode based on resource counts and system capabilities, aborting\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to alloc vNIC resources, aborting\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to config nic, aborting\n"

	.comm	_enic_poll,4,2                  ; @enic_poll
	.comm	_enic_poll_msix,4,2             ; @enic_poll_msix
	.no_dead_strip	_enic_dev_init
.subsections_via_symbols
