	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ff_jpeg2000_tag_tree_init
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:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.space	4
	.space	4
LCPI0_3:
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.space	4
	.space	4
LCPI0_4:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ff_jpeg2000_tag_tree_init:             ## @ff_jpeg2000_tag_tree_init
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r12d
	callq	_tag_tree_size
	movl	%eax, %edi
	movl	$8, %esi
	callq	_av_mallocz_array
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	cmpl	$1, %r12d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jg	LBB0_2
## %bb.19:
	movq	%rax, %rcx
	movq	%rax, %rsi
	cmpl	$2, %r14d
	jl	LBB0_20
	jmp	LBB0_5
LBB0_2:
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
	movl	%r14d, %edx
	leal	1(%r12), %ebx
	sarl	%ebx
	leal	1(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %eax
	imull	%r14d, %eax
	cltq
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,8), %rsi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %rax
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%ecx, %edx
	andl	$-4, %edx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	addq	$-4, %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movq	%rdi, %rdx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	andq	$-2, %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	leaq	48(%r10), %r14
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,8), %r8
	xorl	%eax, %eax
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = <0,1,u,u>
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <2,2,u,u>
	movq	%rsi, %xmm2
	pshufd	$68, %xmm2, %xmm2               ## xmm2 = xmm2[0,1,0,1]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = <4,4,u,u>
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = <6,6,u,u>
	movdqa	LCPI0_4(%rip), %xmm5            ## xmm5 = <8,8,u,u>
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%rax
	addq	%r8, %r14
	addq	%r8, %r10
	cmpq	%r11, %rax
	je	LBB0_3
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
	testl	%r12d, %r12d
	jle	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	%eax, %r13d
	shrl	%r13d
	imull	%ebx, %r13d
	cmpl	$4, %r12d
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	xorl	%edi, %edi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movd	%r13d, %xmm6
	pshufd	$80, %xmm6, %xmm6               ## xmm6 = xmm6[0,0,1,1]
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	xorl	%r15d, %r15d
	movdqa	%xmm8, %xmm3
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movdqa	%xmm3, %xmm7
	paddd	%xmm1, %xmm7
	movdqa	%xmm3, %xmm0
	psrld	$1, %xmm0
	psrld	$1, %xmm7
	paddd	%xmm6, %xmm0
	paddd	%xmm6, %xmm7
	pmovsxdq	%xmm0, %xmm0
	pmovsxdq	%xmm7, %xmm7
	psllq	$3, %xmm0
	paddq	%xmm2, %xmm0
	psllq	$3, %xmm7
	paddq	%xmm2, %xmm7
	movdqu	%xmm0, -48(%r14,%r15,8)
	movdqu	%xmm7, -32(%r14,%r15,8)
	movdqa	%xmm3, %xmm0
	paddd	%xmm9, %xmm0
	movdqa	%xmm3, %xmm7
	paddd	%xmm4, %xmm7
	psrld	$1, %xmm0
	psrld	$1, %xmm7
	paddd	%xmm6, %xmm0
	paddd	%xmm6, %xmm7
	pmovsxdq	%xmm0, %xmm0
	pmovsxdq	%xmm7, %xmm7
	psllq	$3, %xmm0
	paddq	%xmm2, %xmm0
	psllq	$3, %xmm7
	paddq	%xmm2, %xmm7
	movdqu	%xmm0, -16(%r14,%r15,8)
	movdqu	%xmm7, (%r14,%r15,8)
	addq	$8, %r15
	paddd	%xmm5, %xmm3
	addq	$-2, %r9
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	testb	$1, -96(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, %rdi
	imulq	-80(%rbp), %rdi                 ## 8-byte Folded Reload
	movdqa	%xmm3, %xmm0
	paddd	%xmm1, %xmm0
	psrld	$1, %xmm3
	psrld	$1, %xmm0
	paddd	%xmm6, %xmm3
	paddd	%xmm6, %xmm0
	pmovsxdq	%xmm3, %xmm3
	pmovsxdq	%xmm0, %xmm0
	psllq	$3, %xmm3
	paddq	%xmm2, %xmm3
	psllq	$3, %xmm0
	paddq	%xmm2, %xmm0
	addq	%rdi, %r15
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movdqu	%xmm3, (%rdx,%r15,8)
	movdqu	%xmm0, 16(%rdx,%r15,8)
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, %rdi
	cmpq	%rcx, %rdx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%edi, %edx
	shrl	%edx
	addl	%r13d, %edx
	movslq	%edx, %rdx
	leaq	(%rsi,%rdx,8), %rdx
	movq	%rdx, (%r10,%rdi,8)
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_17
	jmp	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	xorl	%r15d, %r15d
	movdqa	%xmm8, %xmm3
	testb	$1, -96(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	sarl	%r14d
	movq	%rsi, %rcx
	cmpl	$2, %r12d
	movl	%ebx, %r12d
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %r12d
	movq	%rsi, %rcx
	cmpl	$3, -56(%rbp)                   ## 4-byte Folded Reload
	jge	LBB0_5
LBB0_20:
	movq	$0, (%rsi)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
LBB0_21:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ff_jpeg2000_tag_tree_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ff_jpeg2000_tag_tree_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ff_jpeg2000_tag_tree_init:             ; @ff_jpeg2000_tag_tree_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_tag_tree_size
	mov	w1, #8
	bl	_av_mallocz_array
	cbz	x0, LBB0_16
; %bb.1:
	mov	x9, x0
	cmp	w19, #1
	b.gt	LBB0_3
; %bb.2:
	mov	x8, x0
	cmp	w20, #2
	b.lt	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	mov	x10, x20
	add	w8, w19, #1
	asr	w11, w8, #1
	mul	w8, w19, w20
	add	x8, x9, w8, sxtw #3
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
	mov	w13, w10
	mov	w14, w19
	and	x15, x14, #0xfffffff8
	add	x16, x9, #32
	sbfiz	x17, x19, #3, #32
Lloh0:
	adrp	x1, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x1, lCPI0_0@PAGEOFF]
	movi.2s	v1, #2
	movi.2s	v2, #4
	movi.2s	v3, #6
	dup.2d	v4, x8
	movi.2s	v5, #8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x12, x12, #1
	add	x16, x16, x17
	add	x9, x9, x17
	cmp	x12, x13
	b.eq	LBB0_13
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;       Child Loop BB0_12 Depth 3
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ubfx	x1, x12, #1, #31
	mul	w1, w1, w11
	cmp	w19, #8
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x2, #0
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	dup.2s	v6, w1
	mov	x2, x15
	mov	x3, x16
	fmov	d7, d0
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add.2s	v16, v7, v1
	add.2s	v17, v7, v2
	add.2s	v18, v7, v3
	fmov	d19, d6
	usra.2s	v19, v7, #1
	fmov	d20, d6
	usra.2s	v20, v16, #1
	fmov	d16, d6
	usra.2s	v16, v17, #1
	fmov	d17, d6
	usra.2s	v17, v18, #1
	sshll.2d	v18, v19, #3
	add.2d	v18, v4, v18
	sshll.2d	v19, v20, #3
	add.2d	v19, v4, v19
	sshll.2d	v16, v16, #3
	add.2d	v16, v4, v16
	sshll.2d	v17, v17, #3
	add.2d	v17, v4, v17
	stp	q18, q19, [x3, #-32]
	stp	q16, q17, [x3], #64
	add.2s	v7, v7, v5
	subs	x2, x2, #8
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x2, x15
	cmp	x15, x14
	b.eq	LBB0_5
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w3, w1, w2, lsr #1
	add	x3, x8, w3, sxtw #3
	str	x3, [x9, x2, lsl #3]
	add	x2, x2, #1
	cmp	x14, x2
	b.ne	LBB0_12
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w10, #1
	asr	w20, w9, #1
	mov	x9, x8
	cmp	w19, #2
	mov	x19, x11
	b.gt	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x11
	mov	x9, x8
	cmp	w10, #3
	b.ge	LBB0_3
LBB0_15:
	str	xzr, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ff_jpeg2000_tag_tree_init
.subsections_via_symbols
