	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp514x_s_stream
_tvp514x_s_stream:                      ## @tvp514x_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_to_decoder
	xorl	%r15d, %r15d
	cmpl	%ebx, (%rax)
	je	LBB0_15
## %bb.1:
	movq	%rax, %r12
	cmpl	$1, %ebx
	je	LBB0_7
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.3:
	movq	_REG_OPERATION_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_tvp514x_write_reg
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_tvp514x_write_regs
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_6:
	movl	$0, (%r12)
	jmp	LBB0_15
LBB0_9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tvp514x_detect
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tvp514x_configure
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	callq	_v4l2_err
	movl	%ebx, %r15d
LBB0_15:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	$1, (%r12)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_OPERATION_MODE,4,2         ## @REG_OPERATION_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to turn off decoder\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to turn on decoder\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to detect decoder\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to configure decoder\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_tvp514x_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp514x_s_stream
_tvp514x_s_stream:                      ; @tvp514x_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	x20, x1
	mov	x19, x0
	bl	_to_decoder
	ldr	w8, [x0]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_15
LBB0_2:
	mov	x21, x0
	cmp	w20, #1
	b.eq	LBB0_6
; %bb.3:
	cbnz	w20, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _REG_OPERATION_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_OPERATION_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tvp514x_write_reg
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_6:
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_tvp514x_write_regs
	cbz	w0, LBB0_10
; %bb.7:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_8:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_9:
	str	wzr, [x21]
	b	LBB0_15
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_tvp514x_detect
	cbz	w0, LBB0_12
; %bb.11:
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	bl	_tvp514x_configure
	mov	x20, x0
	cbz	w0, LBB0_16
; %bb.13:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_v4l2_err
LBB0_15:
	mov	x0, x20
	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
LBB0_16:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_OPERATION_MODE,4,2         ; @REG_OPERATION_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to turn off decoder\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to turn on decoder\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to detect decoder\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to configure decoder\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_tvp514x_s_stream
.subsections_via_symbols
