	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_num_buf
_read_num_buf:                          ## @read_num_buf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LINE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_stdin@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rbx, %r15
	incq	%r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rbx, -56(%rbp)
	movsbl	(%rbx), %edi
	callq	_isblank
	movq	%r15, %r13
	movq	%rbx, %rcx
	testq	%rax, %rax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, -56(%rbp)
	movsbl	(%r13), %edi
	callq	_isblank
	incq	%r13
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%r13
	movq	%r13, %rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	(%rcx), %al
	testb	%al, %al
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, %al
	je	LBB0_15
## %bb.7:
	cmpb	$45, %al
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_strtoumax
	movl	%eax, %r14d
	cmpq	$0, (%r15)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_11:
	movq	-56(%rbp), %rax
	cmpb	$10, (%rax)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.19:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%r12), %edi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_18:
	xorl	%edi, %edi
	callq	_exit
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LINE_MAX,4,2                   ## @LINE_MAX
	.comm	_stdin,4,2                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stdin"

L_.str.1:                               ## @.str.1
	.asciz	"negative numbers aren't permitted."

	.comm	_errno,8,3                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s: illegal numeric format."

	.no_dead_strip	_read_num_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_num_buf
_read_num_buf:                          ; @read_num_buf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _LINE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LINE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x22, _stdin@GOTPAGE
Lloh9:
	ldr	x22, [x22, _stdin@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_fgets
	cbz	x0, LBB0_7
; %bb.1:
	add	x23, x19, #1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	stur	x19, [x29, #-64]
	ldrsb	w0, [x19]
	bl	_isblank
	mov	x24, x23
	mov	x8, x19
	cbz	x0, LBB0_5
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stur	x24, [x29, #-64]
	ldrsb	w0, [x24], #1
	bl	_isblank
	cbnz	x0, LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x24, #1
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x8]
	cmp	w8, #0
	ccmp	w8, #10, #4, ne
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_fgets
	cbnz	x0, LBB0_2
LBB0_7:
	ldr	w0, [x22]
	bl	_ferror
	cbz	x0, LBB0_9
; %bb.8:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	mov	w0, #0
	bl	_exit
LBB0_10:
	cmp	w8, #45
	b.ne	LBB0_12
; %bb.11:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_12:
Lloh14:
	adrp	x22, _errno@GOTPAGE
Lloh15:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	sub	x1, x29, #64
	mov	x0, x19
	mov	w2, #0
	bl	_strtoumax
	mov	x20, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_14
; %bb.13:
	str	x19, [sp, #-16]!
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
	add	sp, sp, #16
LBB0_14:
	ldur	x8, [x29, #-64]
	ldrb	w8, [x8]
	cmp	w8, #10
	b.eq	LBB0_16
; %bb.15:
	str	x19, [sp, #-16]!
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
	add	sp, sp, #16
LBB0_16:
	mov	sp, x21
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x20
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LINE_MAX,4,2                   ; @LINE_MAX
	.comm	_stdin,4,2                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stdin"

l_.str.1:                               ; @.str.1
	.asciz	"negative numbers aren't permitted."

	.comm	_errno,8,3                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s: illegal numeric format."

	.no_dead_strip	_read_num_buf
.subsections_via_symbols
