	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_ary_slice_bang
_mrb_ary_slice_bang:                    ## @mrb_ary_slice_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_mrb_ary_ptr
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_mrb_ary_modify
	movq	%r13, %rdi
	callq	_mrb_get_argc
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_mrb_get_args
	movq	-64(%rbp), %rdi
	callq	_mrb_type
	cmpl	$129, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.3:
	movq	-64(%rbp), %r14
	movq	%r15, %rdi
	callq	_ARY_LEN
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rax, %r8
	callq	_mrb_range_beg_len
	cmpl	$1, %eax
	je	LBB0_5
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	callq	_mrb_get_args
LBB0_5:
	movq	%r15, %rdi
	callq	_ARY_LEN
	movq	%rax, %rbx
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:
	testq	%rax, %rax
	jns	LBB0_9
	jmp	LBB0_13
LBB0_7:
	movq	-64(%rbp), %r8
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	_mrb_funcall
	jmp	LBB0_14
LBB0_8:
	addq	%rbx, %rax
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	js	LBB0_13
LBB0_9:
	cmpq	%rax, %rbx
	jl	LBB0_13
## %bb.10:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	js	LBB0_13
## %bb.11:
	movq	%rbx, %rcx
	subq	%rax, %rcx
	jne	LBB0_16
## %bb.12:
	movq	%r13, %rdi
	callq	_mrb_ary_new
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	callq	_mrb_nil_value
LBB0_14:
	movq	%rax, %r14
LBB0_15:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	cmpq	%rcx, %rsi
	jle	LBB0_18
## %bb.17:
	movq	%rcx, -48(%rbp)
	movq	%rcx, %rsi
LBB0_18:
	movq	%r13, %rdi
	callq	_mrb_ary_new_capa
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ARY_PTR
	movq	%rax, %r15
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	jle	LBB0_23
## %bb.19:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%rax,8), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r12,8), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mrb_ary_push
	incq	%r12
	movq	-48(%rbp), %rcx
	cmpq	%rcx, %r12
	jl	LBB0_20
## %bb.21:
	movq	-56(%rbp), %rax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	leaq	(%r15,%rcx,8), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	%rcx, (%r15,%rax,8)
	incq	%rax
	movq	-48(%rbp), %rcx
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdx
	subq	%rcx, %rdx
	cmpq	%rdx, %rax
	jl	LBB0_22
## %bb.24:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mrb_ary_resize
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"o|i"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"delete_at"

L_.str.2:                               ## @.str.2
	.asciz	"ii"

	.no_dead_strip	_mrb_ary_slice_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_slice_bang
_mrb_ary_slice_bang:                    ; @mrb_ary_slice_bang
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_mrb_ary_ptr
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mrb_ary_modify
	mov	x0, x20
	bl	_mrb_get_argc
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	add	x3, sp, #16
	mov	x0, x20
	bl	_mrb_get_args
	ldr	x0, [sp, #8]
	bl	_mrb_type
	cmp	w0, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.3:
	ldr	x22, [sp, #8]
	mov	x0, x21
	bl	_ARY_LEN
	mov	x4, x0
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x22
	bl	_mrb_range_beg_len
	cmp	w0, #1
	b.eq	LBB0_5
	b	LBB0_13
LBB0_4:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x20
	bl	_mrb_get_args
LBB0_5:
	mov	x0, x21
	bl	_ARY_LEN
	mov	x22, x0
	ldr	x8, [sp, #24]
	tbnz	x8, #63, LBB0_8
; %bb.6:
	tbz	x8, #63, LBB0_9
	b	LBB0_13
LBB0_7:
	ldr	x4, [sp, #8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_mrb_funcall
	b	LBB0_14
LBB0_8:
	add	x8, x8, x22
	str	x8, [sp, #24]
	tbnz	x8, #63, LBB0_13
LBB0_9:
	cmp	x22, x8
	b.lt	LBB0_13
; %bb.10:
	ldr	x1, [sp, #16]
	tbnz	x1, #63, LBB0_13
; %bb.11:
	subs	x8, x22, x8
	b.ne	LBB0_16
; %bb.12:
	mov	x0, x20
	bl	_mrb_ary_new
	b	LBB0_14
LBB0_13:
	bl	_mrb_nil_value
LBB0_14:
	mov	x23, x0
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	cmp	x1, x8
	b.le	LBB0_18
; %bb.17:
	str	x8, [sp, #16]
	mov	x1, x8
LBB0_18:
	mov	x0, x20
	bl	_mrb_ary_new_capa
	mov	x23, x0
	mov	x0, x21
	bl	_ARY_PTR
	mov	x21, x0
	ldp	x9, x8, [sp, #16]
	cmp	x9, #1
	b.lt	LBB0_23
; %bb.19:
	mov	x24, #0
	add	x25, x21, x8, lsl #3
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x25, x24, lsl #3]
	mov	x0, x20
	mov	x1, x23
	bl	_mrb_ary_push
	add	x24, x24, #1
	ldr	x9, [sp, #16]
	cmp	x24, x9
	b.lt	LBB0_20
; %bb.21:
	ldr	x8, [sp, #24]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	lsl	x10, x8, #3
	add	x9, x21, x9, lsl #3
	ldr	x9, [x9, x10]
	str	x9, [x21, x10]
	add	x8, x8, #1
	ldr	x9, [sp, #16]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	sub	x2, x22, x9
	cmp	x8, x2
	b.lt	LBB0_22
; %bb.24:
	mov	x0, x20
	mov	x1, x19
	bl	_mrb_ary_resize
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"o|i"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"delete_at"

l_.str.2:                               ; @.str.2
	.asciz	"ii"

	.no_dead_strip	_mrb_ary_slice_bang
.subsections_via_symbols
