	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_cnic_dev
_is_cnic_dev:                           ## @is_cnic_dev
	.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), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.2:
	movq	%rdi, %rbx
	leaq	-32(%rbp), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movl	-32(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_init_bnx2_cnic
	movq	%rax, %r14
LBB0_4:
	movl	-32(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	testq	%r14, %r14
	je	LBB0_10
LBB0_6:
	movq	_cnic_dev_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_write_lock
	movq	_cnic_dev_list@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_list_add
	movq	%rbx, %rdi
	callq	_write_unlock
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	callq	_init_bnx2x_cnic
	movq	%rax, %r14
	testq	%r14, %r14
	jne	LBB0_6
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bnx2"

L_.str.1:                               ## @.str.1
	.asciz	"bnx2x"

	.comm	_cnic_dev_lock,4,2              ## @cnic_dev_lock
	.comm	_cnic_dev_list,4,2              ## @cnic_dev_list
	.no_dead_strip	_is_cnic_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_cnic_dev
_is_cnic_dev:                           ; @is_cnic_dev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	ldr	w0, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.3:
	mov	x20, #0
	b	LBB0_6
LBB0_4:
	mov	x20, #0
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_init_bnx2_cnic
	mov	x20, x0
LBB0_6:
	ldr	w0, [sp, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_init_bnx2x_cnic
	mov	x20, x0
LBB0_8:
	cbz	x20, LBB0_10
; %bb.9:
Lloh4:
	adrp	x19, _cnic_dev_lock@GOTPAGE
Lloh5:
	ldr	x19, [x19, _cnic_dev_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_write_lock
Lloh6:
	adrp	x1, _cnic_dev_list@GOTPAGE
Lloh7:
	ldr	x1, [x1, _cnic_dev_list@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add
	mov	x0, x19
	bl	_write_unlock
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bnx2"

l_.str.1:                               ; @.str.1
	.asciz	"bnx2x"

	.comm	_cnic_dev_lock,4,2              ; @cnic_dev_lock
	.comm	_cnic_dev_list,4,2              ; @cnic_dev_list
	.no_dead_strip	_is_cnic_dev
.subsections_via_symbols
