	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function QTMfdi_initmodel
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	4
	.space	4
LCPI0_1:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.space	4
	.space	4
LCPI0_2:
	.quad	2                               ## 0x2
	.quad	3                               ## 0x3
LCPI0_3:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_QTMfdi_initmodel:                      ## @QTMfdi_initmodel
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movl	$4, (%rdi)
	movl	%edx, 4(%rdi)
	movq	%rsi, 16(%rdi)
	movq	8(%rdi), %rdi
	movl	$255, %esi
	movl	$8, %edx
	callq	_memset
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	movq	8(%rbx), %r8
	movq	16(%rbx), %rax
	movslq	%r15d, %r9
	movl	%r14d, %r12d
	cmpl	$4, %r14d
	jb	LBB0_2
## %bb.4:
	leaq	(%r8,%r9,4), %rdx
	leaq	(%rax,%r12,8), %rsi
	cmpq	%rsi, %rdx
	jae	LBB0_7
## %bb.5:
	leaq	(%r9,%r12), %rdx
	leaq	(%r8,%rdx,4), %rdx
	cmpq	%rdx, %rax
	jae	LBB0_7
LBB0_2:
	xorl	%edx, %edx
LBB0_10:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %r12b
	je	LBB0_12
## %bb.11:
	leaq	(%rdx,%r9), %rcx
	movl	%edx, (%r8,%rcx,4)
	movl	%ecx, (%rax,%rdx,8)
	movl	%r14d, %ecx
	subl	%edx, %ecx
	movl	%ecx, 4(%rax,%rdx,8)
	orq	$1, %rdx
LBB0_12:
	negq	%r12
	cmpq	%r12, %rsi
	je	LBB0_15
## %bb.13:
	movl	%r14d, %esi
	subl	%edx, %esi
	movl	%r9d, %edi
	leaq	(%r8,%r9,4), %rbx
	addq	$4, %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, -4(%rbx,%rdx,4)
	leal	(%rdi,%rdx), %ecx
	movl	%ecx, (%rax,%rdx,8)
	movl	%esi, 4(%rax,%rdx,8)
	leal	1(%rdx), %ecx
	movl	%ecx, (%rbx,%rdx,4)
	leal	1(%rdi,%rdx), %ecx
	movl	%ecx, 8(%rax,%rdx,8)
	leal	-1(%rsi), %ecx
	movl	%ecx, 12(%rax,%rdx,8)
	addq	$2, %rdx
	addl	$-2, %esi
	movq	%r12, %rcx
	addq	%rdx, %rcx
	jne	LBB0_14
	jmp	LBB0_15
LBB0_3:
	movq	16(%rbx), %rax
	jmp	LBB0_15
LBB0_7:
	movl	%r12d, %edx
	andl	$-4, %edx
	movd	%r14d, %xmm0
	pshufd	$80, %xmm0, %xmm4               ## xmm4 = xmm0[0,0,1,1]
	movq	%r9, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	leaq	1(%r9), %r10
	leaq	(%r8,%r9,4), %r11
	addq	$8, %r11
	movdqa	LCPI0_0(%rip), %xmm6            ## xmm6 = <0,1,u,u>
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = <2,2,u,u>
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [2,3]
	movdqa	LCPI0_3(%rip), %xmm5            ## xmm5 = <4,4,u,u>
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm6, %xmm3
	paddd	%xmm8, %xmm3
	movq	%rdi, %xmm7
	pshufd	$68, %xmm7, %xmm7               ## xmm7 = xmm7[0,1,0,1]
	por	%xmm9, %xmm7
	leal	(%r15,%rdi), %ebx
	leal	(%r10,%rdi), %esi
	movdqa	%xmm6, %xmm2
	punpcklqdq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0]
	movdqu	%xmm2, -8(%r11,%rdi,4)
	movq	%xmm7, %rcx
	paddq	%xmm1, %xmm7
	movdqa	%xmm4, %xmm2
	psubd	%xmm6, %xmm2
	movdqa	%xmm4, %xmm0
	psubd	%xmm3, %xmm0
	movd	%ebx, %xmm3
	pinsrd	$1, %esi, %xmm3
	punpckldq	%xmm2, %xmm3            ## xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
	movdqu	%xmm3, (%rax,%rdi,8)
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	pblendw	$51, %xmm7, %xmm0               ## xmm0 = xmm7[0,1],xmm0[2,3],xmm7[4,5],xmm0[6,7]
	movdqu	%xmm0, (%rax,%rcx,8)
	addq	$4, %rdi
	paddd	%xmm5, %xmm6
	cmpq	%rdi, %rdx
	jne	LBB0_8
## %bb.9:
	cmpq	%r12, %rdx
	jne	LBB0_10
LBB0_15:
	movslq	%r14d, %rcx
	movl	$0, 4(%rax,%rcx,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_QTMfdi_initmodel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function QTMfdi_initmodel
lCPI0_0:
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
lCPI0_1:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
lCPI0_2:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_QTMfdi_initmodel:                      ; @QTMfdi_initmodel
	.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	x20, x3
	mov	x19, x2
	mov	x21, x0
	mov	w8, #4
	stp	w8, w2, [x0]
	str	x1, [x0, #16]
	ldr	x0, [x0, #8]
	mov	w1, #255
	mov	w2, #8
	bl	_memset
	cmp	w19, #0
	b.le	LBB0_9
; %bb.1:
	ldp	x11, x8, [x21, #8]
	sxtw	x12, w20
	mov	w9, w19
	cmp	w19, #16
	b.lo	LBB0_6
; %bb.2:
	add	x10, x11, x12, lsl #2
	add	x13, x12, x9
	add	x13, x11, x13, lsl #2
	add	x14, x8, x9, lsl #3
	cmp	x10, x14
	ccmp	x8, x13, #2, lo
	b.lo	LBB0_6
; %bb.3:
	mov	x13, #0
	and	x10, x9, #0xfffffff0
	add	x14, x12, #4
	dup.2d	v0, x14
	add	x14, x12, #8
	dup.2d	v1, x14
	add	x14, x12, #12
	dup.2d	v2, x14
Lloh0:
	adrp	x14, lCPI0_0@PAGE
Lloh1:
	ldr	q3, [x14, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x14, lCPI0_1@PAGE
Lloh3:
	ldr	q4, [x14, lCPI0_1@PAGEOFF]
Lloh4:
	adrp	x14, lCPI0_2@PAGE
Lloh5:
	ldr	q5, [x14, lCPI0_2@PAGEOFF]
	mov	w14, #16
	dup.2d	v6, x14
	lsl	x14, x9, #3
	dup.2d	v7, x12
	and	x14, x14, #0x7ffffff80
	dup.4s	v16, w19
	movi.4s	v17, #4
	movi.4s	v18, #8
	movi.4s	v19, #12
	movi.4s	v20, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v21, v5, v17
	add.4s	v22, v5, v18
	add.4s	v23, v5, v19
	add.2d	v24, v3, v7
	add.2d	v25, v4, v7
	add.2d	v26, v0, v4
	add.2d	v27, v0, v3
	add.2d	v28, v1, v4
	add.2d	v29, v1, v3
	add.2d	v30, v2, v4
	uzp1.4s	v8, v25, v24
	fmov	x15, d25
	add.2d	v24, v2, v3
	add	x15, x11, x15, lsl #2
	stp	q5, q21, [x15]
	stp	q22, q23, [x15, #32]
	sub.4s	v9, v16, v5
	uzp1.4s	v25, v26, v27
	sub.4s	v26, v16, v21
	uzp1.4s	v27, v28, v29
	sub.4s	v28, v16, v22
	uzp1.4s	v21, v30, v24
	add	x15, x8, x13
	add	x16, x15, #64
	add	x17, x15, #96
	st2.4s	{ v8, v9 }, [x15], #32
	sub.4s	v22, v16, v23
	st2.4s	{ v25, v26 }, [x15]
	add	x13, x13, #128
	add.2d	v3, v3, v6
	add.2d	v4, v4, v6
	st2.4s	{ v27, v28 }, [x16]
	add.4s	v5, v5, v20
	st2.4s	{ v21, v22 }, [x17]
	cmp	x14, x13
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.ne	LBB0_7
	b	LBB0_10
LBB0_6:
	mov	x10, #0
LBB0_7:
	sub	w13, w19, w10
	mov	w14, w20
	mov	w15, #4
	bfi	x15, x10, #3, #32
	add	x11, x11, x12, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	w10, [x11, x10, lsl #2]
	add	x12, x8, x15
	add	w16, w14, w10
	stp	w16, w13, [x12, #-4]
	add	x10, x10, #1
	sub	w13, w13, #1
	add	x15, x15, #8
	cmp	x9, x10
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:
	ldr	x8, [x21, #16]
LBB0_10:
	add	x8, x8, w19, sxtw #3
	str	wzr, [x8, #4]
	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
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_QTMfdi_initmodel
.subsections_via_symbols
