	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scanexp
_scanexp:                               ## @scanexp
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_shgetc
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$43, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$45, %eax
	jne	LBB0_2
LBB0_8:
	cmpl	$45, %eax
	sete	%r15b
	movq	%r12, %rdi
	callq	_shgetc
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	addl	$-58, %ecx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.9:
	cmpl	$-11, %ecx
	ja	LBB0_3
## %bb.10:
	movq	%r12, %rdi
	callq	_shunget
	jmp	LBB0_11
LBB0_2:
	movl	%eax, %ecx
	addl	$-58, %ecx
	xorl	%r15d, %r15d
LBB0_3:
	cmpl	$-10, %ecx
	jae	LBB0_4
LBB0_11:
	movq	%r12, %rdi
	callq	_shunget
	movq	_LLONG_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_22
LBB0_4:
	leal	-48(%rax), %ecx
	xorl	%ebx, %ebx
	cmpl	$9, %ecx
	ja	LBB0_14
## %bb.5:
	movq	_INT_MAX@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %ebx
	jge	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	leal	(%rbx,%rbx,4), %ecx
	leal	(%rax,%rcx,2), %ebx
	addl	$-48, %ebx
	movq	%r12, %rdi
	callq	_shgetc
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	addl	$-48, %ecx
	cmpl	$10, %ecx
	jb	LBB0_6
## %bb.13:
	movslq	%ebx, %rbx
LBB0_14:
	cmpl	$9, %ecx
	jbe	LBB0_15
	jmp	LBB0_19
LBB0_7:
	movslq	%ebx, %rbx
LBB0_15:
	movq	_LLONG_MAX@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%rbx,%rbx,4), %rcx
	movl	%eax, %eax
	leaq	(%rax,%rcx,2), %rbx
	addq	$-48, %rbx
	movq	%r12, %rdi
	callq	_shgetc
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	addl	$-48, %ecx
	cmpl	$10, %ecx
	jb	LBB0_16
LBB0_19:
	cmpl	$9, %ecx
	ja	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_shgetc
	addl	$-48, %eax
	cmpl	$10, %eax
	jb	LBB0_20
LBB0_21:
	movq	%r12, %rdi
	callq	_shunget
	movq	%rbx, %rax
	negq	%rax
	testb	%r15b, %r15b
	cmoveq	%rbx, %rax
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	addl	$-48, %eax
	movl	%eax, %ecx
	cmpl	$9, %ecx
	jbe	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_LLONG_MIN,8,3                  ## @LLONG_MIN
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_LLONG_MAX,4,2                  ## @LLONG_MAX
	.no_dead_strip	_scanexp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scanexp
_scanexp:                               ; @scanexp
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_shgetc
	cmp	w0, #43
	b.eq	LBB0_2
; %bb.1:
	cmp	w0, #45
	b.ne	LBB0_5
LBB0_2:
	cmp	w0, #45
	cset	w21, eq
	mov	x0, x19
	bl	_shgetc
	sub	w8, w0, #58
	cbz	w20, LBB0_6
; %bb.3:
	cmn	w8, #11
	b.hi	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_shunget
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	sub	w8, w0, #58
LBB0_6:
	cmn	w8, #10
	b.hs	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_shunget
Lloh0:
	adrp	x8, _LLONG_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LLONG_MIN@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	b	LBB0_21
LBB0_8:
	sub	w8, w0, #48
	cmp	w8, #9
	b.hi	LBB0_13
; %bb.9:
	mov	w20, #0
Lloh3:
	adrp	x22, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _INT_MAX@GOTPAGEOFF]
	mov	w23, #26215
	movk	w23, #26214, lsl #16
	mov	w24, #10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x22]
	mul	x8, x8, x23
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	cmp	w20, w8
	b.ge	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	madd	w8, w20, w24, w0
	sub	w20, w8, #48
	mov	x0, x19
	bl	_shgetc
	sub	w8, w0, #48
	cmp	w8, #10
	b.lo	LBB0_10
; %bb.12:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x20, w20
	cmp	w8, #9
	b.ls	LBB0_15
	b	LBB0_18
LBB0_13:
	mov	x20, #0
	cmp	w8, #9
	b.ls	LBB0_15
	b	LBB0_18
LBB0_14:
	sxtw	x20, w20
LBB0_15:
Lloh5:
	adrp	x22, _LLONG_MAX@GOTPAGE
Lloh6:
	ldr	x22, [x22, _LLONG_MAX@GOTPAGEOFF]
	mov	w23, #34079
	movk	w23, #20971, lsl #16
	mov	w24, #10
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x22]
	mul	x8, x8, x23
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	cmp	x20, w8, sxtw
	b.ge	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mul	x8, x20, x24
	add	x8, x8, w0, uxtw
	sub	x20, x8, #48
	mov	x0, x19
	bl	_shgetc
	sub	w8, w0, #48
	cmp	w8, #10
	b.lo	LBB0_16
LBB0_18:
	cmp	w8, #9
	b.hi	LBB0_20
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_shgetc
	sub	w8, w0, #48
	cmp	w8, #10
	b.lo	LBB0_19
LBB0_20:
	mov	x0, x19
	bl	_shunget
	cmp	w21, #0
	cneg	x0, x20, ne
LBB0_21:
	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_22:
	sub	w8, w0, #48
	cmp	w8, #9
	b.ls	LBB0_19
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LLONG_MIN,8,3                  ; @LLONG_MIN
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_LLONG_MAX,4,2                  ; @LLONG_MAX
	.no_dead_strip	_scanexp
.subsections_via_symbols
