	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strict_strtoul_scaled          ## -- Begin function strict_strtoul_scaled
	.p2align	4, 0x90
_strict_strtoul_scaled:                 ## @strict_strtoul_scaled
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movslq	%edx, %r12
	movq	$-1, %r13
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r13d, %r13d
	incq	%rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_isdigit
	movsbq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$46, %cl
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r12, %r13
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$-48, %ecx
	leaq	(%r15,%r15,4), %rax
	leaq	(%rcx,%rax,2), %r15
	movq	%r13, %rax
	notq	%rax
	shrq	$63, %rax
	addq	%rax, %r13
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$46, %cl
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%r13, %r13
	jns	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r13d, %r13d
	incq	%rbx
	jmp	LBB0_1
LBB0_10:
	xorl	%eax, %eax
	cmpb	$10, %cl
	sete	%al
	cmpb	$0, (%rbx,%rax)
	je	LBB0_12
## %bb.11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_12:
	xorl	%eax, %eax
	testq	%r13, %r13
	cmovleq	%rax, %r13
	cmpq	%r12, %r13
	jge	LBB0_20
## %bb.13:
	movl	%r12d, %edx
	subl	%r13d, %edx
	movq	%r13, %rcx
	notq	%rcx
	addq	%r12, %rcx
	andq	$7, %rdx
	je	LBB0_17
## %bb.14:
	negq	%rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	addq	%r15, %r15
	leaq	(%r15,%r15,4), %r15
	decq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_15
## %bb.16:
	subq	%rsi, %r13
LBB0_17:
	cmpq	$7, %rcx
	jb	LBB0_20
## %bb.18:
	subq	%r13, %r12
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	imulq	$100000000, %r15, %r15          ## imm = 0x5F5E100
	addq	$-8, %r12
	jne	LBB0_19
LBB0_20:
	movq	%r15, (%r14)
LBB0_21:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strict_strtoul_scaled          ; -- Begin function strict_strtoul_scaled
	.p2align	2
_strict_strtoul_scaled:                 ; @strict_strtoul_scaled
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	sxtw	x22, w2
	mov	x23, #-1
	mov	w24, #10
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, #0
	add	x20, x20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20]
	bl	_isdigit
	ldrsb	x8, [x20]
	cmp	w8, #46
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x23, x22
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w8, #48
	madd	x21, x21, x24, x8
	mvn	x8, x23
	add	x23, x23, x8, lsr #63
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	x23, #63, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, #0
	add	x20, x20, #1
	b	LBB0_2
LBB0_10:
	cmp	w8, #10
	cinc	x8, x20, eq
	ldrb	w8, [x8]
	cbz	w8, LBB0_12
; %bb.11:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_12:
	cmp	x23, #0
	csel	x8, x23, xzr, gt
	cmp	x8, x22
	b.ge	LBB0_19
; %bb.13:
	sub	x9, x22, x8
	cmp	x9, #4
	b.lo	LBB0_17
; %bb.14:
	and	x10, x9, #0xfffffffffffffffc
	add	x8, x8, x10
	mov	w11, #1
	mov	x12, x10
	mov	w13, #1
	mov	w14, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x15, x21, x21, lsl #2
	lsl	x21, x15, #1
	add	x11, x11, x11, lsl #2
	lsl	x11, x11, #1
	add	x13, x13, x13, lsl #2
	lsl	x13, x13, #1
	add	x14, x14, x14, lsl #2
	lsl	x14, x14, #1
	subs	x12, x12, #4
	b.ne	LBB0_15
; %bb.16:
	mul	x11, x11, x21
	mul	x11, x13, x11
	mul	x21, x14, x11
	cmp	x9, x10
	b.eq	LBB0_19
LBB0_17:
	sub	x8, x22, x8
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	x9, x21, x21, lsl #2
	lsl	x21, x9, #1
	subs	x8, x8, #1
	b.ne	LBB0_18
LBB0_19:
	mov	w0, #0
	str	x21, [x19]
LBB0_20:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
