	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_input_stream_byteindex
_mrb_input_stream_byteindex:            ## @mrb_input_stream_byteindex
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_DATA_PTR
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_assert_is_open
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mrb_get_args
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%eax, %edi
	callq	_mrb_fixnum_value
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	callq	_mrb_raisef
LBB0_2:
	movl	-28(%rbp), %esi
	cmpl	$256, %esi                      ## imm = 0x100
	jb	LBB0_4
## %bb.3:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
	movl	-28(%rbp), %esi
LBB0_4:
	movq	%r14, %rdi
	callq	_seek_char
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	%eax, %edi
	callq	_mrb_fixnum_value
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	callq	_mrb_nil_value
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i"

	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"wrong number of arguments (%S for 1)"

L_.str.2:                               ## @.str.2
	.asciz	"index should be a byte (0 - 255)"

	.no_dead_strip	_mrb_input_stream_byteindex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_input_stream_byteindex
_mrb_input_stream_byteindex:            ; @mrb_input_stream_byteindex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	mov	x0, x1
	bl	_DATA_PTR
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_assert_is_open
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_mrb_get_args
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	bl	_mrb_fixnum_value
	mov	x3, x0
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_mrb_raisef
LBB0_2:
	ldr	w1, [sp, #12]
	cmp	w1, #256
	b.lo	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_mrb_raise
	ldr	w1, [sp, #12]
LBB0_4:
	mov	x0, x19
	bl	_seek_char
	tbnz	w0, #31, LBB0_6
; %bb.5:
	bl	_mrb_fixnum_value
	b	LBB0_7
LBB0_6:
	bl	_mrb_nil_value
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i"

	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"wrong number of arguments (%S for 1)"

l_.str.2:                               ; @.str.2
	.asciz	"index should be a byte (0 - 255)"

	.no_dead_strip	_mrb_input_stream_byteindex
.subsections_via_symbols
