	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_reset
_send_reset:                            ## @send_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_SET_RST@GOTPCREL(%rip), %rax
	movq	_SET_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.1:
	movq	_MAX_CM_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dev_alloc_skb
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	%ebx, (%rsp)
	movq	%r15, %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	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_RST,4,2                    ## @SET_RST
	.comm	_SET_ACK,4,2                    ## @SET_ACK
	.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	_NES_TIMER_TYPE_SEND,4,2        ## @NES_TIMER_TYPE_SEND
	.no_dead_strip	_send_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_reset
_send_reset:                            ; @send_reset
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _SET_RST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SET_RST@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _SET_ACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SET_ACK@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	cbnz	x1, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MAX_CM_BUFFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_CM_BUFFER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_dev_alloc_skb
	mov	x20, x0
	cbz	x0, LBB0_3
LBB0_2:
	orr	w6, w22, w21
	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, #0
	mov	w4, #1
	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
	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
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_RST,4,2                    ; @SET_RST
	.comm	_SET_ACK,4,2                    ; @SET_ACK
	.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	_NES_TIMER_TYPE_SEND,4,2        ; @NES_TIMER_TYPE_SEND
	.no_dead_strip	_send_reset
.subsections_via_symbols
