	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_vsi_open                  ## -- Begin function i40e_vsi_open
	.p2align	4, 0x90
_i40e_vsi_open:                         ## @i40e_vsi_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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r14
	movq	_I40E_INT_NAME_STR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r15, %rdi
	callq	_i40e_vsi_setup_tx_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	%r15, %rdi
	callq	_i40e_vsi_setup_rx_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movq	%r15, %rdi
	callq	_i40e_vsi_configure
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_13:
	movq	%r15, %rdi
	callq	_i40e_vsi_free_rx_resources
LBB0_14:
	movq	%r15, %rdi
	callq	_i40e_vsi_free_tx_resources
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	cmpq	%r15, (%rcx,%rax,8)
	jne	LBB0_16
## %bb.15:
	movq	_I40E_PF_RESET_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i40e_do_reset
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.17:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 16(%r15)
	je	LBB0_7
## %bb.4:
	decl	%r13d
	movq	16(%r14), %rdi
	callq	_dev_driver_string
	movq	16(%r15), %rcx
	movq	(%rcx), %r8
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_i40e_vsi_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	16(%r15), %rdi
	movl	8(%r15), %esi
	callq	_netif_set_real_num_tx_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	16(%r15), %rdi
	movl	8(%r15), %esi
	callq	_netif_set_real_num_rx_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_9
LBB0_7:
	movq	(%r15), %rax
	movq	_I40E_VSI_FDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.8:
	decl	%r13d
	movq	16(%r14), %rdi
	callq	_dev_driver_string
	movq	%rax, %rbx
	movq	16(%r14), %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_i40e_vsi_request_irq
LBB0_9:
	movq	%r15, %rdi
	callq	_i40e_up_complete
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_i40e_down
LBB0_12:
	movq	%r15, %rdi
	callq	_i40e_vsi_free_irq
	jmp	LBB0_13
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_INT_NAME_STR_LEN,4,2      ## @I40E_INT_NAME_STR_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%s"

	.comm	_I40E_VSI_FDIR,8,3              ## @I40E_VSI_FDIR
L_.str.1:                               ## @.str.1
	.asciz	"%s-%s:fdir"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I40E_PF_RESET_FLAG,4,2         ## @I40E_PF_RESET_FLAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_vsi_open                  ; -- Begin function i40e_vsi_open
	.p2align	2
_i40e_vsi_open:                         ; @i40e_vsi_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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x19, [x0, #24]
Lloh3:
	adrp	x8, _I40E_INT_NAME_STR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_INT_NAME_STR_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	bl	_i40e_vsi_setup_tx_resources
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_i40e_vsi_setup_rx_resources
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_i40e_vsi_configure
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_3:
	mov	x0, x20
	bl	_i40e_vsi_free_rx_resources
LBB0_4:
	mov	x0, x20
	bl	_i40e_vsi_free_tx_resources
	ldp	x9, x8, [x19]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _I40E_PF_RESET_FLAG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40E_PF_RESET_FLAG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_i40e_do_reset
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.7:
	mov	x0, x22
	sub	sp, x29, #48
	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:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_12
; %bb.9:
	sub	w22, w23, #1
	ldr	x0, [x19, #16]
	bl	_dev_driver_string
	mov	x3, x0
	ldr	x8, [x20, #16]
	ldr	x4, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
	mov	x0, x20
	mov	x1, x21
	bl	_i40e_vsi_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.10:
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #8]
	bl	_netif_set_real_num_tx_queues
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.11:
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #8]
	bl	_netif_set_real_num_rx_queues
	mov	x22, x0
	cbnz	w0, LBB0_16
	b	LBB0_14
LBB0_12:
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _I40E_VSI_FDIR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _I40E_VSI_FDIR@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.13:
	sub	w22, w23, #1
	ldr	x0, [x19, #16]
	bl	_dev_driver_string
	mov	x23, x0
	ldr	x0, [x19, #16]
	bl	_dev_name
	mov	x4, x0
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x3, x23
	bl	_snprintf
	mov	x0, x20
	mov	x1, x21
	bl	_i40e_vsi_request_irq
LBB0_14:
	mov	x0, x20
	bl	_i40e_up_complete
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.15:
	mov	x0, x20
	bl	_i40e_down
LBB0_16:
	mov	x0, x20
	bl	_i40e_vsi_free_irq
	b	LBB0_3
LBB0_17:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_3
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_INT_NAME_STR_LEN,4,2      ; @I40E_INT_NAME_STR_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%s"

	.comm	_I40E_VSI_FDIR,8,3              ; @I40E_VSI_FDIR
l_.str.1:                               ; @.str.1
	.asciz	"%s-%s:fdir"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I40E_PF_RESET_FLAG,4,2         ; @I40E_PF_RESET_FLAG
.subsections_via_symbols
