	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4vf_open
_cxgb4vf_open:                          ## @cxgb4vf_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, %r15
	movq	8(%rax), %r12
	movq	_CXGB4VF_FW_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%r12)
	je	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	callq	_t4vf_update_port_info
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	leaq	8(%r12), %r13
	movq	%r14, %rdi
	callq	_link_start
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	cmpq	$0, (%r13)
	jne	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_adapter_down
	jmp	LBB0_10
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	%r12, %rdi
	callq	_adapter_up
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_4
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	%r12, %rdi
	callq	_t4vf_get_vf_vlan_acl
	movl	%eax, 4(%r15)
	movq	%r14, %rdi
	callq	_netif_tx_start_all_queues
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_set_bit
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXGB4VF_FW_OK,4,2              ## @CXGB4VF_FW_OK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_cxgb4vf_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb4vf_open
_cxgb4vf_open:                          ; @cxgb4vf_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	x21, [x0, #8]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _CXGB4VF_FW_OK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXGB4VF_FW_OK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x22, x21
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_t4vf_update_port_info
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_link_start
	mov	x23, x0
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x8, [x22]
	cbnz	x8, LBB0_10
; %bb.5:
	mov	x0, x21
	bl	_adapter_down
	b	LBB0_10
LBB0_6:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_7:
	mov	x0, x21
	bl	_adapter_up
	mov	x23, x0
	cbnz	w0, LBB0_10
	b	LBB0_2
LBB0_8:
	mov	x23, x0
	b	LBB0_10
LBB0_9:
	mov	x0, x21
	bl	_t4vf_get_vf_vlan_acl
	str	w0, [x20, #4]
	mov	x0, x19
	bl	_netif_tx_start_all_queues
	ldr	w0, [x20]
	mov	x1, x22
	bl	_set_bit
LBB0_10:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CXGB4VF_FW_OK,4,2              ; @CXGB4VF_FW_OK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_cxgb4vf_open
.subsections_via_symbols
