	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_ary_reverse
_mrb_ary_reverse:                       ## @mrb_ary_reverse
	.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
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_mrb_ary_ptr
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ARY_LEN
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ary_new_capa
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ARY_LEN
	testq	%rax, %rax
	jle	LBB0_16
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ARY_PTR
	movq	%rax, %rbx
	leaq	(%rax,%r15,4), %r12
	movq	%r14, %rdi
	callq	_ARY_PTR
	leaq	4(%rbx), %rdx
	cmpq	%rdx, %r12
	movq	%rdx, %r10
	cmovaq	%r12, %r10
	leaq	(%rax,%r15,4), %rcx
	movq	%rbx, %rsi
	notq	%rsi
	addq	%rsi, %r10
	cmpq	$28, %r10
	jb	LBB0_13
## %bb.2:
	cmpq	%rdx, %r12
	cmovaq	%r12, %rdx
	addq	%rsi, %rdx
	shrq	$2, %rdx
	leaq	(%rbx,%rdx,4), %rsi
	addq	$4, %rsi
	notq	%rdx
	addq	%r15, %rdx
	leaq	(%rax,%rdx,4), %rdx
	cmpq	%rsi, %rdx
	jae	LBB0_4
## %bb.3:
	cmpq	%rcx, %rbx
	jb	LBB0_13
LBB0_4:
	shrq	$2, %r10
	incq	%r10
	movq	%r10, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.6:
	movq	%r9, %rdi
	andq	$-2, %rdi
	leaq	48(%rbx), %rsi
	leaq	(%rax,%r15,4), %rdx
	addq	$-16, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rsi), %xmm0
	movdqu	-32(%rsi), %xmm1
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, (%rdx,%rax,4)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, -16(%rdx,%rax,4)
	movdqu	-16(%rsi), %xmm0
	movdqu	(%rsi), %xmm1
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -32(%rdx,%rax,4)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, -48(%rdx,%rax,4)
	addq	$64, %rsi
	addq	$-16, %rax
	addq	$-2, %rdi
	jne	LBB0_7
## %bb.8:
	negq	%rax
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	leaq	(,%rax,4), %rdx
	movq	%rcx, %rsi
	subq	%rdx, %rsi
	movdqu	(%rbx,%rax,4), %xmm0
	movdqu	16(%rbx,%rax,4), %xmm1
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	%xmm0, -16(%rsi)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	movdqu	%xmm0, -32(%rsi)
LBB0_11:
	cmpq	%r8, %r10
	je	LBB0_15
## %bb.12:
	leaq	(%rbx,%r8,4), %rbx
	shlq	$2, %r8
	subq	%r8, %rcx
LBB0_13:
	addq	$-4, %rcx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	addq	$4, %rbx
	movl	%eax, (%rcx)
	addq	$-4, %rcx
	cmpq	%r12, %rbx
	jb	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ARY_SET_LEN
LBB0_16:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_obj_value                  ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mrb_ary_reverse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_ary_reverse
_mrb_ary_reverse:                       ; @mrb_ary_reverse
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_mrb_ary_ptr
	mov	x21, x0
	bl	_ARY_LEN
	mov	x1, x0
	mov	x0, x19
	bl	_ary_new_capa
	mov	x19, x0
	mov	x0, x21
	bl	_ARY_LEN
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	bl	_ARY_PTR
	mov	x21, x0
	lsl	x23, x20, #2
	add	x22, x0, x23
	mov	x0, x19
	bl	_ARY_PTR
	add	x8, x0, x23
	add	x10, x21, #4
	cmp	x22, x10
	csel	x9, x22, x10, hi
	mvn	x11, x21
	add	x9, x9, x11
	cmp	x9, #60
	b.lo	LBB0_6
; %bb.2:
	add	x12, x21, x20, lsl #2
	cmp	x12, x10
	csel	x10, x12, x10, hi
	add	x10, x10, x11
	lsr	x10, x10, #2
	mvn	x11, x10
	add	x11, x20, x11
	add	x11, x0, x11, lsl #2
	add	x10, x21, x10, lsl #2
	add	x10, x10, #4
	cmp	x11, x10
	ccmp	x21, x8, #2, lo
	b.lo	LBB0_6
; %bb.3:
	lsr	x9, x9, #2
	add	x9, x9, #1
	and	x10, x9, #0x7ffffffffffffff0
	lsl	x12, x10, #2
	add	x11, x21, x12
	sub	x8, x8, x12
	add	x12, x21, #32
	add	x13, x0, x20, lsl #2
	sub	x13, x13, #32
	mov	x14, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	rev64.4s	v0, v0
	ext.16b	v0, v0, v0, #8
	rev64.4s	v1, v1
	ext.16b	v1, v1, v1, #8
	stp	q1, q0, [x13]
	rev64.4s	v0, v2
	ext.16b	v0, v0, v0, #8
	rev64.4s	v1, v3
	ext.16b	v1, v1, v1, #8
	stp	q1, q0, [x13, #-32]
	sub	x13, x13, #64
	sub	x14, x14, #16
	cbnz	x14, LBB0_4
; %bb.5:
	mov	x21, x11
	cmp	x9, x10
	b.eq	LBB0_8
LBB0_6:
	sub	x8, x8, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21], #4
	str	w9, [x8], #-4
	cmp	x21, x22
	b.lo	LBB0_7
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_ARY_SET_LEN
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mrb_obj_value
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mrb_ary_reverse
.subsections_via_symbols
