	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_perm_move_and_create        ## -- Begin function dl_perm_move_and_create
	.p2align	4, 0x90
_dl_perm_move_and_create:               ## @dl_perm_move_and_create
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %r15d
	testl	%esi, %esi
	js	LBB0_8
## %bb.1:
	movl	%edx, %r12d
	testl	%edx, %edx
	js	LBB0_8
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	%esi, (%rdi)
	jle	LBB0_8
## %bb.3:
	cmpl	%r12d, 4(%r14)
	jl	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_dl_perm_get_rev_i
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_assert
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	8(%r14), %rdi
	cmpl	%r12d, 4(%r14)
	jne	LBB0_6
## %bb.5:
	movq	%rdi, -128(%rbp)
	jmp	LBB0_7
LBB0_6:
	leaq	-96(%rbp), %rdx
	leaq	-120(%rbp), %r15
	leaq	-128(%rbp), %rsi
	movq	%r15, %rcx
	movl	%r12d, %r8d
	callq	_dl_prm_extract
	movq	-128(%rbp), %rdi
	callq	_LEN
	subl	%eax, %r12d
	movq	-120(%rbp), %rdi
	leaq	-104(%rbp), %rdx
	leaq	16(%r14), %r8
	movq	%r15, %rsi
	movl	%r12d, %ecx
	callq	_dl_prm_split_node
LBB0_7:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dl_alloc_prm
	movq	%rax, %r12
	movl	%ebx, (%rax)
	incl	%ebx
	movl	%ebx, 4(%rax)
	movl	$1, 8(%rax)
	xorl	%eax, %eax
	callq	_rand
	movl	%eax, 12(%r12)
	leaq	16(%r14), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_dl_prm_rev_add
	leaq	-112(%rbp), %r13
	movq	%r12, -112(%rbp)
	leaq	-120(%rbp), %rdi
	movq	-128(%rbp), %rsi
	movq	-120(%rbp), %rdx
	movq	%rbx, %rcx
	callq	_dl_prm_merge
	movq	-120(%rbp), %rsi
	movq	-112(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rcx
	callq	_dl_prm_merge
	leaq	-104(%rbp), %rdi
	movq	-112(%rbp), %rsi
	movq	-104(%rbp), %rdx
	movq	%rbx, %rcx
	callq	_dl_prm_merge
	leaq	-96(%rbp), %rdi
	movq	-104(%rbp), %rsi
	movq	-96(%rbp), %rdx
	movq	%rbx, %rcx
	callq	_dl_prm_merge
	movq	-96(%rbp), %rax
	movq	%rax, 8(%r14)
	incl	4(%r14)
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_perm_move_and_create        ; -- Begin function dl_perm_move_and_create
	.p2align	2
_dl_perm_move_and_create:               ; @dl_perm_move_and_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	tbnz	w1, #31, LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x19, x0
	mov	w0, #-1
	tbnz	w2, #31, LBB0_9
; %bb.2:
	mov	x20, x1
	ldr	w8, [x19]
	cmp	w8, w1
	b.le	LBB0_9
; %bb.3:
	ldr	w8, [x19, #4]
	cmp	w8, w21
	b.ge	LBB0_5
LBB0_4:
	mov	w0, #-1
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_dl_perm_get_rev_i
	cmn	w0, #1
	cset	w0, eq
	bl	_assert
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	ldr	w8, [x19, #4]
	ldr	x0, [x19, #8]
	cmp	w8, w21
	b.ne	LBB0_7
; %bb.6:
	str	x0, [sp]
	b	LBB0_8
LBB0_7:
	mov	x23, sp
	add	x2, x23, #32
	orr	x22, x23, #0x8
	mov	x1, sp
	mov	x3, x22
	mov	x4, x21
	bl	_dl_prm_extract
	ldr	x0, [sp]
	bl	_LEN
	sub	w3, w21, w0
	ldr	x0, [sp, #8]
	add	x2, x23, #24
	add	x4, x19, #16
	mov	x1, x22
	bl	_dl_prm_split_node
LBB0_8:
	bl	_dl_alloc_prm
	mov	x21, x0
	add	w8, w20, #1
	stp	w20, w8, [x0]
	mov	w8, #1
	str	w8, [x0, #8]
	bl	_rand
	str	w0, [x21, #12]
	add	x20, x19, #16
	mov	x0, x20
	mov	x1, x21
	bl	_dl_prm_rev_add
	mov	x23, sp
	add	x22, x23, #16
	str	x21, [sp, #16]
	orr	x0, x23, #0x8
	ldp	x1, x2, [sp]
	mov	x3, x20
	bl	_dl_prm_merge
	ldp	x1, x2, [sp, #8]
	mov	x0, x22
	mov	x3, x20
	bl	_dl_prm_merge
	add	x0, x23, #24
	ldp	x1, x2, [sp, #16]
	mov	x3, x20
	bl	_dl_prm_merge
	add	x0, x23, #32
	ldp	x1, x2, [sp, #24]
	mov	x3, x20
	bl	_dl_prm_merge
	mov	w0, #0
	ldr	x8, [sp, #32]
	str	x8, [x19, #8]
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
