	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir2_decode_plane_inter
_ir2_decode_plane_inter:                ## @ir2_decode_plane_inter
	.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
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	testb	$1, %r12b
	jne	LBB0_10
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movslq	%r8d, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	xorl	%eax, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	leal	(%r15,%r15), %eax
	addl	$-254, %eax
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	addl	%eax, %r14d
	cmpl	%r12d, %r14d
	jge	LBB0_13
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_get_bits_left
	testq	%rax, %rax
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	callq	_ir2_get_code
	movl	%eax, %r15d
	cmpl	$128, %eax
	jge	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movslq	%r14d, %r12
	leal	(%r15,%r15), %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%rax,4), %eax
	leal	(%rax,%rax,2), %edi
	addl	$-384, %edi                     ## imm = 0xFE80
	sarl	$2, %edi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	addl	(%r13,%r12,4), %edi
	callq	_av_clip_uint8
	movl	%eax, (%r13,%r12,4)
	leal	(%r15,%r15), %eax
	incl	%eax
	movl	(%rbx,%rax,4), %eax
	leal	(%rax,%rax,2), %edi
	addl	$-384, %edi                     ## imm = 0xFE80
	sarl	$2, %edi
	addl	4(%r13,%r12,4), %edi
	callq	_av_clip_uint8
	movl	%eax, 4(%r13,%r12,4)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	movl	$2, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_2:
	xorl	%eax, %eax
LBB0_14:
	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	_ir2_decode_plane_inter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir2_decode_plane_inter
_ir2_decode_plane_inter:                ; @ir2_decode_plane_inter
	.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
                                        ; kill: def $w4 killed $w4 def $x4
	tbnz	w1, #0, LBB0_12
; %bb.1:
	mov	x21, x2
	cmp	w2, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x19, x5
	mov	x20, x3
	mov	x22, x1
	mov	x23, x0
	mov	w25, #0
	sxtw	x26, w4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
	add	x20, x20, x26, lsl #2
	add	w25, w25, #1
	cmp	w25, w21
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	lsl	w8, w24, #1
	sub	w8, w8, #254
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w27, w8, w27
	cmp	w27, w22
	b.ge	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_get_bits_left
	cmp	x0, #0
	b.le	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x23
	bl	_ir2_get_code
	mov	x24, x0
	cmp	w0, #128
	b.ge	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	w24, #0
	b.le	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x28, x20, w27, sxtw #2
	ldr	w8, [x28]
	lsl	w9, w24, #1
	ldr	w9, [x19, w9, uxtw #2]
	add	w9, w9, w9, lsl #1
	sub	w9, w9, #384
	add	w0, w8, w9, asr #2
	bl	_av_clip_uint8
	str	w0, [x28]
	ldr	w8, [x28, #4]
	mov	w9, #1
	bfi	w9, w24, #1, #31
	ldr	w9, [x19, w9, uxtw #2]
	add	w9, w9, w9, lsl #1
	sub	w9, w9, #384
	add	w0, w8, w9, asr #2
	bl	_av_clip_uint8
	str	w0, [x28, #4]
	mov	w8, #2
	b	LBB0_7
LBB0_12:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_13:
	mov	w0, #0
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	_ir2_decode_plane_inter
.subsections_via_symbols
