	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decimal
_decimal:                               ## @decimal
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_lbuf@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_LBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	xorl	%r13d, %r13d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	(%r15), %r14
	movq	%r14, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%r14)
	movq	(%r15), %rsi
	movb	(%rsi), %dl
	testb	%dl, %dl
	je	LBB0_26
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rsi), %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movzbl	(%rax), %edx
	incq	%rax
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$9, %dl
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$32, %dl
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%dl, %dl
	je	LBB0_26
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-48(%rdx), %ecx
	cmpb	$9, %cl
	ja	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, %rcx
	leaq	(%rcx,%rcx,4), %rdi
	movzbl	%dl, %edx
	leaq	-48(%rdx,%rdi,2), %rdx
	cmovleq	%rdx, %rcx
	testq	%rbx, %rbx
	cmoveq	%rdx, %rcx
	movzbl	(%rax), %edx
	incq	%rax
	leal	-48(%rdx), %edi
	cmpb	$10, %dil
	jb	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$9, %dl
	jne	LBB0_13
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	cmpb	$9, %dl
	je	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$32, %dl
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	%dl, %dl
	jne	LBB0_15
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=2
	incq	%rax
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rax), %edx
	cmpb	$9, %dl
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpb	$32, %dl
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	%dl, %dl
	je	LBB0_21
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	(%r15), %rdi
	movq	_LBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_2
LBB0_16:
	movl	$1, %edi
	callq	_exit
LBB0_21:
	testq	%rbx, %rbx
	jle	LBB0_22
## %bb.23:
	cmpq	%rbx, %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_25
## %bb.24:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rcx
	jmp	LBB0_25
LBB0_22:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_25:
	movl	%ecx, (%r14)
	movl	$1, %r13d
LBB0_26:
	movl	%r13d, %eax
	addq	$24, %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	"Supply a decimal value for \"%s\" [%d] "

	.comm	_stdout,4,2                     ## @stdout
	.comm	_lbuf,8,3                       ## @lbuf
	.comm	_LBUF,4,2                       ## @LBUF
	.comm	_stdin,4,2                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"%s exceeds maximum value allowed for this field. The value has been reduced to %lld\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s is an invalid decimal number.  Try again.\n"

	.no_dead_strip	_decimal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decimal
_decimal:                               ; @decimal
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x8, x2
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_printf
Lloh2:
	adrp	x26, _stdout@GOTPAGE
Lloh3:
	ldr	x26, [x26, _stdout@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_fflush
Lloh4:
	adrp	x27, _lbuf@GOTPAGE
Lloh5:
	ldr	x27, [x27, _lbuf@GOTPAGEOFF]
	ldr	x0, [x27]
Lloh6:
	adrp	x28, _LBUF@GOTPAGE
Lloh7:
	ldr	x28, [x28, _LBUF@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh8:
	adrp	x23, _stdin@GOTPAGE
Lloh9:
	ldr	x23, [x23, _stdin@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_fgets
	cbz	x0, LBB0_19
; %bb.1:
	mov	w24, #10
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x25, [x27]
	mov	x0, x25
	bl	_strlen
	add	x8, x25, w0, sxtw
	sturb	wzr, [x8, #-1]
	ldr	x1, [x27]
	ldrb	w10, [x1]
	cbz	w10, LBB0_20
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x1, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w10, [x8], #1
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w10, #9
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w10, #32
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w10, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w9, w10, #48
	cmp	w9, #9
	b.hi	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x9, #0
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	x11, x9, x24
	add	x10, x11, w10, uxtb
	sub	x10, x10, #48
	cmp	x9, x20
	ccmp	x20, #0, #4, gt
	csel	x9, x10, x9, eq
	ldrb	w10, [x8], #1
	sub	w11, w10, #48
	cmp	w11, #10
	b.lo	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w10, #9
	b.ne	LBB0_13
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x9, #0
	cmp	w10, #9
	b.eq	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w10, #32
	b.ne	LBB0_17
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x8, x8, #1
LBB0_15:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x8]
	cmp	w10, #9
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	cmp	w10, #32
	b.eq	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w10, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	str	x21, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_printf
	ldr	w0, [x26]
	bl	_fflush
	ldr	x0, [x27]
	ldr	w1, [x28]
	ldr	w2, [x23]
	bl	_fgets
	cbnz	x0, LBB0_2
LBB0_19:
	mov	w0, #1
	bl	_exit
LBB0_20:
	mov	w0, #0
	b	LBB0_25
LBB0_21:
	cmp	x20, #1
	b.lt	LBB0_24
; %bb.22:
	cmp	x9, x20
	b.le	LBB0_24
; %bb.23:
	str	x20, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	x9, x20
LBB0_24:
	str	w9, [x19]
	mov	w0, #1
LBB0_25:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Supply a decimal value for \"%s\" [%d] "

	.comm	_stdout,4,2                     ; @stdout
	.comm	_lbuf,8,3                       ; @lbuf
	.comm	_LBUF,4,2                       ; @LBUF
	.comm	_stdin,4,2                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"%s exceeds maximum value allowed for this field. The value has been reduced to %lld\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s is an invalid decimal number.  Try again.\n"

	.no_dead_strip	_decimal
.subsections_via_symbols
