	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mss12_model_update          ## -- Begin function ff_mss12_model_update
	.p2align	4, 0x90
_ff_mss12_model_update:                 ## @ff_mss12_model_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	%rbx
	.cfi_offset %rbx, -24
	movq	(%rdi), %r8
	movslq	%esi, %r9
	movq	(%r8,%r9,8), %r10
	cmpq	-8(%r8,%r9,8), %r10
	jne	LBB0_5
## %bb.1:
	movq	%r9, %rax
	shlq	$32, %rax
	movl	$4294967287, %ecx               ## imm = 0xFFFFFFF7
	addq	%rcx, %rax
	addq	$9, %rax
	leaq	(%r8,%r9,8), %rdx
	addq	$-8, %rdx
	movl	$-1, %ecx
	movabsq	$-4294967296, %r11              ## imm = 0xFFFFFFFF00000000
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r11, %rax
	incl	%ecx
	leaq	-8(%rdx), %rbx
	cmpq	%r10, (%rdx)
	movq	%rbx, %rdx
	je	LBB0_2
## %bb.3:
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movl	%r9d, %esi
	subl	%ecx, %esi
	movq	8(%rdi), %rcx
	movl	(%rcx,%r9,4), %r10d
	movq	%rax, %rbx
	sarq	$30, %rbx
	movl	(%rcx,%rbx), %edx
	movl	%edx, (%rcx,%r9,4)
	movq	%rax, %r9
	sarq	$32, %r9
	movl	%r10d, (%rcx,%rbx)
	sarq	$29, %rax
	movq	(%r8,%rax), %r10
LBB0_5:
	incq	%r10
	movq	%r10, (%r8,%r9,8)
	testl	%esi, %esi
	jle	LBB0_20
## %bb.6:
	movq	16(%rdi), %rax
	movl	%esi, %ecx
	cmpl	$8, %esi
	jae	LBB0_7
LBB0_18:
	incq	%rcx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rcx), %edx
	incl	(%rax,%rdx,4)
	decq	%rcx
	cmpq	$1, %rcx
	ja	LBB0_19
LBB0_20:
	popq	%rbx
	popq	%rbp
	jmp	_model_rescale_weights          ## TAILCALL
LBB0_7:
	leaq	-1(%rcx), %r11
	decl	%esi
	cmpl	%r11d, %esi
	jb	LBB0_18
## %bb.8:
	movq	%r11, %rdx
	shrq	$32, %rdx
	jne	LBB0_18
## %bb.9:
	movl	%ecx, %r8d
	andl	$-8, %r8d
	leaq	-8(%r8), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.11:
	movq	%r9, %rsi
	andq	$-2, %rsi
	movl	$4294967287, %edx               ## imm = 0xFFFFFFF7
	addq	%rcx, %rdx
	movl	$1, %r10d
	pcmpeqd	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%r11d, %ebx
	movdqu	-28(%rax,%rbx,4), %xmm1
	movdqu	-12(%rax,%rbx,4), %xmm2
	psubd	%xmm0, %xmm2
	psubd	%xmm0, %xmm1
	movdqu	%xmm2, -12(%rax,%rbx,4)
	movdqu	%xmm1, -28(%rax,%rbx,4)
	movl	%edx, %ebx
	movdqu	-28(%rax,%rbx,4), %xmm1
	movdqu	-12(%rax,%rbx,4), %xmm2
	psubd	%xmm0, %xmm2
	psubd	%xmm0, %xmm1
	movdqu	%xmm2, -12(%rax,%rbx,4)
	movdqu	%xmm1, -28(%rax,%rbx,4)
	addq	$16, %r10
	addq	$-16, %rdx
	addq	$-16, %r11
	addq	$-2, %rsi
	jne	LBB0_12
## %bb.13:
	negq	%r10
	testb	$1, %r9b
	je	LBB0_16
LBB0_15:
	addl	%ecx, %r10d
	movdqu	-28(%rax,%r10,4), %xmm0
	movdqu	-12(%rax,%r10,4), %xmm1
	pcmpeqd	%xmm2, %xmm2
	psubd	%xmm2, %xmm1
	psubd	%xmm2, %xmm0
	movdqu	%xmm1, -12(%rax,%r10,4)
	movdqu	%xmm0, -28(%rax,%r10,4)
LBB0_16:
	cmpq	%rcx, %r8
	je	LBB0_20
## %bb.17:
	andl	$7, %ecx
	jmp	LBB0_18
LBB0_10:
	movq	$-1, %r10
	testb	$1, %r9b
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mss12_model_update          ; -- Begin function ff_mss12_model_update
	.p2align	2
_ff_mss12_model_update:                 ; @ff_mss12_model_update
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	sxtw	x9, w1
	add	x10, x8, w1, sxtw #3
	ldp	x12, x11, [x10, #-8]
	mov	w10, w1
	cmp	x11, x12
	b.ne	LBB0_5
; %bb.1:
	mov	x13, #0
	mov	x12, #4294967296
	add	x12, x12, x9, lsl #32
	add	x14, x8, x9, lsl #3
	sub	x14, x14, #8
	mov	x15, #-4294967296
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x16, [x14, x13, lsl #3]
	add	x12, x12, x15
	sub	x13, x13, #1
	cmp	x16, x11
	b.eq	LBB0_2
; %bb.3:
	cmn	w13, #1
	b.eq	LBB0_5
; %bb.4:
	add	x10, x13, w1, uxtw
	add	x10, x10, #1
	ldr	x11, [x0, #8]
	lsl	x13, x9, #2
	ldr	w14, [x11, x13]
	asr	x9, x12, #32
	asr	x15, x12, #30
	ldr	w16, [x11, x15]
	str	w16, [x11, x13]
	str	w14, [x11, x15]
	asr	x11, x12, #29
	ldr	x11, [x8, x11]
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
LBB0_5:
	add	x11, x11, #1
	str	x11, [x8, x9, lsl #3]
	subs	w12, w10, #1
	b.lt	LBB0_10
; %bb.6:
	ldr	x8, [x0, #16]
	mov	w9, w10
	cmp	w10, #16
	b.hs	LBB0_11
LBB0_7:
	mov	x10, x9
LBB0_8:
	add	x9, x10, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w9, #2
	lsl	x10, x10, #2
	ldr	w11, [x8, x10]
	add	w11, w11, #1
	str	w11, [x8, x10]
	sub	x9, x9, #1
	cmp	x9, #1
	b.hi	LBB0_9
LBB0_10:
	b	_model_rescale_weights
LBB0_11:
	sub	x11, x9, #1
	cmp	w12, w11
	b.lo	LBB0_7
; %bb.12:
	lsr	x10, x11, #32
	cbnz	x10, LBB0_7
; %bb.13:
	and	x12, x9, #0xfffffff0
	and	x10, x9, #0xf
	movi.4s	v0, #1
	mov	x13, x12
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x14, x8, w11, uxtw #2
	ldur	q1, [x14, #-12]
	ldur	q2, [x14, #-28]
	ldur	q3, [x14, #-44]
	ldur	q4, [x14, #-60]
	add.4s	v1, v1, v0
	add.4s	v2, v2, v0
	add.4s	v3, v3, v0
	add.4s	v4, v4, v0
	stur	q1, [x14, #-12]
	stur	q2, [x14, #-28]
	stur	q3, [x14, #-44]
	stur	q4, [x14, #-60]
	sub	x11, x11, #16
	subs	x13, x13, #16
	b.ne	LBB0_14
; %bb.15:
	cmp	x12, x9
	b.ne	LBB0_8
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
