	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function session_remove
_session_remove:                        ## @session_remove
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_fst_session_get_by_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_fst_session_get_group
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_fst_session_reset
	movq	%rbx, %rdi
	callq	_fst_session_delete
	movq	%r12, %rdi
	callq	_fst_group_delete_if_empty
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_fst_printf
	leaq	L_.str.1(%rip), %rdx
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_os_snprintf                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTRL: Cannot find session %u"

L_.str.1:                               ## @.str.1
	.asciz	"FAIL\n"

L_.str.2:                               ## @.str.2
	.asciz	"OK\n"

	.no_dead_strip	_session_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function session_remove
_session_remove:                        ; @session_remove
	.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, x2
	mov	x20, x1
	mov	x1, #0
	mov	w2, #0
	bl	_strtoul
	mov	x21, x0
	bl	_fst_session_get_by_id
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	bl	_fst_session_get_group
	mov	x21, x0
	mov	x0, x22
	bl	_fst_session_reset
	mov	x0, x22
	bl	_fst_session_delete
	mov	x0, x21
	bl	_fst_group_delete_if_empty
Lloh0:
	adrp	x2, l_.str.2@PAGE
Lloh1:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_fst_printf
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_3:
	mov	x0, x20
	mov	x1, 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
	b	_os_snprintf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTRL: Cannot find session %u"

l_.str.1:                               ; @.str.1
	.asciz	"FAIL\n"

l_.str.2:                               ; @.str.2
	.asciz	"OK\n"

	.no_dead_strip	_session_remove
.subsections_via_symbols
