	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_ary_shuffle_bang
_mrb_ary_shuffle_bang:                  ## @mrb_ary_shuffle_bang
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movl	%esi, %edi
	callq	_RARRAY_LEN
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	_mt_state_type@GOTPCREL(%rip), %rcx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mrb_get_args
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_get_random_state
	movq	%rax, %rsi
	movq	%rax, -48(%rbp)
LBB0_3:
	movq	%r14, %rdi
	callq	_mrb_random_rand_seed
	movl	%r15d, %edi
	callq	_mrb_ary_ptr
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mrb_ary_modify
	movl	%r15d, %edi
	callq	_RARRAY_LEN
	decl	%eax
	je	LBB0_6
## %bb.4:
	movslq	%eax, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_RARRAY_PTR
	movq	%rax, %r13
	movq	-48(%rbp), %r12
	movl	%r15d, %edi
	callq	_RARRAY_LEN
	movl	%eax, %edi
	callq	_mrb_fixnum_value
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_mrb_random_mt_rand
	movl	%eax, %edi
	callq	_mrb_fixnum
	movl	(%r13,%rbx,4), %ecx
	movl	(%r13,%rax,4), %edx
	movl	%edx, (%r13,%rbx,4)
	movl	%ecx, (%r13,%rax,4)
	decq	%rbx
	jne	LBB0_5
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"|d"

	.comm	_mt_state_type,4,2              ## @mt_state_type
	.no_dead_strip	_mrb_ary_shuffle_bang
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_ary_shuffle_bang
_mrb_ary_shuffle_bang:                  ; @mrb_ary_shuffle_bang
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	mov	x0, x1
	bl	_RARRAY_LEN
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x3, _mt_state_type@GOTPAGE
Lloh3:
	ldr	x3, [x3, _mt_state_type@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x20
	bl	_mrb_get_args
	ldr	x1, [sp, #8]
	cbnz	x1, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_get_random_state
	mov	x1, x0
	str	x0, [sp, #8]
LBB0_3:
	mov	x0, x20
	bl	_mrb_random_rand_seed
	mov	x0, x19
	bl	_mrb_ary_ptr
	mov	x1, x0
	mov	x0, x20
	bl	_mrb_ary_modify
	mov	x0, x19
	bl	_RARRAY_LEN
	subs	w8, w0, #1
	b.eq	LBB0_6
; %bb.4:
	sxtw	x23, w8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_RARRAY_PTR
	mov	x21, x0
	ldr	x22, [sp, #8]
	mov	x0, x19
	bl	_RARRAY_LEN
	bl	_mrb_fixnum_value
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_mrb_random_mt_rand
	bl	_mrb_fixnum
	lsl	x8, x23, #2
	ldr	w9, [x21, x8]
	lsl	x10, x0, #2
	ldr	w11, [x21, x10]
	str	w11, [x21, x8]
	str	w9, [x21, x10]
	subs	x23, x23, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"|d"

	.comm	_mt_state_type,4,2              ; @mt_state_type
	.no_dead_strip	_mrb_ary_shuffle_bang
.subsections_via_symbols
