	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_s_sliced_fmt           ## -- Begin function cx25840_s_sliced_fmt
	.p2align	4, 0x90
_cx25840_s_sliced_fmt:                  ## @cx25840_s_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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_state
	movq	%rax, %r12
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r12), %r15d
	xorl	%ebx, %ebx
	movl	%r13d, %eax
	andl	%r15d, %eax
	sete	%bl
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movq	%r14, %rdi
	callq	_cx25840_std_setup
	movq	%r14, %rdi
	movl	$1028, %esi                     ## imm = 0x404
	movl	$50, %edx
	callq	_cx25840_write
	movq	%r14, %rdi
	movl	$1030, %esi                     ## imm = 0x406
	movl	$19, %edx
	callq	_cx25840_write
	movq	%r12, %rdi
	callq	_is_cx23888
	testq	%rax, %rax
	movl	$1151, %eax                     ## imm = 0x47F
	movl	$1359, %esi                     ## imm = 0x54F
	cmovel	%eax, %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_cx25840_write
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	$0, (%rcx)
	movl	$0, (%rax)
	movl	$0, 4(%rcx)
	movl	$0, 4(%rax)
	movl	$0, 8(%rcx)
	movl	$0, 8(%rax)
	movl	$0, 12(%rcx)
	movl	$0, 12(%rax)
	movl	$0, 16(%rcx)
	movl	$0, 16(%rax)
	movl	$0, 20(%rcx)
	movl	$0, 20(%rax)
	movl	$0, 24(%rcx)
	andl	%r15d, %r13d
	je	LBB0_1
## %bb.2:
	movl	$0, 24(%rax)
	movl	$0, 28(%rcx)
	movl	$0, 28(%rax)
	movl	$0, 32(%rcx)
	movl	$0, 32(%rax)
	movl	$0, 36(%rcx)
	movl	$0, 36(%rax)
	movl	$0, 88(%rcx)
	movl	$0, 88(%rax)
	movl	$0, 92(%rcx)
	leaq	92(%rax), %rdx
	jmp	LBB0_3
LBB0_1:
	leaq	24(%rax), %rdx
LBB0_3:
	movl	$0, (%rdx)
	movl	$7, %edx
	leaq	L_switch.table.cx25840_s_sliced_fmt(%rip), %rsi
	leaq	L_switch.table.cx25840_s_sliced_fmt.1(%rip), %rdi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	$24, %rdx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %ebx
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ebx, %rbx
	movl	(%rsi,%rbx,4), %ebx
	orl	%ebx, -144(%rbp,%rdx,4)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax,%rdx,4), %ebx
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ebx, %rbx
	movl	(%rdi,%rbx,4), %ebx
	orl	%ebx, -144(%rbp,%rdx,4)
	jmp	LBB0_8
LBB0_9:
	movl	4(%r12), %r15d
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.10:
	leaq	-104(%rbp), %r13
	addl	$1059, %r15d                    ## imm = 0x423
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_cx25840_write
	movl	4(%r12), %ebx
	addl	$1072, %ebx                     ## imm = 0x430
	addq	$4, %r13
	cmpl	%ebx, %r15d
	jl	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_cx25840_write
	movl	4(%r12), %esi
	leal	1076(%rsi), %eax
	cmpl	%eax, %ebx
	jl	LBB0_12
## %bb.13:
	movl	$34, %ebx
	jmp	LBB0_17
LBB0_14:
	leaq	-116(%rbp), %rbx
	addl	$1059, %r15d                    ## imm = 0x423
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_cx25840_write
	movl	4(%r12), %esi
	leal	1076(%rsi), %eax
	addq	$4, %rbx
	cmpl	%eax, %r15d
	jl	LBB0_15
## %bb.16:
	movl	$42, %ebx
LBB0_17:
	addl	$1084, %esi                     ## imm = 0x43C
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$22, %edx
	callq	_cx25840_write
	movq	%r12, %rdi
	callq	_is_cx23888
	testq	%rax, %rax
	movl	$1140, %eax                     ## imm = 0x474
	movl	$1064, %esi                     ## imm = 0x428
	cmovel	%eax, %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_cx25840_write
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.cx25840_s_sliced_fmt
L_switch.table.cx25840_s_sliced_fmt:
	.long	4                               ## 0x4
	.long	9                               ## 0x9
	.long	1                               ## 0x1
	.long	6                               ## 0x6

	.p2align	2                               ## @switch.table.cx25840_s_sliced_fmt.1
L_switch.table.cx25840_s_sliced_fmt.1:
	.long	64                              ## 0x40
	.long	144                             ## 0x90
	.long	16                              ## 0x10
	.long	96                              ## 0x60

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_s_sliced_fmt           ; -- Begin function cx25840_s_sliced_fmt
	.p2align	2
_cx25840_s_sliced_fmt:                  ; @cx25840_s_sliced_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	mov	x0, x20
	bl	_to_state
	mov	x20, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ands	w23, w9, w8
	cset	w22, eq
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
	mov	x0, x19
	bl	_cx25840_std_setup
	mov	x0, x19
	mov	w1, #1028
	mov	w2, #50
	bl	_cx25840_write
	mov	x0, x19
	mov	w1, #1030
	mov	w2, #19
	bl	_cx25840_write
	mov	x0, x20
	bl	_is_cx23888
	cmp	x0, #0
	mov	w8, #1359
	mov	w9, #1151
	csel	w1, w9, w8, eq
	mov	x0, x19
	mov	x2, x22
	bl	_cx25840_write
	ldr	x9, [x21]
	ldp	x9, x8, [x9]
	str	wzr, [x8]
	str	wzr, [x9]
	str	wzr, [x8, #4]
	str	wzr, [x9, #4]
	str	wzr, [x8, #8]
	str	wzr, [x9, #8]
	str	wzr, [x8, #12]
	str	wzr, [x9, #12]
	str	wzr, [x8, #16]
	str	wzr, [x9, #16]
	str	wzr, [x8, #20]
	str	wzr, [x9, #20]
	str	wzr, [x8, #24]
	cbz	w23, LBB0_2
; %bb.1:
	str	wzr, [x9, #24]
	str	wzr, [x8, #28]
	str	wzr, [x9, #28]
	str	wzr, [x8, #32]
	str	wzr, [x9, #32]
	str	wzr, [x8, #36]
	str	wzr, [x9, #36]
	str	wzr, [x8, #88]
	str	wzr, [x9, #88]
	add	x10, x9, #92
	str	wzr, [x8, #92]
	b	LBB0_3
LBB0_2:
	add	x10, x9, #24
LBB0_3:
	str	wzr, [x10]
	mov	w10, #28
Lloh6:
	adrp	x11, l_switch.table.cx25840_s_sliced_fmt@PAGE
Lloh7:
	add	x11, x11, l_switch.table.cx25840_s_sliced_fmt@PAGEOFF
	mov	x12, sp
Lloh8:
	adrp	x13, l_switch.table.cx25840_s_sliced_fmt.1@PAGE
Lloh9:
	add	x13, x13, l_switch.table.cx25840_s_sliced_fmt.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #4
	cmp	x10, #96
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x8, x10]
	sub	w14, w14, #128
	cmp	w14, #3
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w14, [x11, w14, sxtw #2]
	ldr	w15, [x12, x10]
	orr	w14, w15, w14
	str	w14, [x12, x10]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w14, [x9, x10]
	sub	w14, w14, #128
	cmp	w14, #3
	b.hi	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w14, [x13, w14, sxtw #2]
	ldr	w15, [x12, x10]
	orr	w14, w15, w14
	str	w14, [x12, x10]
	b	LBB0_4
LBB0_9:
	ldr	w8, [x20, #4]
	mov	x9, sp
	cbz	w23, LBB0_14
; %bb.10:
	add	x23, x9, #40
	add	w22, w8, #1059
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	ldr	w2, [x23], #4
	mov	x0, x19
	mov	x1, x22
	bl	_cx25840_write
	ldr	w8, [x20, #4]
	add	w21, w8, #1072
	cmp	w22, w21
	b.lt	LBB0_11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_cx25840_write
	ldr	w8, [x20, #4]
	add	w9, w8, #1076
	cmp	w21, w9
	b.lt	LBB0_12
; %bb.13:
	mov	w21, #34
	b	LBB0_17
LBB0_14:
	add	x22, x9, #28
	add	w21, w8, #1059
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	ldr	w2, [x22], #4
	mov	x0, x19
	mov	x1, x21
	bl	_cx25840_write
	ldr	w8, [x20, #4]
	add	w9, w8, #1076
	cmp	w21, w9
	b.lt	LBB0_15
; %bb.16:
	mov	w21, #42
LBB0_17:
	add	w1, w8, #1084
	mov	x0, x19
	mov	w2, #22
	bl	_cx25840_write
	mov	x0, x20
	bl	_is_cx23888
	cmp	x0, #0
	mov	w8, #1064
	mov	w9, #1140
	csel	w1, w9, w8, eq
	mov	x0, x19
	mov	x2, x21
	bl	_cx25840_write
	ldur	x8, [x29, #-56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.cx25840_s_sliced_fmt
l_switch.table.cx25840_s_sliced_fmt:
	.long	4                               ; 0x4
	.long	9                               ; 0x9
	.long	1                               ; 0x1
	.long	6                               ; 0x6

	.p2align	2                               ; @switch.table.cx25840_s_sliced_fmt.1
l_switch.table.cx25840_s_sliced_fmt.1:
	.long	64                              ; 0x40
	.long	144                             ; 0x90
	.long	16                              ; 0x10
	.long	96                              ; 0x60

.subsections_via_symbols
