	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fst_session_create             ## -- Begin function fst_session_create
	.p2align	4, 0x90
_fst_session_create:                    ## @fst_session_create
	.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, %r15
	xorl	%eax, %eax
	callq	_fst_find_free_session_id
	movq	%rax, %r14
	movq	_FST_INVALID_SESSION_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_3
## %bb.1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movl	$32, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%r14, 8(%rax)
	movq	%r15, 24(%rax)
	movq	_FST_SESSION_STATE_INITIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_FST_LLT_MS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fst_printf
	movq	_global_sessions_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_dl_list_add_tail
	movq	_on_session_added@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_foreach_fst_ctrl_call
	jmp	LBB0_6
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fst_printf
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FST_INVALID_SESSION_ID,8,3     ## @FST_INVALID_SESSION_ID
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot assign new session ID"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate new session object"

	.comm	_FST_SESSION_STATE_INITIAL,4,2  ## @FST_SESSION_STATE_INITIAL
	.comm	_FST_LLT_MS_DEFAULT,4,2         ## @FST_LLT_MS_DEFAULT
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"Session %u created"

	.comm	_global_sessions_list,4,2       ## @global_sessions_list
	.comm	_on_session_added,4,2           ## @on_session_added
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fst_session_create             ; -- Begin function fst_session_create
	.p2align	2
_fst_session_create:                    ; @fst_session_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	bl	_fst_find_free_session_id
Lloh0:
	adrp	x8, _FST_INVALID_SESSION_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FST_INVALID_SESSION_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fst_printf
	mov	x19, #0
	b	LBB0_5
LBB0_2:
	mov	x20, x0
	mov	w0, #32
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.3:
	str	x20, [x19, #8]
	str	x21, [x19, #24]
Lloh8:
	adrp	x8, _FST_SESSION_STATE_INITIAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FST_SESSION_STATE_INITIAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _FST_LLT_MS_DEFAULT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FST_LLT_MS_DEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh14:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fst_printf
Lloh19:
	adrp	x0, _global_sessions_list@GOTPAGE
Lloh20:
	ldr	x0, [x0, _global_sessions_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_dl_list_add_tail
Lloh21:
	adrp	x8, _on_session_added@GOTPAGE
Lloh22:
	ldr	x8, [x8, _on_session_added@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_foreach_fst_ctrl_call
	b	LBB0_5
LBB0_4:
Lloh24:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fst_printf
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FST_INVALID_SESSION_ID,8,3     ; @FST_INVALID_SESSION_ID
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot assign new session ID"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate new session object"

	.comm	_FST_SESSION_STATE_INITIAL,4,2  ; @FST_SESSION_STATE_INITIAL
	.comm	_FST_LLT_MS_DEFAULT,4,2         ; @FST_LLT_MS_DEFAULT
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"Session %u created"

	.comm	_global_sessions_list,4,2       ; @global_sessions_list
	.comm	_on_session_added,4,2           ; @on_session_added
.subsections_via_symbols
