	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_int                       ## -- Begin function read_int
	.p2align	4, 0x90
_read_int:                              ## @read_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_rptr@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_rend@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_advance_buff
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setne	%dil
	callq	_assert
	movq	(%r15), %rax
LBB0_2:
	movb	(%rax), %cl
	cmpb	$45, %cl
	je	LBB0_8
## %bb.3:
	leal	-48(%rcx), %edx
	cmpb	$10, %dl
	jb	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	movq	%rax, (%r15)
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_advance_buff
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setne	%dil
	callq	_assert
	movq	(%r15), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rax), %ecx
	cmpb	$45, %cl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-48(%rcx), %edx
	cmpb	$9, %dl
	ja	LBB0_4
LBB0_8:
	leaq	20(%rax), %rdx
	cmpq	(%r14), %rdx
	jbe	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_advance_buff
	movq	(%r15), %rax
	movb	(%rax), %cl
LBB0_10:
	movl	$1, %edx
	cmpb	$45, %cl
	jne	LBB0_14
## %bb.11:
	incq	%rax
	movl	$1, %edx
	movl	$-1, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %edi
	movl	%esi, %edx
	movq	%rax, (%r15)
	movzbl	(%rax), %ecx
	incq	%rax
	movl	%edi, %esi
	cmpb	$45, %cl
	je	LBB0_12
## %bb.13:
	decq	%rax
LBB0_14:
	movq	(%r14), %r8
	xorl	%esi, %esi
	cmpq	%r8, %rax
	jae	LBB0_19
## %bb.15:
	leal	-48(%rcx), %edi
	cmpb	$9, %dil
	ja	LBB0_19
## %bb.16:
	leaq	1(%rax), %rdi
	notq	%rax
	addq	%r8, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%cl, %ecx
	leal	(%rsi,%rsi,4), %esi
	leal	(%rcx,%rsi,2), %esi
	addl	$-48, %esi
	movq	%rdi, (%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movzbl	(%rdi), %ecx
	leal	-48(%rcx), %ebx
	incq	%rdi
	decq	%rax
	cmpb	$10, %bl
	jb	LBB0_17
LBB0_19:
	movl	%esi, %eax
	negl	%eax
	testl	%edx, %edx
	cmovnsl	%esi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rptr,8,3                       ## @rptr
	.comm	_rend,8,3                       ## @rend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_int                       ; -- Begin function read_int
	.p2align	2
_read_int:                              ; @read_int
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _rptr@GOTPAGE
Lloh1:
	ldr	x19, [x19, _rptr@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh2:
	adrp	x20, _rend@GOTPAGE
Lloh3:
	ldr	x20, [x20, _rend@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x10, x8
	b.ne	LBB0_2
; %bb.1:
	bl	_advance_buff
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	ldr	x10, [x19]
LBB0_2:
	ldrb	w8, [x10]
	sub	w9, w8, #48
	cmp	w8, #45
	ccmp	w9, #10, #0, ne
	b.hs	LBB0_10
LBB0_3:
	add	x9, x10, #20
	ldr	x11, [x20]
	cmp	x9, x11
	b.ls	LBB0_5
; %bb.4:
	bl	_advance_buff
	ldr	x10, [x19]
	ldrb	w8, [x10]
LBB0_5:
	cmp	w8, #45
	b.ne	LBB0_12
; %bb.6:
	add	x10, x10, #1
	mov	w9, #1
	mov	w11, #-1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x9
	mov	x9, x11
	str	x10, [x19]
	ldrb	w8, [x10], #1
	mov	x11, x0
	cmp	w8, #45
	b.eq	LBB0_7
; %bb.8:
	sub	x10, x10, #1
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x10]
	sub	w9, w8, #48
	cmp	w8, #45
	ccmp	w9, #9, #0, ne
	b.ls	LBB0_3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x10, x10, #1
	str	x10, [x19]
	ldr	x8, [x20]
	cmp	x10, x8
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_advance_buff
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	ldr	x10, [x19]
	b	LBB0_9
LBB0_12:
	mov	w9, #1
LBB0_13:
	ldr	x13, [x20]
	cmp	x10, x13
	b.hs	LBB0_18
; %bb.14:
	sub	w11, w8, #48
	cmp	w11, #9
	b.hi	LBB0_18
; %bb.15:
	mov	w11, #0
	add	x12, x10, #1
	mvn	x10, x10
	add	x10, x10, x13
	mov	w13, #10
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	madd	w8, w11, w13, w8
	sub	w11, w8, #48
	str	x12, [x19]
	cbz	x10, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w8, [x12], #1
	sub	w14, w8, #48
	sub	x10, x10, #1
	cmp	w14, #10
	b.lo	LBB0_16
	b	LBB0_19
LBB0_18:
	mov	w11, #0
LBB0_19:
	cmp	w9, #0
	cneg	w0, w11, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rptr,8,3                       ; @rptr
	.comm	_rend,8,3                       ; @rend
.subsections_via_symbols
