	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_init_mgmt_vnic
_qlcnic_83xx_init_mgmt_vnic:            ## @qlcnic_83xx_init_mgmt_vnic
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r13
	movq	24(%rdi), %r14
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	callq	_qlcnic_83xx_get_minidump_template
	movq	_QLCNIC_ADAPTER_INITIALIZED@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%r15)
	je	LBB0_1
## %bb.8:
	movq	%r15, %rdi
	callq	_qlcnic_reset_npar_config
	testq	%rax, %rax
	jne	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_get_port_info
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_config_vnic_buff_descriptors
	movq	_qlcnic_use_msi_x@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	setne	%cl
	movl	%ecx, 4(%r14)
	movl	(%r12), %eax
	orl	%eax, (%r15)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_qlcnic_83xx_enable_vnic_mode
	movl	8(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_11
LBB0_1:
	movq	%r15, %rdi
	callq	_qlcnic_init_pci_info
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	movq	%r13, %r15
	movq	%r14, %rbx
	jle	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r12
	addq	$24, %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movl	-4(%r12), %ecx
	movl	-8(%r12), %r8d
	movl	-12(%r12), %r9d
	movl	-16(%r12), %r10d
	movq	%rbx, %r13
	movl	-24(%r12), %ebx
	movl	-20(%r12), %r11d
	subq	$8, %rsp
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbx
	movq	%r13, %rbx
	pushq	%r11
	pushq	%r10
	callq	_dev_info
	addq	$32, %rsp
	incl	%r14d
	movl	(%r13), %ecx
	addq	$28, %r12
	cmpl	%ecx, %r14d
	jl	LBB0_4
LBB0_5:
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %r13
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_qlcnic_83xx_set_vnic_opmode
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_7:
	movq	%rbx, %r14
	movq	%r15, %rdi
	callq	_qlcnic_set_default_offload_settings
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_QLCNIC_ADAPTER_INITIALIZED@GOTPCREL(%rip), %r12
	je	LBB0_9
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_ADAPTER_INITIALIZED,4,2 ## @QLCNIC_ADAPTER_INITIALIZED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"id:%d active:%d type:%d port:%d min_bw:%d max_bw:%d mac_addr:%pM\n"

L_.str.1:                               ## @.str.1
	.asciz	"Max functions = %d, active functions = %d\n"

	.comm	_qlcnic_use_msi_x,8,3           ## @qlcnic_use_msi_x
L_.str.2:                               ## @.str.2
	.asciz	"HAL Version: %d, Management function\n"

	.no_dead_strip	_qlcnic_83xx_init_mgmt_vnic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_init_mgmt_vnic
_qlcnic_83xx_init_mgmt_vnic:            ; @qlcnic_83xx_init_mgmt_vnic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldp	x19, x23, [x0, #16]
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	bl	_qlcnic_83xx_get_minidump_template
	ldr	w8, [x20]
Lloh3:
	adrp	x24, _QLCNIC_ADAPTER_INITIALIZED@GOTPAGE
Lloh4:
	ldr	x24, [x24, _QLCNIC_ADAPTER_INITIALIZED@GOTPAGEOFF]
	ldr	w9, [x24]
	mov	x0, x20
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	bl	_qlcnic_reset_npar_config
	cbnz	x0, LBB0_10
LBB0_2:
	mov	x0, x20
	bl	_qlcnic_83xx_get_port_info
	cbnz	x0, LBB0_10
; %bb.3:
	mov	x0, x20
	bl	_qlcnic_83xx_config_vnic_buff_descriptors
Lloh5:
	adrp	x8, _qlcnic_use_msi_x@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qlcnic_use_msi_x@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x23, #4]
	ldr	w8, [x24]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	mov	w1, #1
	bl	_qlcnic_83xx_enable_vnic_mode
	ldr	w2, [x23, #8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w21, #0
	b	LBB0_10
LBB0_4:
	bl	_qlcnic_init_pci_info
	cbnz	x0, LBB0_10
; %bb.5:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w25, #0
	ldr	x8, [x20, #8]
	add	x26, x8, #12
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w2, [x26, #8]
	ldp	w10, w9, [x26]
	ldp	w12, w11, [x26, #-8]
	ldur	w13, [x26, #-12]
	stp	x12, x13, [sp, #32]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_dev_info
	add	w25, w25, #1
	ldr	w8, [x23]
	add	x26, x26, #28
	cmp	w25, w8
	b.lt	LBB0_7
LBB0_8:
	ldr	w2, [x23, #12]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x20
	bl	_qlcnic_83xx_set_vnic_opmode
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_qlcnic_set_default_offload_settings
	cbz	x0, LBB0_2
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_ADAPTER_INITIALIZED,4,2 ; @QLCNIC_ADAPTER_INITIALIZED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"id:%d active:%d type:%d port:%d min_bw:%d max_bw:%d mac_addr:%pM\n"

l_.str.1:                               ; @.str.1
	.asciz	"Max functions = %d, active functions = %d\n"

	.comm	_qlcnic_use_msi_x,8,3           ; @qlcnic_use_msi_x
l_.str.2:                               ; @.str.2
	.asciz	"HAL Version: %d, Management function\n"

	.no_dead_strip	_qlcnic_83xx_init_mgmt_vnic
.subsections_via_symbols
