	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rd_number
_rd_number:                             ## @rd_number
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.rd_number.num+16(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	L___const.rd_number.num(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movabsq	$34473505465988468, %rax        ## imm = 0x7A797877767574
	movq	%rax, -67(%rbp)
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$6, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_stack@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r12), %r9
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movslq	%r15d, %rax
	movb	$0, -96(%rbp,%rax)
	movq	(%r12), %rdi
	callq	_delspc
	movq	%rax, (%r12)
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_3
## %bb.4:
	leaq	-96(%rbp), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	imull	%r15d, %ebx
	addl	%r14d, %ebx
	movq	(%r12), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r12)
	movzbl	1(%rax), %eax
	testb	%al, %al
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_tolower
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r14
	subl	%r13d, %r14d
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$7, (%rax)
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_stack@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
LBB0_9:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movq	(%r12), %rax
	movq	%rax, (%rcx)
LBB0_11:
	movq	(%r12), %rdi
	callq	_delspc
	movq	%rax, (%r12)
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$7, (%rax)
	jl	LBB0_13
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_stack@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.rd_number.num
L___const.rd_number.num:
	.asciz	"0123456789abcdefghijklmnopqrstuvwxyz"

	.comm	_verbose,4,2                    ## @verbose
	.comm	_stderr,4,2                     ## @stderr
L_.str:                                 ## @.str
	.asciz	"%5d (0x%04x): Starting to read number of base %d(string=%s).\n"

	.comm	_stack,8,3                      ## @stack
	.comm	_sp,8,3                         ## @sp
	.comm	_addr,4,2                       ## @addr
L_.str.1:                               ## @.str.1
	.asciz	"%5d (0x%04x): Digit found:%1x.\n"

L_.str.2:                               ## @.str.2
	.asciz	"%5d (0x%04x): rd_number returned %d (%04x).\n"

	.no_dead_strip	_rd_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rd_number
_rd_number:                             ; @rd_number
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, l___const.rd_number.num@PAGE
Lloh4:
	add	x8, x8, l___const.rd_number.num@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	ldur	x8, [x8, #29]
	stur	x8, [sp, #45]
Lloh5:
	adrp	x20, _verbose@GOTPAGE
Lloh6:
	ldr	x20, [x20, _verbose@GOTPAGEOFF]
Lloh7:
	adrp	x26, _stderr@GOTPAGE
Lloh8:
	ldr	x26, [x26, _stderr@GOTPAGEOFF]
Lloh9:
	adrp	x27, _stack@GOTPAGE
Lloh10:
	ldr	x27, [x27, _stack@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh11:
	adrp	x28, _sp@GOTPAGE
Lloh12:
	ldr	x28, [x28, _sp@GOTPAGEOFF]
	cmp	w8, #6
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x26]
	ldr	x8, [x27]
	ldr	x9, [x28]
	ldr	w2, [x8, x9, lsl #2]
Lloh13:
	adrp	x8, _addr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _addr@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	ldr	x8, [x19]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	str	x8, [sp]
	mov	x4, x21
	bl	_fprintf
LBB0_2:
	add	x8, sp, #16
	strb	wzr, [x8, w21, sxtw]
	ldr	x0, [x19]
	bl	_delspc
	str	x0, [x19]
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.3:
	mov	w22, #0
	add	x25, sp, #16
Lloh18:
	adrp	x23, l_.str.1@PAGE
Lloh19:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	w22, w22, w21, w24
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	ldrb	w8, [x8, #1]
	cbz	w8, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_tolower
	mov	x1, x0
	add	x0, sp, #16
	bl	_strchr
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w24, w0, w25
	ldr	w8, [x20]
	cmp	w8, #7
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x27]
	ldr	x9, [x28]
	ldr	w2, [x8, x9, lsl #2]
Lloh20:
	adrp	x8, _addr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _addr@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x1, x23
	mov	x4, x24
	bl	_fprintf
	b	LBB0_4
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x9, LBB0_11
; %bb.10:
	ldr	x8, [x19]
	str	x8, [x9]
LBB0_11:
	ldr	x0, [x19]
	bl	_delspc
	str	x0, [x19]
	ldr	w8, [x20]
	cmp	w8, #7
	b.lt	LBB0_13
; %bb.12:
	ldr	w0, [x26]
	ldr	x8, [x27]
	ldr	x9, [x28]
	ldr	w2, [x8, x9, lsl #2]
Lloh23:
	adrp	x8, _addr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _addr@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	str	x22, [sp]
	mov	x4, x22
	bl	_fprintf
LBB0_13:
	ldr	x8, [sp, #56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.rd_number.num:                ; @__const.rd_number.num
	.asciz	"0123456789abcdefghijklmnopqrstuvwxyz"

	.comm	_verbose,4,2                    ; @verbose
	.comm	_stderr,4,2                     ; @stderr
l_.str:                                 ; @.str
	.asciz	"%5d (0x%04x): Starting to read number of base %d(string=%s).\n"

	.comm	_stack,8,3                      ; @stack
	.comm	_sp,8,3                         ; @sp
	.comm	_addr,4,2                       ; @addr
l_.str.1:                               ; @.str.1
	.asciz	"%5d (0x%04x): Digit found:%1x.\n"

l_.str.2:                               ; @.str.2
	.asciz	"%5d (0x%04x): rd_number returned %d (%04x).\n"

	.no_dead_strip	_rd_number
.subsections_via_symbols
