	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_jpeg2000_dwt_init           ## -- Begin function ff_jpeg2000_dwt_init
	.p2align	4, 0x90
_ff_jpeg2000_dwt_init:                  ## @ff_jpeg2000_dwt_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rdi, %r14
	movl	%edx, (%rdi)
	movl	%ecx, 4(%rdi)
	movdqu	(%rsi), %xmm1
	movdqa	%xmm1, -48(%rbp)                ## 16-byte Spill
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	psubd	%xmm1, %xmm0
	movd	%xmm0, %edi
	pshufd	$250, %xmm1, %xmm0              ## xmm0 = xmm1[2,2,3,3]
	psubd	%xmm1, %xmm0
	pextrd	$2, %xmm0, %esi
	callq	_FFMAX
	movdqa	-48(%rbp), %xmm2                ## 16-byte Reload
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movq	8(%r14), %r8
	movq	16(%r14), %r9
	movl	%ebx, %esi
	incq	%rsi
	pcmpeqd	%xmm0, %xmm0
	movdqa	%xmm2, %xmm1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%r8,%rsi,8), %rdi
	movq	-16(%r9,%rsi,8), %rbx
	movd	%xmm2, %ecx
	pextrd	$1, %xmm2, %edx
	subl	%ecx, %edx
	movl	%edx, (%rdi)
	andl	$1, %ecx
	movl	%ecx, (%rbx)
	pextrd	$2, %xmm2, %ecx
	pextrd	$3, %xmm2, %edx
	psubd	%xmm0, %xmm1
	subl	%ecx, %edx
	movl	%edx, 4(%rdi)
	andl	$1, %ecx
	movl	%ecx, 4(%rbx)
	psrad	$1, %xmm1
	decq	%rsi
	movdqa	%xmm1, %xmm2
	cmpq	$1, %rsi
	ja	LBB0_2
LBB0_3:
	cmpl	$128, %r15d
	je	LBB0_7
## %bb.4:
	cmpl	$130, %r15d
	je	LBB0_8
## %bb.5:
	movl	$-1, %ecx
	cmpl	$129, %r15d
	jne	LBB0_11
## %bb.6:
	addl	$12, %eax
	movl	%eax, %edi
	movl	$1, %esi
	callq	_av_malloc_array
	movq	%rax, 32(%r14)
	jmp	LBB0_10
LBB0_7:
	addl	$12, %eax
	jmp	LBB0_9
LBB0_8:
	addl	$6, %eax
LBB0_9:
	movl	%eax, %edi
	movl	$1, %esi
	callq	_av_malloc_array
	movq	%rax, 24(%r14)
LBB0_10:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_jpeg2000_dwt_init           ; -- Begin function ff_jpeg2000_dwt_init
	.p2align	2
_ff_jpeg2000_dwt_init:                  ; @ff_jpeg2000_dwt_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x21, x2
	mov	x19, x0
	stp	w2, w3, [x0]
	ldp	w22, w23, [x1]
	ldp	w24, w25, [x1, #8]
	sub	w0, w23, w22
	sub	w1, w25, w24
	bl	_FFMAX
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	ldp	x8, x9, [x19, #8]
	mov	w10, w21
	sub	x10, x10, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x10, #3
	ldr	x12, [x8, x11]
	ldr	x11, [x9, x11]
	sub	w13, w23, w22
	str	w13, [x12]
	and	w13, w22, #0x1
	add	w14, w22, #1
	asr	w22, w14, #1
	str	w13, [x11]
	add	w13, w23, #1
	asr	w23, w13, #1
	sub	w13, w25, w24
	str	w13, [x12, #4]
	and	w12, w24, #0x1
	str	w12, [x11, #4]
	add	w11, w24, #1
	asr	w24, w11, #1
	add	w11, w25, #1
	asr	w25, w11, #1
	add	x11, x10, #1
	sub	x10, x10, #1
	cmp	x11, #1
	b.hi	LBB0_2
LBB0_3:
	cmp	w20, #128
	b.eq	LBB0_8
; %bb.4:
	cmp	w20, #130
	b.eq	LBB0_9
; %bb.5:
	cmp	w20, #129
	b.ne	LBB0_12
; %bb.6:
	add	w0, w0, #12
	mov	w1, #1
	bl	_av_malloc_array
	str	x0, [x19, #32]
	cbnz	x0, LBB0_11
LBB0_7:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_8:
	add	w0, w0, #12
	b	LBB0_10
LBB0_9:
	add	w0, w0, #6
LBB0_10:
	mov	w1, #1
	bl	_av_malloc_array
	str	x0, [x19, #24]
	cbz	x0, LBB0_7
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
