	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function QTMupdatemodel
_QTMupdatemodel:                        ## @QTMupdatemodel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %r9
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	movl	%esi, %ecx
	leaq	-1(%rcx), %rdx
	movl	%ecx, %eax
	andl	$3, %eax
	cmpq	$3, %rdx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %ecx
	leaq	48(%r9), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addl	$8, -48(%rsi)
	addl	$8, -32(%rsi)
	addl	$8, -16(%rsi)
	addl	$8, (%rsi)
	addq	$4, %rdx
	addq	$64, %rsi
	cmpq	%rdx, %rcx
	jne	LBB0_4
LBB0_5:
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	shlq	$4, %rdx
	addq	%r9, %rdx
	shlq	$4, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addl	$8, (%rdx,%rcx)
	addq	$16, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_7
LBB0_8:
	movl	(%r9), %r10d
	cmpl	$3801, %r10d                    ## imm = 0xED9
	jl	LBB0_15
## %bb.9:
	decl	(%rdi)
	je	LBB0_16
## %bb.10:
	movl	4(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:
	leaq	1(%rax), %rdx
	shlq	$4, %rax
	addq	%r9, %rax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	decq	%rdx
	addq	$-16, %rax
	cmpq	$1, %rdx
	jbe	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rdx), %ecx
	shlq	$4, %rcx
	movl	(%r9,%rcx), %edi
	sarl	%edi
	movl	%edi, (%r9,%rcx)
	movl	(%rax), %esi
	cmpl	%esi, %edi
	jg	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	%r9, %rcx
	incl	%esi
	movl	%esi, (%rcx)
	jmp	LBB0_14
LBB0_16:
	movl	$50, (%rdi)
	movl	4(%rdi), %r11d
	testl	%r11d, %r11d
	jle	LBB0_15
## %bb.17:
	cmpl	$1, %r11d
	jne	LBB0_23
## %bb.18:
	xorl	%esi, %esi
	jmp	LBB0_19
LBB0_23:
	movl	%r11d, %r8d
	andl	$-2, %r8d
	leaq	32(%r9), %rcx
	xorl	%esi, %esi
	movl	%r10d, %edx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	-16(%rcx), %eax
	movl	(%rcx), %r10d
	subl	%eax, %edx
	incl	%edx
	sarl	%edx
	movl	%edx, -32(%rcx)
	addq	$2, %rsi
	subl	%r10d, %eax
	incl	%eax
	sarl	%eax
	movl	%eax, -16(%rcx)
	addq	$32, %rcx
	movl	%r10d, %edx
	cmpq	%rsi, %r8
	jne	LBB0_24
LBB0_19:
	testb	$1, %r11b
	je	LBB0_21
## %bb.20:
	shlq	$4, %rsi
	subl	16(%r9,%rsi), %r10d
	incl	%r10d
	sarl	%r10d
	movl	%r10d, (%r9,%rsi)
LBB0_21:
	cmpl	$2, %r11d
	jl	LBB0_22
## %bb.35:
	movl	$16, %r9d
	movl	$1, %r10d
	xorl	%r8d, %r8d
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_36 Depth=1
	leal	-1(%r11), %esi
	movslq	%esi, %rax
	addq	$16, %r9
	incl	%r10d
	cmpq	%rax, %r8
	jge	LBB0_26
LBB0_36:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_38 Depth 2
	movq	%r8, %r14
	incq	%r8
	movslq	%r11d, %rax
	cmpq	%rax, %r8
	jge	LBB0_25
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=1
	movl	%r10d, %edx
	movq	%r9, %rcx
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_38 Depth=2
	addq	$16, %rcx
	incl	%edx
	cmpl	%edx, %r11d
	jle	LBB0_25
LBB0_38:                                ##   Parent Loop BB0_36 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rdi), %rax
	movq	%r14, %rbx
	shlq	$4, %rbx
	movl	(%rax,%rbx), %esi
	cmpl	(%rax,%rcx), %esi
	jge	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=2
	addq	%rax, %rbx
	movups	(%rbx), %xmm0
	movaps	%xmm0, -32(%rbp)
	movups	(%rax,%rcx), %xmm0
	movups	%xmm0, (%rbx)
	movq	16(%rdi), %rax
	movaps	-32(%rbp), %xmm0
	movups	%xmm0, (%rax,%rcx)
	movl	4(%rdi), %r11d
	jmp	LBB0_40
LBB0_22:
	leal	-1(%r11), %esi
LBB0_26:
	testl	%esi, %esi
	js	LBB0_32
## %bb.27:
	movq	16(%rdi), %rcx
	movl	%esi, %edx
	testb	$1, %sil
	jne	LBB0_29
## %bb.28:
	movq	%rdx, %rax
	shlq	$4, %rax
	movl	16(%rcx,%rax), %ebx
	addl	%ebx, (%rcx,%rax)
	decq	%rdx
LBB0_29:
	testl	%esi, %esi
	je	LBB0_32
## %bb.30:
	movq	%rdx, %rax
	shlq	$4, %rax
	addq	%rax, %rcx
	incq	%rdx
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %eax
	addl	16(%rcx), %eax
	movl	%eax, (%rcx)
	addl	%eax, -16(%rcx)
	addq	$-32, %rcx
	addq	$-2, %rdx
	jne	LBB0_31
LBB0_32:
	testl	%r11d, %r11d
	jle	LBB0_15
## %bb.33:
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	addq	$8, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rsi
	movl	%edx, (%rax,%rsi,4)
	incq	%rdx
	movslq	4(%rdi), %rsi
	addq	$16, %rcx
	cmpq	%rsi, %rdx
	jl	LBB0_34
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_QTMupdatemodel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function QTMupdatemodel
_QTMupdatemodel:                        ; @QTMupdatemodel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
	ldr	x9, [x0, #16]
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w8, w1
	cmp	w1, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #32
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x11, #-32]
	ldur	w14, [x11, #-16]
	ldr	w15, [x11]
	ldr	w16, [x11, #16]
	add	w13, w13, #8
	add	w14, w14, #8
	add	w15, w15, #8
	add	w16, w16, #8
	stur	w13, [x11, #-32]
	stur	w14, [x11, #-16]
	str	w15, [x11]
	str	w16, [x11, #16]
	add	x11, x11, #64
	subs	x12, x12, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x11, x9, x10, lsl #4
	sub	x8, x8, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x11]
	add	w10, w10, #8
	str	w10, [x11], #16
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	w11, [x9]
	cmp	w11, #3801
	b.lt	LBB0_37
; %bb.9:
	ldr	w8, [x0]
	subs	w8, w8, #1
	str	w8, [x0]
	b.eq	LBB0_15
; %bb.10:
	ldr	w10, [x0, #4]
	cmp	w10, #1
	b.lt	LBB0_37
; %bb.11:
	add	x8, x10, #1
	add	x10, x9, x10, lsl #4
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	x8, x8, #1
	sub	x10, x10, #16
	cmp	x8, #1
	b.ls	LBB0_37
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	w11, w8, #2
	add	x11, x9, w11, uxtw #4
	ldr	w12, [x11]
	asr	w13, w12, #1
	str	w13, [x11]
	ldr	w12, [x10]
	cmp	w13, w12
	b.gt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w12, w12, #1
	str	w12, [x11]
	b	LBB0_12
LBB0_15:
	mov	w8, #50
	str	w8, [x0]
	ldr	w8, [x0, #4]
	subs	w10, w8, #1
	b.lt	LBB0_37
; %bb.16:
	cmp	w8, #5
	b.hs	LBB0_18
; %bb.17:
	mov	x12, #0
	b	LBB0_21
LBB0_18:
	ands	x12, x8, #0x3
	mov	w13, #4
	csel	x12, x13, x12, eq
	sub	x12, x8, x12
	dup.4s	v0, w11
	add	x11, x9, #32
	movi.4s	v4, #1
	mov	x13, x12
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov.16b	v5, v0
	sub	x14, x11, #16
	ld4.4s	{ v0, v1, v2, v3 }, [x14]
	ext.16b	v5, v5, v0, #12
	add	x15, x11, #16
	sub.4s	v5, v5, v0
	add.4s	v5, v5, v4
	sshr.4s	v5, v5, #1
	stur	s5, [x11, #-32]
	st1.s	{ v5 }[1], [x14]
	st1.s	{ v5 }[2], [x11]
	st1.s	{ v5 }[3], [x15]
	add	x11, x11, #64
	subs	x13, x13, #4
	b.ne	LBB0_19
; %bb.20:
	mov.s	w11, v0[3]
LBB0_21:
	add	x9, x9, x12, lsl #4
	add	x9, x9, #16
	sub	x12, x8, x12
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9]
	sub	w11, w11, w13
	add	w11, w11, #1
	asr	w11, w11, #1
	stur	w11, [x9, #-16]
	add	x9, x9, #16
	mov	x11, x13
	subs	x12, x12, #1
	b.ne	LBB0_22
; %bb.23:
	cmp	w8, #2
	b.lt	LBB0_31
; %bb.24:
	mov	x12, #0
	mov	w9, #1
	mov	w11, #16
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	sub	w10, w8, #1
	add	x11, x11, #16
	add	w9, w9, #1
	cmp	x13, w10, sxtw
	mov	x12, x13
	b.ge	LBB0_31
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	add	x13, x12, #1
	cmp	x13, w8, sxtw
	b.ge	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x10, x9
	mov	x14, x11
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	add	x14, x14, #16
	add	w10, w10, #1
	cmp	w8, w10
	b.le	LBB0_25
LBB0_29:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x0, #16]
	add	x16, x15, x12, lsl #4
	ldr	w17, [x16]
	ldr	w1, [x15, x14]
	cmp	w17, w1
	b.ge	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	q0, [x16]
	ldr	q1, [x15, x14]
	str	q0, [sp]
	str	q1, [x16]
	ldr	x8, [x0, #16]
	str	q0, [x8, x14]
	ldr	w8, [x0, #4]
	b	LBB0_28
LBB0_31:
	tbnz	w10, #31, LBB0_34
; %bb.32:
	ldr	x9, [x0, #16]
	mov	w10, w10
	lsl	x10, x10, #4
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x9, x10
	ldr	w12, [x11, #16]
	ldr	w13, [x11]
	add	w12, w13, w12
	str	w12, [x11]
	sub	x10, x10, #16
	cmn	x10, #16
	b.ne	LBB0_33
LBB0_34:
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.35:
	mov	x8, #0
	ldp	x9, x10, [x0, #8]
	add	x10, x10, #8
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #16
	str	w8, [x9, x11, lsl #2]
	add	x8, x8, #1
	ldrsw	x11, [x0, #4]
	cmp	x8, x11
	b.lt	LBB0_36
LBB0_37:
	add	sp, sp, #16
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_QTMupdatemodel
.subsections_via_symbols
