	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetSessionDsmHandle            ## -- Begin function GetSessionDsmHandle
	.p2align	4, 0x90
_GetSessionDsmHandle:                   ## @GetSessionDsmHandle
	.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
	movq	_CurrentSession@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsm_segment_handle             ## TAILCALL
LBB0_1:
	movq	_TopMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r13d
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_shm_toc_initialize_estimator
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_shm_toc_estimate_keys
	movq	_SESSION_DSA_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_shm_toc_estimate_chunk
	xorl	%eax, %eax
	callq	_SharedRecordTypmodRegistryEstimate
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_shm_toc_estimate_keys
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_shm_toc_estimate_chunk
	movq	%rbx, %rdi
	callq	_shm_toc_estimate
	movq	%rax, %r12
	movq	_DSM_CREATE_NULL_IF_MAXSEGMENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dsm_create
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	_SESSION_MAGIC@GOTPCREL(%rip), %rax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_dsm_segment_address
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_shm_toc_create
	movq	%rax, %r12
	movq	_SESSION_DSA_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%rax, %rdi
	callq	_shm_toc_allocate
	movq	%rax, %r14
	movq	(%r13), %rsi
	movq	_LWTRANCHE_SESSION_DSA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_dsa_create_in_place
	movq	%rax, %r13
	movq	_SESSION_KEY_DSA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_shm_toc_insert
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_shm_toc_allocate
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_SharedRecordTypmodRegistryInit
	movq	_SESSION_KEY_RECORD_TYPMOD_REGISTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_shm_toc_insert
	movq	%rbx, %rdi
	callq	_dsm_pin_mapping
	movq	%r13, %rdi
	callq	_dsa_pin_mapping
	movq	_CurrentSession@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, 8(%rax)
	movq	%r13, (%rax)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rdi
	callq	_dsm_segment_handle
	jmp	LBB0_4
LBB0_2:
	movl	%r13d, %edi
	callq	_MemoryContextSwitchTo
	movq	_DSM_HANDLE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentSession,8,3             ## @CurrentSession
	.comm	_TopMemoryContext,4,2           ## @TopMemoryContext
	.comm	_SESSION_DSA_SIZE,8,3           ## @SESSION_DSA_SIZE
	.comm	_DSM_CREATE_NULL_IF_MAXSEGMENTS,4,2 ## @DSM_CREATE_NULL_IF_MAXSEGMENTS
	.comm	_DSM_HANDLE_INVALID,4,2         ## @DSM_HANDLE_INVALID
	.comm	_SESSION_MAGIC,4,2              ## @SESSION_MAGIC
	.comm	_LWTRANCHE_SESSION_DSA,4,2      ## @LWTRANCHE_SESSION_DSA
	.comm	_SESSION_KEY_DSA,4,2            ## @SESSION_KEY_DSA
	.comm	_SESSION_KEY_RECORD_TYPMOD_REGISTRY,4,2 ## @SESSION_KEY_RECORD_TYPMOD_REGISTRY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetSessionDsmHandle            ; -- Begin function GetSessionDsmHandle
	.p2align	2
_GetSessionDsmHandle:                   ; @GetSessionDsmHandle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x25, _CurrentSession@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CurrentSession@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_dsm_segment_handle
LBB0_2:
Lloh2:
	adrp	x8, _TopMemoryContext@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TopMemoryContext@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x19, x0
	add	x0, sp, #12
	bl	_shm_toc_initialize_estimator
	add	x0, sp, #12
	mov	w1, #1
	bl	_shm_toc_estimate_keys
Lloh5:
	adrp	x24, _SESSION_DSA_SIZE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SESSION_DSA_SIZE@GOTPAGEOFF]
	ldr	x1, [x24]
	add	x0, sp, #12
	bl	_shm_toc_estimate_chunk
	bl	_SharedRecordTypmodRegistryEstimate
	mov	x21, x0
	add	x0, sp, #12
	mov	w1, #1
	bl	_shm_toc_estimate_keys
	add	x0, sp, #12
	mov	x1, x21
	bl	_shm_toc_estimate_chunk
	add	x0, sp, #12
	bl	_shm_toc_estimate
	mov	x22, x0
Lloh7:
	adrp	x8, _DSM_CREATE_NULL_IF_MAXSEGMENTS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DSM_CREATE_NULL_IF_MAXSEGMENTS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_dsm_create
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh10:
	adrp	x8, _SESSION_MAGIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SESSION_MAGIC@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
	bl	_dsm_segment_address
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_shm_toc_create
	mov	x22, x0
	ldr	x1, [x24]
	bl	_shm_toc_allocate
	mov	x23, x0
	ldr	x1, [x24]
Lloh13:
	adrp	x8, _LWTRANCHE_SESSION_DSA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LWTRANCHE_SESSION_DSA@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_dsa_create_in_place
	mov	x24, x0
Lloh16:
	adrp	x8, _SESSION_KEY_DSA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SESSION_KEY_DSA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	_shm_toc_insert
	mov	x0, x22
	mov	x1, x21
	bl	_shm_toc_allocate
	mov	x21, x0
	mov	x1, x20
	mov	x2, x24
	bl	_SharedRecordTypmodRegistryInit
Lloh19:
	adrp	x8, _SESSION_KEY_RECORD_TYPMOD_REGISTRY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SESSION_KEY_RECORD_TYPMOD_REGISTRY@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_shm_toc_insert
	mov	x0, x20
	bl	_dsm_pin_mapping
	mov	x0, x24
	bl	_dsa_pin_mapping
	ldr	x8, [x25]
	stp	x24, x20, [x8]
	mov	x0, x19
	bl	_MemoryContextSwitchTo
	mov	x0, x20
	bl	_dsm_segment_handle
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_MemoryContextSwitchTo
Lloh22:
	adrp	x8, _DSM_HANDLE_INVALID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DSM_HANDLE_INVALID@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentSession,8,3             ; @CurrentSession
	.comm	_TopMemoryContext,4,2           ; @TopMemoryContext
	.comm	_SESSION_DSA_SIZE,8,3           ; @SESSION_DSA_SIZE
	.comm	_DSM_CREATE_NULL_IF_MAXSEGMENTS,4,2 ; @DSM_CREATE_NULL_IF_MAXSEGMENTS
	.comm	_DSM_HANDLE_INVALID,4,2         ; @DSM_HANDLE_INVALID
	.comm	_SESSION_MAGIC,4,2              ; @SESSION_MAGIC
	.comm	_LWTRANCHE_SESSION_DSA,4,2      ; @LWTRANCHE_SESSION_DSA
	.comm	_SESSION_KEY_DSA,4,2            ; @SESSION_KEY_DSA
	.comm	_SESSION_KEY_RECORD_TYPMOD_REGISTRY,4,2 ; @SESSION_KEY_RECORD_TYPMOD_REGISTRY
.subsections_via_symbols
