	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_cm_alloc_core
_nes_cm_alloc_core:                     ## @nes_cm_alloc_core
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	68(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	64(%rbx), %rdi
	callq	_init_timer
	movq	_nes_cm_timer_tick@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_NES_CM_DEFAULT_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_NES_CM_STATE_INITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_NES_CM_DEFAULT_FREE_PKTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	leaq	48(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_nes_cm_api@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	movq	_NES_DBG_CM@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_nes_debug
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_nes_debug
	leaq	L_.str.2(%rip), %rdi
	callq	_create_singlethread_workqueue
	movq	%rax, 16(%rbx)
	movq	_nes_cm_post_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_nes_debug
	leaq	L_.str.4(%rip), %rdi
	callq	_create_singlethread_workqueue
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_print_core
LBB0_2:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_nes_cm_timer_tick,4,2          ## @nes_cm_timer_tick
	.comm	_NES_CM_DEFAULT_MTU,4,2         ## @NES_CM_DEFAULT_MTU
	.comm	_NES_CM_STATE_INITED,4,2        ## @NES_CM_STATE_INITED
	.comm	_NES_CM_DEFAULT_FREE_PKTS,4,2   ## @NES_CM_DEFAULT_FREE_PKTS
	.comm	_nes_cm_api,4,2                 ## @nes_cm_api
	.comm	_NES_DBG_CM,4,2                 ## @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Init CM Core completed -- cm_core=%p\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enable QUEUE EVENTS\n"

L_.str.2:                               ## @.str.2
	.asciz	"nesewq"

	.comm	_nes_cm_post_event,4,2          ## @nes_cm_post_event
L_.str.3:                               ## @.str.3
	.asciz	"Enable QUEUE DISCONNECTS\n"

L_.str.4:                               ## @.str.4
	.asciz	"nesdwq"

	.no_dead_strip	_nes_cm_alloc_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_cm_alloc_core
_nes_cm_alloc_core:                     ; @nes_cm_alloc_core
	.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, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #68
	bl	_INIT_LIST_HEAD
	add	x0, x19, #64
	bl	_init_timer
Lloh3:
	adrp	x8, _nes_cm_timer_tick@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nes_cm_timer_tick@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NES_CM_DEFAULT_MTU@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NES_CM_DEFAULT_MTU@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #60]
Lloh9:
	adrp	x8, _NES_CM_STATE_INITED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NES_CM_STATE_INITED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _NES_CM_DEFAULT_FREE_PKTS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NES_CM_DEFAULT_FREE_PKTS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #52]
	add	x0, x19, #48
	mov	w1, #0
	bl	_atomic_set
Lloh15:
	adrp	x8, _nes_cm_api@GOTPAGE
Lloh16:
	ldr	x8, [x8, _nes_cm_api@GOTPAGEOFF]
	str	x8, [x19, #40]
	add	x0, x19, #32
	bl	_spin_lock_init
	add	x0, x19, #28
	bl	_spin_lock_init
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
Lloh17:
	adrp	x20, _NES_DBG_CM@GOTPAGE
Lloh18:
	ldr	x20, [x20, _NES_DBG_CM@GOTPAGEOFF]
	ldr	w0, [x20]
	str	x19, [sp]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
	ldr	w0, [x20]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nes_debug
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_create_singlethread_workqueue
	str	x0, [x19, #16]
Lloh25:
	adrp	x8, _nes_cm_post_event@GOTPAGE
Lloh26:
	ldr	x8, [x8, _nes_cm_post_event@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w0, [x20]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_nes_debug
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_create_singlethread_workqueue
	str	x0, [x19]
	mov	x0, x19
	bl	_print_core
LBB0_2:
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_nes_cm_timer_tick,4,2          ; @nes_cm_timer_tick
	.comm	_NES_CM_DEFAULT_MTU,4,2         ; @NES_CM_DEFAULT_MTU
	.comm	_NES_CM_STATE_INITED,4,2        ; @NES_CM_STATE_INITED
	.comm	_NES_CM_DEFAULT_FREE_PKTS,4,2   ; @NES_CM_DEFAULT_FREE_PKTS
	.comm	_nes_cm_api,4,2                 ; @nes_cm_api
	.comm	_NES_DBG_CM,4,2                 ; @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Init CM Core completed -- cm_core=%p\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enable QUEUE EVENTS\n"

l_.str.2:                               ; @.str.2
	.asciz	"nesewq"

	.comm	_nes_cm_post_event,4,2          ; @nes_cm_post_event
l_.str.3:                               ; @.str.3
	.asciz	"Enable QUEUE DISCONNECTS\n"

l_.str.4:                               ; @.str.4
	.asciz	"nesdwq"

	.no_dead_strip	_nes_cm_alloc_core
.subsections_via_symbols
