	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_str_byteslice
_mrb_str_byteslice:                     ## @mrb_str_byteslice
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_mrb_get_argc
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_mrb_get_args
	movl	-20(%rbp), %edx
LBB0_9:
	movl	-24(%rbp), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mrb_str_substr
	jmp	LBB0_15
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_mrb_get_args
	movl	-20(%rbp), %edi
	callq	_mrb_type
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_11
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_13
## %bb.5:
	movl	-20(%rbp), %edi
	jmp	LBB0_12
LBB0_6:
	movl	%r14d, %edi
	callq	_RSTRING_LEN
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %esi
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	leaq	-28(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %r8d
	callq	_mrb_range_beg_len
	cmpl	$2, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.8:
	movl	-28(%rbp), %edx
	jmp	LBB0_9
LBB0_11:
	movl	-20(%rbp), %edi
	callq	_mrb_float
	movl	%eax, %edi
	callq	_mrb_fixnum_value
	movl	%eax, %edi
	movl	%eax, -20(%rbp)
LBB0_12:
	callq	_mrb_fixnum
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_mrb_str_substr
	jmp	LBB0_15
LBB0_13:
	movq	_E_TYPE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
	jmp	LBB0_14
LBB0_10:
	movq	_E_RANGE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%rbp), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raisef
LBB0_14:
	xorl	%eax, %eax
	callq	_mrb_nil_value
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ii"

L_.str.1:                               ## @.str.1
	.asciz	"o|i"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_E_RANGE_ERROR,4,2              ## @E_RANGE_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"%S out of range"

	.comm	_E_TYPE_ERROR,4,2               ## @E_TYPE_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"wrong type of argument"

	.no_dead_strip	_mrb_str_byteslice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_str_byteslice
_mrb_str_byteslice:                     ; @mrb_str_byteslice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_mrb_get_argc
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	bl	_mrb_get_args
	ldr	w2, [sp, #12]
LBB0_2:
	ldr	w3, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_str_substr
	b	LBB0_15
LBB0_3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	bl	_mrb_get_args
	ldr	w0, [sp, #12]
	bl	_mrb_type
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w0, #129
	b.eq	LBB0_10
; %bb.5:
	cmp	w0, #130
	b.ne	LBB0_12
; %bb.6:
	ldr	w0, [sp, #12]
	b	LBB0_11
LBB0_7:
	mov	x0, x20
	bl	_RSTRING_LEN
	mov	x4, x0
	str	w0, [sp, #8]
	ldr	w1, [sp, #12]
Lloh4:
	adrp	x8, _TRUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh6:
	ldr	w5, [x8]
	add	x2, sp, #4
	add	x3, sp, #8
	mov	x0, x19
	bl	_mrb_range_beg_len
	cmp	w0, #2
	b.eq	LBB0_13
; %bb.8:
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.9:
	ldr	w2, [sp, #4]
	b	LBB0_2
LBB0_10:
	ldr	w0, [sp, #12]
	bl	_mrb_float
	bl	_mrb_fixnum_value
	str	w0, [sp, #12]
LBB0_11:
	bl	_mrb_fixnum
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_mrb_str_substr
	b	LBB0_15
LBB0_12:
Lloh7:
	adrp	x8, _E_TYPE_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_TYPE_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
	b	LBB0_14
LBB0_13:
Lloh12:
	adrp	x8, _E_RANGE_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_RANGE_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mrb_raisef
LBB0_14:
	bl	_mrb_nil_value
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ii"

l_.str.1:                               ; @.str.1
	.asciz	"o|i"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_E_RANGE_ERROR,4,2              ; @E_RANGE_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"%S out of range"

	.comm	_E_TYPE_ERROR,4,2               ; @E_TYPE_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"wrong type of argument"

	.no_dead_strip	_mrb_str_byteslice
.subsections_via_symbols
