	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_digit
_read_digit:                            ## @read_digit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$48, %edi
	jne	LBB0_8
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rclex_peekch
	movl	$8, %r12d
	cmpl	$110, %eax
	jg	LBB0_5
## %bb.2:
	cmpl	$79, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$88, %eax
	je	LBB0_4
	jmp	LBB0_9
LBB0_8:
	movl	%edi, %r15d
	addl	$-48, %r15d
	movl	$10, %r12d
	jmp	LBB0_9
LBB0_5:
	cmpl	$120, %eax
	je	LBB0_4
## %bb.6:
	cmpl	$111, %eax
	jne	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rclex_readch
	jmp	LBB0_9
LBB0_4:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rclex_readch
	movl	$16, %r12d
LBB0_9:
	xorl	%eax, %eax
	callq	_rclex_peekch
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.10:
	movl	%eax, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	imull	%r12d, %r15d
	addl	%ebx, %r15d
	xorl	%eax, %eax
	callq	_rclex_peekch
	movl	%eax, %ebx
	movl	%r14d, %r13d
	cmpl	$-1, %eax
	je	LBB0_18
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_ISDIGIT
	movl	$-48, %ecx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	-97(%rbx), %eax
	movl	$-87, %ecx
	cmpl	$6, %eax
	jb	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	-65(%rbx), %eax
	movl	$-55, %ecx
	cmpl	$5, %eax
	ja	LBB0_18
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	addl	%ecx, %ebx
	xorl	%eax, %eax
	callq	_rclex_readch
	movl	$1, %r14d
	testl	%r13d, %r13d
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r14d, %r14d
	cmpl	%r12d, %ebx
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_rcparse_warning
	movl	$1, %r14d
	jmp	LBB0_17
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"digit exceeds base"

	.no_dead_strip	_read_digit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_digit
_read_digit:                            ; @read_digit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	subs	w19, w0, #48
	b.ne	LBB0_4
; %bb.1:
	mov	w22, #8
	bl	_rclex_peekch
	cmp	w0, #110
	b.gt	LBB0_5
; %bb.2:
	cmp	w0, #79
	b.eq	LBB0_7
; %bb.3:
	cmp	w0, #88
	b.eq	LBB0_8
	b	LBB0_9
LBB0_4:
	mov	w22, #10
	b	LBB0_9
LBB0_5:
	cmp	w0, #120
	b.eq	LBB0_8
; %bb.6:
	cmp	w0, #111
	b.ne	LBB0_9
LBB0_7:
	bl	_rclex_readch
	mov	w19, #0
	mov	w22, #8
	b	LBB0_9
LBB0_8:
	bl	_rclex_readch
	mov	w19, #0
	mov	w22, #16
LBB0_9:
	bl	_rclex_peekch
	cmn	w0, #1
	b.eq	LBB0_23
; %bb.10:
	mov	x21, x0
	mov	w23, #0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
	bl	_rcparse_warning
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w23, #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	madd	w19, w19, w22, w21
	bl	_rclex_peekch
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_23
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_ISDIGIT
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, #-48
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	w8, w21, #97
	cmp	w8, #6
	b.hs	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, #-87
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	w8, w21, #65
	cmp	w8, #5
	b.hi	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w8, #-55
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w21, w21, w8
	bl	_rclex_readch
	cbnz	w23, LBB0_12
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w21, w22
	b.ge	LBB0_11
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w23, #0
	b	LBB0_13
LBB0_23:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"digit exceeds base"

	.no_dead_strip	_read_digit
.subsections_via_symbols
