	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_register_cnic
_bnx2x_register_cnic:                   ## @bnx2x_register_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_CNIC_SUPPORT
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_CNIC_LOADED
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movl	$1, (%r12)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rax, 64(%r12)
	movq	%rax, 56(%r12)
	movq	_MAX_SP_DESC_CNT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 48(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12)
	movq	%r15, 16(%r12)
	movq	$0, 80(%r12)
	movq	_CNIC_DRV_STATE_REGD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 76(%r12)
	movl	8(%r12), %eax
	movl	%eax, 72(%r12)
	movq	%r12, %rdi
	callq	_bnx2x_setup_cnic_irq_info
	movl	4(%r12), %edi
	movq	%r14, %rsi
	callq	_rcu_assign_pointer
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	%r12, %rdi
	callq	_bnx2x_load_cnic
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_BNX2X_ERR
	jmp	LBB0_11
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Register_cnic called\n"

L_.str.1:                               ## @.str.1
	.asciz	"NULL ops received\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Can't register CNIC when not supported\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.3:                               ## @.str.3
	.asciz	"CNIC-related load failed\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_SP_DESC_CNT,8,3            ## @MAX_SP_DESC_CNT
	.comm	_CNIC_DRV_STATE_REGD,4,2        ## @CNIC_DRV_STATE_REGD
	.no_dead_strip	_bnx2x_register_cnic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_register_cnic
_bnx2x_register_cnic:                   ; @bnx2x_register_cnic
	.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, x2
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _NETIF_MSG_IFUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	cbz	x19, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_CNIC_SUPPORT
	cbz	w0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_CNIC_LOADED
	cbz	w0, LBB0_7
LBB0_3:
	mov	w8, #1
	str	w8, [x20]
Lloh5:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x20, #40]
	cbz	x0, LBB0_9
; %bb.4:
	str	x0, [x20, #64]
Lloh11:
	adrp	x8, _MAX_SP_DESC_CNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_SP_DESC_CNT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x8, x8, x0
	stp	x8, x0, [x20, #48]
	stp	xzr, xzr, [x20, #24]
	str	x21, [x20, #16]
	str	xzr, [x20, #80]
Lloh14:
	adrp	x8, _CNIC_DRV_STATE_REGD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CNIC_DRV_STATE_REGD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x20, #76]
	orr	w8, w9, w8
	ldr	w9, [x20, #8]
	stp	w9, w8, [x20, #72]
	mov	x0, x20
	bl	_bnx2x_setup_cnic_irq_info
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_rcu_assign_pointer
	mov	w22, #0
	b	LBB0_11
LBB0_5:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BNX2X_ERR
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BNX2X_ERR
Lloh23:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	bl	_bnx2x_load_cnic
	cbz	w0, LBB0_3
; %bb.8:
	mov	x22, x0
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BNX2X_ERR
	b	LBB0_11
LBB0_9:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Register_cnic called\n"

l_.str.1:                               ; @.str.1
	.asciz	"NULL ops received\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Can't register CNIC when not supported\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.3:                               ; @.str.3
	.asciz	"CNIC-related load failed\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_SP_DESC_CNT,8,3            ; @MAX_SP_DESC_CNT
	.comm	_CNIC_DRV_STATE_REGD,4,2        ; @CNIC_DRV_STATE_REGD
	.no_dead_strip	_bnx2x_register_cnic
.subsections_via_symbols
