	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_region_masked
_decode_region_masked:                  ## @decode_region_masked
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	40(%rbp), %r11d
	testl	%r11d, %r11d
	jle	LBB0_25
## %bb.1:
	movq	%rdi, %rbx
	movl	32(%rbp), %edi
	movl	24(%rbp), %r14d
	movl	16(%rbp), %r10d
	movl	%r14d, %eax
	imull	%r9d, %eax
	addl	%r10d, %eax
	cltq
	leaq	(%r8,%rax,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	imull	%ecx, %eax
	addl	%r10d, %eax
	cltq
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	(%r10,%r10,2), %eax
	movslq	%eax, %rdx
	shlq	$2, %rdx
	addq	(%rbx), %rdx
	movl	8(%rbx), %r8d
	movl	%r8d, %esi
	imull	%r14d, %esi
	movslq	%esi, %rsi
	leaq	(%rdx,%rsi,4), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %rsi
	movslq	%r9d, %rax
	movl	%edi, %ecx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	movl	%r10d, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	leal	-1(%rdi), %ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	shlq	$2, %rsi
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rbx), %r8d
	movl	40(%rbp), %r11d
	movl	32(%rbp), %edi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	-112(%rbp), %rax                ## 8-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r8d, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	addq	%rax, -80(%rbp)                 ## 8-byte Folded Spill
	addq	%rsi, -72(%rbp)                 ## 8-byte Folded Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%r11d, %ecx
	je	LBB0_25
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testl	%edi, %edi
	jle	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%rbp), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r14), %esi
	movq	%rbx, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_copy_rectangles
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=2
	incq	%r14
	addq	$3, %r15
	decl	%r12d
	addq	$4, %r13
	cmpq	%r14, -128(%rbp)                ## 8-byte Folded Reload
	je	LBB0_2
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rbx), %rax
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpq	$0, (%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %ecx
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	$-1, %eax
	cmpl	$4, %ecx
	ja	LBB0_28
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	$22, %edx
	btl	%ecx, %edx
	jb	LBB0_15
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %ecx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$255, %ecx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$128, %ecx
	jne	LBB0_27
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$128, %ecx
	je	LBB0_7
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$4, %ecx
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$2, %ecx
	je	LBB0_6
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=2
	testq	%r14, %r14
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	48(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_decode_pixel
	testl	%eax, %eax
	jns	LBB0_23
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%r14), %esi
	movq	%rbx, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_motion_compensation
	testq	%rax, %rax
	je	LBB0_7
	jmp	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rdx
	movl	%r12d, (%rsp)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	48(%rbp), %rsi
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_decode_pixel_in_context
	testl	%eax, %eax
	js	LBB0_28
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14,4)
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%r15d, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdi
	movq	16(%rbx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %esi
	callq	_AV_WB24
	jmp	LBB0_7
LBB0_25:
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_27:
	movl	$-1, %eax
LBB0_28:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.no_dead_strip	_decode_region_masked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_region_masked
_decode_region_masked:                  ; @decode_region_masked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
                                        ; kill: def $w5 killed $w5 def $x5
                                        ; kill: def $w3 killed $w3 def $x3
	str	x1, [sp, #56]                   ; 8-byte Folded Spill
	ldr	w11, [x29, #20]
	cmp	w11, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x22, x0
	mov	w23, #0
	ldr	x8, [x29, #24]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w28, [x29, #16]
	madd	w8, w7, w5, w6
	add	x19, x4, w8, sxtw #2
	madd	w8, w7, w3, w6
	add	x20, x2, w8, sxtw #2
	ldr	x8, [x0]
	add	w9, w6, w6, lsl #1
	add	x9, x8, w9, sxtw #2
	ldr	w8, [x0, #8]
	mul	w10, w8, w7
	add	x9, x9, w10, sxtw #2
	str	x9, [sp, #64]                   ; 8-byte Folded Spill
	sbfiz	x10, x5, #2, #32
	mov	w9, w6
	str	x9, [sp, #72]                   ; 8-byte Folded Spill
	sub	w9, w28, #1
	stp	w7, w9, [sp, #32]               ; 8-byte Folded Spill
	str	x3, [sp, #40]                   ; 8-byte Folded Spill
	sbfiz	x12, x3, #2, #32
	str	w11, [sp, #28]                  ; 4-byte Folded Spill
	stp	x12, x10, [sp, #8]              ; 16-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #8]
	ldp	w11, w7, [sp, #28]              ; 8-byte Folded Reload
	ldp	x12, x10, [sp, #8]              ; 16-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	add	x9, x9, w8, sxtw #2
	str	x9, [sp, #64]                   ; 8-byte Folded Spill
	add	w23, w23, #1
	add	x19, x19, x10
	add	x20, x20, x12
	cmp	w23, w11
	b.eq	LBB0_24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w28, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
	mov	x24, #0
	mov	x25, #0
	add	w26, w23, w7
	ldr	w27, [sp, #36]                  ; 4-byte Folded Reload
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	w1, w8, w25
	mov	x0, x22
	mov	x2, x26
	mov	w3, #1
	mov	w4, #1
	bl	_copy_rectangles
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x25, x25, #1
	add	x24, x24, #3
	sub	w27, w27, #1
	add	x21, x21, #4
	cmp	x28, x25
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #24]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _AV_EF_EXPLODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x22]
	ldr	w8, [x19, x25, lsl #2]
	cbz	x9, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w8, #4
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #22
	and	w9, w9, w10
	ccmp	w9, #0, #4, ls
	b.ne	LBB0_14
	b	LBB0_25
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x19, x25, lsl #2]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w8, #255
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w8, #128
	b.ne	LBB0_25
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w8, #4
	b.eq	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=2
	cbnz	x25, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=2
	cbnz	w23, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
	ldp	x1, x0, [sp, #48]               ; 16-byte Folded Reload
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_decode_pixel
	tbz	w0, #31, LBB0_22
	b	LBB0_26
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	w1, w8, w25
	mov	x0, x22
	mov	x2, x26
	mov	w3, #1
	mov	w4, #1
	bl	_motion_compensation
	cbz	x0, LBB0_7
	b	LBB0_25
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x2, x20, x21
	ldp	x1, x0, [sp, #48]               ; 16-byte Folded Reload
	ldr	x3, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x25
	mov	x5, x23
	mov	x6, x27
	bl	_decode_pixel_in_context
	tbnz	w0, #31, LBB0_26
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=2
	str	w0, [x20, x25, lsl #2]
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.23:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x8, x8, w24, uxtw #2
	ldr	x9, [x22, #16]
	ldr	w1, [x9, w0, uxtw #2]
	mov	x0, x8
	bl	_AV_WB24
	b	LBB0_7
LBB0_24:
	mov	w0, #0
	b	LBB0_26
LBB0_25:
	mov	w0, #-1
LBB0_26:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.no_dead_strip	_decode_region_masked
.subsections_via_symbols
