	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9910_s_stream
_tw9910_s_stream:                       ## @tw9910_s_stream
	.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
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_tw9910
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_OEN_TRI_SEL_ALL_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	8(%rax), %edx
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	jmp	LBB0_9
LBB0_3:
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_7
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	_OEN_TRI_SEL_ALL_OFF_r0@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_7:
	movq	_OEN_TRI_SEL_ALL_OFF_r1@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r15d
LBB0_9:
	movq	_OPFORM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OEN_TRI_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_tw9910_mask_set
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tw9910_power                   ## TAILCALL
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OEN_TRI_SEL_ALL_OFF_r0,4,2     ## @OEN_TRI_SEL_ALL_OFF_r0
	.comm	_OEN_TRI_SEL_ALL_OFF_r1,4,2     ## @OEN_TRI_SEL_ALL_OFF_r1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"un-supported revision\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OEN_TRI_SEL_ALL_ON,4,2         ## @OEN_TRI_SEL_ALL_ON
L_.str.1:                               ## @.str.1
	.asciz	"norm select error\n"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.2:                               ## @.str.2
	.asciz	"%s %dx%d\n"

	.comm	_OPFORM,4,2                     ## @OPFORM
	.comm	_OEN_TRI_SEL_MASK,4,2           ## @OEN_TRI_SEL_MASK
	.no_dead_strip	_tw9910_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw9910_s_stream
_tw9910_s_stream:                       ; @tw9910_s_stream
	.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
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	bl	_to_tw9910
	cbz	w19, LBB0_3
; %bb.1:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, _OEN_TRI_SEL_ALL_ON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OEN_TRI_SEL_ALL_ON@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x9]
	ldp	w3, w2, [x8, #4]
	ldr	w4, [x8]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	b	LBB0_9
LBB0_3:
	ldr	w8, [x0]
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.4:
	cbnz	w8, LBB0_11
; %bb.5:
Lloh5:
	adrp	x8, _OEN_TRI_SEL_ALL_OFF_r0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OEN_TRI_SEL_ALL_OFF_r0@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh11:
	adrp	x8, _OEN_TRI_SEL_ALL_OFF_r1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OEN_TRI_SEL_ALL_OFF_r1@GOTPAGEOFF]
LBB0_8:
	ldr	w21, [x8]
LBB0_9:
Lloh13:
	adrp	x8, _OPFORM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OPFORM@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _OEN_TRI_SEL_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OEN_TRI_SEL_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x21
	bl	_tw9910_mask_set
	tbnz	w0, #31, LBB0_13
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	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
	b	_tw9910_power
LBB0_11:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_OEN_TRI_SEL_ALL_OFF_r0,4,2     ; @OEN_TRI_SEL_ALL_OFF_r0
	.comm	_OEN_TRI_SEL_ALL_OFF_r1,4,2     ; @OEN_TRI_SEL_ALL_OFF_r1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"un-supported revision\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OEN_TRI_SEL_ALL_ON,4,2         ; @OEN_TRI_SEL_ALL_ON
l_.str.1:                               ; @.str.1
	.asciz	"norm select error\n"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.2:                               ; @.str.2
	.asciz	"%s %dx%d\n"

	.comm	_OPFORM,4,2                     ; @OPFORM
	.comm	_OEN_TRI_SEL_MASK,4,2           ; @OEN_TRI_SEL_MASK
	.no_dead_strip	_tw9910_s_stream
.subsections_via_symbols
