	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	8(%rbx), %rax
	movl	40(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qlcnic_get_nic_info
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-24(%rbp), %rax
	movq	8(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movl	-28(%rbp), %eax
	movl	%eax, 24(%rcx)
	movl	-32(%rbp), %eax
	movl	%eax, 20(%rcx)
	movl	-36(%rbp), %eax
	movl	%eax, 16(%rcx)
	movl	-48(%rbp), %eax
	movl	%eax, (%rcx)
	movq	_QLCNIC_FW_CAPABILITY_MORE_CAPS@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_3
## %bb.2:
	movq	_CRB_FW_CAPABILITIES_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_QLCRD32
	movq	8(%rbx), %rcx
	movl	%eax, 12(%rcx)
LBB0_3:
	movl	-40(%rbp), %eax
	movl	%eax, 8(%rcx)
	movl	-44(%rbp), %eax
	movl	%eax, 4(%rcx)
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	8(%rbx), %rcx
	movq	_BIT_6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_QLCNIC_ESWITCH_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, (%rcx)
	je	LBB0_6
## %bb.5:
	orl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_6:
	notl	%eax
	andl	%eax, (%rbx)
LBB0_7:
	movl	%r14d, %eax
	addq	$32, %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	_BIT_6,4,2                      ## @BIT_6
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ## @QLCNIC_ESWITCH_ENABLED
	.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, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #40]
	mov	x1, sp
	mov	x0, x19
	bl	_qlcnic_get_nic_info
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x9, [sp, #24]
	ldr	x8, [x19, #8]
	str	x9, [x8, #32]
	ldr	w9, [sp, #20]
	str	w9, [x8, #24]
	ldur	d0, [sp, #12]
	str	d0, [x8, #16]
	ldr	w9, [sp]
	str	w9, [x8]
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, w9
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _CRB_FW_CAPABILITIES_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRB_FW_CAPABILITIES_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_QLCRD32
	ldr	x8, [x19, #8]
	str	w0, [x8, #12]
LBB0_3:
	ldur	d0, [sp, #4]
	stur	d0, [x8, #4]
	mov	x0, x19
	bl	_qlcnic_83xx_check
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _BIT_6@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BIT_6@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x8, _QLCNIC_ESWITCH_ENABLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLCNIC_ESWITCH_ENABLED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w9, w10
	b.eq	LBB0_6
; %bb.5:
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_7
LBB0_6:
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_7:
	str	w8, [x19]
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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	_BIT_6,4,2                      ; @BIT_6
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ; @QLCNIC_ESWITCH_ENABLED
	.no_dead_strip	_qlcnic_initialize_nic
.subsections_via_symbols
