	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofdpa_port_ipv4_nh
_ofdpa_port_ipv4_nh:                    ## @ofdpa_port_ipv4_nh
	.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
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	_OFDPA_OP_FLAG_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	andl	%r14d, %r12d
	movl	%r13d, %ebx
	sete	%r13b
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_ofdpa_neigh_tbl_find
	movq	%rax, %r14
	testq	%rax, %rax
	setne	%al
	jne	LBB0_4
## %bb.3:
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 12(%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ofdpa_neigh_add
	movl	(%rbx), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_10:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ofdpa_port_ipv4_resolve        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_4:
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	movl	(%r14), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_ofdpa_neigh_del
	xorl	%r13d, %r13d
	movl	$1, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_7:
	andb	%r13b, %al
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_11
## %bb.8:
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ofdpa_neigh_update
	movl	4(%r14), %edi
	callq	_is_zero_ether_addr
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movl	(%r14), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_11:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movl	$1, %ebx
LBB0_12:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	testl	%r13d, %r13d
	jne	LBB0_14
## %bb.13:
	xorl	%r13d, %r13d
	testl	%ebx, %ebx
	je	LBB0_10
LBB0_14:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_ofdpa_port_ipv4_nh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofdpa_port_ipv4_nh
_ofdpa_port_ipv4_nh:                    ; @ofdpa_port_ipv4_nh
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
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, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ands	w26, w25, w24
	cset	w24, eq
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x21
	mov	x1, x19
	bl	_ofdpa_neigh_tbl_find
	cmp	x0, #0
	cset	w8, ne
	ccmp	w26, #0, #0, eq
	b.eq	LBB0_6
; %bb.2:
	mov	x25, x0
	cbz	x0, LBB0_8
; %bb.3:
	cbz	w26, LBB0_8
; %bb.4:
	ldr	w8, [x25]
	str	w8, [x23]
	mov	x0, x25
	bl	_ofdpa_neigh_del
	mov	w24, #0
	b	LBB0_11
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_6:
	ldr	w8, [x20]
	stp	w8, w19, [x22, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_ofdpa_neigh_add
	ldr	w8, [x22]
	str	w8, [x23]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ofdpa_port_ipv4_resolve
LBB0_8:
	and	w8, w8, w24
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x25
	mov	x1, #0
	mov	w2, #0
	bl	_ofdpa_neigh_update
	ldr	w0, [x25, #4]
	bl	_is_zero_ether_addr
	mov	w24, #0
	cmp	w0, #0
	cset	w26, eq
	ldr	w8, [x25]
	str	w8, [x23]
	b	LBB0_12
LBB0_10:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_11:
	mov	w26, #1
LBB0_12:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	bl	_kfree
	cbnz	w24, LBB0_15
; %bb.13:
	cbz	w26, LBB0_7
; %bb.14:
	mov	w24, #0
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_ofdpa_port_ipv4_nh
.subsections_via_symbols
