	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_perm_list_move              ## -- Begin function dl_perm_list_move
	.p2align	4, 0x90
_dl_perm_list_move:                     ## @dl_perm_list_move
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testl	%esi, %esi
	js	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	%esi, %eax
	jle	LBB0_9
## %bb.2:
	movl	%edx, %r15d
	testl	%edx, %edx
	js	LBB0_9
## %bb.3:
	cmpl	%r15d, %eax
	jle	LBB0_9
## %bb.4:
	xorl	%r14d, %r14d
	cmpl	%r15d, %esi
	je	LBB0_9
## %bb.5:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_move_r
	movq	16(%rax), %r12
	movq	(%r12), %rdi
	leaq	1(%rdi), %rsi
	cmpq	8(%r12), %rsi
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_list_del
	jmp	LBB0_8
LBB0_7:
	callq	_list_alloc
	incq	(%r12)
	movq	%rax, %r12
LBB0_8:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_move_r
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_list_add
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	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              ; -- Begin function dl_perm_list_move
	.p2align	2
_dl_perm_list_move:                     ; @dl_perm_list_move
	.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_7
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_7
; %bb.2:
	mov	x19, x2
	mov	w0, #-1
	tbnz	w2, #31, LBB0_8
; %bb.3:
	cmp	w8, w19
	b.le	LBB0_8
; %bb.4:
	cmp	w1, w19
	b.eq	LBB0_11
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_move_r
	ldr	x21, [x0, #16]
	ldp	x0, x8, [x21]
	add	x1, x0, #1
	cmp	x1, x8
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_list_del
	b	LBB0_10
LBB0_7:
	mov	w0, #-1
LBB0_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
LBB0_9:
	bl	_list_alloc
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	mov	x21, x0
LBB0_10:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_move_r
	mov	x1, x21
	bl	_list_add
LBB0_11:
	mov	w0, #0
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
