	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_bnx2_cnic
_init_bnx2_cnic:                        ## @init_bnx2_cnic
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	*%rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movq	8(%rax), %r12
	testq	%r12, %r12
	je	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_dev_hold
	movq	%r12, %rdi
	callq	_pci_dev_get
	movq	(%r12), %rax
	movq	_PCI_DEVICE_ID_NX2_5709@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_PCI_DEVICE_ID_NX2_5709S@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_5:
	movq	_PCI_REVISION_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_byte
	cmpl	$16, -36(%rbp)
	jge	LBB0_9
## %bb.6:
	movq	%r12, %rdi
	callq	_pci_dev_put
	jmp	LBB0_7
LBB0_9:
	movq	%r12, %rdi
	callq	_pci_dev_put
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_cnic_alloc_dev
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	%rax, %r14
	movq	_CNIC_F_BNX2_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$28, %rsi
	callq	_set_bit
	movq	_cnic_submit_bnx2_kwqes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	16(%r14), %rax
	movq	%r15, 56(%rax)
	movq	%r12, 8(%r14)
	movl	4(%r15), %ecx
	movl	%ecx, 48(%rax)
	movl	(%r15), %ecx
	movl	%ecx, (%r14)
	movq	_cnic_bnx2_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 40(%rax)
	movq	_cnic_start_bnx2_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	_cnic_stop_bnx2_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	_cnic_setup_page_tbl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_cnic_alloc_bnx2_resc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_cnic_free_resc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_cnic_cm_init_bnx2_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_cnic_cm_stop_bnx2_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_cnic_enable_bnx2_int@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_cnic_disable_bnx2_int_sync@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_cnic_close_bnx2_conn@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_11
LBB0_7:
	movq	%rbx, %rdi
	callq	_dev_put
LBB0_8:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEVICE_ID_NX2_5709,8,3     ## @PCI_DEVICE_ID_NX2_5709
	.comm	_PCI_DEVICE_ID_NX2_5709S,8,3    ## @PCI_DEVICE_ID_NX2_5709S
	.comm	_PCI_REVISION_ID,4,2            ## @PCI_REVISION_ID
	.comm	_CNIC_F_BNX2_CLASS,4,2          ## @CNIC_F_BNX2_CLASS
	.comm	_cnic_submit_bnx2_kwqes,4,2     ## @cnic_submit_bnx2_kwqes
	.comm	_cnic_bnx2_ops,4,2              ## @cnic_bnx2_ops
	.comm	_cnic_start_bnx2_hw,4,2         ## @cnic_start_bnx2_hw
	.comm	_cnic_stop_bnx2_hw,4,2          ## @cnic_stop_bnx2_hw
	.comm	_cnic_setup_page_tbl,4,2        ## @cnic_setup_page_tbl
	.comm	_cnic_alloc_bnx2_resc,4,2       ## @cnic_alloc_bnx2_resc
	.comm	_cnic_free_resc,4,2             ## @cnic_free_resc
	.comm	_cnic_cm_init_bnx2_hw,4,2       ## @cnic_cm_init_bnx2_hw
	.comm	_cnic_cm_stop_bnx2_hw,4,2       ## @cnic_cm_stop_bnx2_hw
	.comm	_cnic_enable_bnx2_int,4,2       ## @cnic_enable_bnx2_int
	.comm	_cnic_disable_bnx2_int_sync,4,2 ## @cnic_disable_bnx2_int_sync
	.comm	_cnic_close_bnx2_conn,4,2       ## @cnic_close_bnx2_conn
	.no_dead_strip	_init_bnx2_cnic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_bnx2_cnic
_init_bnx2_cnic:                        ; @init_bnx2_cnic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_9
; %bb.2:
	mov	x20, x0
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_dev_hold
	mov	x0, x21
	bl	_pci_dev_get
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _PCI_DEVICE_ID_NX2_5709@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DEVICE_ID_NX2_5709@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PCI_DEVICE_ID_NX2_5709S@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PCI_DEVICE_ID_NX2_5709S@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _PCI_REVISION_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_REVISION_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	cmp	w8, #16
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_pci_dev_put
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_pci_dev_put
	mov	x0, x19
	mov	x1, x21
	bl	_cnic_alloc_dev
	cbz	x0, LBB0_8
; %bb.7:
	mov	x22, x0
Lloh9:
	adrp	x8, _CNIC_F_BNX2_CLASS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CNIC_F_BNX2_CLASS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x22, #28
	bl	_set_bit
Lloh12:
	adrp	x8, _cnic_submit_bnx2_kwqes@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cnic_submit_bnx2_kwqes@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	ldr	x8, [x22, #16]
	str	x20, [x8, #56]
	str	x21, [x22, #8]
	ldp	w10, w9, [x20]
	str	w9, [x8, #48]
Lloh15:
	adrp	x9, _cnic_bnx2_ops@GOTPAGE
Lloh16:
	ldr	x9, [x9, _cnic_bnx2_ops@GOTPAGEOFF]
	str	w10, [x22]
	str	x9, [x8, #40]
Lloh17:
	adrp	x9, _cnic_start_bnx2_hw@GOTPAGE
Lloh18:
	ldr	x9, [x9, _cnic_start_bnx2_hw@GOTPAGEOFF]
Lloh19:
	adrp	x10, _cnic_stop_bnx2_hw@GOTPAGE
Lloh20:
	ldr	x10, [x10, _cnic_stop_bnx2_hw@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #32]
Lloh23:
	adrp	x9, _cnic_setup_page_tbl@GOTPAGE
Lloh24:
	ldr	x9, [x9, _cnic_setup_page_tbl@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _cnic_alloc_bnx2_resc@GOTPAGE
Lloh27:
	ldr	x10, [x10, _cnic_alloc_bnx2_resc@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #24]
Lloh29:
	adrp	x9, _cnic_free_resc@GOTPAGE
Lloh30:
	ldr	x9, [x9, _cnic_free_resc@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _cnic_cm_init_bnx2_hw@GOTPAGE
Lloh33:
	ldr	x10, [x10, _cnic_cm_init_bnx2_hw@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #16]
Lloh35:
	adrp	x9, _cnic_cm_stop_bnx2_hw@GOTPAGE
Lloh36:
	ldr	x9, [x9, _cnic_cm_stop_bnx2_hw@GOTPAGEOFF]
Lloh37:
	adrp	x10, _cnic_enable_bnx2_int@GOTPAGE
Lloh38:
	ldr	x10, [x10, _cnic_enable_bnx2_int@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #8]
Lloh41:
	adrp	x9, _cnic_disable_bnx2_int_sync@GOTPAGE
Lloh42:
	ldr	x9, [x9, _cnic_disable_bnx2_int_sync@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	adrp	x10, _cnic_close_bnx2_conn@GOTPAGE
Lloh45:
	ldr	x10, [x10, _cnic_close_bnx2_conn@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_dev_put
LBB0_9:
	mov	x22, #0
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEVICE_ID_NX2_5709,8,3     ; @PCI_DEVICE_ID_NX2_5709
	.comm	_PCI_DEVICE_ID_NX2_5709S,8,3    ; @PCI_DEVICE_ID_NX2_5709S
	.comm	_PCI_REVISION_ID,4,2            ; @PCI_REVISION_ID
	.comm	_CNIC_F_BNX2_CLASS,4,2          ; @CNIC_F_BNX2_CLASS
	.comm	_cnic_submit_bnx2_kwqes,4,2     ; @cnic_submit_bnx2_kwqes
	.comm	_cnic_bnx2_ops,4,2              ; @cnic_bnx2_ops
	.comm	_cnic_start_bnx2_hw,4,2         ; @cnic_start_bnx2_hw
	.comm	_cnic_stop_bnx2_hw,4,2          ; @cnic_stop_bnx2_hw
	.comm	_cnic_setup_page_tbl,4,2        ; @cnic_setup_page_tbl
	.comm	_cnic_alloc_bnx2_resc,4,2       ; @cnic_alloc_bnx2_resc
	.comm	_cnic_free_resc,4,2             ; @cnic_free_resc
	.comm	_cnic_cm_init_bnx2_hw,4,2       ; @cnic_cm_init_bnx2_hw
	.comm	_cnic_cm_stop_bnx2_hw,4,2       ; @cnic_cm_stop_bnx2_hw
	.comm	_cnic_enable_bnx2_int,4,2       ; @cnic_enable_bnx2_int
	.comm	_cnic_disable_bnx2_int_sync,4,2 ; @cnic_disable_bnx2_int_sync
	.comm	_cnic_close_bnx2_conn,4,2       ; @cnic_close_bnx2_conn
	.no_dead_strip	_init_bnx2_cnic
.subsections_via_symbols
