	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fmc_release                    ## -- Begin function fmc_release
	.p2align	4, 0x90
_fmc_release:                           ## @fmc_release
	.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	_FM_CORE_READY@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	16(%rbx), %rdi
	callq	_wake_up_interruptible
	leaq	44(%rbx), %rdi
	callq	_tasklet_kill
	leaq	40(%rbx), %rdi
	callq	_tasklet_kill
	leaq	36(%rbx), %rdi
	callq	_skb_queue_purge
	leaq	32(%rbx), %rdi
	callq	_skb_queue_purge
	movq	$0, 24(%rbx)
	movq	$0, 8(%rbx)
	leaq	_fmc_release.fm_st_proto(%rip), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$8, _fmc_release.fm_st_proto(%rip)
	movq	%r14, %rdi
	callq	_st_unregister
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_fmdbg
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_fmdbg
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_fmerr
LBB0_5:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fmc_release.fm_st_proto,4,2 ## @fmc_release.fm_st_proto
	.comm	_FM_CORE_READY,4,2              ## @FM_CORE_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FM Core is already down\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to de-register FM from ST %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Successfully unregistered from ST\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fmc_release                    ; -- Begin function fmc_release
	.p2align	2
_fmc_release:                           ; @fmc_release
	.cfi_startproc
; %bb.0:
	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
Lloh0:
	adrp	x21, _FM_CORE_READY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FM_CORE_READY@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	add	x0, x19, #16
	bl	_wake_up_interruptible
	add	x0, x19, #44
	bl	_tasklet_kill
	add	x0, x19, #40
	bl	_tasklet_kill
	add	x0, x19, #36
	bl	_skb_queue_purge
	add	x0, x19, #32
	bl	_skb_queue_purge
	str	xzr, [x19, #24]
	str	xzr, [x19, #8]
Lloh2:
	adrp	x20, _fmc_release.fm_st_proto@PAGE
Lloh3:
	add	x20, x20, _fmc_release.fm_st_proto@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #8
	str	w8, [x20]
	mov	x0, x20
	bl	_st_unregister
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fmdbg
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fmdbg
	mov	w20, #0
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_fmerr
LBB0_5:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_clear_bit
LBB0_6:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fmc_release.fm_st_proto,4,2 ; @fmc_release.fm_st_proto
	.comm	_FM_CORE_READY,4,2              ; @FM_CORE_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FM Core is already down\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to de-register FM from ST %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Successfully unregistered from ST\n"

.subsections_via_symbols
