	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw2804_s_std
_tw2804_s_std:                          ## @tw2804_s_std
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_to_state
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_v4l2_get_subdevdata
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%r14d, %edx
	movl	$1, -128(%rbp)
	sete	%cl
	setne	%sil
	movl	$32, %edx
	movl	$240, %edi
	cmovel	%edx, %edi
	movl	$74, %edx
	movl	$64, %ebx
	cmovel	%edx, %ebx
	leal	(%rsi,%rsi,2), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	shll	$6, %esi
	orl	$132, %esi
	movl	%esi, -124(%rbp)
	movl	$9, -120(%rbp)
	orl	$4, %edx
	movl	%edx, -116(%rbp)
	movl	$10, -112(%rbp)
	movl	%edi, -108(%rbp)
	movl	$11, -104(%rbp)
	movl	%edx, -100(%rbp)
	movl	$12, -96(%rbp)
	movl	%edi, -92(%rbp)
	movl	$13, -88(%rbp)
	movl	%ebx, -84(%rbp)
	movl	$22, -80(%rbp)
	leal	7(,%rcx,8), %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	shll	$6, %ecx
	movl	%ecx, -76(%rbp)
	movl	$23, -72(%rbp)
	movl	%ecx, -68(%rbp)
	movl	$32, -64(%rbp)
	movl	%edx, -60(%rbp)
	movl	$33, -56(%rbp)
	movl	%edx, -52(%rbp)
	movabsq	$1095216660735, %rcx            ## imm = 0xFF000000FF
	movq	%rcx, -48(%rbp)
	movl	4(%r15), %edx
	leaq	-128(%rbp), %rsi
	movq	%rax, %rdi
	callq	_write_regs
	movl	%r14d, (%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.no_dead_strip	_tw2804_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw2804_s_std
_tw2804_s_std:                          ; @tw2804_s_std
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_to_state
	mov	x20, x0
	mov	x0, x21
	bl	_v4l2_get_subdevdata
Lloh3:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	tst	w8, w19
	mov	w8, #196
	mov	w10, #132
	csel	w8, w10, w8, eq
	stp	w9, w8, [sp]
	mov	w8, #9
	mov	w9, #7
	mov	w10, #4
	csel	w10, w10, w9, eq
	stp	w8, w10, [sp, #8]
	mov	w8, #10
	mov	w11, #240
	mov	w12, #32
	csel	w11, w12, w11, eq
	stp	w8, w11, [sp, #16]
	cset	w8, eq
	mov	w13, #11
	stp	w13, w10, [sp, #24]
	mov	w10, #12
	stp	w10, w11, [sp, #32]
	mov	w10, #13
	mov	w11, #64
	mov	w13, #74
	csel	w11, w13, w11, eq
	stp	w10, w11, [sp, #40]
	mov	w10, #22
	lsl	w8, w8, #6
	stp	w10, w8, [sp, #48]
	mov	w10, #23
	stp	w10, w8, [sp, #56]
	mov	w8, #15
	csel	w8, w8, w9, eq
	stp	w12, w8, [sp, #64]
	mov	w9, #33
	stp	w9, w8, [sp, #72]
	movi	d0, #0x0000ff000000ff
	str	d0, [sp, #80]
	ldr	w2, [x20, #4]
	mov	x1, sp
	bl	_write_regs
	str	w19, [x20]
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.no_dead_strip	_tw2804_s_std
.subsections_via_symbols
