	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getint
_getint:                                ## @getint
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movzbl	(%rax), %edi
	callq	_isdigit
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%rbx,4), %eax
	movq	(%r14), %rcx
	movsbl	(%rcx), %edx
	leal	(%rdx,%rax,2), %ebx
	addl	$-48, %ebx
	leaq	1(%rcx), %rax
	movq	%rax, (%r14)
	movzbl	1(%rcx), %edi
	callq	_isdigit
	testq	%rax, %rax
	jne	LBB0_1
LBB0_3:
	cmpl	$32767, %ebx                    ## imm = 0x7FFF
	movl	$32767, %eax                    ## imm = 0x7FFF
	cmovbl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_getint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getint
_getint:                                ; @getint
	.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	x19, x0
	ldr	x8, [x0]
	ldrb	w0, [x8]
	bl	_isdigit
	mov	w20, #0
	cbz	x0, LBB0_3
; %bb.1:
	mov	w21, #10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldrsb	w9, [x8]
	madd	w9, w20, w21, w9
	sub	w20, w9, #48
	add	x9, x8, #1
	str	x9, [x19]
	ldrb	w0, [x8, #1]
	bl	_isdigit
	cbnz	x0, LBB0_2
LBB0_3:
	mov	w8, #32767
	cmp	w20, w8
	csel	w0, w20, w8, lo
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_getint
.subsections_via_symbols
