	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_perm_list_move_and_create   ## -- Begin function dl_perm_list_move_and_create
	.p2align	4, 0x90
_dl_perm_list_move_and_create:          ## @dl_perm_list_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	testl	%esi, %esi
	js	LBB0_5
## %bb.1:
	movl	%edx, %r15d
	testl	%edx, %edx
	js	LBB0_5
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	%esi, (%rdi)
	jle	LBB0_5
## %bb.3:
	cmpl	%r15d, 4(%r14)
	jl	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_dl_perm_list_get_rev_i
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_assert
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_move_r
	movq	%rax, %r15
	leal	1(%rbx), %esi
	movl	%ebx, %edi
	callq	_list_alloc
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_list_add
	incl	4(%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_list_move_and_create   ; -- Begin function dl_perm_list_move_and_create
	.p2align	2
_dl_perm_list_move_and_create:          ; @dl_perm_list_move_and_create
	.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
	tbnz	w1, #31, LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x19, x0
	mov	w0, #-1
	tbnz	w2, #31, LBB0_6
; %bb.2:
	mov	x20, x1
	ldr	w8, [x19]
	cmp	w8, w1
	b.le	LBB0_6
; %bb.3:
	ldr	w8, [x19, #4]
	cmp	w8, w21
	b.ge	LBB0_5
LBB0_4:
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_dl_perm_list_get_rev_i
	cmn	w0, #1
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_move_r
	mov	x21, x0
	add	w1, w20, #1
	mov	x0, x20
	bl	_list_alloc
	mov	x1, x0
	mov	x0, x21
	bl	_list_add
	mov	w0, #0
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
