	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_cleanup_cm_core          ## -- Begin function i40iw_cleanup_cm_core
	.p2align	4, 0x90
_i40iw_cleanup_cm_core:                 ## @i40iw_cleanup_cm_core
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	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
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	20(%rbx), %r15
	movq	%r15, %rdi
	callq	_timer_pending
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_del_timer_sync
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_destroy_workqueue
LBB0_5:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	leaq	8(%rsp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	je	LBB0_6
## %bb.7:
	jmp	_destroy_workqueue              ## TAILCALL
LBB0_6:
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_cleanup_cm_core          ; -- Begin function i40iw_cleanup_cm_core
	.p2align	2
_i40iw_cleanup_cm_core:                 ; @i40iw_cleanup_cm_core
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	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	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x21, x19, #20
	mov	x0, x21
	bl	_timer_pending
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_del_timer_sync
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_destroy_workqueue
LBB0_5:
	ldr	x0, [x19]
	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
	cbz	x0, LBB0_7
; %bb.6:
	b	_destroy_workqueue
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
