	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_int
_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_2:
	leaq	2(%r12), %rdi
	leaq	-40(%rbp), %rsi
	movl	$2, %edx
LBB0_3:
	callq	_strtoul
	movq	%rax, %r14
	movq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_read_int_suffix
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	jmp	LBB0_18
LBB0_5:
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_7
## %bb.6:
	movsbl	%al, %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_errort
LBB0_7:
	cmpb	$48, (%r12)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	jne	LBB0_12
## %bb.8:
	testq	%rax, %r14
	je	LBB0_13
## %bb.9:
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	testq	%rax, %r14
	je	LBB0_16
## %bb.10:
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	testq	%rax, %r14
	je	LBB0_14
## %bb.11:
	movq	_type_ulong@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	testq	%rax, %r14
	jne	LBB0_14
LBB0_13:
	movq	_type_int@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_type_long@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_type_uint@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rdi
LBB0_18:
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ast_inttype                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0b"

L_.str.1:                               ## @.str.1
	.asciz	"invalid character '%c': %s"

	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_type_int,8,3                   ## @type_int
	.comm	_type_long,8,3                  ## @type_long
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.comm	_type_uint,8,3                  ## @type_uint
	.comm	_LONG_MAX,8,3                   ## @LONG_MAX
	.comm	_type_ulong,8,3                 ## @type_ulong
	.no_dead_strip	_read_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_int
_read_int:                              ; @read_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_strncasecmp
	cbz	w0, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	b	LBB0_3
LBB0_2:
	add	x0, x20, #2
	add	x1, sp, #8
	mov	w2, #2
LBB0_3:
	bl	_strtoul
	mov	x19, x0
	ldr	x22, [sp, #8]
	mov	x0, x22
	bl	_read_int_suffix
	cbnz	x0, LBB0_15
; %bb.4:
	ldrb	w8, [x22]
	cbz	w8, LBB0_6
; %bb.5:
	sxtb	w2, w8
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	bl	_errort
LBB0_6:
	ldrb	w9, [x20]
Lloh4:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	bic	x8, x19, x8
	cmp	w9, #48
	b.ne	LBB0_10
; %bb.7:
	cbz	x8, LBB0_12
; %bb.8:
Lloh7:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	bics	xzr, x19, x8
	b.eq	LBB0_13
; %bb.9:
Lloh10:
	adrp	x8, _LONG_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LONG_MAX@GOTPAGEOFF]
Lloh12:
	adrp	x9, _type_long@GOTPAGE
Lloh13:
	ldr	x9, [x9, _type_long@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x10, _type_ulong@GOTPAGE
Lloh16:
	ldr	x10, [x10, _type_ulong@GOTPAGEOFF]
	bics	xzr, x19, x8
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x9, _type_int@GOTPAGE
Lloh18:
	ldr	x9, [x9, _type_int@GOTPAGEOFF]
Lloh19:
	adrp	x10, _type_long@GOTPAGE
Lloh20:
	ldr	x10, [x10, _type_long@GOTPAGEOFF]
	cmp	x8, #0
LBB0_11:
	csel	x8, x9, x10, eq
	b	LBB0_14
LBB0_12:
Lloh21:
	adrp	x8, _type_int@GOTPAGE
Lloh22:
	ldr	x8, [x8, _type_int@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh23:
	adrp	x8, _type_uint@GOTPAGE
Lloh24:
	ldr	x8, [x8, _type_uint@GOTPAGEOFF]
LBB0_14:
	ldr	x0, [x8]
LBB0_15:
	mov	x1, x19
	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
	add	sp, sp, #64
	b	_ast_inttype
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0b"

l_.str.1:                               ; @.str.1
	.asciz	"invalid character '%c': %s"

	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_type_int,8,3                   ; @type_int
	.comm	_type_long,8,3                  ; @type_long
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.comm	_type_uint,8,3                  ; @type_uint
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
	.comm	_type_ulong,8,3                 ; @type_ulong
	.no_dead_strip	_read_int
.subsections_via_symbols
