	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readint_mrb_int
_readint_mrb_int:                       ## @readint_mrb_int
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_strlen
	movslq	%eax, %r15
	addq	%rbx, %r15
	leal	-2(%r13), %eax
	xorl	%edi, %edi
	cmpl	$35, %eax
	setb	%dil
	callq	_mrb_assert
	xorl	%r12d, %r12d
	cmpb	$43, (%rbx)
	sete	%r12b
	addq	%rbx, %r12
	xorl	%r14d, %r14d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %r12
	jae	LBB0_16
## %bb.1:
	movl	%r13d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movzbl	(%r12), %edi
	callq	_tolower
	movl	$0, %ebx
	testl	%r13d, %r13d
	jle	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_mrb_digitmap@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	%al, (%rcx,%rbx)
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %ebx
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	callq	_codegen_error
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MRB_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	cltd
	idivl	%r13d
	cmpl	%r14d, %eax
	jg	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	imull	%r13d, %r14d
	subl	%ebx, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MRB_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%ebx, %eax
	cltd
	idivl	%r13d
	cmpl	%r14d, %eax
	jl	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	imull	%r13d, %r14d
	addl	%r14d, %ebx
	movl	%ebx, %r14d
	jmp	LBB0_14
LBB0_15:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_16:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_10:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mrb_digitmap,8,3               ## @mrb_digitmap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malformed readint input"

	.comm	_MRB_INT_MIN,4,2                ## @MRB_INT_MIN
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_MRB_INT_MAX,4,2                ## @MRB_INT_MAX
	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_readint_mrb_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readint_mrb_int
_readint_mrb_int:                       ; @readint_mrb_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	mov	x0, x1
	bl	_strlen
	add	x25, x23, w0, sxtw
	sub	w8, w21, #2
	cmp	w8, #35
	cset	w0, lo
	bl	_mrb_assert
	mov	x8, x23
	ldrb	w9, [x8], #1
	cmp	w9, #43
	csel	x27, x23, x8, ne
	cmp	x27, x25
	b.hs	LBB0_16
; %bb.1:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w23, #0
	mov	w28, w21
Lloh0:
	adrp	x26, _MRB_INT_MIN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MRB_INT_MIN@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	cmp	x27, x25
	b.eq	LBB0_17
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldrb	w0, [x27]
	bl	_tolower
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
Lloh4:
	adrp	x8, _mrb_digitmap@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mrb_digitmap@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x8, x19]
	cmp	w9, w0, uxtb
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x19, x19, #1
	cmp	x28, x19
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x28
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, w21
	b.ne	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_codegen_error
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x20, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	add	w8, w8, w19
	sdiv	w8, w8, w21
	cmp	w8, w23
	b.gt	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	neg	w8, w19
	madd	w23, w23, w21, w8
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x8, _MRB_INT_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MRB_INT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	sub	w8, w8, w19
	sdiv	w8, w8, w21
	cmp	w8, w23
	b.lt	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	madd	w23, w23, w21, w19
	b	LBB0_2
LBB0_16:
	mov	w23, #0
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh12:
	adrp	x8, _FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_19
LBB0_18:
	mov	w23, #0
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
	str	x8, [x19]
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_mrb_digitmap,8,3               ; @mrb_digitmap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malformed readint input"

	.comm	_MRB_INT_MIN,4,2                ; @MRB_INT_MIN
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_MRB_INT_MAX,4,2                ; @MRB_INT_MAX
	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_readint_mrb_int
.subsections_via_symbols
