	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ivi_dc_haar_2d              ## -- Begin function ff_ivi_dc_haar_2d
	.p2align	4, 0x90
_ff_ivi_dc_haar_2d:                     ## @ff_ivi_dc_haar_2d
	.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
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movl	(%rdi), %eax
	sarl	$3, %eax
	movslq	%edx, %r8
	movl	%ecx, %edi
	movl	%edi, %r14d
	andl	$-8, %r14d
	leaq	-8(%r14), %r9
	movq	%r9, %r10
	shrq	$3, %r10
	incq	%r10
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movl	%r10d, %r11d
	andl	$7, %r11d
	andq	$-8, %r10
	shlq	$2, %r8
	movq	%r11, %r12
	shlq	$5, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	addq	%r8, %rsi
	cmpl	%ecx, %r15d
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	cmpl	$8, %ecx
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$56, %r9
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r10, %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%rsi,%rdx,4)
	movdqu	%xmm0, 16(%rsi,%rdx,4)
	movdqu	%xmm0, 32(%rsi,%rdx,4)
	movdqu	%xmm0, 48(%rsi,%rdx,4)
	movdqu	%xmm0, 64(%rsi,%rdx,4)
	movdqu	%xmm0, 80(%rsi,%rdx,4)
	movdqu	%xmm0, 96(%rsi,%rdx,4)
	movdqu	%xmm0, 112(%rsi,%rdx,4)
	movdqu	%xmm0, 128(%rsi,%rdx,4)
	movdqu	%xmm0, 144(%rsi,%rdx,4)
	movdqu	%xmm0, 160(%rsi,%rdx,4)
	movdqu	%xmm0, 176(%rsi,%rdx,4)
	movdqu	%xmm0, 192(%rsi,%rdx,4)
	movdqu	%xmm0, 208(%rsi,%rdx,4)
	movdqu	%xmm0, 224(%rsi,%rdx,4)
	movdqu	%xmm0, 240(%rsi,%rdx,4)
	addq	$64, %rdx
	addq	$-8, %rbx
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r11, %r11
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rsi,%rdx,4), %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, (%rdx,%rbx)
	movdqu	%xmm0, 16(%rdx,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdx
	cmpq	%rdi, %r14
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, (%rsi,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rdi
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	popq	%rbx
	popq	%r12
	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_dc_haar_2d              ; -- Begin function ff_ivi_dc_haar_2d
	.p2align	2
_ff_ivi_dc_haar_2d:                     ; @ff_ivi_dc_haar_2d
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w8, #0
	ldr	w9, [x0]
	asr	w9, w9, #3
	mov	w10, w3
	and	x11, x10, #0xfffffff0
	dup.4s	v0, w9
	sbfiz	x12, x2, #2, #32
	lsl	x13, x10, #2
	and	x13, x13, #0x3ffffffc0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	add	x1, x1, x12
	cmp	w8, w3
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w3, #16
	b.hs	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x15, x1, x14
	stp	q0, q0, [x15]
	stp	q0, q0, [x15, #32]
	add	x14, x14, #64
	cmp	x13, x14
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, x11
	cmp	x11, x10
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w9, [x1, x14, lsl #2]
	add	x14, x14, #1
	cmp	x10, x14
	b.ne	LBB0_8
	b	LBB0_2
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
