	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_number
_get_number:                            ## @get_number
	.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	_input_line_pointer@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movb	(%rax), %r14b
	movl	%r14d, %ecx
	cmpb	$45, %r14b
	jne	LBB0_2
## %bb.1:
	leaq	1(%rax), %rcx
	movq	%rcx, (%r15)
	movb	1(%rax), %cl
LBB0_2:
	movsbl	%cl, %edi
	callq	_ISDIGIT
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	callq	_as_bad
LBB0_4:
	movq	(%r15), %rax
	movb	(%rax), %cl
	cmpb	$48, %cl
	jne	LBB0_12
## %bb.5:
	cmpb	$120, 1(%rax)
	jne	LBB0_9
## %bb.6:
	leaq	2(%rax), %rcx
	movq	%rcx, (%r15)
	movsbl	2(%rax), %edi
	callq	_ISXDIGIT
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	shlq	$4, %rbx
	movq	(%r15), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r15)
	movsbl	(%rax), %edi
	callq	_hex_value
	orq	%rax, %rbx
	movq	(%r15), %rax
	movsbl	(%rax), %edi
	callq	_ISXDIGIT
	testq	%rax, %rax
	jne	LBB0_8
LBB0_16:
	movq	%rbx, %rax
	negq	%rax
	cmpb	$45, %r14b
	cmovneq	%rbx, %rax
	jmp	LBB0_17
LBB0_12:
	movsbl	%cl, %edi
	callq	_ISDIGIT
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	movq	(%r15), %rax
	movsbl	(%rax), %edi
	callq	_ISDIGIT
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbx,4), %rax
	movq	(%r15), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r15)
	movsbq	(%rcx), %rdx
	leaq	(%rdx,%rax,2), %rbx
	addq	$-48, %rbx
	movsbl	1(%rcx), %edi
	callq	_ISDIGIT
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_16
LBB0_9:
	incq	%rax
	movq	%rax, (%r15)
	movsbl	(%rax), %edi
	callq	_ISDIGIT
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	shlq	$3, %rbx
	movq	(%r15), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r15)
	movsbq	(%rax), %rcx
	addq	$-48, %rcx
	orq	%rcx, %rbx
	movsbl	1(%rax), %edi
	callq	_ISDIGIT
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_16
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	(%r15), %rcx
	movsbl	(%rcx), %edx
	movq	%rax, %rdi
	movl	%edx, %esi
	callq	_printf
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	callq	_as_warn
	movq	$-1, %rax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_input_line_pointer,8,3         ## @input_line_pointer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected simple number"

L_.str.1:                               ## @.str.1
	.asciz	" *input_line_pointer == '%c' 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid number"

	.no_dead_strip	_get_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_number
_get_number:                            ; @get_number
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _input_line_pointer@GOTPAGE
Lloh1:
	ldr	x20, [x20, _input_line_pointer@GOTPAGEOFF]
	ldr	x8, [x20]
	ldrb	w19, [x8]
	mov	x9, x19
	cmp	w19, #45
	b.ne	LBB0_2
; %bb.1:
	add	x9, x8, #1
	str	x9, [x20]
	ldrb	w9, [x8, #1]
LBB0_2:
	sxtb	w0, w9
	bl	_ISDIGIT
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_as_bad
LBB0_4:
	ldr	x8, [x20]
	ldrb	w9, [x8]
	cmp	w9, #48
	b.ne	LBB0_8
; %bb.5:
	mov	x9, x8
	ldrb	w10, [x9, #1]!
	cmp	w10, #120
	b.ne	LBB0_12
; %bb.6:
	add	x9, x8, #2
	str	x9, [x20]
	ldrsb	w0, [x8, #2]
	bl	_ISXDIGIT
	mov	x21, #0
	cbz	x0, LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	ldrsb	w0, [x8]
	bl	_hex_value
	orr	x21, x0, x21, lsl #4
	ldr	x8, [x20]
	ldrsb	w0, [x8]
	bl	_ISXDIGIT
	cbnz	x0, LBB0_7
	b	LBB0_14
LBB0_8:
	sxtb	w0, w9
	bl	_ISDIGIT
	cbz	x0, LBB0_15
; %bb.9:
	ldr	x8, [x20]
	ldrsb	w0, [x8]
	bl	_ISDIGIT
	mov	x21, #0
	cbz	x0, LBB0_14
; %bb.10:
	mov	w22, #10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	ldrsb	x9, [x8]
	madd	x9, x21, x22, x9
	sub	x21, x9, #48
	ldrsb	w0, [x8, #1]
	bl	_ISDIGIT
	cbnz	x0, LBB0_11
	b	LBB0_14
LBB0_12:
	str	x9, [x20]
	ldrsb	w0, [x9]
	bl	_ISDIGIT
	mov	x21, #0
	cbz	x0, LBB0_14
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
	ldrsb	x9, [x8]
	sub	x9, x9, #48
	orr	x21, x9, x21, lsl #3
	ldrsb	w0, [x8, #1]
	bl	_ISDIGIT
	cbnz	x0, LBB0_13
LBB0_14:
	cmp	w19, #45
	cneg	x0, x21, eq
	b	LBB0_16
LBB0_15:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	x8, [x20]
	ldrsb	w1, [x8]
	mov	x2, x1
	bl	_printf
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_as_warn
	mov	x0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_input_line_pointer,8,3         ; @input_line_pointer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected simple number"

l_.str.1:                               ; @.str.1
	.asciz	" *input_line_pointer == '%c' 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid number"

	.no_dead_strip	_get_number
.subsections_via_symbols
