	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9910_set_frame
_tw9910_set_frame:                      ## @tw9910_set_frame
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_tw9910
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	xorl	%r15d, %r15d
	movl	16(%rax), %edi
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edx
	movq	%rax, %r12
	callq	_tw9910_select_norm
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_tw9910_reset
	movq	8(%r12), %rax
	cmpl	$16, (%rax)
	movq	_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmovel	%edx, %r15d
	movq	_OPFORM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_tw9910_mask_set
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	8(%r12), %rax
	movl	4(%rax), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_5
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_RTSEL_VLOSS@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_10:
	movq	_RTSEL_VLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_RTSEL_SLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_RTSEL_RTCO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_RTSEL_MONO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movq	_RTSEL_HLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_RTSEL_FIELD@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_RTSEL_DET50@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ecx
LBB0_16:
	movq	_VBICNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RTSEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_tw9910_mask_set
	testl	%eax, %eax
	js	LBB0_2
## %bb.17:
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_tw9910_set_scale
	testl	%eax, %eax
	js	LBB0_2
## %bb.18:
	movq	%r14, %rdi
	callq	_tw9910_set_hsync
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.19:
	movq	(%r12), %rax
	movl	4(%rax), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_20
LBB0_2:
	movl	%eax, %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_tw9910_reset
	movq	$0, (%r12)
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LEN,4,2                        ## @LEN
	.comm	_OPFORM,4,2                     ## @OPFORM
	.comm	_RTSEL_VLOSS,4,2                ## @RTSEL_VLOSS
	.comm	_RTSEL_HLOCK,4,2                ## @RTSEL_HLOCK
	.comm	_RTSEL_SLOCK,4,2                ## @RTSEL_SLOCK
	.comm	_RTSEL_VLOCK,4,2                ## @RTSEL_VLOCK
	.comm	_RTSEL_MONO,4,2                 ## @RTSEL_MONO
	.comm	_RTSEL_DET50,4,2                ## @RTSEL_DET50
	.comm	_RTSEL_FIELD,4,2                ## @RTSEL_FIELD
	.comm	_RTSEL_RTCO,4,2                 ## @RTSEL_RTCO
	.comm	_VBICNTL,4,2                    ## @VBICNTL
	.comm	_RTSEL_MASK,4,2                 ## @RTSEL_MASK
	.no_dead_strip	_tw9910_set_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw9910_set_frame
_tw9910_set_frame:                      ; @tw9910_set_frame
	.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	x21, x2
	mov	x22, x1
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	bl	_to_tw9910
	mov	x20, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w0, [x0, #16]
	ldr	w1, [x22]
	ldr	w2, [x21]
	bl	_tw9910_select_norm
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_tw9910_reset
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	cmp	w8, #16
	csel	w3, w2, wzr, eq
Lloh6:
	adrp	x8, _OPFORM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPFORM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tw9910_mask_set
	tbnz	w0, #31, LBB0_19
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_6
; %bb.3:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh11:
	adrp	x8, _RTSEL_VLOSS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTSEL_VLOSS@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	neg	w23, w23
	b	LBB0_20
LBB0_6:
	mov	w3, #0
	b	LBB0_15
LBB0_7:
Lloh13:
	adrp	x8, _RTSEL_VLOCK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RTSEL_VLOCK@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
Lloh15:
	adrp	x8, _RTSEL_SLOCK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTSEL_SLOCK@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh17:
	adrp	x8, _RTSEL_RTCO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RTSEL_RTCO@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
Lloh19:
	adrp	x8, _RTSEL_MONO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RTSEL_MONO@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh21:
	adrp	x8, _RTSEL_HLOCK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RTSEL_HLOCK@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh23:
	adrp	x8, _RTSEL_FIELD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RTSEL_FIELD@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh25:
	adrp	x8, _RTSEL_DET50@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RTSEL_DET50@GOTPAGEOFF]
LBB0_14:
	ldr	w3, [x8]
LBB0_15:
Lloh27:
	adrp	x8, _VBICNTL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VBICNTL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _RTSEL_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RTSEL_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tw9910_mask_set
	tbnz	w0, #31, LBB0_19
; %bb.16:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_tw9910_set_scale
	tbnz	w0, #31, LBB0_19
; %bb.17:
	mov	x0, x19
	bl	_tw9910_set_hsync
	mov	x23, x0
	tbnz	w0, #31, LBB0_20
; %bb.18:
	ldr	x8, [x20]
	ldr	w9, [x8, #4]
	str	w9, [x22]
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_21
LBB0_19:
	mov	x23, x0
LBB0_20:
	mov	x0, x19
	bl	_tw9910_reset
	str	xzr, [x20]
LBB0_21:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LEN,4,2                        ; @LEN
	.comm	_OPFORM,4,2                     ; @OPFORM
	.comm	_RTSEL_VLOSS,4,2                ; @RTSEL_VLOSS
	.comm	_RTSEL_HLOCK,4,2                ; @RTSEL_HLOCK
	.comm	_RTSEL_SLOCK,4,2                ; @RTSEL_SLOCK
	.comm	_RTSEL_VLOCK,4,2                ; @RTSEL_VLOCK
	.comm	_RTSEL_MONO,4,2                 ; @RTSEL_MONO
	.comm	_RTSEL_DET50,4,2                ; @RTSEL_DET50
	.comm	_RTSEL_FIELD,4,2                ; @RTSEL_FIELD
	.comm	_RTSEL_RTCO,4,2                 ; @RTSEL_RTCO
	.comm	_VBICNTL,4,2                    ; @VBICNTL
	.comm	_RTSEL_MASK,4,2                 ; @RTSEL_MASK
	.no_dead_strip	_tw9910_set_frame
.subsections_via_symbols
