	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_idc_init           ## -- Begin function qlcnic_83xx_idc_init
	.p2align	4, 0x90
_qlcnic_83xx_idc_init:                  ## @qlcnic_83xx_idc_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
	movq	%rdi, %r14
	movq	_EIO@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	callq	_qlcnic_83xx_setup_idc_parameters
	movq	%r14, %rdi
	callq	_qlcnic_83xx_get_reset_instruction_template
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	negl	%ebx
	jmp	LBB0_8
LBB0_2:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_idc_check_driver_presence_reg
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	callq	_qlcnic_83xx_idc_check_major_version
	jmp	LBB0_4
LBB0_3:
	callq	_qlcnic_83xx_idc_first_to_load_function_handler
LBB0_4:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	subl	(%r15), %ebx
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_qlcnic_83xx_idc_update_audit_reg
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_idc_init           ; -- Begin function qlcnic_83xx_idc_init
	.p2align	2
_qlcnic_83xx_idc_init:                  ; @qlcnic_83xx_idc_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	x19, x0
Lloh0:
	adrp	x20, _EIO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EIO@GOTPAGEOFF]
	ldr	w21, [x20]
	bl	_qlcnic_83xx_setup_idc_parameters
	mov	x0, x19
	bl	_qlcnic_83xx_get_reset_instruction_template
	cbz	x0, LBB0_2
; %bb.1:
	neg	w0, w21
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_qlcnic_83xx_idc_check_driver_presence_reg
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_qlcnic_83xx_idc_check_major_version
	cbz	x0, LBB0_6
LBB0_4:
	ldr	w8, [x20]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_qlcnic_83xx_idc_first_to_load_function_handler
	cbnz	x0, LBB0_4
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_qlcnic_83xx_idc_update_audit_reg
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
