	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_init               ## -- Begin function qlcnic_83xx_init
	.p2align	4, 0x90
_qlcnic_83xx_init:                      ## @qlcnic_83xx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %r14
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	%r15, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qlcnic_sriov_vf_init           ## TAILCALL
LBB0_1:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_check_hw_status
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_lock_init
	movq	_QLC_83XX_MBX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	addq	$4, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_qlcnic_83xx_clear_function_resources
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_qlcnic_83xx_register_nic_idc_func
	movq	%r15, %rdi
	callq	_qlcnic_83xx_read_flash_descriptor_table
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_read_flash_mfg_id
LBB0_5:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_idc_init
	testq	%rax, %rax
	jne	LBB0_2
## %bb.6:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_configure_opmode
	testq	%rax, %rax
	jne	LBB0_2
## %bb.7:
	movq	16(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	12(%r15), %rdi
	movq	_qlcnic_83xx_idc_aen_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	8(%r15), %rdi
	callq	_qlcnic_83xx_idc_poll_dev_state
	movq	(%r15), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLC_83XX_MBX_READY,4,2         ## @QLC_83XX_MBX_READY
	.comm	_qlcnic_83xx_idc_aen_work,4,2   ## @qlcnic_83xx_idc_aen_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_init               ; -- Begin function qlcnic_83xx_init
	.p2align	2
_qlcnic_83xx_init:                      ; @qlcnic_83xx_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_qlcnic_sriov_vf_init
LBB0_2:
	mov	x0, x19
	bl	_qlcnic_83xx_check_hw_status
	cbnz	x0, LBB0_8
; %bb.3:
	add	x0, x21, #8
	bl	_spin_lock_init
Lloh0:
	adrp	x8, _QLC_83XX_MBX_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_MBX_READY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
	add	x1, x8, #4
	bl	_set_bit
	mov	x0, x19
	bl	_qlcnic_83xx_clear_function_resources
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_83xx_register_nic_idc_func
	mov	x0, x19
	bl	_qlcnic_83xx_read_flash_descriptor_table
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_qlcnic_83xx_read_flash_mfg_id
LBB0_5:
	mov	x0, x19
	bl	_qlcnic_83xx_idc_init
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_qlcnic_83xx_configure_opmode
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_10
LBB0_8:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	add	x0, x19, #12
Lloh6:
	adrp	x8, _qlcnic_83xx_idc_aen_work@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qlcnic_83xx_idc_aen_work@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #8
	bl	_qlcnic_83xx_idc_poll_dev_state
	ldr	x8, [x19]
	ldr	w0, [x8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLC_83XX_MBX_READY,4,2         ; @QLC_83XX_MBX_READY
	.comm	_qlcnic_83xx_idc_aen_work,4,2   ; @qlcnic_83xx_idc_aen_work
.subsections_via_symbols
