	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_mpa_reject
_send_mpa_reject:                       ## @send_mpa_reject
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$0, -24(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	$0, -20(%rbp)
	movq	_MAX_CM_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_MPA_KEY_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-32(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_cm_build_mpa_frame
	movq	-32(%rbp), %r8
	movq	_IETF_MPA_FLAGS_REJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r8)
	movl	-20(%rbp), %r9d
	movq	_SET_ACK@GOTPCREL(%rip), %rax
	movq	_SET_FIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_form_cm_frame
	movq	_NES_CM_STATE_FIN_WAIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_NES_TIMER_TYPE_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_schedule_nes_timer
	jmp	LBB0_3
LBB0_1:
	movq	_NES_DBG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nes_debug
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CM_BUFFER,4,2              ## @MAX_CM_BUFFER
	.comm	_NES_DBG_CM,4,2                 ## @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get a Free pkt\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MPA_KEY_REPLY,4,2              ## @MPA_KEY_REPLY
	.comm	_IETF_MPA_FLAGS_REJECT,4,2      ## @IETF_MPA_FLAGS_REJECT
	.comm	_SET_ACK,4,2                    ## @SET_ACK
	.comm	_SET_FIN,4,2                    ## @SET_FIN
	.comm	_NES_CM_STATE_FIN_WAIT1,4,2     ## @NES_CM_STATE_FIN_WAIT1
	.comm	_NES_TIMER_TYPE_SEND,4,2        ## @NES_TIMER_TYPE_SEND
	.no_dead_strip	_send_mpa_reject
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_mpa_reject
_send_mpa_reject:                       ; @send_mpa_reject
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	stur	wzr, [x29, #-20]
	sub	x8, x29, #20
	str	x8, [sp, #16]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _MAX_CM_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CM_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_dev_alloc_skb
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _MPA_KEY_REPLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPA_KEY_REPLY@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, #0
	bl	_cm_build_mpa_frame
	ldr	x4, [sp, #16]
Lloh6:
	adrp	x8, _IETF_MPA_FLAGS_REJECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IETF_MPA_FLAGS_REJECT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x4]
	orr	w8, w9, w8
	str	w8, [x4]
Lloh9:
	adrp	x8, _SET_ACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SET_ACK@GOTPAGEOFF]
	ldr	w5, [sp, #12]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _SET_FIN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SET_FIN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w6, w9, w8
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	mov	w3, #0
	bl	_form_cm_frame
Lloh15:
	adrp	x8, _NES_CM_STATE_FIN_WAIT1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NES_CM_STATE_FIN_WAIT1@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh18:
	adrp	x8, _NES_TIMER_TYPE_SEND@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NES_TIMER_TYPE_SEND@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	mov	w4, #0
	bl	_schedule_nes_timer
	b	LBB0_3
LBB0_2:
Lloh21:
	adrp	x8, _NES_DBG_CM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NES_DBG_CM@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CM_BUFFER,4,2              ; @MAX_CM_BUFFER
	.comm	_NES_DBG_CM,4,2                 ; @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get a Free pkt\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MPA_KEY_REPLY,4,2              ; @MPA_KEY_REPLY
	.comm	_IETF_MPA_FLAGS_REJECT,4,2      ; @IETF_MPA_FLAGS_REJECT
	.comm	_SET_ACK,4,2                    ; @SET_ACK
	.comm	_SET_FIN,4,2                    ; @SET_FIN
	.comm	_NES_CM_STATE_FIN_WAIT1,4,2     ; @NES_CM_STATE_FIN_WAIT1
	.comm	_NES_TIMER_TYPE_SEND,4,2        ; @NES_TIMER_TYPE_SEND
	.no_dead_strip	_send_mpa_reject
.subsections_via_symbols
