	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %r12
	movl	$0, (%rdi)
	movq	_qlcnic_use_msi_x@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	movl	%esi, %r15d
	setne	%cl
	movl	%ecx, (%r12)
	movq	_qlcnic_load_fw_file@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-2, %eax
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.qlcnic_83xx_init(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	$1, %ecx
LBB0_2:
	movl	%ecx, 4(%r12)
	movq	%r14, %rdi
	callq	_qlcnic_83xx_init_rings
	movq	%r14, %rdi
	callq	_qlcnic_83xx_init_mailbox_work
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.3:
	movq	%r14, %rdi
	callq	_qlcnic_sriov_vf_check
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	%r15d, %esi
	callq	_qlcnic_sriov_vf_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_6:
	callq	_qlcnic_83xx_read_flash_descriptor_table
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_read_flash_mfg_id
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	24(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOTRECOVERABLE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_detach_mailbox_work
	movq	8(%r12), %rdi
	callq	_qlcnic_83xx_free_mailbox
	movq	$0, 8(%r12)
LBB0_21:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_check_hw_status
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.10:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_get_fw_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.11:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_idc_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.12:
	movq	%r14, %rdi
	callq	_qlcnic_setup_intr
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	movq	24(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_19
LBB0_14:
	leaq	20(%r14), %rdi
	movq	_qlcnic_83xx_idc_aen_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%r14, %rdi
	callq	_qlcnic_83xx_setup_mbx_intr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_clear_function_resources
	movl	16(%r14), %edi
	callq	_qlcnic_dcb_enable
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_qlcnic_83xx_initialize_nic
	movl	16(%r14), %edi
	callq	_qlcnic_dcb_get_info
	movq	%r14, %rdi
	callq	_qlcnic_83xx_configure_opmode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_17
LBB0_18:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_free_mbx_intr
LBB0_19:
	movq	%r14, %rdi
	callq	_qlcnic_teardown_intr
	jmp	LBB0_20
LBB0_17:
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_qlcnic_83xx_idc_poll_dev_state
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_qlcnic_use_msi_x,4,2           ## @qlcnic_use_msi_x
	.comm	_qlcnic_load_fw_file,4,2        ## @qlcnic_load_fw_file
	.comm	_QLC_83XX_POST_FAST_MODE,4,2    ## @QLC_83XX_POST_FAST_MODE
	.comm	_QLC_83XX_POST_MEDIUM_MODE,4,2  ## @QLC_83XX_POST_MEDIUM_MODE
	.comm	_QLC_83XX_POST_SLOW_MODE,4,2    ## @QLC_83XX_POST_SLOW_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed reading flash mfg id\n"

	.comm	_ENOTRECOVERABLE,4,2            ## @ENOTRECOVERABLE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to setup interrupt\n"

	.comm	_qlcnic_83xx_idc_aen_work,4,2   ## @qlcnic_83xx_idc_aen_work
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qlcnic_83xx_init
l_switch.table.qlcnic_83xx_init:
	.quad	_QLC_83XX_POST_FAST_MODE
	.quad	_QLC_83XX_POST_MEDIUM_MODE
	.quad	_QLC_83XX_POST_SLOW_MODE

.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	x21, x1
	mov	x19, x0
	mov	w8, #0
	ldr	x22, [x0, #32]
	str	wzr, [x0]
Lloh0:
	adrp	x9, _qlcnic_use_msi_x@GOTPAGE
Lloh1:
	ldr	x9, [x9, _qlcnic_use_msi_x@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #0
	cset	w9, ne
	str	w9, [x22]
Lloh3:
	adrp	x9, _qlcnic_load_fw_file@GOTPAGE
Lloh4:
	ldr	x9, [x9, _qlcnic_load_fw_file@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w9, w9, #2
	cmp	w9, #2
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, l_switch.table.qlcnic_83xx_init@PAGE
Lloh7:
	add	x8, x8, l_switch.table.qlcnic_83xx_init@PAGEOFF
	ldr	x8, [x8, w9, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x22, #16]
	mov	w8, #1
LBB0_2:
	str	w8, [x22, #4]
	mov	x0, x19
	bl	_qlcnic_83xx_init_rings
	mov	x0, x19
	bl	_qlcnic_83xx_init_mailbox_work
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_qlcnic_sriov_vf_init
	mov	x20, x0
	cbnz	w0, LBB0_8
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_qlcnic_83xx_read_flash_descriptor_table
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_qlcnic_83xx_read_flash_mfg_id
	cbz	x0, LBB0_10
LBB0_7:
	ldr	x0, [x19, #24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh10:
	adrp	x8, _ENOTRECOVERABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOTRECOVERABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	bl	_qlcnic_83xx_detach_mailbox_work
	ldr	x0, [x22, #8]
	bl	_qlcnic_83xx_free_mailbox
	str	xzr, [x22, #8]
LBB0_9:
	mov	x0, 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
	ret
LBB0_10:
	mov	x0, x19
	bl	_qlcnic_83xx_check_hw_status
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.11:
	mov	x0, x19
	bl	_qlcnic_83xx_get_fw_info
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.12:
	mov	x0, x19
	bl	_qlcnic_83xx_idc_init
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.13:
	mov	x0, x19
	bl	_qlcnic_setup_intr
	cbz	w0, LBB0_15
; %bb.14:
	mov	x20, x0
	ldr	x0, [x19, #24]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_19
LBB0_15:
	add	x0, x19, #20
Lloh15:
	adrp	x8, _qlcnic_83xx_idc_aen_work@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qlcnic_83xx_idc_aen_work@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	mov	x0, x19
	bl	_qlcnic_83xx_setup_mbx_intr
	mov	x20, x0
	cbnz	w0, LBB0_18
; %bb.16:
	mov	x0, x19
	bl	_qlcnic_83xx_clear_function_resources
	ldr	w0, [x19, #16]
	bl	_qlcnic_dcb_enable
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_83xx_initialize_nic
	ldr	w0, [x19, #16]
	bl	_qlcnic_dcb_get_info
	mov	x0, x19
	bl	_qlcnic_83xx_configure_opmode
	mov	x20, x0
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_20
LBB0_18:
	mov	x0, x19
	bl	_qlcnic_83xx_free_mbx_intr
LBB0_19:
	mov	x0, x19
	bl	_qlcnic_teardown_intr
	b	LBB0_8
LBB0_20:
	add	x0, x19, #4
	bl	_qlcnic_83xx_idc_poll_dev_state
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_qlcnic_use_msi_x,4,2           ; @qlcnic_use_msi_x
	.comm	_qlcnic_load_fw_file,4,2        ; @qlcnic_load_fw_file
	.comm	_QLC_83XX_POST_FAST_MODE,4,2    ; @QLC_83XX_POST_FAST_MODE
	.comm	_QLC_83XX_POST_MEDIUM_MODE,4,2  ; @QLC_83XX_POST_MEDIUM_MODE
	.comm	_QLC_83XX_POST_SLOW_MODE,4,2    ; @QLC_83XX_POST_SLOW_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed reading flash mfg id\n"

	.comm	_ENOTRECOVERABLE,4,2            ; @ENOTRECOVERABLE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to setup interrupt\n"

	.comm	_qlcnic_83xx_idc_aen_work,4,2   ; @qlcnic_83xx_idc_aen_work
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qlcnic_83xx_init
l_switch.table.qlcnic_83xx_init:
	.quad	_QLC_83XX_POST_FAST_MODE
	.quad	_QLC_83XX_POST_MEDIUM_MODE
	.quad	_QLC_83XX_POST_SLOW_MODE

.subsections_via_symbols
