	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nes_cm_recv                    ## -- Begin function nes_cm_recv
	.p2align	4, 0x90
_nes_cm_recv:                           ## @nes_cm_recv
	.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	_cm_packets_received@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_g_cm_core@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	movq	(%rax), %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	movq	_NES_DBG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nes_debug
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cm_packets_received,4,2        ## @cm_packets_received
	.comm	_g_cm_core,8,3                  ## @g_cm_core
	.comm	_NES_DBG_CM,4,2                 ## @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to process packet for CM, cm is not setup properly.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nes_cm_recv                    ; -- Begin function nes_cm_recv
	.p2align	2
_nes_cm_recv:                           ; @nes_cm_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _cm_packets_received@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cm_packets_received@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x8, _g_cm_core@GOTPAGE
Lloh3:
	ldr	x8, [x8, _g_cm_core@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	x0, [x8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x1
	bl	_netdev_priv
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	br	x3
LBB0_3:
Lloh5:
	adrp	x8, _NES_DBG_CM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NES_DBG_CM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cm_packets_received,4,2        ; @cm_packets_received
	.comm	_g_cm_core,8,3                  ; @g_cm_core
	.comm	_NES_DBG_CM,4,2                 ; @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to process packet for CM, cm is not setup properly.\n"

.subsections_via_symbols
