	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_neigh_parms_alloc              ## -- Begin function neigh_parms_alloc
	.p2align	4, 0x90
_neigh_parms_alloc:                     ## @neigh_parms_alloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_dev_net
	movq	%rax, %r12
	movq	(%r15), %r13
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_lookup_neigh_parms
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$56, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 48(%rax)
	leaq	40(%rax), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movl	32(%rbx), %edi
	callq	_neigh_rand_reach_time
	movl	%eax, 36(%rbx)
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	_dev_hold
	movq	%r15, 24(%rbx)
	movq	%rbx, %r15
	addq	$16, %r15
	movq	%r12, %rdi
	callq	_hold_net
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_write_pnet
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_write_lock_bh
	movq	8(%r14), %rax
	movq	%rax, (%rbx)
	movq	%rbx, 8(%r14)
	movq	%r14, %rdi
	callq	_write_unlock_bh
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_neigh_parms_alloc              ; -- Begin function neigh_parms_alloc
	.p2align	2
_neigh_parms_alloc:                     ; @neigh_parms_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	bl	_dev_net
	mov	x22, x0
	ldr	x23, [x21]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_lookup_neigh_parms
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_kmemdup
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.2:
	str	x19, [x20, #48]
	add	x0, x20, #40
	mov	w1, #1
	bl	_atomic_set
	ldr	w0, [x20, #32]
	bl	_neigh_rand_reach_time
	str	w0, [x20, #36]
	ldr	x8, [x23]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_kfree
LBB0_5:
	mov	x20, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_dev_hold
	str	x21, [x20, #24]
	add	x21, x20, #16
	mov	x0, x22
	bl	_hold_net
	mov	x1, x0
	mov	x0, x21
	bl	_write_pnet
	str	xzr, [x20, #8]
	mov	x0, x19
	bl	_write_lock_bh
	ldr	x8, [x19, #8]
	str	x8, [x20]
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_write_unlock_bh
LBB0_7:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
