	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dccp_insert_option_ndp
_dccp_insert_option_ndp:                ## @dccp_insert_option_ndp
	.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	%rsi, %r12
	callq	_dccp_sk
	movq	%rax, %rbx
	movq	(%rax), %r14
	movq	%r12, %rdi
	callq	_dccp_non_data_packet
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	incq	%rcx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	%rcx, (%rbx)
	testq	%r14, %r14
	jle	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_dccp_ndp_len
	movl	%eax, %r15d
	movslq	%eax, %rbx
	addq	$2, %rbx
	movq	%r12, %rdi
	callq	_DCCP_SKB_CB
	movq	(%rax), %rcx
	addq	%rbx, %rcx
	movq	_DCCP_MAX_OPT_LEN@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	cmpq	(%rdx), %rcx
	jg	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_DCCP_SKB_CB
	addq	%rbx, (%rax)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_skb_push
	movq	_DCCPO_NDP_COUNT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, (%rax)
	movb	%bl, 1(%rax)
	leaq	2(%rax), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dccp_encode_value_var
	xorl	%eax, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCCP_MAX_OPT_LEN,8,3           ## @DCCP_MAX_OPT_LEN
	.comm	_DCCPO_NDP_COUNT,4,2            ## @DCCPO_NDP_COUNT
	.no_dead_strip	_dccp_insert_option_ndp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dccp_insert_option_ndp
_dccp_insert_option_ndp:                ; @dccp_insert_option_ndp
	.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	x20, x1
	bl	_dccp_sk
	mov	x21, x0
	ldr	x19, [x0]
	mov	x0, x20
	bl	_dccp_non_data_packet
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	add	x8, x8, #1
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
	str	x8, [x21]
	cmp	x19, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_dccp_ndp_len
	mov	x21, x0
	add	w22, w0, #2
	mov	x0, x20
	bl	_DCCP_SKB_CB
	ldr	x8, [x0]
	sxtw	x22, w22
Lloh0:
	adrp	x9, _DCCP_MAX_OPT_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCCP_MAX_OPT_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x22
	cmp	x8, x9
	b.le	LBB0_6
; %bb.5:
	mov	w0, #-1
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_DCCP_SKB_CB
	ldr	x8, [x0]
	add	x8, x8, x22
	str	x8, [x0]
	mov	x0, x20
	mov	x1, x22
	bl	_skb_push
Lloh3:
	adrp	x8, _DCCPO_NDP_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCCPO_NDP_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	strb	w8, [x0]
	add	x1, x0, #2
	strb	w22, [x0, #1]
	mov	x0, x19
	mov	x2, x21
	bl	_dccp_encode_value_var
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_DCCP_MAX_OPT_LEN,8,3           ; @DCCP_MAX_OPT_LEN
	.comm	_DCCPO_NDP_COUNT,4,2            ; @DCCPO_NDP_COUNT
	.no_dead_strip	_dccp_insert_option_ndp
.subsections_via_symbols
