	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_tiles
_init_tiles:                            ## @init_tiles
	.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
	movq	%rdi, %r12
	movl	4(%rdi), %esi
	movl	52(%rdi), %edi
	callq	_ff_jpeg2000_ceildiv
	movl	%eax, (%r12)
	movl	12(%r12), %esi
	movl	48(%r12), %edi
	callq	_ff_jpeg2000_ceildiv
	movl	%eax, 8(%r12)
	movl	(%r12), %edi
	leal	(,%rax,8), %esi
	callq	_av_malloc_array
	movq	%rax, 56(%r12)
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movl	8(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.2:
	leaq	68(%r12), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	64(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	xorl	%r14d, %r14d
	xorl	%esi, %esi
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	leal	1(%rsi), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %r14
	movl	16(%r12), %edi
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=2
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%r14
	movl	(%r12), %eax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	%eax, %edx
	jge	LBB0_16
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	56(%r12), %r15
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$16, %esi
	callq	_av_mallocz_array
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%rax, (%r15,%r14,8)
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, %rbx
	movl	16(%r12), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%edi, %edi
	jle	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leaq	(%rbx,%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %eax
	imull	-56(%rbp), %eax                 ## 4-byte Folded Reload
	movq	8(%rbx,%r13,4), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx,%r13,4), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	4(%r12), %edi
	imull	-48(%rbp), %edi                 ## 4-byte Folded Reload
	movl	52(%r12), %esi
	callq	_FFMIN
	movq	8(%rbx,%r13,4), %rcx
	movq	(%rcx), %rdx
	movl	%eax, 4(%rdx)
	movq	(%rbx,%r13,4), %rdx
	movq	(%rdx), %rsi
	movl	%eax, 4(%rsi)
	movl	12(%r12), %eax
	imull	-96(%rbp), %eax                 ## 4-byte Folded Reload
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	8(%rdx), %rcx
	movl	%eax, (%rcx)
	movl	12(%r12), %edi
	imull	-44(%rbp), %edi                 ## 4-byte Folded Reload
	movl	48(%r12), %esi
	callq	_FFMIN
	movq	8(%rbx,%r13,4), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%rbx,%r13,4), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, 4(%rdx)
	testq	%r13, %r13
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	(%rcx), %rax
	movl	(%rax), %edi
	movq	24(%r12), %rax
	movl	(%rax), %esi
	callq	_ff_jpeg2000_ceildivpow2
	movq	8(%rbx,%r13,4), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx,%r13,4), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	4(%rcx), %edi
	movq	24(%r12), %rax
	movl	(%rax), %esi
	callq	_ff_jpeg2000_ceildivpow2
	movq	8(%rbx,%r13,4), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%rbx,%r13,4), %rcx
	movq	(%rcx), %rdx
	movl	%eax, 4(%rdx)
	movq	8(%rcx), %rax
	movl	(%rax), %edi
	movq	24(%r12), %rax
	movl	4(%rax), %esi
	callq	_ff_jpeg2000_ceildivpow2
	movq	8(%rbx,%r13,4), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%rbx,%r13,4), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	4(%rcx), %edi
	movq	24(%r12), %rax
	movl	4(%rax), %esi
	callq	_ff_jpeg2000_ceildivpow2
	movq	8(%rbx,%r13,4), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%rbx,%r13,4), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	40(%r12), %rdx
	addq	%r13, %rdx
	movq	24(%r12), %rax
	movzbl	(%rax), %ecx
	movzbl	4(%rax), %eax
	movl	$1, %r8d
	shll	%cl, %r8d
	movl	$1, %r9d
	movl	%eax, %ecx
	shll	%cl, %r9d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=3
	movq	40(%r12), %rdx
	movl	$1, %r8d
	movl	$1, %r9d
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=3
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdx), %ecx
	movl	32(%r12), %eax
	movl	%eax, (%rsp)
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_ff_jpeg2000_init_component
	testl	%eax, %eax
	js	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=3
	movslq	16(%r12), %rdi
	cmpq	%rdi, %r15
	jge	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx,%rax,8), %rbx
	addq	$4, %r13
	addq	$16, %r14
	incq	%r15
	jmp	LBB0_10
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12), %ecx
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %esi
	cmpl	%ecx, %edx
	jl	LBB0_3
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_init_tiles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_tiles
_init_tiles:                            ; @init_tiles
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w0, [x0, #52]
	ldr	w1, [x19, #4]
	bl	_ff_jpeg2000_ceildiv
	str	w0, [x19]
	ldr	w0, [x19, #48]
	ldr	w1, [x19, #12]
	bl	_ff_jpeg2000_ceildiv
	str	w0, [x19, #8]
	ldr	w8, [x19]
	lsl	w1, w0, #3
	mov	x0, x8
	bl	_av_malloc_array
	str	x0, [x19, #56]
	cbz	x0, LBB0_19
; %bb.1:
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.2:
	mov	w27, #0
	mov	w11, #0
	add	x10, x19, #68
	add	x8, x19, #64
	stp	x8, x10, [sp, #8]               ; 16-byte Folded Spill
	ldr	w8, [x19]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	add	w10, w11, #1
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w11, [sp, #24]                  ; 4-byte Folded Spill
	mov	w28, #0
	sxtw	x27, w27
	ldr	w0, [x19, #16]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x27, x27, #1
	ldr	w8, [x19]
	mov	x28, x24
	cmp	w24, w8
	b.ge	LBB0_15
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	x20, [x19, #56]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #16
	bl	_av_mallocz_array
	str	x0, [x20, x27, lsl #3]
	cbz	x0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x22, x0
	ldr	w0, [x19, #16]
	add	w24, w28, #1
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x21, #0
	mov	x25, #0
	mov	w26, #1
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x23, x22, x21
	ldr	w8, [x19, #4]
	mul	w8, w8, w28
	ldp	x10, x9, [x23]
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	x9, [x10]
	str	w8, [x9]
	ldr	w8, [x19, #4]
	mul	w0, w8, w24
	ldr	w1, [x19, #52]
	bl	_FFMIN
	ldp	x9, x8, [x23]
	ldp	x10, x8, [x8]
	str	w0, [x10, #4]
	ldp	x10, x9, [x9]
	str	w0, [x10, #4]
	ldr	w10, [x19, #12]
	ldr	w11, [sp, #24]                  ; 4-byte Folded Reload
	mul	w10, w10, w11
	str	w10, [x8]
	str	w10, [x9]
	ldr	w8, [x19, #12]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	mul	w0, w8, w9
	ldr	w1, [x19, #48]
	bl	_FFMIN
	ldp	x8, x9, [x23]
	ldr	x9, [x9, #8]
	str	w0, [x9, #4]
	ldr	x9, [x8, #8]
	str	w0, [x9, #4]
	cbz	x25, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	bl	_ff_jpeg2000_ceildivpow2
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	ldr	x9, [x22, x21]
	str	w0, [x8]
	ldr	x8, [x9]
	str	w0, [x8]
	ldr	w0, [x8, #4]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	bl	_ff_jpeg2000_ceildivpow2
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	str	w0, [x8, #4]
	ldr	x8, [x22, x21]
	ldp	x9, x8, [x8]
	str	w0, [x9, #4]
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #4]
	bl	_ff_jpeg2000_ceildivpow2
	ldr	x8, [x23, #8]
	ldr	x8, [x8, #8]
	ldr	x9, [x22, x21]
	str	w0, [x8]
	ldr	x8, [x9, #8]
	str	w0, [x8]
	ldr	w0, [x8, #4]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #4]
	bl	_ff_jpeg2000_ceildivpow2
	ldr	x8, [x23, #8]
	ldr	x8, [x8, #8]
	str	w0, [x8, #4]
	ldr	x8, [x22, x21]
	ldr	x8, [x8, #8]
	str	w0, [x8, #4]
	ldr	x8, [x19, #40]
	add	x8, x8, x25
	ldr	x9, [x19, #24]
	ldp	w10, w9, [x9]
	mov	w11, #1
	lsl	w4, w11, w10
	lsl	w5, w11, w9
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x8, [x19, #40]
	mov	w4, #1
	mov	w5, #1
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	w3, [x8]
	ldr	w6, [x19, #32]
	mov	x0, x23
	ldp	x2, x1, [sp, #8]                ; 16-byte Folded Reload
	bl	_ff_jpeg2000_init_component
	tbnz	w0, #31, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=3
	ldrsw	x0, [x19, #16]
	cmp	x26, x0
	b.ge	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	x22, [x20, x27, lsl #3]
	add	x25, x25, #4
	add	x21, x21, #16
	add	x26, x26, #1
	b	LBB0_9
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #8]
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	mov	x11, x10
	cmp	w10, w9
	b.lt	LBB0_3
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_init_tiles
.subsections_via_symbols
