	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mm_decode_intra
_mm_decode_intra:                       ## @mm_decode_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%rdi), %r12
	movq	%r12, %rdi
	callq	_bytestream2_get_bytes_left
	testq	%rax, %rax
	jle	LBB0_15
## %bb.1:
	testl	%r14d, %r14d
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	%rbx, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leal	1(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %r15d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_bytestream2_get_bytes_left
	movl	%ebx, %r13d
	testq	%rax, %rax
	jle	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	(%rax), %r15d
	jge	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_byte
	movq	%r12, %rdi
	movl	%eax, %r12d
	testb	$-128, %r12b
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	$127, %r12d
	addl	$2, %r12d
	callq	_bytestream2_get_byte
	movl	%r12d, %ebx
	movl	%eax, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movzbl	-41(%rbp), %ecx                 ## 1-byte Folded Reload
	shll	%cl, %ebx
	movq	(%rdx), %rax
	movl	4(%rax), %eax
	subl	%r13d, %eax
	cmpl	%eax, %ebx
	jg	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdx), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movslq	(%rcx), %rcx
	movslq	%r15d, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	imulq	%rdx, %rcx
	movslq	%r13d, %r14
	movq	(%rax), %rdi
	addq	%r14, %rdi
	addq	%rcx, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%r15d, %eax
	movq	(%rdx), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdx), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	(%rcx), %rcx
	imulq	%rdx, %rcx
	addq	(%rax), %r14
	addq	%rcx, %r14
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%r13d, %ebx
	movq	(%rdx), %rcx
	xorl	%r14d, %r14d
	movl	$0, %eax
	cmpl	4(%rcx), %ebx
	jl	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_2
LBB0_15:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_16:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_mm_decode_intra
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mm_decode_intra
_mm_decode_intra:                       ; @mm_decode_intra
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x22, x1
	mov	x20, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_bytestream2_get_bytes_left
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.1:
	mov	w24, #0
	mov	w27, #0
	cmp	w22, #0
	cset	w25, ne
	add	w26, w19, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	add	w9, w23, w27
	cmp	w9, w8
	csel	w27, w9, wzr, lt
	csel	w8, wzr, w26, lt
	add	w24, w8, w24
	mov	x0, x21
	bl	_bytestream2_get_bytes_left
	cmp	x0, #0
	b.le	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w24, w8
	b.ge	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_bytestream2_get_byte
	mov	x22, x0
	tbnz	w0, #7, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w8, w22, #0x7f
	add	w23, w8, #2
	mov	x0, x21
	bl	_bytestream2_get_byte
	mov	x22, x0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #1
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	w23, w23, w25
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	sub	w8, w8, w27
	cmp	w23, w8
	b.gt	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldp	x8, x9, [x8]
	ldr	x9, [x9]
	ldrsw	x8, [x8]
	sxtw	x10, w24
	sxtw	x28, w27
	add	x9, x9, x28
	madd	x0, x8, x10, x9
	mov	x1, x22
	mov	x2, x23
	bl	_memset
	cbz	w19, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8]
	add	w9, w24, w19
	cmp	w9, w8
	b.ge	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldp	x8, x9, [x8]
	ldr	x9, [x9]
	mov	x10, x24
	sxtw	x10, w10
	ldrsw	x8, [x8]
	madd	x8, x8, x10, x8
	add	x9, x9, x28
	add	x0, x9, x8
	mov	x1, x22
	mov	x2, x23
	bl	_memset
	b	LBB0_2
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_mm_decode_intra
.subsections_via_symbols
