	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_atoi                     ## -- Begin function check_atoi
	.p2align	4, 0x90
_check_atoi:                            ## @check_atoi
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movb	(%rdi), %al
	leal	-48(%rax), %ecx
	xorl	%r12d, %r12d
	cmpb	$9, %cl
	ja	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %eax
	leal	(%r12,%r12,4), %ecx
	leal	(%rax,%rcx,2), %r12d
	addl	$-48, %r12d
	movzbl	1(%rbx), %eax
	incq	%rbx
	leal	-48(%rax), %ecx
	cmpb	$10, %cl
	jb	LBB0_3
## %bb.4:
	testb	$-33, %al
	jne	LBB0_5
LBB0_6:
	movl	%r12d, (%r14)
	subl	%r15d, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rbx
	testb	$-33, %al
	je	LBB0_6
LBB0_5:
	movsbl	%al, %esi
	leaq	L_.str(%rip), %rdi
	callq	_error_exit
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Malformed integer value (%c)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_atoi                     ; -- Begin function check_atoi
	.p2align	2
_check_atoi:                            ; @check_atoi
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
	ldrb	w8, [x0]
	sub	w9, w8, #48
	cmp	w9, #9
	b.hi	LBB0_3
; %bb.1:
	mov	w21, #0
	mov	w9, #10
	mov	x10, x8
	mov	x22, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, #1]!
	mul	w11, w21, w9
	add	w10, w11, w10, uxtb
	sub	w21, w10, #48
	sub	w11, w8, #48
	mov	x10, x8
	cmp	w11, #10
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
	mov	x22, x19
LBB0_4:
	orr	w9, w8, #0x20
	cmp	w9, #32
	b.eq	LBB0_6
; %bb.5:
	sxtb	w1, w8
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error_exit
LBB0_6:
	str	w21, [x20]
	sub	w0, w22, w19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Malformed integer value (%c)"

.subsections_via_symbols
