	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_s_input
_vpfe_s_input:                          ## @vpfe_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	callq	_video_drvdata
	movq	%rax, %r13
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	20(%r13), %r12
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_v4l2_dbg
	leaq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	cmpq	$0, 48(%r13)
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	_vpfe_get_subdev_input_index
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	32(%r13), %rcx
	movq	40(%r13), %rax
	movq	(%rax), %rax
	movslq	-48(%rbp), %rsi
	leaq	(%rsi,%rsi,2), %rdx
	movq	(%rcx,%rsi,8), %r9
	movq	16(%rax,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	cmpq	$0, 8(%rax,%rdx,8)
	je	LBB0_7
## %bb.9:
	movslq	-44(%rbp), %rsi
	shlq	$4, %rsi
	movq	(%rcx,%rsi), %r8
	movq	8(%rcx,%rsi), %rcx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_err
	jmp	LBB0_18
LBB0_7:
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_10:
	leaq	(%rax,%rdx,8), %rdi
	testq	%r9, %r9
	je	LBB0_11
## %bb.13:
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_routing@GOTPCREL(%rip), %rax
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edx
	movq	%r9, %rbx
	movq	%r9, %rdi
	xorl	%r9d, %r9d
	callq	_v4l2_subdev_call
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_14
## %bb.15:
	movq	%rdi, 24(%r13)
	movl	(%rbx), %eax
	movl	%eax, 20(%r13)
	jmp	LBB0_16
LBB0_11:
	testl	%ebx, %ebx
	je	LBB0_12
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movq	%rdi, 24(%r13)
LBB0_16:
	movl	%r15d, (%r13)
	movq	$0, 8(%r13)
	movq	_ccdc_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	_vpfe_standards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r13), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r13, %rdi
	callq	_vpfe_config_image_format
	movl	%eax, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpfe_s_input\n"

L_.str.1:                               ## @.str.1
	.asciz	"Streaming is on\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"invalid input index\n"

	.comm	_video,4,2                      ## @video
	.comm	_s_routing,4,2                  ## @s_routing
L_.str.3:                               ## @.str.3
	.asciz	"vpfe_doioctl:error in setting input in decoder\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ccdc_dev,8,3                   ## @ccdc_dev
	.comm	_vpfe_standards,8,3             ## @vpfe_standards
	.no_dead_strip	_vpfe_s_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_s_input
_vpfe_s_input:                          ; @vpfe_s_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	bl	_video_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x22, x0, #20
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_v4l2_dbg
	add	x19, x20, #16
	mov	x0, x19
	bl	_mutex_lock_interruptible
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_6
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_v4l2_err
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x21
	bl	_vpfe_get_subdev_input_index
	mov	x23, x0
	tbnz	w0, #31, LBB0_12
; %bb.7:
	ldp	x11, x8, [x20, #32]
	ldr	x9, [x8]
	ldrsw	x10, [sp, #12]
	mov	w8, #24
	madd	x24, x10, x8, x9
	ldr	x25, [x11, x10, lsl #3]
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_13
; %bb.8:
	mov	w11, #24
	madd	x9, x10, x11, x9
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_13
; %bb.9:
	ldrsw	x9, [sp, #8]
	add	x8, x8, x9, lsl #4
	ldp	x4, x3, [x8]
	cbnz	x25, LBB0_14
LBB0_10:
	cbnz	w23, LBB0_15
; %bb.11:
	str	x24, [x20, #24]
	b	LBB0_17
LBB0_12:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_v4l2_err
	b	LBB0_4
LBB0_13:
	mov	x3, #0
	mov	x4, #0
	cbz	x25, LBB0_10
LBB0_14:
Lloh11:
	adrp	x8, _video@GOTPAGE
Lloh12:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _s_routing@GOTPAGE
Lloh15:
	ldr	x8, [x8, _s_routing@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x25
	mov	w5, #0
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_16
LBB0_15:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_v4l2_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_16:
	str	x24, [x20, #24]
	ldr	w8, [x25]
	str	w8, [x20, #20]
LBB0_17:
	str	w21, [x20]
	str	xzr, [x20, #8]
Lloh21:
	adrp	x8, _ccdc_dev@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ccdc_dev@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x24
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.18:
Lloh24:
	adrp	x8, _vpfe_standards@GOTPAGE
Lloh25:
	ldr	x8, [x8, _vpfe_standards@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_vpfe_config_image_format
	mov	x23, x0
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpfe_s_input\n"

l_.str.1:                               ; @.str.1
	.asciz	"Streaming is on\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"invalid input index\n"

	.comm	_video,4,2                      ; @video
	.comm	_s_routing,4,2                  ; @s_routing
l_.str.3:                               ; @.str.3
	.asciz	"vpfe_doioctl:error in setting input in decoder\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ccdc_dev,8,3                   ; @ccdc_dev
	.comm	_vpfe_standards,8,3             ; @vpfe_standards
	.no_dead_strip	_vpfe_s_input
.subsections_via_symbols
