	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cli_consume_int                ## -- Begin function cli_consume_int
	.p2align	4, 0x90
_cli_consume_int:                       ## @cli_consume_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	je	LBB0_1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rdi)
	cmpq	$0, 8(%rdi)
	jle	LBB0_2
## %bb.3:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	movq	%rdi, 24(%rbx)
	leaq	-16(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rcx
	movq	-16(%rbp), %rdx
	xorl	%eax, %eax
	cmpb	$0, (%rdx)
	jne	LBB0_5
## %bb.4:
	movq	$0, (%rbx)
	decq	8(%rbx)
	addq	$8, 16(%rbx)
	movl	%ecx, %eax
	jmp	LBB0_5
LBB0_2:
	movq	$0, 24(%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expected integer argument"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cli_consume_int                ; -- Begin function cli_consume_int
	.p2align	2
_cli_consume_int:                       ; @cli_consume_int
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	ldr	x8, [x0, #8]
	cmp	x8, #0
	b.le	LBB0_6
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	str	x0, [x19, #24]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_1
; %bb.5:
	ldp	x8, x9, [x19, #8]
	sub	x8, x8, #1
	stp	xzr, x8, [x19]
	add	x8, x9, #8
	str	x8, [x19, #16]
	b	LBB0_2
LBB0_6:
	mov	w0, #0
	str	xzr, [x19, #24]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expected integer argument"

.subsections_via_symbols
