	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_initialize_nic
_qlcnic_initialize_nic:                 ## @qlcnic_initialize_nic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	16(%r14), %rax
	movl	48(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_get_nic_info
	movl	%eax, -20(%rbp)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	-32(%rbp), %rcx
	movq	16(%r14), %rax
	movq	%rcx, 40(%rax)
	movl	-36(%rbp), %ecx
	movl	%ecx, 32(%rax)
	movl	-40(%rbp), %ecx
	movl	%ecx, 28(%rax)
	movl	-44(%rbp), %ecx
	movl	%ecx, 24(%rax)
	movl	-56(%rbp), %ecx
	movl	%ecx, (%rax)
	movq	_QLCNIC_FW_CAPABILITY_MORE_CAPS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.2:
	movq	_CRB_FW_CAPABILITIES_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	callq	_QLCRD32
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	movq	_EIO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	%eax, %edx
	je	LBB0_9
## %bb.3:
	movq	16(%r14), %rax
	movq	16(%rax), %rdx
	movq	%rcx, (%rdx)
	movl	(%rax), %ecx
	jmp	LBB0_5
LBB0_4:
	movq	16(%rax), %rdx
	movq	$0, (%rdx)
LBB0_5:
	movl	-48(%rbp), %edx
	movl	%edx, 12(%rax)
	movl	-52(%rbp), %edx
	movl	%edx, 8(%rax)
	movq	_BIT_6@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_QLCNIC_ESWITCH_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
	movq	_QLCNIC_VNIC_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_QLCNIC_MAX_HW_VNIC_TX_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_QLCNIC_MAX_VNIC_SDS_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	24(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_8
LBB0_7:
	movq	_QLCNIC_DEFAULT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_QLCNIC_MAX_HW_TX_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_QLCNIC_MAX_SDS_RINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_QLCNIC_ESWITCH_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_8:
	movl	-20(%rbp), %eax
LBB0_9:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_FW_CAPABILITY_MORE_CAPS,4,2 ## @QLCNIC_FW_CAPABILITY_MORE_CAPS
	.comm	_CRB_FW_CAPABILITIES_2,4,2      ## @CRB_FW_CAPABILITIES_2
	.comm	_EIO,4,2                        ## @EIO
	.comm	_BIT_6,4,2                      ## @BIT_6
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ## @QLCNIC_ESWITCH_ENABLED
	.comm	_QLCNIC_VNIC_MODE,4,2           ## @QLCNIC_VNIC_MODE
	.comm	_QLCNIC_MAX_HW_VNIC_TX_RINGS,4,2 ## @QLCNIC_MAX_HW_VNIC_TX_RINGS
	.comm	_QLCNIC_MAX_VNIC_SDS_RINGS,4,2  ## @QLCNIC_MAX_VNIC_SDS_RINGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vNIC mode enabled.\n"

	.comm	_QLCNIC_DEFAULT_MODE,4,2        ## @QLCNIC_DEFAULT_MODE
	.comm	_QLCNIC_MAX_HW_TX_RINGS,4,2     ## @QLCNIC_MAX_HW_TX_RINGS
	.comm	_QLCNIC_MAX_SDS_RINGS,4,2       ## @QLCNIC_MAX_SDS_RINGS
	.no_dead_strip	_qlcnic_initialize_nic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_initialize_nic
_qlcnic_initialize_nic:                 ; @qlcnic_initialize_nic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x19, #16]
	ldr	w2, [x8, #48]
	add	x1, sp, #16
	mov	x0, x19
	bl	_qlcnic_get_nic_info
	str	w0, [sp, #12]
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x8, [sp, #40]
	ldr	x9, [x19, #16]
	str	x8, [x9, #40]
	ldr	w8, [sp, #36]
	str	w8, [x9, #32]
	ldur	d0, [sp, #28]
	str	d0, [x9, #24]
	ldr	w8, [sp, #16]
	str	w8, [x9]
Lloh0:
	adrp	x10, _QLCNIC_FW_CAPABILITY_MORE_CAPS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _QLCNIC_FW_CAPABILITY_MORE_CAPS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _CRB_FW_CAPABILITIES_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRB_FW_CAPABILITIES_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_QLCRD32
	mov	x8, x0
	ldr	w0, [sp, #12]
Lloh6:
	adrp	x9, _EIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmn	w0, w9
	b.eq	LBB0_9
; %bb.3:
	ldr	x9, [x19, #16]
	ldr	x10, [x9, #16]
	str	x8, [x10]
	ldr	w8, [x9]
	b	LBB0_5
LBB0_4:
	ldr	x10, [x9, #16]
	str	xzr, [x10]
LBB0_5:
	ldur	d0, [sp, #20]
	str	d0, [x9, #8]
Lloh9:
	adrp	x10, _BIT_6@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BIT_6@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _QLCNIC_ESWITCH_ENABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QLCNIC_ESWITCH_ENABLED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w10, [x19]
	orr	w8, w10, w8
Lloh15:
	adrp	x10, _QLCNIC_VNIC_MODE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _QLCNIC_VNIC_MODE@GOTPAGEOFF]
	str	w8, [x19]
Lloh17:
	ldr	w8, [x10]
	str	w8, [x9, #4]
Lloh18:
	adrp	x8, _QLCNIC_MAX_HW_VNIC_TX_RINGS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QLCNIC_MAX_HW_VNIC_TX_RINGS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _QLCNIC_MAX_VNIC_SDS_RINGS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _QLCNIC_MAX_VNIC_SDS_RINGS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	ldr	x0, [x19, #24]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	b	LBB0_8
LBB0_7:
Lloh26:
	adrp	x8, _QLCNIC_DEFAULT_MODE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _QLCNIC_DEFAULT_MODE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x9, #4]
Lloh29:
	adrp	x8, _QLCNIC_MAX_HW_TX_RINGS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QLCNIC_MAX_HW_TX_RINGS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh32:
	adrp	x8, _QLCNIC_MAX_SDS_RINGS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _QLCNIC_MAX_SDS_RINGS@GOTPAGEOFF]
Lloh34:
	adrp	x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGE
Lloh35:
	ldr	x9, [x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	ldr	w9, [x9]
	ldr	w10, [x19]
	bic	w9, w10, w9
	stp	w9, w8, [x19]
LBB0_8:
	ldr	w0, [sp, #12]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_FW_CAPABILITY_MORE_CAPS,4,2 ; @QLCNIC_FW_CAPABILITY_MORE_CAPS
	.comm	_CRB_FW_CAPABILITIES_2,4,2      ; @CRB_FW_CAPABILITIES_2
	.comm	_EIO,4,2                        ; @EIO
	.comm	_BIT_6,4,2                      ; @BIT_6
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ; @QLCNIC_ESWITCH_ENABLED
	.comm	_QLCNIC_VNIC_MODE,4,2           ; @QLCNIC_VNIC_MODE
	.comm	_QLCNIC_MAX_HW_VNIC_TX_RINGS,4,2 ; @QLCNIC_MAX_HW_VNIC_TX_RINGS
	.comm	_QLCNIC_MAX_VNIC_SDS_RINGS,4,2  ; @QLCNIC_MAX_VNIC_SDS_RINGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vNIC mode enabled.\n"

	.comm	_QLCNIC_DEFAULT_MODE,4,2        ; @QLCNIC_DEFAULT_MODE
	.comm	_QLCNIC_MAX_HW_TX_RINGS,4,2     ; @QLCNIC_MAX_HW_TX_RINGS
	.comm	_QLCNIC_MAX_SDS_RINGS,4,2       ; @QLCNIC_MAX_SDS_RINGS
	.no_dead_strip	_qlcnic_initialize_nic
.subsections_via_symbols
