	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_util_atoi                      ## -- Begin function util_atoi
	.p2align	4, 0x90
_util_atoi:                             ## @util_atoi
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %r15d
	incq	%r13
	movsbl	%r15b, %edi
	callq	_util_isspace
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	cmpb	$43, %r15b
	je	LBB0_4
## %bb.3:
	cmpb	$45, %r15b
	jne	LBB0_5
LBB0_4:
	movb	(%r13), %cl
	incq	%r13
	jmp	LBB0_6
LBB0_5:
	movl	%r15d, %ecx
LBB0_6:
	movq	_LONG_MIN@GOTPCREL(%rip), %rdx
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	cmpb	$45, %r15b
	je	LBB0_8
## %bb.7:
	movq	(%rax), %rax
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	subq	(%rdx), %rax
LBB0_9:
	movslq	%ebx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.10:
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $eax killed $eax def $rax
LBB0_12:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r14, %rax
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	movzbl	(%r13), %ecx
	incq	%r13
	movq	%rax, %r14
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%cl, %ebx
	movl	%ebx, %edi
	callq	_util_isdigit
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	addl	$-48, %ebx
	cmpl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_19
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	callq	_util_isalpha
	testq	%rax, %rax
	je	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	callq	_util_isupper
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	shll	$5, %ecx
	addl	%ecx, %ebx
	addl	$-87, %ebx
	cmpl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_25
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	testl	%r12d, %r12d
	movl	$-1, %r12d
	js	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	ja	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	jne	LBB0_13
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	imulq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	movslq	%ebx, %rax
	addq	%r14, %rax
	movl	$1, %r12d
	jmp	LBB0_14
LBB0_25:
	testl	%r12d, %r12d
	js	LBB0_27
## %bb.26:
	movq	%r14, %rax
	negq	%rax
	cmpb	$45, %r15b
	cmovneq	%r14, %rax
	jmp	LBB0_30
LBB0_27:
	cmpb	$45, %r15b
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	jne	LBB0_29
## %bb.28:
	movq	_LONG_MIN@GOTPCREL(%rip), %rax
LBB0_29:
	movq	(%rax), %rax
LBB0_30:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MIN,8,3                   ## @LONG_MIN
	.comm	_LONG_MAX,8,3                   ## @LONG_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_util_atoi                      ; -- Begin function util_atoi
	.p2align	2
_util_atoi:                             ; @util_atoi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w21, [x20], #1
	mov	x0, x21
	bl	_util_isspace
	cbnz	x0, LBB0_1
; %bb.2:
	and	w11, w21, #0xff
	cmp	w11, #43
	b.eq	LBB0_4
; %bb.3:
	cmp	w11, #45
	b.ne	LBB0_5
LBB0_4:
	ldrb	w8, [x20], #1
	b	LBB0_6
LBB0_5:
	mov	x8, x11
LBB0_6:
	mov	x24, #0
	mov	w22, #0
Lloh0:
	adrp	x9, _LONG_MIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LONG_MIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _LONG_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LONG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	str	w11, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w11, #45
	csneg	x9, x10, x9, ne
	sxtw	x26, w19
	udiv	x27, x9, x26
	msub	w28, w27, w19, w9
	mov	w23, #-55
	mov	w25, #-87
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mul	x9, x24, x26
	add	x24, x9, w8, sxtw
	mov	w9, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [x20], #1
	mov	x22, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w21, w8
	mov	x0, x21
	bl	_util_isdigit
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w8, w21, #48
	cmp	w8, w19
	b.lt	LBB0_13
	b	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_util_isalpha
	cbz	x0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_util_isupper
	cmp	x0, #0
	csel	w8, w25, w23, eq
	add	w8, w8, w21
	cmp	w8, w19
	b.ge	LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #-1
	tbnz	w22, #31, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x24, x27
	b.hi	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	b.ne	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, w28
	b.le	LBB0_7
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #-1
	mov	x24, x27
	b	LBB0_8
LBB0_18:
	tbnz	w22, #31, LBB0_20
; %bb.19:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #45
	cneg	x0, x24, eq
	b	LBB0_21
LBB0_20:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #45
Lloh6:
	adrp	x8, _LONG_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LONG_MIN@GOTPAGEOFF]
Lloh8:
	adrp	x9, _LONG_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LONG_MAX@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x0, [x8]
LBB0_21:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MIN,8,3                   ; @LONG_MIN
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
.subsections_via_symbols
