	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mj2_create_image
_mj2_create_image:                      ## @mj2_create_image
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movl	$1, -212(%rbp)
	movl	$1, -224(%rbp)
	movl	$1, -228(%rbp)
	movl	$1, -240(%rbp)
	movb	(%rax), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	$1, %esi
	movl	%edx, -216(%rbp)
	movl	%edx, -220(%rbp)
	movb	4(%rax), %cl
	shll	%cl, %esi
	movl	%esi, -232(%rbp)
	movl	%esi, -236(%rbp)
	movl	(%r15), %edi
	leal	-128(%rdi), %ecx
	cmpl	$51, %ecx
	jae	LBB0_5
## %bb.1:
	movl	8(%rax), %edi
	movslq	%ecx, %rcx
	leaq	l_switch.table.mj2_create_image(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %r8d
	testl	%edi, %edi
	jle	LBB0_6
## %bb.2:
	movq	16(%rax), %r9
	movl	4(%r15), %r10d
	movl	8(%r15), %r11d
	leaq	-180(%rbp), %rsi
	leaq	-1(%rdi), %r12
	movl	$1, %r13d
	xorl	%ecx, %ecx
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rcx,4), %eax
	movl	%eax, (%rsi)
	movl	%eax, -4(%rsi)
	movq	$0, -12(%rsi)
	movl	%ebx, -28(%rsi)
	movl	%r13d, -24(%rsi)
	leal	(%rbx,%r10), %eax
	decl	%eax
	cltd
	idivl	%ebx
	movl	%eax, -20(%rsi)
	leal	(%r11,%r13), %eax
	decl	%eax
	cltd
	idivl	%r13d
	movl	%eax, -16(%rsi)
	cmpq	%rcx, %r12
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-220(%rbp,%rcx,4), %ebx
	movl	-236(%rbp,%rcx,4), %r13d
	addq	$40, %rsi
	incq	%rcx
	jmp	LBB0_3
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_av_log
	jmp	LBB0_8
LBB0_6:
	leaq	-208(%rbp), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r8d, %edx
	callq	_opj_image_create
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movl	4(%r15), %ecx
	decl	%ecx
	imull	(%r14), %ecx
	incl	%ecx
	movl	%ecx, (%rax)
	movl	8(%r15), %ecx
	decl	%ecx
	imull	4(%r14), %ecx
	incl	%ecx
	movl	%ecx, 4(%rax)
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OPJ_CLRSPC_UNKNOWN,4,2         ## @OPJ_CLRSPC_UNKNOWN
	.comm	_OPJ_CLRSPC_GRAY,4,2            ## @OPJ_CLRSPC_GRAY
	.comm	_OPJ_CLRSPC_SRGB,4,2            ## @OPJ_CLRSPC_SRGB
	.comm	_OPJ_CLRSPC_SYCC,4,2            ## @OPJ_CLRSPC_SYCC
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The requested pixel format '%s' is not supported\n"

	.no_dead_strip	_mj2_create_image
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mj2_create_image
l_switch.table.mj2_create_image:
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mj2_create_image
_mj2_create_image:                      ; @mj2_create_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	w0, [x0]
	bl	_av_pix_fmt_desc_get
	mov	x8, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #160]
	stp	q0, q0, [sp, #128]
	stp	q0, q0, [sp, #96]
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
	mov	w9, #1
	ldp	w10, w11, [x0]
	lsl	w10, w9, w10
	stp	w10, w9, [sp, #24]
	stp	w9, w10, [sp, #16]
	lsl	w10, w9, w11
	stp	w10, w9, [sp, #8]
	stp	w9, w10, [sp]
	ldr	w0, [x19]
	sub	w9, w0, #128
	cmp	w9, #51
	b.hs	LBB0_5
; %bb.1:
	ldr	w0, [x8, #8]
Lloh3:
	adrp	x10, l_switch.table.mj2_create_image@PAGE
Lloh4:
	add	x10, x10, l_switch.table.mj2_create_image@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	ldr	w2, [x9]
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	x8, [x8, #16]
	sub	x9, x0, #1
	ldp	w10, w11, [x19, #4]
	add	x12, sp, #16
	add	x12, x12, #4
	add	x13, sp, #32
	add	x13, x13, #16
	mov	x14, sp
	add	x14, x14, #4
	mov	w15, #1
	mov	w16, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w17, [x8]
	stp	w17, w17, [x13, #8]
	str	xzr, [x13]
	stp	w16, w15, [x13, #-16]
	add	w17, w16, w10
	sub	w17, w17, #1
	sdiv	w16, w17, w16
	add	w17, w15, w11
	sub	w17, w17, #1
	sdiv	w15, w17, w15
	stp	w16, w15, [x13, #-8]
	cbz	x9, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w16, [x12], #4
	ldr	w15, [x14], #4
	add	x8, x8, #4
	sub	x9, x9, #1
	add	x13, x13, #40
	b	LBB0_3
LBB0_5:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	bl	_av_get_pix_fmt_name
	mov	x3, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_av_log
	mov	x0, #0
	b	LBB0_8
LBB0_6:
	add	x1, sp, #32
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_opj_image_create
	cbz	x0, LBB0_8
; %bb.7:
	stp	xzr, xzr, [x0, #8]
	ldur	d0, [x19, #4]
	movi.2d	v1, #0xffffffffffffffff
	add.2s	v0, v0, v1
	ldr	d1, [x20]
	movi.2s	v2, #1
	mla.2s	v2, v0, v1
	str	d2, [x0]
LBB0_8:
	ldur	x8, [x29, #-24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OPJ_CLRSPC_UNKNOWN,4,2         ; @OPJ_CLRSPC_UNKNOWN
	.comm	_OPJ_CLRSPC_GRAY,4,2            ; @OPJ_CLRSPC_GRAY
	.comm	_OPJ_CLRSPC_SRGB,4,2            ; @OPJ_CLRSPC_SRGB
	.comm	_OPJ_CLRSPC_SYCC,4,2            ; @OPJ_CLRSPC_SYCC
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The requested pixel format '%s' is not supported\n"

	.no_dead_strip	_mj2_create_image
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mj2_create_image
l_switch.table.mj2_create_image:
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_SYCC
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_GRAY
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB
	.quad	_OPJ_CLRSPC_SRGB

.subsections_via_symbols
