	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prompt_integer
_prompt_integer:                        ## @prompt_integer
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_malloc
	movq	%rax, -24(%rbp)
	movq	$0, -32(%rbp)
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_getline
	testq	%rax, %rax
	js	LBB0_10
## %bb.1:
	movq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movb	$0, (%rax)
	movq	-24(%rbp), %rbx
LBB0_3:
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_8
## %bb.4:
	incq	%rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_6
## %bb.7:
	movq	-24(%rbp), %rbx
LBB0_8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoul
	movl	%eax, (%r14)
LBB0_9:
	movq	-24(%rbp), %rdi
	callq	_free
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n%s: "

	.comm	_stdin,4,2                      ## @stdin
	.no_dead_strip	_prompt_integer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prompt_integer
_prompt_integer:                        ; @prompt_integer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w0, #0
	bl	_malloc
	stp	xzr, x0, [sp]
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
Lloh5:
	adrp	x8, _stdin@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, sp
	bl	_getline
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldr	x20, [sp, #8]
	mov	x0, x20
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.2:
	strb	wzr, [x0]
	ldr	x20, [sp, #8]
LBB0_3:
	ldrb	w8, [x20]
	cbz	w8, LBB0_8
; %bb.4:
	add	x20, x20, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isdigit
	cbz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x20], #1
	cbnz	w8, LBB0_5
; %bb.7:
	ldr	x20, [sp, #8]
LBB0_8:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #10
	bl	_strtoul
	str	w0, [x19]
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_free
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n%s: "

	.comm	_stdin,4,2                      ; @stdin
	.no_dead_strip	_prompt_integer
.subsections_via_symbols
