	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function move_session
_move_session:                          ## @move_session
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_D_TLS_DEBUG_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%esi, %edi
	callq	_session_index_name
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_session_index_name
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r15d, %r8d
	callq	_msg
	xorl	%edi, %edi
	cmpl	%ebx, %r12d
	setne	%dil
	callq	_ASSERT
	testl	%r12d, %r12d
	setns	%al
	movq	_TM_SIZE@GOTPCREL(%rip), %r14
	cmpl	%r12d, (%r14)
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_ASSERT
	testl	%ebx, %ebx
	setns	%al
	cmpl	%ebx, (%r14)
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_ASSERT
	movslq	%ebx, %r14
	leaq	(,%r14,4), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_tls_session_free
	movq	(%rbx), %rax
	movslq	%r12d, %rcx
	leaq	(%rax,%rcx,4), %rsi
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, (%rax,%r14,4)
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_tls_session_init
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %rdi
	movl	$4, %esi
	callq	_secure_memzero
LBB0_3:
	movq	_D_TLS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmsg                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D_TLS_DEBUG_LOW,4,2            ## @D_TLS_DEBUG_LOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLS: move_session: dest=%s src=%s reinit_src=%d"

	.comm	_TM_SIZE,4,2                    ## @TM_SIZE
	.comm	_D_TLS_DEBUG,4,2                ## @D_TLS_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"TLS: move_session: exit"

	.no_dead_strip	_move_session
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function move_session
_move_session:                          ; @move_session
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _D_TLS_DEBUG_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_TLS_DEBUG_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x1
	bl	_session_index_name
	mov	x24, x0
	mov	x0, x21
	bl	_session_index_name
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	x4, x20
	bl	_msg
	cmp	w21, w22
	cset	w0, ne
	bl	_ASSERT
	cmp	w21, #0
Lloh5:
	adrp	x23, _TM_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TM_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	ccmp	w8, w21, #4, ge
	cset	w0, gt
	bl	_ASSERT
	cmp	w22, #0
	ldr	w8, [x23]
	ccmp	w8, w22, #4, ge
	cset	w0, gt
	bl	_ASSERT
	ldr	x8, [x19]
	sbfiz	x22, x22, #2, #32
	add	x0, x8, x22
	mov	w1, #0
	bl	_tls_session_free
	ldr	x8, [x19]
	add	x1, x8, w21, sxtw #2
	ldr	w9, [x1]
	str	w9, [x8, x22]
	cbz	w20, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tls_session_init
	b	LBB0_3
LBB0_2:
	mov	x0, x1
	mov	w1, #4
	bl	_secure_memzero
LBB0_3:
Lloh7:
	adrp	x8, _D_TLS_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _D_TLS_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dmsg
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_D_TLS_DEBUG_LOW,4,2            ; @D_TLS_DEBUG_LOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLS: move_session: dest=%s src=%s reinit_src=%d"

	.comm	_TM_SIZE,4,2                    ; @TM_SIZE
	.comm	_D_TLS_DEBUG,4,2                ; @D_TLS_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"TLS: move_session: exit"

	.no_dead_strip	_move_session
.subsections_via_symbols
