	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_validate_vlan_mac_add
_bnx2x_validate_vlan_mac_add:           ## @bnx2x_validate_vlan_mac_add
	.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	%rdx, %r15
	movq	%rsi, %rbx
	addq	$4, %rdx
	callq	*(%rsi)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	jmp	LBB0_8
LBB0_2:
	leaq	16(%rbx), %rdi
	movq	%r15, %rsi
	callq	*16(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_4:
	movq	_BNX2X_DONT_CONSUME_CAM_CREDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ADD command is not allowed considering current registry state.\n"

L_.str.1:                               ## @.str.1
	.asciz	"There is a pending ADD command already\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_BNX2X_DONT_CONSUME_CAM_CREDIT,4,2 ## @BNX2X_DONT_CONSUME_CAM_CREDIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bnx2x_validate_vlan_mac_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_validate_vlan_mac_add
_bnx2x_validate_vlan_mac_add:           ; @bnx2x_validate_vlan_mac_add
	.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	x20, x2
	mov	x19, x1
	ldr	x8, [x1]
	add	x2, x2, #4
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _BNX2X_MSG_SP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_MSG_SP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	ldr	x8, [x0, #16]!
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _BNX2X_MSG_SP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BNX2X_MSG_SP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh10:
	adrp	x8, _EEXIST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x8, _BNX2X_DONT_CONSUME_CAM_CREDIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNX2X_DONT_CONSUME_CAM_CREDIT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_9
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ADD command is not allowed considering current registry state.\n"

l_.str.1:                               ; @.str.1
	.asciz	"There is a pending ADD command already\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_BNX2X_DONT_CONSUME_CAM_CREDIT,4,2 ; @BNX2X_DONT_CONSUME_CAM_CREDIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bnx2x_validate_vlan_mac_add
.subsections_via_symbols
