	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function update_stat
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_update_stat:                           ## @update_stat
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movsd	(%rsi), %xmm2                   ## xmm2 = mem[0],zero
	ucomisd	%xmm0, %xmm2
	movabsq	$4294967297, %r12               ## imm = 0x100000001
	jbe	LBB0_2
## %bb.1:
	movsd	%xmm0, (%rbx)
	movsd	%xmm1, 8(%rbx)
	movq	%r12, 16(%rbx)
	movq	$0, 176(%rbx)
	jmp	LBB0_9
LBB0_2:
	jne	LBB0_5
	jp	LBB0_5
## %bb.3:
	incl	20(%rbx)
	movsd	24(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	ucomisd	%xmm0, %xmm2
	jne	LBB0_7
	jp	LBB0_7
## %bb.4:
	movl	16(%rbx), %eax
	incl	%eax
	jmp	LBB0_8
LBB0_5:
	movsd	24(%rbx), %xmm3                 ## xmm3 = mem[0],zero
	ucomisd	%xmm2, %xmm3
	jne	LBB0_9
	jp	LBB0_9
## %bb.6:
	movl	16(%rbx), %eax
	imull	%eax, %eax
	addq	%rax, 176(%rbx)
	jmp	LBB0_9
LBB0_7:
	movl	$1, %eax
LBB0_8:
	movl	%eax, 16(%rbx)
LBB0_9:
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm2, %xmm0
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movapd	%xmm1, -64(%rbp)                ## 16-byte Spill
	jne	LBB0_10
	jnp	LBB0_12
LBB0_10:
	callq	_FFABS
	movapd	-64(%rbp), %xmm1                ## 16-byte Reload
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	cmpq	32(%rbx), %rax
	jge	LBB0_12
## %bb.11:
	callq	_FFABS
	movapd	-64(%rbp), %xmm1                ## 16-byte Reload
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movq	%rax, 32(%rbx)
LBB0_12:
	movsd	40(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jbe	LBB0_14
## %bb.13:
	movsd	%xmm0, 40(%rbx)
	movsd	%xmm1, 48(%rbx)
	movq	%r12, 56(%rbx)
	movq	$0, 168(%rbx)
	jmp	LBB0_21
LBB0_14:
	ucomisd	%xmm0, %xmm2
	jne	LBB0_17
	jp	LBB0_17
## %bb.15:
	incl	60(%rbx)
	movsd	24(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	ucomisd	%xmm0, %xmm2
	jne	LBB0_19
	jp	LBB0_19
## %bb.16:
	movl	56(%rbx), %eax
	incl	%eax
	jmp	LBB0_20
LBB0_17:
	movsd	24(%rbx), %xmm3                 ## xmm3 = mem[0],zero
	ucomisd	%xmm2, %xmm3
	jne	LBB0_21
	jp	LBB0_21
## %bb.18:
	movl	56(%rbx), %eax
	imull	%eax, %eax
	addq	%rax, 168(%rbx)
	jmp	LBB0_21
LBB0_19:
	movl	$1, %eax
LBB0_20:
	movl	%eax, 56(%rbx)
LBB0_21:
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm2, %xmm0
	jne	LBB0_22
	jnp	LBB0_23
LBB0_22:
	callq	_FFSIGN
	movq	%rax, %r12
	movsd	72(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_FFSIGN
	movapd	-64(%rbp), %xmm1                ## 16-byte Reload
	xorl	%ecx, %ecx
	cmpq	%rax, %r12
	setne	%cl
	addl	%ecx, 64(%rbx)
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, 72(%rbx)
LBB0_23:
	movsd	80(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	%xmm0, 80(%rbx)
	movsd	(%r15), %xmm0                   ## xmm0 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	subsd	%xmm0, %xmm3
	mulsd	%xmm1, %xmm3
	movapd	%xmm1, %xmm2
	movhpd	96(%rbx), %xmm2                 ## xmm2 = xmm2[0],mem[0]
	mulsd	%xmm1, %xmm3
	unpcklpd	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	mulpd	%xmm2, %xmm1
	movsd	88(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	unpcklpd	%xmm3, %xmm0                    ## xmm0 = xmm0[0],xmm3[0]
	addpd	%xmm1, %xmm0
	movupd	%xmm0, 88(%rbx)
	movsd	24(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_isnan
	movsd	-40(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	testl	%eax, %eax
	jne	LBB0_25
## %bb.24:
	movq	160(%rbx), %rdi
	movapd	%xmm2, %xmm0
	subsd	24(%rbx), %xmm0
	andpd	LCPI0_1(%rip), %xmm0
	callq	_FFMIN
	movq	%rax, 160(%rbx)
	movq	152(%rbx), %rdi
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	24(%rbx), %xmm0
	andpd	LCPI0_1(%rip), %xmm0
	callq	_FFMAX
	movsd	-40(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movq	%rax, 152(%rbx)
	movapd	%xmm2, %xmm0
	subsd	24(%rbx), %xmm0
	movapd	LCPI0_1(%rip), %xmm3            ## xmm3 = [NaN,NaN]
	andpd	%xmm0, %xmm3
	xorps	%xmm1, %xmm1
	cvtsi2sdl	144(%rbx), %xmm1
	addsd	%xmm3, %xmm1
	cvttsd2si	%xmm1, %eax
	movl	%eax, 144(%rbx)
	mulsd	%xmm0, %xmm0
	addsd	104(%rbx), %xmm0
	movsd	%xmm0, 104(%rbx)
LBB0_25:
	movsd	%xmm2, 24(%rbx)
	orl	%r14d, 140(%rbx)
	andl	%r14d, 136(%rbx)
	movq	112(%rbx), %rax
	cmpq	8(%r15), %rax
	jl	LBB0_27
## %bb.26:
	movq	128(%rbx), %rdi
	movsd	96(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_FFMAX
	movq	%rax, 128(%rbx)
	movq	120(%rbx), %rdi
	movsd	96(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	callq	_FFMIN
	movq	%rax, 120(%rbx)
	movq	112(%rbx), %rax
LBB0_27:
	incq	%rax
	movq	%rax, 112(%rbx)
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_update_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_stat
_update_stat:                           ; @update_stat
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x21, x2
	fmov	d9, d1
	fmov	d8, d0
	mov	x19, x1
	mov	x20, x0
	ldr	d0, [x1]
	fcmp	d0, d8
	b.le	LBB0_2
; %bb.1:
	str	d8, [x19]
	str	d9, [x19, #8]
	str	xzr, [x19, #176]
	movi.2s	v0, #1
	str	d0, [x19, #16]
	fcmp	d8, #0.0
	b.ne	LBB0_10
	b	LBB0_12
LBB0_2:
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	ldr	d0, [x19, #24]
	fcmp	d0, d8
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	b	LBB0_9
LBB0_5:
	ldr	d1, [x19, #24]
	fcmp	d1, d0
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x19, #16]
	mul	w8, w8, w8
	ldr	x9, [x19, #176]
	add	x8, x9, x8
	str	x8, [x19, #176]
LBB0_7:
	fcmp	d8, #0.0
	b.ne	LBB0_10
	b	LBB0_12
LBB0_8:
	mov	w8, #1
LBB0_9:
	str	w8, [x19, #16]
	fcmp	d8, #0.0
	b.eq	LBB0_12
LBB0_10:
	fmov	d0, d8
	bl	_FFABS
	ldr	x8, [x19, #32]
	cmp	x0, x8
	b.ge	LBB0_12
; %bb.11:
	fmov	d0, d8
	bl	_FFABS
	str	x0, [x19, #32]
LBB0_12:
	ldr	d0, [x19, #40]
	fcmp	d0, d8
	b.pl	LBB0_14
; %bb.13:
	str	d8, [x19, #40]
	str	d9, [x19, #48]
	str	xzr, [x19, #168]
	movi.2s	v0, #1
	str	d0, [x19, #56]
	fcmp	d8, #0.0
	b.ne	LBB0_20
	b	LBB0_21
LBB0_14:
	b.ne	LBB0_17
; %bb.15:
	ldr	w8, [x19, #60]
	add	w8, w8, #1
	str	w8, [x19, #60]
	ldr	d0, [x19, #24]
	fcmp	d0, d8
	b.ne	LBB0_26
; %bb.16:
	ldr	w8, [x19, #56]
	add	w8, w8, #1
	b	LBB0_27
LBB0_17:
	ldr	d1, [x19, #24]
	fcmp	d1, d0
	b.ne	LBB0_19
; %bb.18:
	ldr	w8, [x19, #56]
	mul	w8, w8, w8
	ldr	x9, [x19, #168]
	add	x8, x9, x8
	str	x8, [x19, #168]
LBB0_19:
	fcmp	d8, #0.0
	b.eq	LBB0_21
LBB0_20:
	fmov	d0, d8
	bl	_FFSIGN
	mov	x22, x0
	ldr	d0, [x19, #72]
	bl	_FFSIGN
	cmp	x22, x0
	ldr	w8, [x19, #64]
	cinc	w8, w8, ne
	str	w8, [x19, #64]
	str	d8, [x19, #72]
LBB0_21:
	ldp	d0, d1, [x19, #80]
	fadd	d0, d0, d9
	str	d0, [x19, #80]
	fmadd	d0, d9, d9, d1
	str	d0, [x19, #88]
	ldr	d0, [x19, #96]
	ldr	d1, [x20]
	fmov	d2, #1.00000000
	fsub	d2, d2, d1
	fmul	d2, d2, d9
	fmul	d2, d2, d9
	fmadd	d0, d0, d1, d2
	str	d0, [x19, #96]
	ldr	d0, [x19, #24]
	bl	_isnan
	cbnz	w0, LBB0_23
; %bb.22:
	ldr	x0, [x19, #160]
	ldr	d0, [x19, #24]
	fabd	d0, d8, d0
	bl	_FFMIN
	str	x0, [x19, #160]
	ldr	x0, [x19, #152]
	ldr	d0, [x19, #24]
	fabd	d0, d8, d0
	bl	_FFMAX
	str	x0, [x19, #152]
	ldr	d0, [x19, #24]
	fsub	d1, d8, d0
	fabd	d0, d8, d0
	ldr	s2, [x19, #144]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	fadd	d0, d0, d2
	fcvtzs	w8, d0
	str	w8, [x19, #144]
	ldr	d0, [x19, #104]
	fmadd	d0, d1, d1, d0
	str	d0, [x19, #104]
LBB0_23:
	str	d8, [x19, #24]
	ldp	w9, w8, [x19, #136]
	orr	w8, w8, w21
	and	w9, w9, w21
	stp	w9, w8, [x19, #136]
	ldr	x8, [x19, #112]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.lt	LBB0_25
; %bb.24:
	ldr	x0, [x19, #128]
	ldr	d0, [x19, #96]
	bl	_FFMAX
	str	x0, [x19, #128]
	ldr	x0, [x19, #120]
	ldr	d0, [x19, #96]
	bl	_FFMIN
	str	x0, [x19, #120]
	ldr	x8, [x19, #112]
LBB0_25:
	add	x8, x8, #1
	str	x8, [x19, #112]
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	w8, #1
LBB0_27:
	str	w8, [x19, #56]
	fcmp	d8, #0.0
	b.ne	LBB0_20
	b	LBB0_21
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_update_stat
.subsections_via_symbols
