	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_activemap_copyin               ## -- Begin function activemap_copyin
	.p2align	4, 0x90
_activemap_copyin:                      ## @activemap_copyin
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_ACTIVEMAP_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	cmpq	%r15, 8(%rbx)
	setbe	%dil
	callq	_PJDLOG_ASSERT
	movl	48(%rbx), %edi
	movq	8(%rbx), %rdx
	movq	%r14, %rsi
	callq	_memcpy
	movl	40(%rbx), %edi
	movq	8(%rbx), %rdx
	movq	%r14, %rsi
	callq	_memcpy
	movl	44(%rbx), %edi
	movq	8(%rbx), %rdx
	movq	%r14, %rsi
	callq	_memcpy
	movl	16(%rbx), %esi
	movl	40(%rbx), %edi
	leaq	-28(%rbp), %rdx
	callq	_bit_ffs
	cmpl	$-1, -28(%rbp)
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_activemap_sync_rewind
	movq	$0, 24(%rbx)
	movl	-28(%rbp), %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-28(%rbp), %esi
	incl	%esi
	movl	%esi, -28(%rbp)
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	16(%rbx), %esi
	jge	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rbx), %edi
	callq	_bit_test
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	callq	_ext2reqs
	movq	32(%rbx), %rcx
	movslq	-28(%rbp), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incq	24(%rbx)
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_copyin               ; -- Begin function activemap_copyin
	.p2align	2
_activemap_copyin:                      ; @activemap_copyin
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ACTIVEMAP_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACTIVEMAP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	x8, [x19, #8]
	cmp	x8, x20
	cset	w0, ls
	bl	_PJDLOG_ASSERT
	ldr	w0, [x19, #48]
	ldr	x2, [x19, #8]
	mov	x1, x21
	bl	_memcpy
	ldr	w0, [x19, #40]
	ldr	x2, [x19, #8]
	mov	x1, x21
	bl	_memcpy
	ldr	w0, [x19, #44]
	ldr	x2, [x19, #8]
	mov	x1, x21
	bl	_memcpy
	ldr	w0, [x19, #40]
	ldr	w1, [x19, #16]
	add	x2, sp, #12
	bl	_bit_ffs
	ldr	w8, [sp, #12]
	cmn	w8, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_activemap_sync_rewind
	str	xzr, [x19, #24]
	ldr	w1, [sp, #12]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	add	w1, w8, #1
	str	w1, [sp, #12]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #16]
	cmp	w1, w8
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #40]
	bl	_bit_test
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_ext2reqs
	ldrsw	x8, [sp, #12]
	ldp	x10, x9, [x19, #24]
	str	w0, [x9, x8, lsl #2]
	add	x8, x10, #1
	str	x8, [x19, #24]
	b	LBB0_2
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ACTIVEMAP_MAGIC,8,3            ; @ACTIVEMAP_MAGIC
.subsections_via_symbols
