	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv34_decode_intra_macroblock
_rv34_decode_intra_macroblock:          ## @rv34_decode_intra_macroblock
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movslq	48(%rdi), %rax
	movslq	52(%rdi), %rcx
	movslq	56(%rdi), %r15
	imulq	%rcx, %r15
	addq	%rax, %r15
	movq	40(%rdi), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	40(%rbx), %rdi
	addq	$24, %rdi
	movl	$2, %esi
	movl	$2, %edx
	movl	$4, %ecx
	movl	$1, %r8d
	movl	$4, %r9d
	callq	_fill_rectangle
	movl	48(%rbx), %edx
	movl	52(%rbx), %eax
	movl	%edx, %esi
	subl	60(%rbx), %esi
	subl	64(%rbx), %eax
	movl	68(%rbx), %ecx
	imull	%ecx, %eax
	addl	%esi, %eax
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	40(%rbx), %rcx
	movq	80(%rbx), %rdx
	movq	8(%rdx), %rdx
	movl	-4(%rdx,%r15,4), %edx
	movl	%edx, 36(%rcx)
	movl	%edx, 20(%rcx)
	movl	68(%rbx), %ecx
LBB0_3:
	movslq	%r15d, %r12
	cmpl	%ecx, %eax
	jl	LBB0_5
## %bb.4:
	movq	40(%rbx), %rcx
	movq	80(%rbx), %rdx
	movq	8(%rdx), %rdx
	movslq	56(%rbx), %rsi
	movq	%r12, %rdi
	subq	%rsi, %rdi
	movl	(%rdx,%rdi,4), %edx
	movl	%edx, 12(%rcx)
	movl	%edx, 8(%rcx)
	movl	68(%rbx), %ecx
LBB0_5:
	movl	48(%rbx), %edx
	leal	1(%rdx), %esi
	cmpl	%ecx, %esi
	jge	LBB0_8
## %bb.6:
	decl	%ecx
	cmpl	%ecx, %eax
	jl	LBB0_8
## %bb.7:
	movq	40(%rbx), %rcx
	movq	80(%rbx), %rdx
	movq	8(%rdx), %rdx
	movl	%r15d, %esi
	subl	56(%rbx), %esi
	incl	%esi
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %edx
	movl	%edx, 16(%rcx)
	movl	48(%rbx), %edx
LBB0_8:
	testl	%edx, %edx
	je	LBB0_11
## %bb.9:
	cmpl	68(%rbx), %eax
	jle	LBB0_11
## %bb.10:
	movq	80(%rbx), %rax
	movq	8(%rax), %rax
	movl	56(%rbx), %ecx
	notl	%ecx
	addl	%r15d, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	40(%rbx), %rcx
	movl	%eax, 4(%rcx)
LBB0_11:
	movl	32(%rbx), %eax
	movl	%eax, 72(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rv34_decode_intra_mb_header
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	%eax, %ecx
	sarl	$16, %ecx
	movq	8(%rbx), %rdx
	movl	%ecx, (%rdx,%r12,4)
	movq	16(%rbx), %rcx
	movl	$65535, (%rcx,%r12,4)           ## imm = 0xFFFF
	movl	72(%rbx), %ecx
	movq	80(%rbx), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rdx,%r12,4)
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.13:
	cmpq	$0, 24(%rbx)
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_rv34_output_i16x16
	jmp	LBB0_16
LBB0_12:
	movl	$-1, %eax
	jmp	LBB0_17
LBB0_15:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_rv34_output_intra
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rv34_decode_intra_macroblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv34_decode_intra_macroblock
_rv34_decode_intra_macroblock:          ; @rv34_decode_intra_macroblock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldpsw	x8, x9, [x0, #48]
	ldrsw	x10, [x0, #56]
	madd	x21, x10, x9, x8
	ldr	x0, [x0, #40]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x20, #40]
	add	x0, x8, #24
	mov	w1, #2
	mov	w2, #2
	mov	w3, #4
	mov	w4, #1
	mov	w5, #4
	bl	_fill_rectangle
	ldp	w10, w8, [x20, #48]
	ldp	w9, w11, [x20, #60]
	sub	w12, w10, w9
	sub	w8, w8, w11
	ldr	w9, [x20, #68]
	madd	w8, w8, w9, w12
	cbz	w10, LBB0_3
; %bb.1:
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x9, [x20, #80]
	ldr	x9, [x9, #8]
	add	x9, x9, x21, lsl #2
	ldur	w9, [x9, #-4]
	ldr	x10, [x20, #40]
	str	w9, [x10, #36]
	str	w9, [x10, #20]
	ldr	w9, [x20, #68]
LBB0_3:
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.4:
	ldr	x9, [x20, #80]
	ldr	x9, [x9, #8]
	ldr	w10, [x20, #56]
	sub	w10, w21, w10
	ldr	w9, [x9, w10, sxtw #2]
	ldr	x10, [x20, #40]
	stp	w9, w9, [x10, #8]
	ldr	w9, [x20, #68]
LBB0_5:
	ldr	w10, [x20, #48]
	add	w11, w10, #1
	cmp	w11, w9
	b.ge	LBB0_8
; %bb.6:
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_8
; %bb.7:
	ldr	x9, [x20, #80]
	ldr	x9, [x9, #8]
	ldr	w10, [x20, #56]
	sub	w10, w21, w10
	add	w10, w10, #1
	ldr	w9, [x9, w10, sxtw #2]
	ldr	x10, [x20, #40]
	str	w9, [x10, #16]
	ldr	w10, [x20, #48]
LBB0_8:
	cbz	w10, LBB0_11
; %bb.9:
	ldr	w9, [x20, #68]
	cmp	w8, w9
	b.le	LBB0_11
; %bb.10:
	ldr	x8, [x20, #80]
	ldr	x8, [x8, #8]
	ldr	w9, [x20, #56]
	mvn	w9, w9
	add	w9, w21, w9
	ldr	w8, [x8, w9, sxtw #2]
	ldr	x9, [x20, #40]
	str	w8, [x9, #4]
LBB0_11:
	ldr	w8, [x20, #32]
	str	w8, [x20, #72]
	mov	x0, x20
	mov	x1, x19
	bl	_rv34_decode_intra_mb_header
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sbfiz	x8, x21, #2, #32
	ldp	x9, x10, [x20]
	str	w0, [x9, x8]
	asr	w9, w0, #16
	str	w9, [x10, x8]
	ldr	x9, [x20, #16]
	mov	w10, #65535
	str	w10, [x9, x8]
	ldr	w9, [x20, #72]
	ldr	x10, [x20, #80]
	ldr	x10, [x10]
	str	w9, [x10, x8]
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.12:
	mov	x2, x0
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	bl	_rv34_output_i16x16
	b	LBB0_15
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_rv34_output_intra
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rv34_decode_intra_macroblock
.subsections_via_symbols
