	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_fin
_send_fin:                              ## @send_fin
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.1:
	movq	_MAX_CM_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dev_alloc_skb
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	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
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_form_cm_frame
	movq	_NES_TIMER_TYPE_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_schedule_nes_timer             ## TAILCALL
LBB0_2:
	movq	_NES_DBG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nes_debug
	movl	$-1, %eax
	addq	$16, %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	_SET_ACK,4,2                    ## @SET_ACK
	.comm	_SET_FIN,4,2                    ## @SET_FIN
	.comm	_NES_TIMER_TYPE_SEND,4,2        ## @NES_TIMER_TYPE_SEND
	.no_dead_strip	_send_fin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_fin
_send_fin:                              ; @send_fin
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cbnz	x1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MAX_CM_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CM_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_dev_alloc_skb
	mov	x20, x0
	cbz	x0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _SET_ACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SET_ACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SET_FIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SET_FIN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w6, w9, w8
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_form_cm_frame
Lloh9:
	adrp	x8, _NES_TIMER_TYPE_SEND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NES_TIMER_TYPE_SEND@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	mov	w4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_schedule_nes_timer
LBB0_3:
Lloh12:
	adrp	x8, _NES_DBG_CM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NES_DBG_CM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_SET_ACK,4,2                    ; @SET_ACK
	.comm	_SET_FIN,4,2                    ; @SET_FIN
	.comm	_NES_TIMER_TYPE_SEND,4,2        ; @NES_TIMER_TYPE_SEND
	.no_dead_strip	_send_fin
.subsections_via_symbols
