	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_remap                    ## -- Begin function alloc_remap
	.p2align	4, 0x90
_alloc_remap:                           ## @alloc_remap
	.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	%rsi, %rax
	movq	_node_remap_alloc_vaddr@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movslq	%edi, %r15
	movq	(%rcx,%r15,8), %rbx
	movq	_L1_CACHE_BYTES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	leaq	(%rbx,%rax), %rcx
	movq	_node_remap_end_vaddr@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rdx,%r15,8), %rcx
	jae	LBB0_4
## %bb.2:
	movq	(%r14), %rcx
	addq	%rax, (%rcx,%r15,8)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_memset
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_node_remap_alloc_vaddr,8,3     ## @node_remap_alloc_vaddr
	.comm	_L1_CACHE_BYTES,4,2             ## @L1_CACHE_BYTES
	.comm	_node_remap_end_vaddr,8,3       ## @node_remap_end_vaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_remap                    ; -- Begin function alloc_remap
	.p2align	2
_alloc_remap:                           ; @alloc_remap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _node_remap_alloc_vaddr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _node_remap_alloc_vaddr@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x19, [x9, w0, sxtw #3]
Lloh2:
	adrp	x9, _L1_CACHE_BYTES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _L1_CACHE_BYTES@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_ALIGN
	cbz	x19, LBB0_4
; %bb.1:
	mov	x2, x0
Lloh5:
	adrp	x9, _node_remap_end_vaddr@GOTPAGE
Lloh6:
	ldr	x9, [x9, _node_remap_end_vaddr@GOTPAGEOFF]
	sxtw	x8, w20
Lloh7:
	ldr	x9, [x9]
	ldr	x9, [x9, x8, lsl #3]
	add	x10, x19, x0
	cmp	x10, x9
	b.hs	LBB0_3
; %bb.2:
	ldr	x9, [x21]
	lsl	x8, x8, #3
	ldr	x10, [x9, x8]
	add	x10, x10, x2
	str	x10, [x9, x8]
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_node_remap_alloc_vaddr,8,3     ; @node_remap_alloc_vaddr
	.comm	_L1_CACHE_BYTES,4,2             ; @L1_CACHE_BYTES
	.comm	_node_remap_end_vaddr,8,3       ; @node_remap_end_vaddr
.subsections_via_symbols
