	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libopenjpeg_copyto8
_libopenjpeg_copyto8:                   ## @libopenjpeg_copyto8
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movq	8(%rsi), %r8
	xorl	%r11d, %r11d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %eax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
	movslq	%eax, %rcx
	cmpq	%rcx, %r11
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	leaq	(%r11,%r11,2), %rcx
	movl	8(%r8,%rcx,8), %r14d
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r8,%rcx,8), %r12
	addq	$8, %r12
	movq	(%r8,%rcx,8), %rax
	movq	(%rdi), %rdx
	movq	8(%rdi), %r9
	movq	(%rdx,%r11,8), %r10
	movl	12(%r8,%rcx,8), %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%r15d
	cmpl	%r14d, %r15d
	jge	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movslq	(%r9,%r11,4), %rcx
	movslq	%r15d, %rdx
	imulq	%rcx, %rdx
	leaq	(%r10,%rdx,4), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	8(%r12), %ebx
	shll	$7, %ebx
	addl	(%rax), %ebx
	movl	%ebx, (%rcx)
	addq	$4, %rcx
	addq	$4, %rax
	incl	%edx
	movl	4(%r12), %ebx
	cmpl	%ebx, %edx
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r12), %r14d
	jmp	LBB0_8
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_libopenjpeg_copyto8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libopenjpeg_copyto8
_libopenjpeg_copyto8:                   ; @libopenjpeg_copyto8
	.cfi_startproc
; %bb.0:
	ldr	w12, [x1]
	cmp	w12, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x8, #0
	ldr	x9, [x1, #8]
	mov	w10, #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x1]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x8, w12, sxtw
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	madd	x11, x8, x10, x9
	ldr	w2, [x11, #8]!
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w12, #0
	madd	x13, x8, x10, x9
	mov	x14, x13
	ldr	x15, [x14], #16
	ldp	x17, x16, [x0]
	ldr	x17, [x17, x8, lsl #3]
	ldr	w3, [x13, #12]!
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w12, w12, #1
	cmp	w12, w2
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	cmp	w3, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w2, #0
	ldr	w3, [x16, x8, lsl #2]
	mul	w3, w3, w12
	add	x4, x17, w3, sxtw #2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w3, [x14]
	ldr	w5, [x15], #4
	add	w3, w5, w3, lsl #7
	str	w3, [x4], #4
	add	w2, w2, #1
	ldr	w3, [x13]
	cmp	w2, w3
	b.lt	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w2, [x11]
	b	LBB0_6
LBB0_11:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_libopenjpeg_copyto8
.subsections_via_symbols
