	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofdpa_port_fdb
_ofdpa_port_fdb:                        ## @ofdpa_port_fdb
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movq	_OFDPA_OP_FLAG_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_OFDPA_OP_FLAG_LEARNED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, (%r14)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	%r15, %rsi
	leaq	24(%r14), %r15
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, 32(%r14)
	movl	28(%r14), %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_ether_addr_copy
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, 24(%r14)
	movl	$-1, %edi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_crc32
	movl	%eax, 4(%r14)
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ofdpa_fdb_tbl_find
	movq	%rax, %r15
	testq	%rax, %rax
	movq	%r12, %rbx
	je	LBB0_6
## %bb.4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r13d
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_kfree
	leaq	8(%r15), %rdi
	callq	_hash_del
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_6:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r13d
	jne	LBB0_8
## %bb.7:
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	addq	$8, %rsi
	movl	4(%r14), %edx
	callq	_hash_add
LBB0_8:
	testq	%r15, %r15
	movq	%rbx, %rdi
	sete	%bl
	callq	_spin_unlock_irqrestore
	testl	%r12d, %r13d
	setne	%al
	xorb	%bl, %al
	je	LBB0_10
## %bb.9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
	testq	%r15, %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	andl	%r12d, %r13d
	je	LBB0_12
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_OFDPA_OP_FLAG_REFRESH@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_13:
	movl	%r12d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ofdpa_port_fdb_learn           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OFDPA_OP_FLAG_REMOVE,4,2       ## @OFDPA_OP_FLAG_REMOVE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OFDPA_OP_FLAG_LEARNED,4,2      ## @OFDPA_OP_FLAG_LEARNED
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_OFDPA_OP_FLAG_REFRESH,4,2      ## @OFDPA_OP_FLAG_REFRESH
	.no_dead_strip	_ofdpa_port_fdb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofdpa_port_fdb
_ofdpa_port_fdb:                        ; @ofdpa_port_fdb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _OFDPA_OP_FLAG_REMOVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OFDPA_OP_FLAG_REMOVE@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x24, x0
	and	w26, w25, w20
Lloh6:
	adrp	x8, _OFDPA_OP_FLAG_LEARNED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OFDPA_OP_FLAG_LEARNED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w20
	str	w8, [x0]
Lloh9:
	adrp	x27, _jiffies@GOTPAGE
Lloh10:
	ldr	x27, [x27, _jiffies@GOTPAGEOFF]
	ldr	x8, [x27]
	str	x8, [x0, #16]
	str	x22, [x0, #32]
	ldr	w0, [x0, #28]
	mov	x1, x21
	bl	_ether_addr_copy
	mov	x1, x24
	str	w19, [x1, #24]!
	mov	w0, #-1
	mov	w2, #16
	bl	_crc32
	str	w0, [x24, #4]
	mov	x0, x23
	bl	_spin_lock_irqsave
	mov	x0, x23
	mov	x1, x24
	bl	_ofdpa_fdb_tbl_find
	mov	x25, x0
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x27]
	str	x8, [x25, #16]
	cbz	w26, LBB0_7
; %bb.3:
	mov	x0, x24
	bl	_kfree
	add	x0, x25, #8
	bl	_hash_del
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_5:
	cbnz	w26, LBB0_7
; %bb.6:
	ldr	w0, [x23, #4]
	add	x1, x24, #8
	ldr	w2, [x24, #4]
	bl	_hash_add
LBB0_7:
	cmp	x25, #0
	cset	w27, eq
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	cmp	w26, #0
	cset	w8, ne
	eor	w8, w8, w27
	tbnz	w8, #0, LBB0_10
; %bb.8:
	mov	x0, x24
	bl	_kfree
	cmp	x25, #0
	ccmp	w26, #0, #4, eq
	b.ne	LBB0_11
; %bb.9:
Lloh14:
	adrp	x8, _OFDPA_OP_FLAG_REFRESH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OFDPA_OP_FLAG_REFRESH@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_10:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ofdpa_port_fdb_learn
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_OFDPA_OP_FLAG_REMOVE,4,2       ; @OFDPA_OP_FLAG_REMOVE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OFDPA_OP_FLAG_LEARNED,4,2      ; @OFDPA_OP_FLAG_LEARNED
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_OFDPA_OP_FLAG_REFRESH,4,2      ; @OFDPA_OP_FLAG_REFRESH
	.no_dead_strip	_ofdpa_port_fdb
.subsections_via_symbols
