	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_str_getbyte
_mrb_str_getbyte:                       ## @mrb_str_getbyte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	leaq	L_.str(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_mrb_get_args
	movl	%ebx, %edi
	callq	_RSTRING_LEN
	cmpq	-16(%rbp), %rax
	jbe	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	callq	_RSTRING_PTR
	movq	-16(%rbp), %rcx
	movzbl	(%rax,%rcx,8), %edi
	callq	_mrb_fixnum_value
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_mrb_nil_value
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i"

	.no_dead_strip	_mrb_str_getbyte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_str_getbyte
_mrb_str_getbyte:                       ; @mrb_str_getbyte
	.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	x19, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_mrb_get_args
	mov	x0, x19
	bl	_RSTRING_LEN
	ldr	x8, [sp, #8]
	cmp	x0, x8
	b.ls	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_RSTRING_PTR
	ldr	x8, [sp, #8]
	ldr	x8, [x0, x8, lsl #3]
	and	w0, w8, #0xff
	bl	_mrb_fixnum_value
	b	LBB0_3
LBB0_2:
	bl	_mrb_nil_value
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i"

	.no_dead_strip	_mrb_str_getbyte
.subsections_via_symbols
