	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log10_x1000
_log10_x1000:                           ## @log10_x1000
	.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
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	movl	%edi, %ebx
	xorl	%r14d, %r14d
	cmpl	$10, %edi
	je	LBB0_17
## %bb.3:
	jae	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ebx, %ebx
	leal	(%rbx,%rbx,4), %ebx
	decl	%eax
	cmpl	$10, %ebx
	jl	LBB0_5
	jmp	LBB0_9
LBB0_1:
	movl	$-1000000, %r14d                ## imm = 0xFFF0BDC0
	jmp	LBB0_17
LBB0_6:
	xorl	%eax, %eax
	cmpl	$100, %ebx
	jb	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	movl	$3435973837, %ecx               ## imm = 0xCCCCCCCD
	movl	%ebx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %ebx
	imulq	%rcx, %rbx
	shrq	$35, %rbx
	incl	%eax
	cmpl	$999, %edx                      ## imm = 0x3E7
	movl	%ebx, %edx
	ja	LBB0_8
LBB0_9:
	imull	$1000, %eax, %r14d              ## imm = 0x3E8
	cmpl	$10, %ebx
	je	LBB0_17
## %bb.10:
	movq	_valx_x10@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	$1, %r12d
	cmpl	$2, %eax
	jl	LBB0_14
## %bb.11:
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpl	%ebx, (%rdi,%r12,4)
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jl	LBB0_12
LBB0_14:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jne	LBB0_16
## %bb.15:
	movq	_log10x_x1000@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	addl	-4(%rax,%rcx,4), %r14d
	jmp	LBB0_17
LBB0_16:
	movq	(%r15), %rax
	movslq	%r12d, %rcx
	movl	-4(%rax,%rcx,4), %edx
	subl	%edx, %ebx
	movl	%r12d, %esi
	movl	(%rax,%rsi,4), %edi
	subl	%edx, %edi
	movq	_log10x_x1000@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%rdx,%rsi,4), %eax
	movl	-4(%rdx,%rcx,4), %ecx
	subl	%ecx, %eax
	imull	%ebx, %eax
	addl	%ecx, %r14d
	cltd
	idivl	%edi
	addl	%eax, %r14d
LBB0_17:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_valx_x10,8,3                   ## @valx_x10
	.comm	_log10x_x1000,8,3               ## @log10x_x1000
	.no_dead_strip	_log10_x1000
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log10_x1000
_log10_x1000:                           ; @log10_x1000
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	cmp	w0, #10
	b.ne	LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_18
LBB0_3:
	mov	w20, #48576
	movk	w20, #65520, lsl #16
	b	LBB0_18
LBB0_4:
	cmp	w19, #9
	b.hi	LBB0_7
; %bb.5:
	mov	w8, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w19, w19, lsl #2
	lsl	w19, w9, #1
	sub	w8, w8, #1
	cmp	w19, #10
	b.lt	LBB0_6
	b	LBB0_11
LBB0_7:
	cmp	w19, #100
	b.lo	LBB0_10
; %bb.8:
	mov	w8, #0
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	mov	x10, x19
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	umull	x11, w10, w9
	lsr	x19, x11, #35
	add	w8, w8, #1
	cmp	w10, #999
	mov	x10, x19
	b.hi	LBB0_9
	b	LBB0_11
LBB0_10:
	mov	w8, #0
LBB0_11:
	mov	w9, #1000
	mul	w20, w8, w9
	cmp	w19, #10
	b.eq	LBB0_18
; %bb.12:
Lloh0:
	adrp	x21, _valx_x10@GOTPAGE
Lloh1:
	ldr	x21, [x21, _valx_x10@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	mov	w22, #1
	cmp	w0, #2
	b.lt	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x22, lsl #2]
	cmp	w8, w19
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_13
LBB0_15:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ne	LBB0_17
; %bb.16:
Lloh2:
	adrp	x8, _log10x_x1000@GOTPAGE
Lloh3:
	ldr	x8, [x8, _log10x_x1000@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, w22, sxtw #2
	ldur	w8, [x8, #-4]
	add	w20, w8, w20
	b	LBB0_18
LBB0_17:
	ldr	x8, [x21]
	mov	x9, x22
	sbfiz	x9, x9, #2, #32
	sub	x9, x9, #4
	ldr	w10, [x8, x9]
	mov	w11, w22
	lsl	x11, x11, #2
	ldr	w8, [x8, x11]
Lloh5:
	adrp	x12, _log10x_x1000@GOTPAGE
Lloh6:
	ldr	x12, [x12, _log10x_x1000@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	ldr	w11, [x12, x11]
	ldr	w9, [x12, x9]
	sub	w12, w19, w10
	sub	w8, w8, w10
	sub	w10, w11, w9
	mul	w10, w10, w12
	sdiv	w8, w10, w8
	add	w9, w9, w20
	add	w20, w9, w8
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_valx_x10,8,3                   ; @valx_x10
	.comm	_log10x_x1000,8,3               ; @log10x_x1000
	.no_dead_strip	_log10_x1000
.subsections_via_symbols
