	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_haar_block
_decode_haar_block:                     ## @decode_haar_block
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.1:
	movq	%r9, %r12
	movq	%rsi, %r15
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, %eax
	sarl	%eax
	leaq	4(%rsi), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	leaq	8(%rsi), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%r8d, %edi
	movslq	%eax, %r10
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	imull	%r8d, %eax
	movslq	%eax, %rcx
	leaq	(%r10,%rcx), %rax
	addq	%rdi, %rax
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	imull	%ebx, %ebx
	subq	%rbx, %rax
	leaq	(%r9,%rax,4), %r8
	leaq	(,%rdi,4), %rdx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	addq	%rdi, %rcx
	subq	%rbx, %rcx
	leaq	(%r9,%rcx,4), %r9
	movq	%r10, -128(%rbp)                ## 8-byte Spill
	leaq	(%r10,%rdi), %rdx
	subq	%rbx, %rdx
	leaq	(%r12,%rdx,4), %r10
	movq	%rdi, %r13
	subq	%rbx, %rdi
	leaq	(%r12,%rdi,4), %r11
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r14,%rdi), %r8
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%rdi), %r9
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rdi), %r10
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rdi), %r11
	addq	%rdi, %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpl	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	movq	%r10, -112(%rbp)                ## 8-byte Spill
	movq	%r11, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_decode_coeff
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, (%r12,%r14,4)
	imull	(%r15), %eax
	movl	%eax, (%r12,%r14,4)
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_8
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	-128(%rbp), %r14                ## 8-byte Folded Reload
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	%ebx, -48(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_rac_get_model256_sym
	jmp	LBB0_7
LBB0_9:
	cmpl	$2, -64(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	jl	LBB0_14
## %bb.10:
	movq	%rax, %rsi
	leal	(%rdi,%rdi), %eax
	cltq
	movslq	%edi, %r8
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	cmpl	$2, %r9d
	movl	$1, %edi
	cmovgel	%r9d, %edi
	shlq	$2, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	(%r10,%r8,4), %r15
	addq	$4, %r15
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	leaq	(,%rdi,4), %rdi
	xorl	%ecx, %ecx
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi,%r13), %eax
	movl	(%rdx,%r13), %r12d
	movl	(%rbx,%r13), %ecx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%r13), %r14d
	movl	%eax, %r15d
	subl	%r12d, %r15d
	movl	%ecx, %ebx
	subl	%r14d, %ebx
	addl	%eax, %r12d
	addl	%ecx, %r14d
	movl	%r15d, %edi
	subl	%ebx, %edi
	callq	_av_clip_uint8
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,2)
	addl	%r15d, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, %edi
	callq	_av_clip_uint8
	movl	%eax, -4(%r15,%r13,2)
	movl	%r12d, %edi
	subl	%r14d, %edi
	callq	_av_clip_uint8
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%r13,2)
	addl	%r12d, %r14d
	movl	%r14d, %edi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	callq	_av_clip_uint8
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, (%r15,%r13,2)
	addq	$4, %r13
	cmpq	%r13, %rdi
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movq	-136(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %r14
	addq	%rax, %rbx
	addq	%rax, %rdx
	addq	%rax, %rsi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	addq	%rax, %r10
	addq	%rax, %r15
	cmpl	-88(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_11
LBB0_14:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_haar_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_haar_block
_decode_haar_block:                     ; @decode_haar_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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 $w3 killed $w3 def $x3
	cmp	w4, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x22, x5
	mov	x23, x1
	mov	x24, x0
	stp	x3, x2, [sp]                    ; 16-byte Folded Spill
	mov	w28, #0
	asr	w27, w4, #1
	mov	w19, w4
	sxtw	x20, w27
	mul	w8, w27, w4
	sxtw	x9, w8
	add	x8, x20, x9
	add	x8, x8, x19
	mul	w11, w4, w4
	sub	x8, x8, x11
	add	x8, x5, x8, lsl #2
	add	x25, x1, #4
	lsl	x10, x19, #2
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	add	x26, x1, #8
	add	x9, x9, x19
	sub	x9, x9, x11
	add	x9, x5, x9, lsl #2
	add	x10, x20, x19
	sub	x10, x10, x11
	add	x10, x5, x10, lsl #2
	sub	x11, x19, x11
	add	x11, x5, x11, lsl #2
	str	w4, [sp, #16]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w28, w28, #1
	ldp	x12, x16, [sp, #24]             ; 16-byte Folded Reload
	ldp	x15, x13, [sp, #48]             ; 16-byte Folded Reload
	add	x8, x13, x12
	ldr	x14, [sp, #40]                  ; 8-byte Folded Reload
	add	x9, x14, x12
	add	x10, x15, x12
	add	x11, x16, x12
	add	x22, x22, x12
	ldr	w4, [sp, #16]                   ; 4-byte Folded Reload
	cmp	w28, w4
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x21, #0
	stp	x10, x8, [sp, #48]              ; 16-byte Folded Spill
	stp	x11, x9, [sp, #32]              ; 16-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x24
	mov	x1, x25
	bl	_decode_coeff
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	lsl	x8, x21, #2
	str	w0, [x22, x8]
	ldr	w9, [x23]
	mul	w9, w0, w9
	str	w9, [x22, x8]
	add	x21, x21, #1
	cmp	x19, x21
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x21, x20
	b.ge	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w28, w27
	b.ge	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x24
	mov	x1, x26
	bl	_rac_get_model256_sym
	b	LBB0_5
LBB0_9:
	cmp	w4, #2
	ldp	x10, x9, [sp]                   ; 16-byte Folded Reload
	b.lt	LBB0_14
; %bb.10:
	mov	w11, #0
	lsl	w8, w10, #1
	cmp	w27, #1
	csinc	w12, w27, wzr, gt
	lsl	x19, x12, #2
	sbfiz	x22, x10, #2, #32
	add	x27, x9, #4
	sbfiz	x8, x8, #2, #32
	stp	x8, x12, [sp, #8]               ; 16-byte Folded Spill
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	str	w11, [sp, #40]                  ; 4-byte Folded Spill
	mov	x26, #0
	str	x27, [sp, #32]                  ; 8-byte Folded Spill
	stp	x15, x13, [sp, #48]             ; 16-byte Folded Spill
LBB0_12:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x16, x26]
	ldr	w9, [x15, x26]
	ldr	w10, [x14, x26]
	ldr	w11, [x13, x26]
	sub	w21, w8, w9
	add	w28, w9, w8
	add	w20, w11, w10
	sub	w25, w10, w11
	mov	x24, x14
	mov	x23, x16
	sub	w0, w21, w25
	bl	_av_clip_uint8
	stur	w0, [x27, #-4]
	add	w0, w25, w21
	bl	_av_clip_uint8
	add	x21, x27, x22
	stur	w0, [x21, #-4]
	sub	w0, w28, w20
	bl	_av_clip_uint8
	str	w0, [x27], #8
	add	w0, w20, w28
	bl	_av_clip_uint8
	str	w0, [x21]
	mov	x16, x23
	ldp	x15, x13, [sp, #48]             ; 16-byte Folded Reload
	mov	x14, x24
	add	x26, x26, #4
	cmp	x19, x26
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w11, [sp, #40]                  ; 4-byte Folded Reload
	add	w11, w11, #1
	ldp	x8, x27, [sp, #24]              ; 16-byte Folded Reload
	add	x13, x13, x8
	add	x14, x14, x8
	add	x15, x15, x8
	add	x16, x16, x8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x27, x27, x8
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	w11, w8
	b.ne	LBB0_11
LBB0_14:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_haar_block
.subsections_via_symbols
