	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ivi_recompose_haar          ## -- Begin function ff_ivi_recompose_haar
	.p2align	4, 0x90
_ff_ivi_recompose_haar:                 ## @ff_ivi_recompose_haar
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rdi), %r15d
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.1:
	movq	8(%rdi), %rcx
	movq	56(%rcx), %r8
	movq	40(%rcx), %r10
	movq	8(%rcx), %r9
	movq	24(%rcx), %rbx
	movslq	(%rcx), %r11
	leal	(%rdx,%rdx), %ecx
	movslq	%ecx, %r14
	movslq	%edx, %rdx
	movl	4(%rdi), %ecx
	addq	%r11, %r11
	movq	%r11, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rdx,4), %r12
	addq	$4, %r12
	shlq	$2, %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %r8
	addq	%rdx, %r10
	addq	%rdx, %rbx
	addq	%rdx, %r9
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %r12
	addq	%rdx, %rsi
	cmpl	%r15d, %eax
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r10, -120(%rbp)                ## 8-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movswl	(%r9,%r15), %eax
	movswl	(%rbx,%r15), %esi
	movswl	(%r10,%r15), %edx
	movswl	(%r8,%r15), %ecx
	leal	(%rsi,%rax), %r12d
	leal	(%rcx,%rdx), %ebx
	leal	(%rbx,%r12), %edi
	addl	$2, %edi
	sarl	$2, %edi
	subl	%ebx, %r12d
	addl	$2, %r12d
	sarl	$2, %r12d
	subl	%esi, %eax
	leal	(%rdx,%rax), %ebx
	subl	%ecx, %ebx
	addl	$2, %ebx
	sarl	$2, %ebx
	subl	%edx, %ecx
	leal	(%rcx,%rax), %r13d
	addl	$2, %r13d
	sarl	$2, %r13d
	subl	$-128, %edi
	callq	_av_clip_uint8
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14,%r15,4)
	subl	$-128, %r12d
	movl	%r12d, %edi
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	callq	_av_clip_uint8
	movl	%eax, 4(%r14,%r15,4)
	subl	$-128, %ebx
	movl	%ebx, %edi
	callq	_av_clip_uint8
	movl	%eax, -4(%r12,%r15,4)
	subl	$-128, %r13d
	movl	%r13d, %edi
	callq	_av_clip_uint8
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	movq	-120(%rbp), %r10                ## 8-byte Reload
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%r12,%r15,4)
	addq	$2, %r15
	movslq	4(%rdi), %rcx
	cmpq	%rcx, %r15
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdi), %r15d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_7:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ivi_recompose_haar          ; -- Begin function ff_ivi_recompose_haar
	.p2align	2
_ff_ivi_recompose_haar:                 ; @ff_ivi_recompose_haar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 $w2 killed $w2 def $x2
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x27, x0
	mov	w11, #0
	ldr	x9, [x0, #8]
	ldr	x12, [x9, #56]
	ldr	x24, [x9, #40]
	ldr	x25, [x9, #24]
	ldr	x23, [x9, #8]
	ldrsw	x9, [x9]
	lsl	w10, w2, #1
	lsl	x9, x9, #1
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w9, [x0, #4]
	sbfiz	x22, x2, #2, #32
	sbfiz	x10, x10, #2, #32
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w11, w11, #2
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	add	x12, x12, x10
	add	x24, x24, x10
	add	x25, x25, x10
	add	x23, x23, x10
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x19, x19, x10
	cmp	w11, w8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w11, [sp, #28]                  ; 4-byte Folded Spill
	mov	x28, #0
	stp	x19, x12, [sp, #32]             ; 16-byte Folded Spill
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsh	w8, [x23, x28]
	ldrsh	w9, [x25, x28]
	ldrsh	w10, [x24, x28]
	ldrsh	w11, [x12, x28]
	add	w12, w9, w8
	add	w13, w11, w10
	add	w14, w13, w12
	add	w14, w14, #2
	asr	w14, w14, #2
	sub	w12, w12, w13
	add	w12, w12, #2
	asr	w26, w12, #2
	sub	w8, w8, w9
	add	w9, w10, w8
	sub	w9, w9, w11
	add	w9, w9, #2
	asr	w21, w9, #2
	sub	w9, w11, w10
	add	w8, w9, w8
	add	w8, w8, #2
	asr	w20, w8, #2
	add	w0, w14, #128
	bl	_av_clip_uint8
	str	w0, [x19]
	add	w0, w26, #128
	bl	_av_clip_uint8
	str	w0, [x19, #4]
	add	w0, w21, #128
	bl	_av_clip_uint8
	add	x21, x19, x22
	str	w0, [x21]
	add	w0, w20, #128
	bl	_av_clip_uint8
	ldr	x12, [sp, #40]                  ; 8-byte Folded Reload
	str	w0, [x21, #4]
	add	x28, x28, #2
	ldrsw	x9, [x27, #4]
	add	x19, x19, #8
	cmp	x28, x9
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	b	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
