	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxge_mac_list_add
_vxge_mac_list_add:                     ## @vxge_mac_list_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_VXGE_MAX_LEARN_MAC_ADDR_CNT@GOTPCREL(%rip), %rcx
	movq	_TRUE@GOTPCREL(%rip), %r12
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	leaq	12(%r15), %rsi
	callq	_list_add
	movq	%rbx, %rdi
	addq	$4, %rdi
	movl	(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	4(%r14), %eax
	movl	%eax, (%rbx)
	incq	(%r15)
	movl	(%r14), %edi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	incl	8(%r15)
	jmp	LBB0_5
LBB0_2:
	movq	_VXGE_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VXGE_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_vxge_debug_mem
	movq	_FALSE@GOTPCREL(%rip), %r12
LBB0_5:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VXGE_MAX_LEARN_MAC_ADDR_CNT,8,3 ## @VXGE_MAX_LEARN_MAC_ADDR_CNT
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_VXGE_ERR,4,2                   ## @VXGE_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: memory allocation failed"

	.comm	_VXGE_DRIVER_NAME,4,2           ## @VXGE_DRIVER_NAME
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_vxge_mac_list_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxge_mac_list_add
_vxge_mac_list_add:                     ; @vxge_mac_list_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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VXGE_MAX_LEARN_MAC_ADDR_CNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VXGE_MAX_LEARN_MAC_ADDR_CNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	add	x0, x0, #8
	add	x1, x19, #12
	bl	_list_add
	add	x0, x21, #4
	ldr	w1, [x20]
Lloh6:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_memcpy
	ldp	w0, w8, [x20]
	str	w8, [x21]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_4:
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _VXGE_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VXGE_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _VXGE_DRIVER_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VXGE_DRIVER_NAME@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vxge_debug_mem
Lloh19:
	adrp	x8, _FALSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VXGE_MAX_LEARN_MAC_ADDR_CNT,8,3 ; @VXGE_MAX_LEARN_MAC_ADDR_CNT
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_VXGE_ERR,4,2                   ; @VXGE_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: memory allocation failed"

	.comm	_VXGE_DRIVER_NAME,4,2           ; @VXGE_DRIVER_NAME
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_vxge_mac_list_add
.subsections_via_symbols
