	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_intra_blocks
_decode_intra_blocks:                   ## @decode_intra_blocks
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	24(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -60(%rbp)
	movq	(%rdi), %rdi
	movl	16(%r12), %edx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_memset
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %esi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$64, %rcx
	je	LBB0_19
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	testl	%esi, %esi
	jle	LBB0_18
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rax,%rcx,4), %r13
	shlq	$2, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %ecx
	shll	$6, %ecx
	movslq	%ecx, %rcx
	leaq	(%r13,%rcx,4), %r13
	subl	%eax, (%r14)
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=2
	addl	%eax, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	cmpl	%r12d, %esi
	jle	LBB0_18
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	movl	(%r14), %edi
	testl	%edi, %edi
	jle	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	subl	%r12d, %esi
	callq	_FFMIN
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	testl	%eax, %eax
	jle	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %r8d
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%edx, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %r8d
	andl	$1, %r8d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	callq	_read_code
	testl	%eax, %eax
	js	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	-64(%rbp), %eax
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=2
	addl	(%r15), %eax
	movl	%eax, (%r15)
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	imull	(%rbx,%rcx,4), %eax
	movl	%eax, (%r13)
	addq	$256, %r13                      ## imm = 0x100
	movl	$1, %eax
	jmp	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	%r8d, %esi
	andl	$-2, %esi
	leaq	256(%r13), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rbx), %ecx
	imull	(%r15), %ecx
	movl	%ecx, -256(%rdi)
	movl	(%rbx), %ecx
	imull	(%r15), %ecx
	movl	%ecx, (%rdi)
	addq	$2, %rdx
	addq	$512, %rdi                      ## imm = 0x200
	cmpq	%rdx, %rsi
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	testb	$1, %r8b
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	(%rbx), %ecx
	imull	(%r15), %ecx
	shlq	$8, %rdx
	movl	%ecx, (%r13,%rdx)
	jmp	LBB0_12
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_intra_blocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_intra_blocks
_decode_intra_blocks:                   ; @decode_intra_blocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x24, [x0, #24]
	str	wzr, [sp, #8]
	ldr	x0, [x0]
	ldr	w2, [x23, #16]
	mov	w1, #0
	bl	_memset
	mov	x25, #0
	ldr	w8, [x23, #8]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	cmp	x25, #64
	b.eq	LBB0_15
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
	ldr	x9, [x23]
	ldrsw	x10, [x24, x25, lsl #2]
	add	x27, x9, x10, lsl #2
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	lsl	w8, w0, #6
	add	x27, x27, w8, sxtw #2
	ldr	w8, [x20]
	sub	w8, w8, w0
	str	w8, [x20]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x23, #8]
	add	w26, w0, w26
	cmp	w8, w26
	b.le	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	w0, [x20]
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	sub	w1, w8, w26
	bl	_FFMIN
	cbnz	x25, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w8, w0
	mov	x9, x27
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w10, [x19]
	ldr	w11, [x21]
	mul	w10, w11, w10
	str	w10, [x9]
	add	x9, x9, #256
	subs	x8, x8, #1
	b.ne	LBB0_10
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x23, #12]
	and	w4, w8, #0x1
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x20
	bl	_read_code
	tbnz	w0, #31, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [sp, #12]
	cbnz	x25, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w9, [x21, x25, lsl #2]
	mul	w8, w9, w8
	str	w8, [x27]
	add	x27, x27, #256
	mov	w0, #1
	b	LBB0_5
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_intra_blocks
.subsections_via_symbols
