	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function JSGlobal_parseInt
_JSGlobal_parseInt:                     ## @JSGlobal_parseInt
	.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
	movq	%r9, %rbx
	movq	%r8, %r12
	movq	%rdi, %r15
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$0, -44(%rbp)
	cmpl	$1, %ecx
	je	LBB0_8
## %bb.1:
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_32
LBB0_3:
	movq	_NAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jsval_number
	movl	%eax, (%rbx)
	jmp	LBB0_32
LBB0_4:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	movl	4(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_to_int32
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_33
## %bb.5:
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	movq	%r13, %rbx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	leal	-37(%rsi), %eax
	cmpl	$-36, %eax
	ja	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WARN
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_32
LBB0_8:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %esi
	leaq	-80(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	callq	_to_flat_string
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_33
## %bb.9:
	movq	-56(%rbp), %rax
	movl	(%rax), %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	callq	_iswspace
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movl	4(%rax), %edi
	jmp	LBB0_11
LBB0_12:
	movq	-56(%rbp), %rax
	movl	(%rax), %ecx
	cmpl	$45, %ecx
	je	LBB0_14
## %bb.13:
	movq	%r14, %r15
	cmpl	$43, %ecx
	je	LBB0_15
	jmp	LBB0_16
LBB0_14:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
LBB0_15:
	addq	$4, %rax
LBB0_16:
	movq	_FALSE@GOTPCREL(%rip), %rdx
	movl	-44(%rbp), %ecx
	cmpl	$16, %ecx
	je	LBB0_23
## %bb.17:
	testl	%ecx, %ecx
	jne	LBB0_26
## %bb.18:
	cmpl	$48, (%rax)
	jne	LBB0_22
## %bb.19:
	movl	4(%rax), %ecx
	orl	$32, %ecx
	cmpl	$120, %ecx
	jne	LBB0_21
## %bb.20:
	movl	$16, -44(%rbp)
	jmp	LBB0_25
LBB0_23:
	cmpl	$48, (%rax)
	jne	LBB0_26
## %bb.24:
	movl	4(%rax), %ecx
	orl	$32, %ecx
	cmpl	$120, %ecx
	jne	LBB0_26
LBB0_25:
	addq	$8, %rax
	jmp	LBB0_26
LBB0_22:
	movl	$10, -44(%rbp)
	jmp	LBB0_26
LBB0_21:
	addq	$4, %rax
	movl	$8, -44(%rbp)
	movq	(%rdx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
LBB0_26:
	leaq	4(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movl	(%rax), %edi
	callq	_char_to_int
	movl	-44(%rbp), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %eax
	jge	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	imull	%ecx, %ebx
	addl	%eax, %ebx
	movq	-56(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, -56(%rbp)
	movl	(%rax), %edi
	callq	_char_to_int
	movl	-44(%rbp), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_27
	jmp	LBB0_30
LBB0_28:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_30
## %bb.29:
	movq	_NAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_30:
	movq	-80(%rbp), %rdi
	callq	_jsstr_release
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_32
## %bb.31:
	movl	%ebx, %edi
	negl	%edi
	testq	%r15, %r15
	cmovel	%ebx, %edi
	callq	_jsval_number
	movl	%eax, (%r14)
LBB0_32:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_33:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_NAN,4,2                        ## @NAN
	.comm	_S_OK,4,2                       ## @S_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"radix %d out of range\n"

	.no_dead_strip	_JSGlobal_parseInt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function JSGlobal_parseInt
_JSGlobal_parseInt:                     ; @JSGlobal_parseInt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x5
	mov	x21, x4
	mov	x20, x0
Lloh0:
	adrp	x25, _FALSE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	x23, [x25]
Lloh2:
	adrp	x26, _TRUE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	ldr	x24, [x26]
	str	wzr, [sp, #20]
	cmp	w3, #1
	b.eq	LBB0_8
; %bb.1:
	cbnz	w3, LBB0_4
; %bb.2:
	cbz	x19, LBB0_30
LBB0_3:
Lloh4:
	adrp	x8, _NAN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NAN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_29
LBB0_4:
	ldr	w1, [x21, #4]
	add	x2, sp, #20
	mov	x0, x20
	bl	_to_int32
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_31
; %bb.5:
	ldr	w1, [sp, #20]
	cbz	w1, LBB0_8
; %bb.6:
	sub	w8, w1, #37
	cmn	w8, #36
	b.hi	LBB0_8
; %bb.7:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	cbnz	x19, LBB0_3
	b	LBB0_30
LBB0_8:
	ldr	w1, [x21]
	add	x2, sp, #8
	add	x3, sp, #24
	mov	x0, x20
	bl	_to_flat_string
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_31
; %bb.9:
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
	bl	_iswspace
	cbz	x0, LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	w0, [x8, #4]!
	str	x8, [sp, #24]
	bl	_iswspace
	cbnz	x0, LBB0_10
LBB0_11:
	ldr	x8, [sp, #24]
	ldr	w9, [x8]
	cmp	w9, #45
	b.eq	LBB0_13
; %bb.12:
	cmp	w9, #43
	add	x9, x8, #4
	csel	x8, x8, x9, ne
	b	LBB0_14
LBB0_13:
	ldr	x23, [x26]
	add	x8, x8, #4
LBB0_14:
	ldr	w9, [sp, #20]
	cmp	w9, #16
	b.eq	LBB0_19
; %bb.15:
	cbnz	w9, LBB0_23
; %bb.16:
	ldr	w9, [x8]
	cmp	w9, #48
	b.ne	LBB0_21
; %bb.17:
	mov	x9, x8
	ldr	w10, [x9, #4]!
	orr	w10, w10, #0x20
	cmp	w10, #120
	b.ne	LBB0_22
; %bb.18:
	mov	w9, #16
	str	w9, [sp, #20]
	add	x8, x8, #8
	b	LBB0_23
LBB0_19:
	ldr	w9, [x8]
	cmp	w9, #48
	b.ne	LBB0_23
; %bb.20:
	ldr	w9, [x8, #4]
	orr	w9, w9, #0x20
	cmp	w9, #120
	add	x9, x8, #8
	csel	x8, x9, x8, eq
	b	LBB0_23
LBB0_21:
	mov	w9, #10
	str	w9, [sp, #20]
	b	LBB0_23
LBB0_22:
	mov	w8, #8
	str	w8, [sp, #20]
	ldr	x24, [x25]
	mov	x8, x9
LBB0_23:
	ldr	w0, [x8], #4
	str	x8, [sp, #24]
	bl	_char_to_int
	ldr	w8, [sp, #20]
	cmp	w0, w8
	b.ge	LBB0_26
; %bb.24:
	mov	w20, #0
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	madd	w20, w8, w20, w0
	ldr	x8, [sp, #24]
	ldr	w0, [x8], #4
	str	x8, [sp, #24]
	bl	_char_to_int
	ldr	w8, [sp, #20]
	cmp	w0, w8
	b.lt	LBB0_25
	b	LBB0_27
LBB0_26:
Lloh9:
	adrp	x8, _NAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NAN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x24, #0
	csel	w20, wzr, w8, eq
LBB0_27:
	ldr	x0, [sp, #8]
	bl	_jsstr_release
	cbz	x19, LBB0_30
; %bb.28:
	cmp	x23, #0
	cneg	w0, w20, ne
LBB0_29:
	bl	_jsval_number
	str	w0, [x19]
LBB0_30:
Lloh12:
	adrp	x8, _S_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
LBB0_31:
	mov	x0, x22
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_NAN,4,2                        ; @NAN
	.comm	_S_OK,4,2                       ; @S_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"radix %d out of range\n"

	.no_dead_strip	_JSGlobal_parseInt
.subsections_via_symbols
