	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_setup_cm_core            ## -- Begin function i40iw_setup_cm_core
	.p2align	4, 0x90
_i40iw_setup_cm_core:                   ## @i40iw_setup_cm_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rdi, 56(%rdi)
	leaq	64(%rdi), %rax
	movq	%rax, 48(%rdi)
	addq	$40, %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	movq	_i40iw_cm_timer_tick@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	24(%rbx), %rdi
	callq	_spin_lock_init
	leaq	20(%rbx), %rdi
	callq	_spin_lock_init
	leaq	16(%rbx), %rdi
	callq	_spin_lock_init
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_alloc_ordered_workqueue
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_alloc_ordered_workqueue
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_i40iw_cleanup_cm_core
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i40iw_cm_timer_tick,4,2        ## @i40iw_cm_timer_tick
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iwewq"

	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
L_.str.1:                               ## @.str.1
	.asciz	"iwdwq"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_setup_cm_core            ; -- Begin function i40iw_setup_cm_core
	.p2align	2
_i40iw_setup_cm_core:                   ; @i40iw_setup_cm_core
	.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	x19, x0
	add	x8, x0, #64
	stp	x8, x0, [x0, #48]
	add	x0, x0, #40
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
Lloh0:
	adrp	x8, _i40iw_cm_timer_tick@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i40iw_cm_timer_tick@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #24
	bl	_spin_lock_init
	add	x0, x19, #20
	bl	_spin_lock_init
	add	x0, x19, #16
	bl	_spin_lock_init
Lloh3:
	adrp	x20, _WQ_MEM_RECLAIM@GOTPAGE
Lloh4:
	ldr	x20, [x20, _WQ_MEM_RECLAIM@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_alloc_ordered_workqueue
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x20]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_alloc_ordered_workqueue
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_i40iw_cleanup_cm_core
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_i40iw_cm_timer_tick,4,2        ; @i40iw_cm_timer_tick
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iwewq"

	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
l_.str.1:                               ; @.str.1
	.asciz	"iwdwq"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
