	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_getnum
_input_getnum:                          ## @input_getnum
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_numval@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	testq	%rsi, %rsi
	js	LBB0_15
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_input_getc
	movl	%eax, %ebx
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$8, %r15
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	andl	$-2, %eax
	cmpl	$56, %eax
	je	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	imulq	%r15, %rax
	movl	$-48, %ecx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$16, %r15
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_islower
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movq	(%r12), %rax
	shlq	$4, %rax
	shll	$5, %ecx
	addl	$-87, %ecx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%ecx, %ebx
	movslq	%ebx, %rcx
	addq	%rax, %rcx
	leaq	1(%r13), %rax
	movq	%rcx, (%r12)
	testq	%r14, %r14
	je	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, %r13
	jl	LBB0_2
	jmp	LBB0_15
LBB0_8:
	movl	%ebx, %edi
	callq	_input_ungetc
LBB0_3:
	cmpq	$1, %r13
	jne	LBB0_15
## %bb.4:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_report                         ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numval,8,3                     ## @numval
	.comm	_EOF,4,2                        ## @EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad number"

	.no_dead_strip	_input_getnum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_getnum
_input_getnum:                          ; @input_getnum
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x22, _numval@GOTPAGE
Lloh1:
	ldr	x22, [x22, _numval@GOTPAGEOFF]
	str	xzr, [x22]
	tbnz	x1, #63, LBB0_15
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w8, #1
Lloh2:
	adrp	x24, _EOF@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EOF@GOTPAGEOFF]
	mov	w25, #-87
	mov	w26, #-55
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	bl	_input_getc
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	bl	_isdigit
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x20, #8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w21, #0xfffffffe
	cmp	w8, #56
	b.eq	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	mul	x8, x8, x20
	mov	w9, #-48
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x20, #16
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_isxdigit
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_islower
	ldr	x8, [x22]
	lsl	x8, x8, #4
	cmp	x0, #0
	csel	w9, w26, w25, eq
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w21, w9
	add	x8, x8, w9, sxtw
	str	x8, [x22]
	add	x8, x23, #1
	cbz	x19, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x23, x19
	b.lt	LBB0_2
	b	LBB0_15
LBB0_12:
	mov	x0, x21
	bl	_input_ungetc
LBB0_13:
	cmp	x23, #1
	b.ne	LBB0_15
; %bb.14:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_report
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_numval,8,3                     ; @numval
	.comm	_EOF,4,2                        ; @EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad number"

	.no_dead_strip	_input_getnum
.subsections_via_symbols
