	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_vlan_mac_get_registry_elem
_bnx2x_vlan_mac_get_registry_elem:      ## @bnx2x_vlan_mac_get_registry_elem
	.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	%r8, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.1:
	movl	(%r12), %eax
	movq	_BNX2X_VLAN_MAC_ADD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movq	_BNX2X_VLAN_MAC_MOVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
LBB0_9:
	addq	$4, %r12
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	*(%rbx)
	movq	%rax, %r15
LBB0_10:
	movq	%r15, (%r14)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r15
	leaq	8(%rax), %rsi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	%r15, %rdi
	addq	$4, %rdi
	leaq	4(%r12), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%r12), %eax
	movl	%eax, (%r15)
	jmp	LBB0_10
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_7:
	movl	$1, %edi
	callq	_WARN_ON
	movq	%r15, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_VLAN_MAC_ADD,4,2         ## @BNX2X_VLAN_MAC_ADD
	.comm	_BNX2X_VLAN_MAC_MOVE,4,2        ## @BNX2X_VLAN_MAC_MOVE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got cam offset %d\n"

	.no_dead_strip	_bnx2x_vlan_mac_get_registry_elem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_vlan_mac_get_registry_elem
_bnx2x_vlan_mac_get_registry_elem:      ; @bnx2x_vlan_mac_get_registry_elem
	.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	x19, x4
	mov	x20, x2
	mov	x22, x1
	cbnz	w3, LBB0_5
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _BNX2X_VLAN_MAC_ADD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2X_VLAN_MAC_ADD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _BNX2X_VLAN_MAC_MOVE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BNX2X_VLAN_MAC_MOVE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
	ldr	x8, [x22, #8]
	add	x1, x0, #8
	mov	x0, x22
	blr	x8
	cbz	w0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x8, _BNX2X_MSG_SP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BNX2X_MSG_SP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x21, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	add	x0, x21, #4
	add	x1, x20, #4
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20, #8]
	str	w8, [x21]
	b	LBB0_6
LBB0_5:
	ldr	x8, [x22]
	add	x2, x20, #4
	mov	x1, x22
	blr	x8
	mov	x21, x0
LBB0_6:
	mov	w0, #0
	str	x21, [x19]
LBB0_7:
	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_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	w0, #1
	bl	_WARN_ON
	mov	x0, x21
	bl	_kfree
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_VLAN_MAC_ADD,4,2         ; @BNX2X_VLAN_MAC_ADD
	.comm	_BNX2X_VLAN_MAC_MOVE,4,2        ; @BNX2X_VLAN_MAC_MOVE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got cam offset %d\n"

	.no_dead_strip	_bnx2x_vlan_mac_get_registry_elem
.subsections_via_symbols
