	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libopenjpeg_decode_frame
_libopenjpeg_decode_frame:              ## @libopenjpeg_decode_frame
	.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	%rcx, %r13
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	(%rcx), %rbx
	movslq	8(%rcx), %rax
	movq	16(%rdi), %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)
	movq	$0, -48(%rbp)
	movl	$0, -104(%rbp)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)
	movl	%ebx, -88(%rbp)
	movl	$0, (%rdx)
	movq	%rbx, %rdi
	callq	_AV_RB32
	cmpl	$12, %eax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.1:
	leaq	4(%rbx), %rdi
	callq	_AV_RB32
	movq	_JP2_SIG_TYPE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.2:
	leaq	8(%rbx), %rdi
	callq	_AV_RB32
	movq	_JP2_SIG_VALUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_OPJ_CODEC_JP2@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_AV_RB32
	leaq	L_.str(%rip), %rdi
	callq	_AV_RB32
	movq	_OPJ_CODEC_J2K@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	callq	_opj_create_decompress
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	_error_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_opj_set_error_handler
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	movq	_warning_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_opj_set_warning_handler
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:
	movq	_info_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_opj_set_info_handler
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movl	8(%r14), %eax
	movl	%eax, 4(%r14)
	movl	12(%r12), %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_opj_setup_decoder
	movq	_OPJ_STREAM_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_opj_stream_default_create
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:
	movq	%rax, %r14
	movq	_stream_read@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_opj_stream_set_read_function
	movq	_stream_skip@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_opj_stream_set_skip_function
	movq	_stream_seek@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_opj_stream_set_seek_function
	leaq	-104(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_opj_stream_set_user_data
	movl	8(%r13), %esi
	movq	%r14, %rdi
	callq	_opj_stream_set_user_data_length
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_opj_read_header
	testl	%eax, %eax
	je	LBB0_22
## %bb.11:
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	movl	8(%rax), %edx
	subl	4(%rax), %esi
	subl	12(%rax), %edx
	movq	%r12, %rdi
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_23
## %bb.12:
	movl	8(%r12), %esi
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %esi
	je	LBB0_25
## %bb.13:
	movq	-48(%rbp), %rdi
	callq	_libopenjpeg_matches_pix_fmt
	testl	%eax, %eax
	je	LBB0_24
## %bb.14:
	movl	8(%r12), %eax
	movl	(%rbx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_25
	jmp	LBB0_26
LBB0_15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_17
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_17:
	xorl	%r14d, %r14d
LBB0_18:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %ebx
LBB0_20:
	movq	-48(%rbp), %rdi
	callq	_opj_image_destroy
	movq	%r14, %rdi
	callq	_opj_stream_destroy
	movq	%r15, %rdi
	callq	_opj_destroy_codec
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_17
LBB0_22:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_18
LBB0_24:
	movl	(%rbx), %eax
	movl	%eax, 8(%r12)
LBB0_25:
	movq	-48(%rbp), %rdi
	callq	_libopenjpeg_guess_pix_fmt
	movl	%eax, 8(%r12)
	movl	(%rbx), %ecx
LBB0_26:
	cmpl	%ecx, %eax
	jne	LBB0_28
## %bb.27:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_28:
	movq	-48(%rbp), %rcx
	movl	16(%rcx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_34
## %bb.29:
	movq	24(%rcx), %r8
	movq	(%r12), %rax
	cmpl	$1, %r9d
	jne	LBB0_45
## %bb.30:
	xorl	%esi, %esi
LBB0_31:
	testb	$1, %r9b
	je	LBB0_34
## %bb.32:
	shlq	$4, %rsi
	movq	(%r8,%rsi), %rcx
	cmpq	%rax, %rcx
	jle	LBB0_34
## %bb.33:
	movq	%rcx, (%r12)
LBB0_34:
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ff_thread_get_buffer
	testl	%eax, %eax
	js	LBB0_23
## %bb.35:
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_opj_decode
	testl	%eax, %eax
	je	LBB0_51
## %bb.36:
	movq	-48(%rbp), %rcx
	movl	16(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_40
## %bb.37:
	movq	24(%rcx), %rdx
	addq	$8, %rdx
	xorl	%ecx, %ecx
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx)
	je	LBB0_52
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	incq	%rcx
	addq	$16, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_38
LBB0_40:
	movl	8(%r12), %edi
	callq	_av_pix_fmt_desc_get
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	8(%r12), %edi
	callq	_libopenjpeg_ispacked
	leal	-1(%rbx), %ecx
	cmpl	$7, %ecx
	ja	LBB0_59
## %bb.41:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_42:
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_62
## %bb.43:
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_libopenjpeg_copy_to_packed8
	jmp	LBB0_62
LBB0_23:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_45:
	movl	%r9d, %edi
	andl	$-2, %edi
	leaq	16(%r8), %rcx
	xorl	%esi, %esi
	jmp	LBB0_47
LBB0_46:                                ##   in Loop: Header=BB0_47 Depth=1
	addq	$2, %rsi
	addq	$32, %rcx
	cmpq	%rsi, %rdi
	je	LBB0_31
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%rcx), %rdx
	cmpq	%rax, %rdx
	jle	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=1
	movq	%rdx, (%r12)
	movq	%rdx, %rax
LBB0_49:                                ##   in Loop: Header=BB0_47 Depth=1
	movq	(%rcx), %rdx
	cmpq	%rax, %rdx
	jle	LBB0_46
## %bb.50:                              ##   in Loop: Header=BB0_47 Depth=1
	movq	%rdx, (%r12)
	movq	%rdx, %rax
	jmp	LBB0_46
LBB0_51:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_18
LBB0_52:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r12, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_53:
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_62
## %bb.54:
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_libopenjpeg_copy_to_packed16
	jmp	LBB0_62
LBB0_55:
	movq	-48(%rbp), %rsi
	testl	%eax, %eax
	jne	LBB0_58
## %bb.56:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_libopenjpeg_copyto8
	jmp	LBB0_61
LBB0_57:
	movq	-48(%rbp), %rsi
	testl	%eax, %eax
	je	LBB0_60
LBB0_58:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_libopenjpeg_copy_to_packed8
	jmp	LBB0_61
LBB0_59:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_60:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_libopenjpeg_copyto16
LBB0_61:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_62:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	$1, (%r12)
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_55, LBB0_55-LJTI0_0
.set L0_0_set_57, LBB0_57-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_59, LBB0_59-LJTI0_0
.set L0_0_set_53, LBB0_53-LJTI0_0
LJTI0_0:
	.long	L0_0_set_55
	.long	L0_0_set_57
	.long	L0_0_set_42
	.long	L0_0_set_42
	.long	L0_0_set_59
	.long	L0_0_set_53
	.long	L0_0_set_59
	.long	L0_0_set_53
	.end_data_region
                                        ## -- End function
	.comm	_JP2_SIG_TYPE,4,2               ## @JP2_SIG_TYPE
	.comm	_JP2_SIG_VALUE,4,2              ## @JP2_SIG_VALUE
	.comm	_OPJ_CODEC_JP2,4,2              ## @OPJ_CODEC_JP2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"jp2c"

	.comm	_OPJ_CODEC_J2K,4,2              ## @OPJ_CODEC_J2K
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Error initializing decoder.\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_error_callback,4,2             ## @error_callback
	.comm	_warning_callback,4,2           ## @warning_callback
	.comm	_info_callback,4,2              ## @info_callback
L_.str.2:                               ## @.str.2
	.asciz	"Error setting decoder handlers.\n"

	.comm	_OPJ_STREAM_READ,4,2            ## @OPJ_STREAM_READ
L_.str.3:                               ## @.str.3
	.asciz	"Codestream could not be opened for reading.\n"

	.comm	_stream_read,4,2                ## @stream_read
	.comm	_stream_skip,4,2                ## @stream_skip
	.comm	_stream_seek,4,2                ## @stream_seek
L_.str.4:                               ## @.str.4
	.asciz	"Error decoding codestream header.\n"

	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
L_.str.5:                               ## @.str.5
	.asciz	"Unable to determine pixel format.\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
L_.str.6:                               ## @.str.6
	.asciz	"Error decoding codestream.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Image component %d contains no data.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.8:                               ## @.str.8
	.asciz	"Pixel size %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.no_dead_strip	_libopenjpeg_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libopenjpeg_decode_frame
_libopenjpeg_decode_frame:              ; @libopenjpeg_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x25, x3
	mov	x23, x2
	mov	x22, x1
	mov	x24, x0
	ldr	x19, [x3]
	ldrsw	x20, [x3, #8]
	ldr	x21, [x0, #16]
	stp	xzr, x1, [sp, #32]
	str	wzr, [sp, #8]
	str	x20, [sp, #16]
	str	w19, [sp, #24]
	str	wzr, [x2]
	mov	x0, x19
	bl	_AV_RB32
	cmp	w0, #12
	b.ne	LBB0_4
; %bb.1:
	add	x0, x19, #4
	bl	_AV_RB32
Lloh0:
	adrp	x8, _JP2_SIG_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JP2_SIG_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	add	x0, x19, #8
	bl	_AV_RB32
Lloh3:
	adrp	x8, _JP2_SIG_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JP2_SIG_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _OPJ_CODEC_JP2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPJ_CODEC_JP2@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	add	x0, x19, #4
	bl	_AV_RB32
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_AV_RB32
Lloh10:
	adrp	x8, _OPJ_CODEC_J2K@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OPJ_CODEC_J2K@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	bl	_opj_create_decompress
	mov	x19, x0
	cbz	x0, LBB0_16
; %bb.6:
Lloh12:
	adrp	x8, _error_callback@GOTPAGE
Lloh13:
	ldr	x8, [x8, _error_callback@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	bl	_opj_set_error_handler
	cbz	w0, LBB0_15
; %bb.7:
Lloh15:
	adrp	x8, _warning_callback@GOTPAGE
Lloh16:
	ldr	x8, [x8, _warning_callback@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	bl	_opj_set_warning_handler
	cbz	w0, LBB0_15
; %bb.8:
Lloh18:
	adrp	x8, _info_callback@GOTPAGE
Lloh19:
	ldr	x8, [x8, _info_callback@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	bl	_opj_set_info_handler
	cbz	w0, LBB0_15
; %bb.9:
	ldr	w8, [x21, #8]
	str	w8, [x21, #4]
	ldr	w8, [x24, #12]
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_opj_setup_decoder
Lloh21:
	adrp	x8, _OPJ_STREAM_READ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OPJ_STREAM_READ@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_opj_stream_default_create
	mov	x21, x0
	cbz	x0, LBB0_21
; %bb.10:
Lloh24:
	adrp	x8, _stream_read@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stream_read@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_opj_stream_set_read_function
Lloh27:
	adrp	x8, _stream_skip@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stream_skip@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_opj_stream_set_skip_function
Lloh30:
	adrp	x8, _stream_seek@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stream_seek@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_opj_stream_set_seek_function
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, #0
	bl	_opj_stream_set_user_data
	ldr	w1, [x25, #8]
	mov	x0, x21
	bl	_opj_stream_set_user_data_length
	add	x2, sp, #32
	mov	x0, x21
	mov	x1, x19
	bl	_opj_read_header
	cbz	w0, LBB0_22
; %bb.11:
	ldr	x8, [sp, #32]
	ldp	w9, w10, [x8]
	sub	w1, w9, w10
	ldp	w9, w8, [x8, #8]
	sub	w2, w9, w8
	mov	x0, x24
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_43
; %bb.12:
	ldr	w1, [x24, #8]
Lloh33:
	adrp	x25, _AV_PIX_FMT_NONE@GOTPAGE
Lloh34:
	ldr	x25, [x25, _AV_PIX_FMT_NONE@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w1, w8
	b.eq	LBB0_25
; %bb.13:
	ldr	x0, [sp, #32]
	bl	_libopenjpeg_matches_pix_fmt
	cbz	w0, LBB0_24
; %bb.14:
	ldr	w0, [x24, #8]
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_25
	b	LBB0_26
LBB0_15:
Lloh35:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x2, l_.str.2@PAGE
Lloh39:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh40:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x2, l_.str.1@PAGE
Lloh44:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_17:
	mov	x0, x24
	bl	_av_log
	mov	x21, #0
LBB0_18:
Lloh45:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
LBB0_19:
	ldr	w20, [x8]
LBB0_20:
	ldr	x0, [sp, #32]
	bl	_opj_image_destroy
	mov	x0, x21
	bl	_opj_stream_destroy
	mov	x0, x19
	bl	_opj_destroy_codec
	mov	x0, x20
	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
	add	sp, sp, #128
	ret
LBB0_21:
Lloh47:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x2, l_.str.3@PAGE
Lloh51:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh52:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
Lloh55:
	adrp	x2, l_.str.4@PAGE
Lloh56:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_23:
	mov	x0, x24
	bl	_av_log
	b	LBB0_18
LBB0_24:
	ldr	w8, [x25]
	str	w8, [x24, #8]
LBB0_25:
	ldr	x0, [sp, #32]
	bl	_libopenjpeg_guess_pix_fmt
	str	w0, [x24, #8]
	ldr	w8, [x25]
LBB0_26:
	cmp	w0, w8
	b.ne	LBB0_28
; %bb.27:
Lloh57:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x2, l_.str.5@PAGE
Lloh61:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x24
	bl	_av_log
Lloh62:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
	b	LBB0_19
LBB0_28:
	ldr	x9, [sp, #32]
	ldr	w8, [x9, #16]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.29:
	ldr	x9, [x9, #24]
	ldr	x10, [x24]
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_33
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	x11, x10
	b.le	LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	str	x11, [x24]
	mov	x10, x11
	b	LBB0_30
LBB0_33:
	add	x1, sp, #40
	mov	x0, x24
	mov	w2, #0
	bl	_ff_thread_get_buffer
	tbnz	w0, #31, LBB0_43
; %bb.34:
	ldr	x2, [sp, #32]
	mov	x0, x19
	mov	x1, x21
	bl	_opj_decode
	cbz	w0, LBB0_44
; %bb.35:
	ldr	x10, [sp, #32]
	ldr	w8, [x10, #16]
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.36:
	mov	x9, #0
	ldr	x10, [x10, #24]
	add	x10, x10, #8
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cbz	w11, LBB0_45
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_37
LBB0_39:
	ldr	w0, [x24, #8]
	bl	_av_pix_fmt_desc_get
	ldr	x8, [x0]
	ldr	w25, [x8]
	ldr	w0, [x24, #8]
	bl	_libopenjpeg_ispacked
	sub	w8, w25, #1
	cmp	w8, #7
	b.hi	LBB0_53
; %bb.40:
Lloh64:
	adrp	x9, lJTI0_0@PAGE
Lloh65:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_41
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_41:
	cbz	w0, LBB0_52
; %bb.42:
	ldr	x1, [sp, #32]
	b	LBB0_51
LBB0_43:
	mov	x20, x0
	b	LBB0_20
LBB0_44:
Lloh66:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
Lloh69:
	adrp	x2, l_.str.6@PAGE
Lloh70:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_45:
Lloh71:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	str	x9, [sp]
Lloh74:
	adrp	x2, l_.str.7@PAGE
Lloh75:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x24
	bl	_av_log
Lloh76:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh77:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_19
LBB0_46:
	cbz	w0, LBB0_52
; %bb.47:
	ldr	x1, [sp, #32]
	mov	x0, x22
	bl	_libopenjpeg_copy_to_packed16
	b	LBB0_52
LBB0_48:
	ldr	x1, [sp, #32]
	cbnz	w0, LBB0_51
; %bb.49:
	mov	x0, x22
	bl	_libopenjpeg_copyto8
	b	LBB0_52
LBB0_50:
	ldr	x1, [sp, #32]
	cbz	w0, LBB0_54
LBB0_51:
	mov	x0, x22
	bl	_libopenjpeg_copy_to_packed8
LBB0_52:
	mov	w8, #1
	str	w8, [x23]
Lloh78:
	adrp	x9, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh79:
	ldr	x9, [x9, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	stp	w8, w9, [x22]
	b	LBB0_20
LBB0_53:
Lloh81:
	adrp	x1, l_.str.8@PAGE
Lloh82:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x24
	mov	x2, x25
	bl	_avpriv_report_missing_feature
Lloh83:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh84:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_19
LBB0_54:
	mov	x0, x22
	bl	_libopenjpeg_copyto16
	b	LBB0_52
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpAdd	Lloh81, Lloh82
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_48-LBB0_41)>>2
	.byte	(LBB0_50-LBB0_41)>>2
	.byte	(LBB0_41-LBB0_41)>>2
	.byte	(LBB0_41-LBB0_41)>>2
	.byte	(LBB0_53-LBB0_41)>>2
	.byte	(LBB0_46-LBB0_41)>>2
	.byte	(LBB0_53-LBB0_41)>>2
	.byte	(LBB0_46-LBB0_41)>>2
                                        ; -- End function
	.comm	_JP2_SIG_TYPE,4,2               ; @JP2_SIG_TYPE
	.comm	_JP2_SIG_VALUE,4,2              ; @JP2_SIG_VALUE
	.comm	_OPJ_CODEC_JP2,4,2              ; @OPJ_CODEC_JP2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"jp2c"

	.comm	_OPJ_CODEC_J2K,4,2              ; @OPJ_CODEC_J2K
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Error initializing decoder.\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_error_callback,4,2             ; @error_callback
	.comm	_warning_callback,4,2           ; @warning_callback
	.comm	_info_callback,4,2              ; @info_callback
l_.str.2:                               ; @.str.2
	.asciz	"Error setting decoder handlers.\n"

	.comm	_OPJ_STREAM_READ,4,2            ; @OPJ_STREAM_READ
l_.str.3:                               ; @.str.3
	.asciz	"Codestream could not be opened for reading.\n"

	.comm	_stream_read,4,2                ; @stream_read
	.comm	_stream_skip,4,2                ; @stream_skip
	.comm	_stream_seek,4,2                ; @stream_seek
l_.str.4:                               ; @.str.4
	.asciz	"Error decoding codestream header.\n"

	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
l_.str.5:                               ; @.str.5
	.asciz	"Unable to determine pixel format.\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
l_.str.6:                               ; @.str.6
	.asciz	"Error decoding codestream.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Image component %d contains no data.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.8:                               ; @.str.8
	.asciz	"Pixel size %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.no_dead_strip	_libopenjpeg_decode_frame
.subsections_via_symbols
