	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_perm_get_rev_i              ## -- Begin function dl_perm_get_rev_i
	.p2align	4, 0x90
_dl_perm_get_rev_i:                     ## @dl_perm_get_rev_i
	.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, %r14d
	testl	%esi, %esi
	js	LBB0_13
## %bb.1:
	movl	%esi, %r15d
	cmpl	%esi, (%rdi)
	jle	LBB0_13
## %bb.2:
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$40, %rbx
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	cmpl	%r15d, %eax
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r15d, 4(%rbx)
	jg	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %rbx
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	subl	%eax, %r15d
	movl	16(%rbx), %edi
	callq	_LEN
	movl	%eax, %r14d
	addl	%r15d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rcx
	movq	%rax, %rbx
	cmpq	%rcx, 24(%rax)
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	16(%rbx), %edi
	callq	_LEN
	addl	%r14d, %eax
	addl	4(%rbx), %eax
	subl	(%rbx), %eax
	movl	%eax, %r14d
	jmp	LBB0_8
	.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_get_rev_i              ; -- Begin function dl_perm_get_rev_i
	.p2align	2
_dl_perm_get_rev_i:                     ; @dl_perm_get_rev_i
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	tbnz	w1, #31, LBB0_7
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_7
; %bb.2:
	ldr	x20, [x0, #8]
	cbnz	x20, LBB0_4
	b	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x20, #40
	ldr	x20, [x8]
	cbz	x20, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w8, w1
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20, #4]
	cmp	w9, w1
	b.gt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x20, #8
	ldr	x20, [x8]
	cbnz	x20, LBB0_4
LBB0_7:
	mov	w19, #-1
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	sub	w19, w1, w8
	ldr	w0, [x20, #16]
	bl	_LEN
	add	w19, w19, w0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x9, x20
	mov	x20, x8
	ldr	x8, [x8, #24]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x20, #16]
	bl	_LEN
	ldp	w9, w8, [x20]
	add	w10, w0, w19
	add	w8, w10, w8
	sub	w19, w8, w9
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
