	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_trp_init_mem                ## -- Begin function dl_trp_init_mem
	.p2align	4, 0x90
_dl_trp_init_mem:                       ## @dl_trp_init_mem
	.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
	movl	%edi, %ebx
	movq	_free_nodes_cnt@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setg	%dil
	callq	_assert
	movslq	%ebx, %r15
	leal	(,%r15,4), %edi
	callq	_dl_malloc
	movq	_free_nodes@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_allocated_nodes_cnt@GOTPCREL(%rip), %rax
	addl	%r15d, (%rax)
	addq	%r15, (%r14)
	leal	-1(%r15), %r9d
	cmpl	$2, %r15d
	jl	LBB0_8
## %bb.1:
	movl	%r9d, %r8d
	cmpl	$1, %r9d
	jne	LBB0_3
## %bb.2:
	movl	$1, %esi
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_7
	jmp	LBB0_8
LBB0_3:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	leaq	(%rcx,%rdi), %rax
	addq	$16, %rax
	movq	%rax, 8(%rcx,%rdi)
	movq	(%rbx), %rax
	movq	$0, (%rax,%rdi)
	addq	$2, %rdx
	movq	(%rbx), %rax
	leaq	(%rax,%rdi), %rcx
	addq	$32, %rcx
	movq	%rcx, 24(%rax,%rdi)
	movq	(%rbx), %rax
	movq	$0, 16(%rax,%rdi)
	addq	$32, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_4
## %bb.5:
	leaq	1(%rdx), %rsi
	testb	$1, %r8b
	je	LBB0_8
LBB0_7:
	movq	(%rbx), %rax
	shlq	$4, %rsi
	addq	%rax, %rsi
	shlq	$4, %rdx
	movq	%rsi, 8(%rax,%rdx)
	movq	(%rbx), %rax
	movq	$0, (%rax,%rdx)
LBB0_8:
	movq	(%rbx), %rax
	movslq	%r9d, %rcx
	shlq	$4, %rcx
	movq	$0, (%rax,%rcx)
	movq	(%rbx), %rax
	movq	$0, 8(%rax,%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_free_nodes_cnt,8,3             ## @free_nodes_cnt
	.comm	_free_nodes,8,3                 ## @free_nodes
	.comm	_allocated_nodes_cnt,4,2        ## @allocated_nodes_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_trp_init_mem                ; -- Begin function dl_trp_init_mem
	.p2align	2
_dl_trp_init_mem:                       ; @dl_trp_init_mem
	.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	x19, x0
Lloh0:
	adrp	x21, _free_nodes_cnt@GOTPAGE
Lloh1:
	ldr	x21, [x21, _free_nodes_cnt@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	cmp	w19, #0
	cset	w0, gt
	bl	_assert
	sxtw	x22, w19
	lsl	w0, w19, #2
	bl	_dl_malloc
Lloh2:
	adrp	x20, _free_nodes@GOTPAGE
Lloh3:
	ldr	x20, [x20, _free_nodes@GOTPAGEOFF]
	str	x0, [x20]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh4:
	adrp	x8, _allocated_nodes_cnt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _allocated_nodes_cnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	ldr	x8, [x21]
	add	x8, x8, x22
	str	x8, [x21]
	sub	x8, x22, #1
	cmp	w19, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	mov	w10, w8
	lsl	x10, x10, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x20]
	add	x11, x11, x9
	add	x12, x11, #16
	str	x12, [x11, #8]
	ldr	x11, [x20]
	str	xzr, [x11, x9]
	add	x9, x9, #16
	cmp	x10, x9
	b.ne	LBB0_2
LBB0_3:
	ldr	x9, [x20]
	lsl	x8, x8, #4
	str	xzr, [x9, x8]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	xzr, [x8, #8]
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_free_nodes_cnt,8,3             ; @free_nodes_cnt
	.comm	_free_nodes,8,3                 ; @free_nodes
	.comm	_allocated_nodes_cnt,4,2        ; @allocated_nodes_cnt
.subsections_via_symbols
