	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vimc_streamer_s_stream         ## -- Begin function vimc_streamer_s_stream
	.p2align	4, 0x90
_vimc_streamer_s_stream:                ## @vimc_streamer_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	xorl	%eax, %eax
	testl	%edx, %edx
	je	LBB0_8
## %bb.4:
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_vimc_streamer_pipeline_init
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	_vimc_streamer_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rsi
	callq	_kthread_run
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.7:
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	callq	_kthread_stop
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_vimc_streamer_pipeline_terminate
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_vimc_streamer_thread,4,2       ## @vimc_streamer_thread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vimc-streamer thread"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vimc_streamer_s_stream         ; -- Begin function vimc_streamer_s_stream
	.p2align	2
_vimc_streamer_s_stream:                ; @vimc_streamer_s_stream
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x0, [x0]
	cbz	w2, LBB0_7
; %bb.3:
	cbz	x0, LBB0_10
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	cbz	x0, LBB0_6
; %bb.8:
	bl	_kthread_stop
	cbnz	w0, LBB0_6
; %bb.9:
	str	xzr, [x19]
	mov	x0, x19
	bl	_vimc_streamer_pipeline_terminate
	b	LBB0_4
LBB0_10:
	mov	x0, x19
	bl	_vimc_streamer_pipeline_init
	cbnz	w0, LBB0_6
; %bb.11:
Lloh3:
	adrp	x8, _vimc_streamer_thread@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vimc_streamer_thread@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_kthread_run
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.12:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_vimc_streamer_thread,4,2       ; @vimc_streamer_thread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vimc-streamer thread"

.subsections_via_symbols
