	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_yuv_filter
_ivtv_yuv_filter:                       ## @ivtv_yuv_filter
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	testl	%esi, %esi
	js	LBB0_4
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	$4, %esi
	movl	$4, %r12d
	cmovll	%esi, %r12d
	movq	_IVTV_YUV_HORIZONTAL_FILTER_OFFSET@GOTPCREL(%rip), %rax
	leal	(%r12,%r12,2), %r13d
	shll	$7, %r13d
	addl	(%rax), %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r13), %ebx
	movl	%ebx, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10244, %esi                    ## imm = 0x2804
	callq	_write_reg
	movl	%ebx, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10268, %esi                    ## imm = 0x281C
	callq	_write_reg
	leal	(%r14,%r13), %ebx
	addl	$4, %ebx
	movl	%ebx, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10248, %esi                    ## imm = 0x2808
	callq	_write_reg
	movl	%ebx, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10272, %esi                    ## imm = 0x2820
	callq	_write_reg
	leal	(%r14,%r13), %ebx
	addl	$8, %ebx
	movl	%ebx, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10252, %esi                    ## imm = 0x280C
	callq	_write_reg
	movl	%ebx, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10276, %esi                    ## imm = 0x2824
	callq	_write_reg
	leal	(%r14,%r13), %ebx
	addl	$12, %ebx
	movl	%ebx, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10256, %esi                    ## imm = 0x2810
	callq	_write_reg
	movl	%ebx, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10280, %esi                    ## imm = 0x2828
	callq	_write_reg
	leal	(%r14,%r13), %ebx
	addl	$16, %ebx
	movl	%ebx, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10260, %esi                    ## imm = 0x2814
	callq	_write_reg
	movl	%ebx, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10284, %esi                    ## imm = 0x282C
	callq	_write_reg
	xorl	%edi, %edi
	movl	$10264, %esi                    ## imm = 0x2818
	callq	_write_reg
	xorl	%edi, %edi
	movl	$10288, %esi                    ## imm = 0x2830
	callq	_write_reg
	addl	$24, %r14d
	cmpl	$384, %r14d                     ## imm = 0x180
	jne	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_IVTV_DEBUG_YUV
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_4:
	testl	%r15d, %r15d
	js	LBB0_8
## %bb.5:
	cmpl	$4, %r15d
	movl	$4, %r14d
	cmovll	%r15d, %r14d
	movq	_IVTV_YUV_VERTICAL_FILTER_OFFSET@GOTPCREL(%rip), %rax
	leal	(%r14,%r14,2), %r15d
	shll	$6, %r15d
	addl	(%rax), %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10496, %esi                    ## imm = 0x2900
	callq	_write_reg
	leal	(%r15,%rbx), %edi
	addl	$4, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10500, %esi                    ## imm = 0x2904
	callq	_write_reg
	xorl	%edi, %edi
	movl	$10504, %esi                    ## imm = 0x2908
	callq	_write_reg
	addl	$12, %ebx
	cmpl	$192, %ebx
	jne	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_IVTV_DEBUG_YUV
LBB0_8:
	testl	%r12d, %r12d
	js	LBB0_12
## %bb.9:
	cmpl	$4, %r12d
	movl	$4, %r14d
	cmovll	%r12d, %r14d
	movq	_IVTV_YUV_VERTICAL_FILTER_OFFSET@GOTPCREL(%rip), %rax
	leal	(%r14,%r14,2), %r15d
	shll	$6, %r15d
	addl	(%rax), %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10508, %esi                    ## imm = 0x290C
	callq	_write_reg
	leal	(%r15,%rbx), %edi
	addl	$4, %edi
	callq	_read_dec
	movl	%eax, %edi
	movl	$10512, %esi                    ## imm = 0x2910
	callq	_write_reg
	xorl	%edi, %edi
	movl	$10516, %esi                    ## imm = 0x2914
	callq	_write_reg
	addl	$12, %ebx
	cmpl	$192, %ebx
	jne	LBB0_10
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IVTV_DEBUG_YUV                 ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IVTV_YUV_HORIZONTAL_FILTER_OFFSET,4,2 ## @IVTV_YUV_HORIZONTAL_FILTER_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"h_filter -> %d\n"

	.comm	_IVTV_YUV_VERTICAL_FILTER_OFFSET,4,2 ## @IVTV_YUV_VERTICAL_FILTER_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"v_filter_1 -> %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"v_filter_2 -> %d\n"

	.no_dead_strip	_ivtv_yuv_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_yuv_filter
_ivtv_yuv_filter:                       ; @ivtv_yuv_filter
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	tbnz	w1, #31, LBB0_4
; %bb.1:
	mov	w24, #0
	mov	w8, #4
	cmp	w1, #4
	csel	w21, w1, w8, lt
Lloh0:
	adrp	x8, _IVTV_YUV_HORIZONTAL_FILTER_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IVTV_YUV_HORIZONTAL_FILTER_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #384
	madd	w25, w21, w9, w8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w25, w24
	mov	x0, x22
	bl	_read_dec
	mov	w1, #10244
	bl	_write_reg
	mov	x0, x22
	bl	_read_dec
	mov	w1, #10268
	bl	_write_reg
	add	w23, w22, #4
	mov	x0, x23
	bl	_read_dec
	mov	w1, #10248
	bl	_write_reg
	mov	x0, x23
	bl	_read_dec
	mov	w1, #10272
	bl	_write_reg
	add	w23, w22, #8
	mov	x0, x23
	bl	_read_dec
	mov	w1, #10252
	bl	_write_reg
	mov	x0, x23
	bl	_read_dec
	mov	w1, #10276
	bl	_write_reg
	add	w23, w22, #12
	mov	x0, x23
	bl	_read_dec
	mov	w1, #10256
	bl	_write_reg
	mov	x0, x23
	bl	_read_dec
	mov	w1, #10280
	bl	_write_reg
	add	w22, w22, #16
	mov	x0, x22
	bl	_read_dec
	mov	w1, #10260
	bl	_write_reg
	mov	x0, x22
	bl	_read_dec
	mov	w1, #10284
	bl	_write_reg
	mov	w0, #0
	mov	w1, #10264
	bl	_write_reg
	mov	w0, #0
	mov	w1, #10288
	bl	_write_reg
	add	w24, w24, #24
	cmp	w24, #384
	b.ne	LBB0_2
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_IVTV_DEBUG_YUV
LBB0_4:
Lloh5:
	adrp	x22, _IVTV_YUV_VERTICAL_FILTER_OFFSET@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IVTV_YUV_VERTICAL_FILTER_OFFSET@GOTPAGEOFF]
	tbnz	w20, #31, LBB0_8
; %bb.5:
	mov	w23, #0
	mov	w8, #4
	cmp	w20, #4
	csel	w20, w20, w8, lt
	ldr	w8, [x22]
	mov	w9, #192
	madd	w24, w20, w9, w8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w24, w23
	mov	x0, x21
	bl	_read_dec
	mov	w1, #10496
	bl	_write_reg
	add	w0, w21, #4
	bl	_read_dec
	mov	w1, #10500
	bl	_write_reg
	mov	w0, #0
	mov	w1, #10504
	bl	_write_reg
	add	w23, w23, #12
	cmp	w23, #192
	b.ne	LBB0_6
; %bb.7:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_IVTV_DEBUG_YUV
LBB0_8:
	tbnz	w19, #31, LBB0_12
; %bb.9:
	mov	w21, #0
	mov	w8, #4
	cmp	w19, #4
	csel	w19, w19, w8, lt
	ldr	w8, [x22]
	mov	w9, #192
	madd	w22, w19, w9, w8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w20, w22, w21
	mov	x0, x20
	bl	_read_dec
	mov	w1, #10508
	bl	_write_reg
	add	w0, w20, #4
	bl	_read_dec
	mov	w1, #10512
	bl	_write_reg
	mov	w0, #0
	mov	w1, #10516
	bl	_write_reg
	add	w21, w21, #12
	cmp	w21, #192
	b.ne	LBB0_10
; %bb.11:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_IVTV_DEBUG_YUV
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IVTV_YUV_HORIZONTAL_FILTER_OFFSET,4,2 ; @IVTV_YUV_HORIZONTAL_FILTER_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"h_filter -> %d\n"

	.comm	_IVTV_YUV_VERTICAL_FILTER_OFFSET,4,2 ; @IVTV_YUV_VERTICAL_FILTER_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"v_filter_1 -> %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"v_filter_2 -> %d\n"

	.no_dead_strip	_ivtv_yuv_filter
.subsections_via_symbols
