	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_g_sliced_fmt           ## -- Begin function cx25840_g_sliced_fmt
	.p2align	4, 0x90
_cx25840_g_sliced_fmt:                  ## @cx25840_g_sliced_fmt
	.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
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_to_state
	movq	%rax, %r15
	movl	(%rax), %r13d
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r12), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	$0, 8(%r12)
	movq	%r14, %rdi
	movl	$1028, %esi                     ## imm = 0x404
	callq	_cx25840_read
	testb	$16, %al
	je	LBB0_6
## %bb.1:
	testl	%r13d, %ebx
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	leaq	_cx25840_g_sliced_fmt.lcr2vbi(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %eax
	leal	(%rbx,%rax), %esi
	addl	$1060, %esi                     ## imm = 0x424
	movq	%r14, %rdi
	callq	_cx25840_read
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
	movl	(%r13,%rcx,4), %ecx
	movq	(%r12), %rdx
	movq	(%rdx), %rsi
	movl	%ecx, 40(%rsi,%rbx,4)
	andl	$15, %eax
	movl	(%r13,%rax,4), %eax
	movq	8(%rdx), %rcx
	movl	%eax, 40(%rcx,%rbx,4)
	orl	40(%rsi,%rbx,4), %eax
	orl	%eax, 8(%r12)
	incq	%rbx
	cmpq	$12, %rbx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movl	$7, %ebx
	leaq	_cx25840_g_sliced_fmt.lcr2vbi(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %eax
	leal	(%rbx,%rax), %esi
	addl	$1053, %esi                     ## imm = 0x41D
	movq	%r14, %rdi
	callq	_cx25840_read
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
	movl	(%r13,%rcx,4), %ecx
	movq	(%r12), %rdx
	movq	(%rdx), %rsi
	movl	%ecx, (%rsi,%rbx,4)
	andl	$15, %eax
	movl	(%r13,%rax,4), %eax
	movq	8(%rdx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	orl	(%rsi,%rbx,4), %eax
	orl	%eax, 8(%r12)
	incq	%rbx
	cmpq	$24, %rbx
	jne	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @cx25840_g_sliced_fmt.lcr2vbi
_cx25840_g_sliced_fmt.lcr2vbi:
	.long	0                               ## 0x0
	.long	130                             ## 0x82
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	128                             ## 0x80
	.long	0                               ## 0x0
	.long	131                             ## 0x83
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	129                             ## 0x81
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_g_sliced_fmt           ; -- Begin function cx25840_g_sliced_fmt
	.p2align	2
_cx25840_g_sliced_fmt:                  ; @cx25840_g_sliced_fmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_state
	mov	x21, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	wzr, [x19, #8]
	mov	x0, x20
	mov	w1, #1028
	bl	_cx25840_read
	tbz	w0, #4, LBB0_6
; %bb.1:
	tst	w23, w22
	b.eq	LBB0_4
; %bb.2:
	mov	w22, #10
Lloh3:
	adrp	x23, _cx25840_g_sliced_fmt.lcr2vbi@PAGE
Lloh4:
	add	x23, x23, _cx25840_g_sliced_fmt.lcr2vbi@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #4]
	add	w8, w22, w8
	add	w1, w8, #1050
	mov	x0, x20
	bl	_cx25840_read
	asr	w8, w0, #4
	ldr	w8, [x23, w8, sxtw #2]
	ldr	x9, [x19]
	lsl	x10, x22, #2
	ldp	x11, x9, [x9]
	str	w8, [x11, x10]
	and	w8, w0, #0xf
	ldr	w8, [x23, w8, uxtw #2]
	str	w8, [x9, x10]
	ldr	w9, [x11, x10]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	add	x22, x22, #1
	cmp	x22, #22
	b.ne	LBB0_3
	b	LBB0_6
LBB0_4:
	mov	w22, #7
Lloh5:
	adrp	x23, _cx25840_g_sliced_fmt.lcr2vbi@PAGE
Lloh6:
	add	x23, x23, _cx25840_g_sliced_fmt.lcr2vbi@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #4]
	add	w8, w22, w8
	add	w1, w8, #1053
	mov	x0, x20
	bl	_cx25840_read
	asr	w8, w0, #4
	ldr	w8, [x23, w8, sxtw #2]
	ldr	x9, [x19]
	lsl	x10, x22, #2
	ldp	x11, x9, [x9]
	str	w8, [x11, x10]
	and	w8, w0, #0xf
	ldr	w8, [x23, w8, uxtw #2]
	str	w8, [x9, x10]
	ldr	w9, [x11, x10]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	add	x22, x22, #1
	cmp	x22, #24
	b.ne	LBB0_5
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @cx25840_g_sliced_fmt.lcr2vbi
_cx25840_g_sliced_fmt.lcr2vbi:
	.long	0                               ; 0x0
	.long	130                             ; 0x82
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	128                             ; 0x80
	.long	0                               ; 0x0
	.long	131                             ; 0x83
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	129                             ; 0x81
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
.subsections_via_symbols
