	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icn_stopcard
_icn_stopcard:                          ## @icn_stopcard
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movq	_ICN_FLAGS_RUNNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	leaq	40(%rbx), %rdi
	callq	_del_timer
	leaq	36(%rbx), %rdi
	callq	_del_timer
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ISDN_STAT_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -24(%rbp)
	leaq	-24(%rbp), %rdi
	callq	*24(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	callq	_icn_stopcard
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICN_FLAGS_RUNNING,4,2          ## @ICN_FLAGS_RUNNING
	.comm	_ISDN_STAT_STOP,4,2             ## @ISDN_STAT_STOP
	.no_dead_strip	_icn_stopcard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icn_stopcard
_icn_stopcard:                          ; @icn_stopcard
	.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
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _ICN_FLAGS_RUNNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICN_FLAGS_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	bic	w8, w8, w9
	str	w8, [x19]
	add	x0, x19, #40
	bl	_del_timer
	add	x0, x19, #36
	bl	_del_timer
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh3:
	adrp	x8, _ISDN_STAT_STOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISDN_STAT_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	stp	w9, w8, [sp, #8]
	ldr	x8, [x19, #24]
	add	x0, sp, #8
	blr	x8
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_icn_stopcard
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ICN_FLAGS_RUNNING,4,2          ; @ICN_FLAGS_RUNNING
	.comm	_ISDN_STAT_STOP,4,2             ; @ISDN_STAT_STOP
	.no_dead_strip	_icn_stopcard
.subsections_via_symbols
