	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_block
_copy_block:                            ## @copy_block
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rdx, %r10
	movq	%rsi, %r14
	movq	_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %r12d
	xorl	%eax, %eax
	testq	%r10, %r10
	je	LBB0_12
## %bb.1:
	leal	(%r12,%r8), %r11d
	movq	_HEIGHT@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r11d
	jle	LBB0_3
## %bb.2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_3:
	movl	%r9d, %r15d
	movl	%r8d, %ecx
	subl	%esi, %ecx
	addl	%edx, %ecx
	movl	%r8d, %r13d
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.4:
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.5:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %edx
	subl	%ecx, %edx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %rax
	movslq	%r15d, %rsi
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r13d
	imulq	%rsi, %rax
	movq	%r10, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r10,%rax,4), %r12
	shlq	$2, %rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rbx
	leaq	(%r14,%rbx,4), %rdi
	movq	%r12, %rsi
	movl	%ecx, %edx
	movl	%ecx, %r14d
	callq	_memcpy
	movl	%r14d, %ecx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	addl	%r15d, %ebx
	addq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	decq	%r13
	jne	LBB0_6
## %bb.7:
	xorl	%eax, %eax
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_8:
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.9:
	movslq	%r15d, %r15
	movslq	%r12d, %rax
	movslq	%edx, %rcx
	movl	%r8d, %r12d
	imulq	%r15, %rax
	addq	%rcx, %rax
	leaq	(%r10,%rax,4), %rbx
	shlq	$2, %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	addq	%r15, %rbx
	addq	%r15, %r14
	decq	%r12
	jne	LBB0_10
## %bb.11:
	xorl	%eax, %eax
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIDTH,4,2                      ## @WIDTH
	.comm	_HEIGHT,4,2                     ## @HEIGHT
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid offset %d during C93 decoding\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_copy_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_block
_copy_block:                            ; @copy_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x2, LBB0_11
; %bb.1:
	mov	x23, x4
Lloh0:
	adrp	x8, _WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w11, w3, w8
Lloh3:
	adrp	x9, _HEIGHT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w10, w11, w4
	cmp	w10, w9
	b.le	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_3:
	mov	x20, x5
	mov	x22, x2
	mov	x19, x1
	msub	w9, w11, w8, w3
	sub	w8, w23, w8
	add	w24, w8, w9
	mov	x26, x23
	cmp	w24, #1
	b.lt	LBB0_8
; %bb.4:
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.5:
	str	x9, [sp]                        ; 8-byte Folded Spill
	sub	w26, w23, w24
	mov	w28, w23
	str	w11, [sp, #12]                  ; 4-byte Folded Spill
	smull	x8, w11, w20
	add	x25, x22, x8, lsl #2
	sbfiz	x27, x20, #2, #32
	mov	x21, x26
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, w21, sxtw #2
	mov	x1, x25
	mov	x2, x24
	bl	_memcpy
	add	w21, w21, w20
	add	x25, x25, x27
	subs	x28, x28, #1
	b.ne	LBB0_6
; %bb.7:
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x9, [sp]                        ; 8-byte Folded Reload
LBB0_8:
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x24, #0
	sxtw	x8, w9
	mov	w23, w23
	smaddl	x8, w11, w20, x8
	add	x22, x22, x8, lsl #2
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sbfiz	x20, x20, #2, #32
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x19, x24
	add	x1, x22, x24
	mov	x2, x26
	bl	_memcpy
	add	x24, x24, x20
	subs	x23, x23, #1
	b.ne	LBB0_10
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WIDTH,4,2                      ; @WIDTH
	.comm	_HEIGHT,4,2                     ; @HEIGHT
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid offset %d during C93 decoding\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_copy_block
.subsections_via_symbols
