	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9903_s_std
_tw9903_s_std:                          ## @tw9903_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_to_state
	movq	%rax, %r15
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	leaq	_tw9903_s_std.config_50hz(%rip), %rax
	leaq	_tw9903_s_std.config_60hz(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_write_regs
	movl	%r14d, (%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.section	__TEXT,__const
	.p2align	4                               ## @tw9903_s_std.config_60hz
_tw9903_s_std.config_60hz:
	.long	5                               ## 0x5
	.long	128                             ## 0x80
	.long	7                               ## 0x7
	.long	2                               ## 0x2
	.long	8                               ## 0x8
	.long	20                              ## 0x14
	.long	9                               ## 0x9
	.long	240                             ## 0xf0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.p2align	4                               ## @tw9903_s_std.config_50hz
_tw9903_s_std.config_50hz:
	.long	5                               ## 0x5
	.long	0                               ## 0x0
	.long	7                               ## 0x7
	.long	18                              ## 0x12
	.long	8                               ## 0x8
	.long	24                              ## 0x18
	.long	9                               ## 0x9
	.long	32                              ## 0x20
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.no_dead_strip	_tw9903_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw9903_s_std
_tw9903_s_std:                          ; @tw9903_s_std
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	bl	_to_state
	mov	x21, x0
Lloh0:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _tw9903_s_std.config_60hz@PAGE
Lloh4:
	add	x9, x9, _tw9903_s_std.config_60hz@PAGEOFF
Lloh5:
	adrp	x10, _tw9903_s_std.config_50hz@PAGE
Lloh6:
	add	x10, x10, _tw9903_s_std.config_50hz@PAGEOFF
	tst	w8, w19
	csel	x1, x10, x9, eq
	mov	x0, x20
	bl	_write_regs
	str	w19, [x21]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.section	__TEXT,__const
	.p2align	2                               ; @tw9903_s_std.config_60hz
_tw9903_s_std.config_60hz:
	.long	5                               ; 0x5
	.long	128                             ; 0x80
	.long	7                               ; 0x7
	.long	2                               ; 0x2
	.long	8                               ; 0x8
	.long	20                              ; 0x14
	.long	9                               ; 0x9
	.long	240                             ; 0xf0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.p2align	2                               ; @tw9903_s_std.config_50hz
_tw9903_s_std.config_50hz:
	.long	5                               ; 0x5
	.long	0                               ; 0x0
	.long	7                               ; 0x7
	.long	18                              ; 0x12
	.long	8                               ; 0x8
	.long	24                              ; 0x18
	.long	9                               ; 0x9
	.long	32                              ; 0x20
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.no_dead_strip	_tw9903_s_std
.subsections_via_symbols
