	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_region_intra
_decode_region_intra:                   ## @decode_region_intra
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	leaq	4(%rdi), %rsi
	movq	%rbx, %rdi
	callq	*(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.11:
	movq	24(%r13), %rsi
	movq	16(%r13), %rdx
	movl	(%r13), %r10d
	movl	4(%r13), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	8(%r13)
	pushq	%r15
	pushq	%rax
	pushq	%r10
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_decode_region
	addq	$120, %rsp
	jmp	LBB0_10
LBB0_1:
	movl	%r12d, -88(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movslq	(%r13), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movslq	4(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %r14
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	24(%r13), %r12
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_decode_pixel
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.3:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	(%rax,%rcx,4), %ebx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movslq	%esi, %rax
	leaq	(%r12,%rax,4), %rax
	movslq	-88(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	imulq	%rcx, %rdx
	leaq	(%rax,%rdx,4), %rdi
	leal	(%rsi,%rsi,2), %eax
	cltq
	leaq	(%r14,%rax,4), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	imulq	%rdx, %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rax,2), %r12d
	shlq	$2, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rax,4), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	-80(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r15d, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_AV_WB24
	addq	$12, %r14
	addl	$3, %r15d
	cmpl	%r15d, %r12d
	jg	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	sarl	$31, %eax
	andl	%ecx, %eax
	addq	$72, %rsp
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_region_intra
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_region_intra
_decode_region_intra:                   ; @decode_region_intra
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x26, [x0, #8]
	ldr	x8, [x1]
	add	x1, x0, #4
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x2, x1, [x26, #16]
	ldp	w7, w8, [x26]
	ldr	x9, [x26, #8]
	stp	x22, x9, [sp, #8]
	str	w8, [sp]
	mov	x0, x21
	mov	x3, x24
	mov	x4, x23
	mov	x5, x20
	mov	x6, x19
	bl	_decode_region
	b	LBB0_10
LBB0_2:
	str	w19, [sp, #40]                  ; 4-byte Folded Spill
	ldpsw	x8, x27, [x26]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	ldp	x19, x25, [x26, #16]
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_decode_pixel
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w28, #0
	ldr	x8, [x26, #8]
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	ldr	w22, [x8, w9, uxtw #2]
	add	x8, x25, w24, sxtw #2
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	mul	w9, w9, w23
	add	x25, x8, w9, sxtw #2
	mov	w8, #12
	smaddl	x8, w24, w8, x19
	mul	w9, w27, w23
	add	x24, x8, w9, sxtw #2
	add	w19, w20, w20, lsl #1
	lsl	x27, x27, #2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w28, w28, #1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x25, x25, x8, lsl #2
	add	x24, x24, x27
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	cmp	w28, w8
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x25
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	mov	x2, x20
	bl	_memset
	ldr	x8, [x26, #16]
	cmp	x8, #0
	ccmp	w20, #1, #8, ne
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w21, #0
	mov	x23, x24
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	x1, x22
	bl	_AV_WB24
	add	x23, x23, #12
	add	w21, w21, #3
	cmp	w19, w21
	b.gt	LBB0_8
	b	LBB0_5
LBB0_9:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #0
	csel	w0, w8, wzr, lt
LBB0_10:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_region_intra
.subsections_via_symbols
