	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compress_sliced_buf
_compress_sliced_buf:                   ## @compress_sliced_buf
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, 16(%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_VBI_HBLANK_SAMPLES_50HZ@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VBI_HBLANK_SAMPLES_60HZ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r8d
	movslq	%ecx, %rax
	leaq	(%rsi,%rax,4), %rbx
	cmpl	%edx, %eax
	jge	LBB0_4
## %bb.5:
	movq	_sliced_vbi_eav_rp@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%ecx, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%eax
	addq	$4, %rbx
	cmpl	%eax, %edx
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, (%rbx)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 4(%rbx)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 8(%rbx)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	12(%rbx), %edi
	cmpl	(%rsi), %edi
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	4(%rsi), %edi
	jne	LBB0_11
	jmp	LBB0_13
LBB0_4:
	movl	%ecx, %eax
	jmp	LBB0_13
LBB0_12:
	movl	%edx, %eax
LBB0_13:
	subl	%eax, %ecx
	addl	%edx, %ecx
	xorl	%r12d, %r12d
	cmpl	%r8d, %ecx
	jl	LBB0_24
## %bb.14:
	movl	%ecx, %eax
	cltd
	idivl	%r8d
	testl	%eax, %eax
	jle	LBB0_24
## %bb.15:
	movslq	%r8d, %r13
	movl	%eax, %r15d
	addq	$16, %rbx
	shlq	$2, %r13
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	%r13, %rbx
	decq	%r15
	je	LBB0_24
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$255, -16(%rbx)
	jne	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, -12(%rbx)
	jne	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, -8(%rbx)
	jne	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	-4(%rbx), %eax
	movq	_sliced_vbi_eav_rp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	4(%rcx), %eax
	jne	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, -64(%rbp)
	movl	8(%r14), %edi
	movq	_decode_vbi_line@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rsp)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	leaq	-64(%rbp), %rdx
	callq	_v4l2_subdev_call
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r14), %rcx
	movslq	%r12d, %r12
	leaq	(%r12,%r12,2), %rdx
	movq	%rax, 16(%rcx,%rdx,8)
	movl	-52(%rbp), %eax
	movl	%eax, 8(%rcx,%rdx,8)
	movl	-56(%rbp), %eax
	movl	%eax, 4(%rcx,%rdx,8)
	movl	(%rcx,%rdx,8), %edi
	movq	-64(%rbp), %rsi
	movl	$42, %edx
	callq	_memcpy
	incl	%r12d
	jmp	LBB0_23
LBB0_24:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VBI_HBLANK_SAMPLES_60HZ,4,2    ## @VBI_HBLANK_SAMPLES_60HZ
	.comm	_VBI_HBLANK_SAMPLES_50HZ,4,2    ## @VBI_HBLANK_SAMPLES_50HZ
	.comm	_sliced_vbi_eav_rp,8,3          ## @sliced_vbi_eav_rp
	.comm	_decode_vbi_line,4,2            ## @decode_vbi_line
	.no_dead_strip	_compress_sliced_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compress_sliced_buf
_compress_sliced_buf:                   ; @compress_sliced_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
Lloh0:
	adrp	x8, _VBI_HBLANK_SAMPLES_60HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VBI_HBLANK_SAMPLES_60HZ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VBI_HBLANK_SAMPLES_50HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VBI_HBLANK_SAMPLES_50HZ@GOTPAGEOFF]
	ldr	x10, [x0, #16]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	add	x9, x1, w3, sxtw #2
	cmp	w3, w2
	b.ge	LBB0_8
; %bb.1:
Lloh4:
	adrp	x10, _sliced_vbi_eav_rp@GOTPAGE
Lloh5:
	ldr	x10, [x10, _sliced_vbi_eav_rp@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x10]
	mov	x10, x3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w10, #1
	add	x9, x9, #4
	cmp	w2, w10
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9]
	cmp	w12, #255
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x9, #4]
	cbnz	w12, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x9, #8]
	cbnz	w12, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x9, #12]
	ldr	w13, [x11]
	cmp	w12, w13
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x11, #4]
	cmp	w12, w13
	b.ne	LBB0_2
	b	LBB0_10
LBB0_8:
	mov	x10, x3
	b	LBB0_10
LBB0_9:
	mov	x10, x2
LBB0_10:
	sub	w10, w3, w10
	add	w10, w10, w2
	cmp	w10, w8
	b.lt	LBB0_21
; %bb.11:
	sdiv	w21, w10, w8
	cmp	w21, #1
	b.lt	LBB0_21
; %bb.12:
	mov	w20, #0
	add	x22, x9, #16
	sbfiz	x23, x8, #2, #32
Lloh7:
	adrp	x24, _sliced_vbi_eav_rp@GOTPAGE
Lloh8:
	ldr	x24, [x24, _sliced_vbi_eav_rp@GOTPAGEOFF]
Lloh9:
	adrp	x25, _decode_vbi_line@GOTPAGE
Lloh10:
	ldr	x25, [x25, _decode_vbi_line@GOTPAGEOFF]
	mov	w26, #24
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x22, x22, x23
	subs	x21, x21, #1
	b.eq	LBB0_22
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x22, #-16]
	cmp	w8, #255
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	w8, [x22, #-12]
	cbnz	w8, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	w8, [x22, #-8]
	cbnz	w8, LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	w8, [x22, #-4]
	ldr	x9, [x24]
	ldr	w10, [x9]
	cmp	w8, w10
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x9, #4]
	cmp	w8, w9
	b.ne	LBB0_13
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	str	x22, [sp, #24]
	ldr	w0, [x19, #8]
	ldr	w2, [x25]
	ldur	q0, [sp, #24]
	str	q0, [sp]
	ldr	x8, [sp, #40]
	str	x8, [sp, #16]
	mov	x1, sp
	add	x3, sp, #24
	bl	_v4l2_subdev_call
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x19]
	smaddl	x9, w20, w26, x9
	str	x8, [x9, #16]
	ldr	d0, [sp, #32]
	stur	d0, [x9, #4]
	ldr	w0, [x9]
	ldr	x1, [sp, #24]
	mov	w2, #42
	bl	_memcpy
	add	w20, w20, #1
	b	LBB0_13
LBB0_21:
	mov	w20, #0
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VBI_HBLANK_SAMPLES_60HZ,4,2    ; @VBI_HBLANK_SAMPLES_60HZ
	.comm	_VBI_HBLANK_SAMPLES_50HZ,4,2    ; @VBI_HBLANK_SAMPLES_50HZ
	.comm	_sliced_vbi_eav_rp,8,3          ; @sliced_vbi_eav_rp
	.comm	_decode_vbi_line,4,2            ; @decode_vbi_line
	.no_dead_strip	_compress_sliced_buf
.subsections_via_symbols
