	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_activemap_init                 ## -- Begin function activemap_init
	.p2align	4, 0x90
_activemap_init:                        ## @activemap_init
	.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	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %rax
	xorl	%edi, %edi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	setne	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setg	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	testq	%r13, %r13
	setg	%dil
	callq	_PJDLOG_ASSERT
	movq	%r13, %rdi
	callq	_powerof2
	movl	%eax, %edi
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	testq	%r12, %r12
	setg	%dil
	callq	_PJDLOG_ASSERT
	movq	%r12, %rdi
	callq	_powerof2
	movl	%eax, %edi
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	testq	%r15, %r15
	setg	%dil
	callq	_PJDLOG_ASSERT
	movl	$104, %edi
	callq	_malloc
	movq	%rax, %rbx
	movl	$-1, %eax
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.1:
	movl	%r14d, (%rbx)
	movq	%r15, 96(%rbx)
	movq	%r13, 88(%rbx)
	leaq	-1(%r13), %rdi
	callq	_bitcount32
	movl	%eax, 84(%rbx)
	decl	%r14d
	movslq	%r14d, %rax
	movq	%rax, %rcx
	orq	%r13, %rcx
	shrq	$32, %rcx
	je	LBB0_2
## %bb.3:
	cqto
	idivq	%r13
	jmp	LBB0_4
LBB0_2:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	incl	%eax
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_bitstr_size
	movl	%eax, 80(%rbx)
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_roundup2
	movl	%eax, 8(%rbx)
	movq	$0, 72(%rbx)
	movl	$-2, 12(%rbx)
	movq	%rbx, %rdi
	addq	$64, %rdi
	callq	_TAILQ_INIT
	movq	$0, 56(%rbx)
	movl	4(%rbx), %r14d
	movl	%r14d, %edi
	movl	$104, %esi
	callq	_calloc
	movq	%rax, 48(%rbx)
	movl	8(%rbx), %esi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, 40(%rbx)
	movl	%r14d, %edi
	callq	_bit_alloc
	movq	%rax, 32(%rbx)
	movl	4(%rbx), %edi
	callq	_bit_alloc
	movq	%rax, 24(%rbx)
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.5:
	cmpq	$0, 40(%rbx)
	je	LBB0_8
## %bb.6:
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.7:
	testq	%rax, %rax
	je	LBB0_8
## %bb.16:
	movq	_ACTIVEMAP_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_8:
	callq	_free
LBB0_9:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_free
LBB0_11:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_free
LBB0_13:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_free
LBB0_15:
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_ACTIVEMAP_MAGIC,8,3            ## @ACTIVEMAP_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_activemap_init                 ; -- Begin function activemap_init
	.p2align	2
_activemap_init:                        ; @activemap_init
	.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	x24, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	cmp	w23, #0
	cset	w0, gt
	bl	_PJDLOG_ASSERT
	cmp	x22, #0
	cset	w0, gt
	bl	_PJDLOG_ASSERT
	mov	x0, x22
	bl	_powerof2
	bl	_PJDLOG_ASSERT
	cmp	x21, #0
	cset	w0, gt
	bl	_PJDLOG_ASSERT
	mov	x0, x21
	bl	_powerof2
	bl	_PJDLOG_ASSERT
	cmp	x24, #0
	cset	w0, gt
	bl	_PJDLOG_ASSERT
	mov	w0, #104
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	str	w23, [x0]
	sub	x0, x22, #1
	stp	x22, x24, [x20, #88]
	bl	_bitcount32
	str	w0, [x20, #84]
	sub	w8, w23, #1
	sxtw	x8, w8
	sdiv	x8, x8, x22
	add	w0, w8, #1
	str	w0, [x20, #4]
	bl	_bitstr_size
	str	w0, [x20, #80]
	mov	x1, x21
	bl	_roundup2
	str	xzr, [x20, #72]
	mov	w8, #-2
	stp	w0, w8, [x20, #8]
	add	x0, x20, #64
	bl	_TAILQ_INIT
	str	xzr, [x20, #56]
	ldr	w21, [x20, #4]
	mov	x0, x21
	mov	w1, #104
	bl	_calloc
	str	x0, [x20, #48]
	ldr	w1, [x20, #8]
	mov	w0, #1
	bl	_calloc
	str	x0, [x20, #40]
	mov	x0, x21
	bl	_bit_alloc
	str	x0, [x20, #32]
	ldr	w0, [x20, #4]
	bl	_bit_alloc
	mov	x8, x0
	str	x0, [x20, #24]
	ldr	x0, [x20, #48]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x9, [x20, #40]
	cbz	x9, LBB0_6
; %bb.3:
	ldr	x9, [x20, #32]
	cbz	x9, LBB0_6
; %bb.4:
	cbz	x8, LBB0_6
; %bb.5:
	mov	w0, #0
Lloh0:
	adrp	x8, _ACTIVEMAP_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACTIVEMAP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	str	x20, [x19]
	b	LBB0_15
LBB0_6:
	bl	_free
LBB0_7:
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_free
LBB0_9:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_free
LBB0_11:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_free
LBB0_13:
	str	xzr, [x20, #16]
	mov	x0, x20
	bl	_free
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_14:
	mov	w0, #-1
LBB0_15:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_ACTIVEMAP_MAGIC,8,3            ; @ACTIVEMAP_MAGIC
.subsections_via_symbols
