	.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_update
LCPI0_0:
	.quad	0x3e10000000000000              ## double 9.3132257461547852E-10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_targ_weights_update
	.p2align	4, 0x90
_targ_weights_update:                   ## @targ_weights_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_weights_coords@GOTPCREL(%rip), %r12
	movl	$-1, %r14d
	cmpl	%edx, (%r12)
	jne	LBB0_9
## %bb.1:
	movq	_TAT@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.2:
	movq	%rcx, %rbx
	callq	_get_user
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r15
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_targ_weights_vector_alloc
	movq	%rax, (%r15)
LBB0_5:
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.6:
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2sdl	(%rbx,%rcx,4), %xmm1
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %edx
	movl	%edx, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%r12), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_7
LBB0_8:
	movq	_weights_updates@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_weights_coords,4,2             ## @weights_coords
	.comm	_TAT,8,3                        ## @TAT
	.comm	_weights_updates,4,2            ## @weights_updates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_targ_weights_update            ; -- Begin function targ_weights_update
	.p2align	2
_targ_weights_update:                   ; @targ_weights_update
	.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
Lloh0:
	adrp	x21, _weights_coords@GOTPAGE
Lloh1:
	ldr	x21, [x21, _weights_coords@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _TAT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TAT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	w8, w2
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x3
	bl	_get_user
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_4
; %bb.3:
	bl	_targ_weights_vector_alloc
	str	x0, [x20]
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x8, #0
	ldr	x9, [x0]
	mov	x10, #4472074429978902528
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	s0, [x19, x11]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	fmov	d1, x10
	fmul	d0, d0, d1
	fcvtzs	w12, d0
	str	w12, [x9, x11]
	add	x8, x8, #1
	ldrsw	x11, [x21]
	cmp	x8, x11
	b.lt	LBB0_6
LBB0_7:
	mov	w0, #0
Lloh5:
	adrp	x8, _weights_updates@GOTPAGE
Lloh6:
	ldr	x8, [x8, _weights_updates@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_weights_coords,4,2             ; @weights_coords
	.comm	_TAT,8,3                        ; @TAT
	.comm	_weights_updates,4,2            ; @weights_updates
.subsections_via_symbols
