	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function targ_weights_small_update
LCPI0_0:
	.quad	0x3e10000000000000              ## double 9.3132257461547852E-10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_targ_weights_small_update
	.p2align	4, 0x90
_targ_weights_small_update:             ## @targ_weights_small_update
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %ebx
	testl	%esi, %esi
	js	LBB0_14
## %bb.1:
	movl	%esi, %r12d
	movq	_weights_coords@GOTPCREL(%rip), %r14
	cmpl	%esi, (%r14)
	jle	LBB0_14
## %bb.2:
	movq	_TAT@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.3:
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_get_user
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, %r13
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_targ_weights_vector_alloc
	movq	%rax, (%r13)
LBB0_6:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ebx
	subl	(%rax), %ebx
	jle	LBB0_13
## %bb.7:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	_targ_weights_last_update_time@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jge	LBB0_9
## %bb.8:
	movl	%edx, (%rcx)
LBB0_9:
	cmpl	$0, (%r14)
	movq	%r14, %r12
	movq	_TAT@GOTPCREL(%rip), %r14
	jle	LBB0_12
## %bb.10:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r15,4), %edi
	movl	%ebx, %esi
	callq	_time_amortization_table_fast_exp
	movl	%eax, %ecx
	movq	(%r13), %rax
	movq	8(%rax), %rdx
	imull	(%rdx,%r15,4), %ecx
	movl	%ecx, (%rdx,%r15,4)
	incq	%r15
	movslq	(%r12), %rcx
	cmpq	%rcx, %r15
	jl	LBB0_11
LBB0_12:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
LBB0_13:
	cvtsi2sd	%r15d, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %ecx
	movq	8(%rax), %rax
	movslq	%r12d, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	_weights_small_updates@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_weights_coords,4,2             ## @weights_coords
	.comm	_TAT,8,3                        ## @TAT
	.comm	_targ_weights_last_update_time,4,2 ## @targ_weights_last_update_time
	.comm	_weights_small_updates,4,2      ## @weights_small_updates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_targ_weights_small_update      ; -- Begin function targ_weights_small_update
	.p2align	2
_targ_weights_small_update:             ; @targ_weights_small_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	tbnz	w1, #31, LBB0_13
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x24, _weights_coords@GOTPAGE
Lloh1:
	ldr	x24, [x24, _weights_coords@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _TAT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TAT@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	w8, w1
	ccmp	x9, #0, #4, gt
	b.eq	LBB0_13
; %bb.2:
	mov	x20, x3
	mov	x21, x2
	bl	_get_user
	cbz	x0, LBB0_13
; %bb.3:
	mov	x22, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_5
; %bb.4:
	bl	_targ_weights_vector_alloc
	str	x0, [x22]
LBB0_5:
	ldr	w8, [x0]
	sub	w23, w21, w8
	cmp	w23, #1
	b.lt	LBB0_12
; %bb.6:
Lloh4:
	adrp	x8, _targ_weights_last_update_time@GOTPAGE
Lloh5:
	ldr	x8, [x8, _targ_weights_last_update_time@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w21
	b.ge	LBB0_8
; %bb.7:
	str	w21, [x8]
LBB0_8:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x26, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	lsl	x27, x26, #2
	ldr	w0, [x8, x27]
	mov	x1, x23
	bl	_time_amortization_table_fast_exp
	mov	x8, x0
	ldr	x0, [x22]
	ldr	x9, [x0, #8]
	ldr	w10, [x9, x27]
	mul	w8, w10, w8
	str	w8, [x9, x27]
	add	x26, x26, #1
	ldrsw	x8, [x24]
	cmp	x26, x8
	b.lt	LBB0_10
LBB0_11:
	str	w21, [x0]
LBB0_12:
	mov	w8, #0
	scvtf	d0, w20
	mov	x9, #4472074429978902528
	fmov	d1, x9
	fmul	d0, d0, d1
	fcvtzs	w9, d0
	ldr	x10, [x0, #8]
	str	w9, [x10, w19, sxtw #2]
Lloh6:
	adrp	x9, _weights_small_updates@GOTPAGE
Lloh7:
	ldr	x9, [x9, _weights_small_updates@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	b	LBB0_14
LBB0_13:
	mov	w8, #-1
LBB0_14:
	mov	x0, x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_weights_coords,4,2             ; @weights_coords
	.comm	_TAT,8,3                        ; @TAT
	.comm	_targ_weights_last_update_time,4,2 ; @targ_weights_last_update_time
	.comm	_weights_small_updates,4,2      ; @weights_small_updates
.subsections_via_symbols
