	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_optimize_vlan_mac
_bnx2x_optimize_vlan_mac:               ## @bnx2x_optimize_vlan_mac
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdi
	movq	%rdx, %rsi
	movl	$12, %edx
	callq	_memcpy
	movl	4(%r13), %eax
	xorl	%ebx, %ebx
	cmpl	$129, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.3:
	movl	$129, %eax
	jmp	LBB0_4
LBB0_1:
	movl	$128, %eax
LBB0_4:
	leaq	16(%r15), %rdi
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rsi
	callq	*(%rdi)
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %r12
	movq	_BNX2X_DONT_CONSUME_CAM_CREDIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	cmpl	$129, -52(%rbp)
	jne	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	callq	*8(%r15)
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:
	movq	%r15, %rdi
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$129, 4(%r13)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_DP
	movq	%r12, %rdi
	callq	_list_del
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_exe_queue_free_elem
	movl	$1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
LBB0_9:
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_DONT_CONSUME_CAM_CREDIT,4,2 ## @BNX2X_DONT_CONSUME_CAM_CREDIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to return the credit for the optimized ADD command\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to recover the credit from the optimized DEL command\n"

	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
L_.str.2:                               ## @.str.2
	.asciz	"Optimizing %s command\n"

L_.str.3:                               ## @.str.3
	.asciz	"ADD"

L_.str.4:                               ## @.str.4
	.asciz	"DEL"

	.no_dead_strip	_bnx2x_optimize_vlan_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_optimize_vlan_mac
_bnx2x_optimize_vlan_mac:               ; @bnx2x_optimize_vlan_mac
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, sp
	mov	x1, x2
	mov	w2, #12
	bl	_memcpy
	ldr	w8, [x20, #4]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.2:
	mov	w8, #129
	b	LBB0_4
LBB0_3:
	mov	w8, #128
LBB0_4:
	add	x0, x21, #16
	str	w8, [sp, #4]
	ldr	x8, [x0]
	mov	x1, sp
	blr	x8
	cbz	x0, LBB0_11
; %bb.5:
	mov	x22, x0
Lloh0:
	adrp	x8, _BNX2X_DONT_CONSUME_CAM_CREDIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_DONT_CONSUME_CAM_CREDIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x22, #8
	bl	_test_bit
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w8, [sp, #4]
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x21, #8]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_13
LBB0_8:
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_12
LBB0_9:
Lloh3:
	adrp	x8, _BNX2X_MSG_SP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2X_MSG_SP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w8, [x20, #4]
Lloh6:
	adrp	x9, l_.str.4@PAGE
Lloh7:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh8:
	adrp	x10, l_.str.3@PAGE
Lloh9:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, #129
	csel	x2, x10, x9, eq
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	mov	x0, x22
	bl	_list_del
	mov	x0, x19
	mov	x1, x22
	bl	_bnx2x_exe_queue_free_elem
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
LBB0_12:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
LBB0_14:
	bl	_BNX2X_ERR
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_DONT_CONSUME_CAM_CREDIT,4,2 ; @BNX2X_DONT_CONSUME_CAM_CREDIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to return the credit for the optimized ADD command\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to recover the credit from the optimized DEL command\n"

	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
l_.str.2:                               ; @.str.2
	.asciz	"Optimizing %s command\n"

l_.str.3:                               ; @.str.3
	.asciz	"ADD"

l_.str.4:                               ; @.str.4
	.asciz	"DEL"

	.no_dead_strip	_bnx2x_optimize_vlan_mac
.subsections_via_symbols
