	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ceu_s_input
_ceu_s_input:                           ## @ceu_s_input
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	callq	_video_drvdata
	cmpl	%r14d, (%rax)
	jbe	LBB0_1
## %bb.3:
	movq	%rax, %r15
	leaq	24(%rax), %rdi
	callq	_vb2_is_streaming
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
	cmpl	%r14d, 4(%r15)
	je	LBB0_10
## %bb.6:
	movq	8(%r15), %rbx
	movl	%r14d, %eax
	shlq	$2, %rax
	addq	16(%r15), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_ceu_init_mbus_fmt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	callq	_ceu_set_default_fmt
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:
	movq	%rbx, 8(%r15)
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%rbx), %edi
	movq	_core@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_s_power@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	movl	$1, %ecx
	callq	_v4l2_subdev_call
	movl	%r14d, 4(%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_core,4,2                       ## @core
	.comm	_s_power,4,2                    ## @s_power
	.no_dead_strip	_ceu_s_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ceu_s_input
_ceu_s_input:                           ; @ceu_s_input
	.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, x2
	bl	_video_drvdata
	ldr	w8, [x0]
	cmp	w8, w19
	b.ls	LBB0_8
; %bb.1:
	mov	x20, x0
	add	x0, x0, #24
	bl	_vb2_is_streaming
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	ldr	w8, [x20, #4]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
	ldp	x21, x8, [x20, #8]
	add	x8, x8, w19, uxtw #2
	str	x8, [x20, #8]
	mov	x0, x20
	bl	_ceu_init_mbus_fmt
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_ceu_set_default_fmt
	cbz	w0, LBB0_11
LBB0_7:
	str	x21, [x20, #8]
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
	ldr	w0, [x21]
Lloh4:
	adrp	x21, _core@GOTPAGE
Lloh5:
	ldr	x21, [x21, _core@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh6:
	adrp	x22, _s_power@GOTPAGE
Lloh7:
	ldr	x22, [x22, _s_power@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w3, #0
	bl	_v4l2_subdev_call
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	w3, #1
	bl	_v4l2_subdev_call
	mov	w0, #0
	str	w19, [x20, #4]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_core,4,2                       ; @core
	.comm	_s_power,4,2                    ; @s_power
	.no_dead_strip	_ceu_s_input
.subsections_via_symbols
