	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EnablePortalManager            ## -- Begin function EnablePortalManager
	.p2align	4, 0x90
_EnablePortalManager:                   ## @EnablePortalManager
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_TopPortalContext@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_Assert
	movq	_TopMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_DEFAULT_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_AllocSetContextCreate
	movq	%rax, (%rbx)
	movq	_MAX_PORTALNAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	$4, -16(%rbp)
	movq	_PORTALS_PER_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HASH_ELEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	leaq	-16(%rbp), %rdx
	callq	_hash_create
	movq	_PortalHashTable@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TopPortalContext,8,3           ## @TopPortalContext
	.comm	_TopMemoryContext,4,2           ## @TopMemoryContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TopPortalContext"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
	.comm	_MAX_PORTALNAME_LEN,4,2         ## @MAX_PORTALNAME_LEN
L_.str.1:                               ## @.str.1
	.asciz	"Portal hash"

	.comm	_PORTALS_PER_USER,4,2           ## @PORTALS_PER_USER
	.comm	_HASH_ELEM,4,2                  ## @HASH_ELEM
	.comm	_PortalHashTable,4,2            ## @PortalHashTable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EnablePortalManager            ; -- Begin function EnablePortalManager
	.p2align	2
_EnablePortalManager:                   ; @EnablePortalManager
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _TopPortalContext@GOTPAGE
Lloh1:
	ldr	x19, [x19, _TopPortalContext@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
Lloh2:
	adrp	x8, _TopMemoryContext@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TopMemoryContext@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AllocSetContextCreate
	str	x0, [x19]
Lloh10:
	adrp	x8, _MAX_PORTALNAME_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_PORTALNAME_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	w9, #4
	stp	w9, w8, [sp, #8]
Lloh13:
	adrp	x8, _PORTALS_PER_USER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PORTALS_PER_USER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _HASH_ELEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HASH_ELEM@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #8
	bl	_hash_create
Lloh21:
	adrp	x8, _PortalHashTable@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PortalHashTable@GOTPAGEOFF]
Lloh23:
	str	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TopPortalContext,8,3           ; @TopPortalContext
	.comm	_TopMemoryContext,4,2           ; @TopMemoryContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TopPortalContext"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
	.comm	_MAX_PORTALNAME_LEN,4,2         ; @MAX_PORTALNAME_LEN
l_.str.1:                               ; @.str.1
	.asciz	"Portal hash"

	.comm	_PORTALS_PER_USER,4,2           ; @PORTALS_PER_USER
	.comm	_HASH_ELEM,4,2                  ; @HASH_ELEM
	.comm	_PortalHashTable,4,2            ; @PortalHashTable
.subsections_via_symbols
