	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mini_cm_recv_pkt
_mini_cm_recv_pkt:                      ## @mini_cm_recv_pkt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.1:
	cmpl	$44, (%rdx)
	jb	LBB0_21
## %bb.2:
	movq	%rdi, %rbx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %r15
	movl	8(%r15), %edi
	callq	_ntohl
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -112(%rbp)
	movl	36(%r15), %edi
	callq	_ntohs
	movq	%rax, %r13
	movq	%rax, -120(%rbp)
	movl	4(%r15), %edi
	callq	_ntohl
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -104(%rbp)
	movl	32(%r15), %edi
	callq	_ntohs
	movq	%rax, %r12
	movq	%rax, -96(%rbp)
	movl	8(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, -64(%rbp)
	movl	4(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, -60(%rbp)
	movq	_NES_DBG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r15), %r9d
	movl	36(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %r8
	xorl	%eax, %eax
	callq	_nes_debug
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %r12
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	_find_node
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_NES_CM_STATE_TSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.4:
	movq	8(%r13), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_15
## %bb.5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_nes_queue_mgt_skbs
	jmp	LBB0_20
LBB0_6:
	cmpl	$0, 28(%r15)
	je	LBB0_21
## %bb.7:
	movq	%r12, %rdx
	movq	%rbx, %rsi
	cmpq	$0, 20(%r15)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_21
## %bb.8:
	movq	_NES_CM_LISTENER_ACTIVE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_find_listener
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	%rax, %r14
	movq	16(%rax), %rax
	movq	%rax, -128(%rbp)
	movq	8(%r14), %rax
	movq	%rax, -136(%rbp)
	leaq	-136(%rbp), %rdx
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_make_cm_node
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, %r13
	cmpl	$0, 16(%r15)
	jne	LBB0_12
## %bb.11:
	cmpl	$0, 12(%r15)
	je	LBB0_22
LBB0_12:
	movq	_cm_packets_dropped@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rem_ref_cm_node
	jmp	LBB0_18
LBB0_13:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	movq	%rbx, %rdi
	callq	_skb_reset_network_header
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_skb_set_transport_header
	movl	(%r15), %edi
	callq	_ntohs
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_process_packet
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rem_ref_cm_node
	jmp	LBB0_20
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_rem_ref_cm_node
	movq	_cm_accel_dropped_pkts@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_16:
	movq	_NES_DBG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_nes_debug
	jmp	LBB0_21
LBB0_17:
	movq	_NES_DBG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_nes_debug
	movq	_cm_packets_dropped@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r14, %rdi
	callq	_atomic_dec
LBB0_18:
	movq	%rbx, %rdi
LBB0_19:
	callq	_dev_kfree_skb_any
LBB0_20:
	movl	$1, %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_NES_CM_STATE_LISTENING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	%r13, %rdi
	callq	_add_ref_cm_node
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_DBG_CM,4,2                 ## @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received packet: dest=%pI4:0x%04X src=%pI4:0x%04X\n"

	.comm	_NES_CM_LISTENER_ACTIVE_STATE,4,2 ## @NES_CM_LISTENER_ACTIVE_STATE
L_.str.1:                               ## @.str.1
	.asciz	"Unable to find listener for the pkt\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to allocate node\n"

	.comm	_cm_packets_dropped,4,2         ## @cm_packets_dropped
	.comm	_NES_CM_STATE_LISTENING,8,3     ## @NES_CM_STATE_LISTENING
	.comm	_NES_CM_STATE_TSA,8,3           ## @NES_CM_STATE_TSA
	.comm	_cm_accel_dropped_pkts,4,2      ## @cm_accel_dropped_pkts
	.no_dead_strip	_mini_cm_recv_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mini_cm_recv_pkt
_mini_cm_recv_pkt:                      ; @mini_cm_recv_pkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x2, LBB0_2
; %bb.1:
	mov	x19, x2
	ldr	w8, [x2]
	cmp	w8, #44
	b.hs	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_4:
	mov	x21, x1
	mov	x20, x0
	ldr	x26, [x19, #8]
	ldr	w0, [x26, #8]
	bl	_ntohl
	mov	x22, x0
	str	x0, [sp, #72]
	ldr	w0, [x26, #36]
	bl	_ntohs
	mov	x24, x0
	str	x0, [sp, #64]
	ldr	w0, [x26, #4]
	bl	_ntohl
	mov	x23, x0
	str	x0, [sp, #80]
	ldr	w0, [x26, #32]
	bl	_ntohs
	mov	x25, x0
	str	x0, [sp, #88]
	ldr	w0, [x26, #8]
	bl	_cpu_to_be32
	str	w0, [sp, #44]
	ldr	w0, [x26, #4]
	bl	_cpu_to_be32
	str	w0, [sp, #40]
Lloh0:
	adrp	x27, _NES_DBG_CM@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NES_DBG_CM@GOTPAGEOFF]
	ldr	w0, [x27]
	ldp	w9, w8, [x26, #32]
	add	x10, sp, #40
	stp	x10, x9, [sp, #16]
	add	x9, sp, #44
	stp	x9, x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	mov	x4, x22
	bl	_find_node
	cbz	x0, LBB0_8
; %bb.5:
	mov	x23, x0
	ldr	x8, [x0]
Lloh4:
	adrp	x9, _NES_CM_STATE_TSA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NES_CM_STATE_TSA@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.6:
	ldr	x2, [x23, #8]
	ldr	x8, [x2]
	cbz	x8, LBB0_15
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_nes_queue_mgt_skbs
	mov	w0, #1
	b	LBB0_3
LBB0_8:
	ldr	w8, [x26, #28]
	cbz	w8, LBB0_2
; %bb.9:
	ldur	x8, [x26, #20]
	cbnz	x8, LBB0_2
; %bb.10:
Lloh7:
	adrp	x8, _NES_CM_LISTENER_ACTIVE_STATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NES_CM_LISTENER_ACTIVE_STATE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_find_listener
	cbz	x0, LBB0_17
; %bb.11:
	mov	x22, x0
	ldr	x8, [x0, #16]
	str	x8, [sp, #56]
	ldr	x8, [x0, #8]
	str	x8, [sp, #48]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_make_cm_node
	cbz	x0, LBB0_18
; %bb.12:
	mov	x23, x0
	ldr	w8, [x26, #16]
	cbnz	w8, LBB0_14
; %bb.13:
	ldr	w8, [x26, #12]
	cbz	w8, LBB0_19
LBB0_14:
Lloh10:
	adrp	x8, _cm_packets_dropped@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cm_packets_dropped@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	_rem_ref_cm_node
	b	LBB0_16
LBB0_15:
	mov	x0, x20
	mov	x1, x23
	bl	_rem_ref_cm_node
Lloh12:
	adrp	x0, _cm_accel_dropped_pkts@GOTPAGE
Lloh13:
	ldr	x0, [x0, _cm_accel_dropped_pkts@GOTPAGEOFF]
	bl	_atomic_inc
LBB0_16:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	w0, #1
	b	LBB0_3
LBB0_17:
	ldr	w0, [x27]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nes_debug
	b	LBB0_2
LBB0_18:
	ldr	w0, [x27]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_nes_debug
Lloh18:
	adrp	x8, _cm_packets_dropped@GOTPAGE
Lloh19:
	ldr	x8, [x8, _cm_packets_dropped@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x22
	bl	_atomic_dec
	b	LBB0_16
LBB0_19:
Lloh20:
	adrp	x8, _NES_CM_STATE_LISTENING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NES_CM_STATE_LISTENING@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x23]
	mov	x0, x23
	bl	_add_ref_cm_node
LBB0_20:
	mov	x0, x19
	bl	_skb_reset_network_header
	mov	x0, x19
	mov	w1, #32
	bl	_skb_set_transport_header
	ldr	w0, [x26]
	bl	_ntohs
	str	w0, [x19]
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	bl	_process_packet
	mov	x0, x20
	mov	x1, x23
	bl	_rem_ref_cm_node
	mov	w0, #1
	b	LBB0_3
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_DBG_CM,4,2                 ; @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received packet: dest=%pI4:0x%04X src=%pI4:0x%04X\n"

	.comm	_NES_CM_LISTENER_ACTIVE_STATE,4,2 ; @NES_CM_LISTENER_ACTIVE_STATE
l_.str.1:                               ; @.str.1
	.asciz	"Unable to find listener for the pkt\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to allocate node\n"

	.comm	_cm_packets_dropped,4,2         ; @cm_packets_dropped
	.comm	_NES_CM_STATE_LISTENING,8,3     ; @NES_CM_STATE_LISTENING
	.comm	_NES_CM_STATE_TSA,8,3           ; @NES_CM_STATE_TSA
	.comm	_cm_accel_dropped_pkts,4,2      ; @cm_accel_dropped_pkts
	.no_dead_strip	_mini_cm_recv_pkt
.subsections_via_symbols
