	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_s_ctrl
_vino_s_ctrl:                           ## @vino_s_ctrl
	.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
	movq	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	_vino_drvdata@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_vino_is_input_owner
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.2:
	cmpl	$130, %eax
	je	LBB0_11
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_17
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_VINO_INDYCAM_V4L2_CONTROL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_25
## %bb.5:
	movq	_vino_indycam_v4l2_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	4(%r14), %esi
	leal	-1(%rdx), %ecx
	incq	%rcx
	leaq	8(%r8), %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rax)
	je	LBB0_27
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rdi
	addq	$12, %rax
	cmpq	%rdi, %rdx
	jne	LBB0_6
## %bb.8:
	testl	%ebx, %ebx
	jne	LBB0_9
	jmp	LBB0_26
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_VINO_SAA7191_V4L2_CONTROL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_18
## %bb.12:
	movq	_vino_saa7191_v4l2_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	4(%r14), %esi
	leal	-1(%rdx), %ecx
	incq	%rcx
	leaq	8(%r8), %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rax)
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rdi
	addq	$12, %rax
	cmpq	%rdi, %rdx
	jne	LBB0_13
## %bb.15:
	testl	%ebx, %ebx
	jne	LBB0_9
	jmp	LBB0_19
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_18:
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	jne	LBB0_9
LBB0_19:
	movq	_vino_saa7191_v4l2_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	jmp	LBB0_21
LBB0_20:
	movq	%rdi, %rcx
LBB0_21:
	movl	(%r14), %eax
	movl	%ecx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	4(%r8,%rcx,4), %eax
	jl	LBB0_30
## %bb.22:
	cmpl	(%r8,%rcx,4), %eax
	jg	LBB0_30
## %bb.23:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_s_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_decoder_call
	testl	%eax, %eax
	je	LBB0_35
LBB0_34:
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	jmp	LBB0_32
LBB0_25:
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	je	LBB0_26
LBB0_9:
	negl	%ebx
	jmp	LBB0_32
LBB0_27:
	movq	%rdi, %rcx
	jmp	LBB0_28
LBB0_26:
	movq	_vino_indycam_v4l2_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
LBB0_28:
	movl	(%r14), %eax
	movl	%ecx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	4(%r8,%rcx,4), %eax
	jl	LBB0_30
## %bb.29:
	cmpl	(%r8,%rcx,4), %eax
	jle	LBB0_33
LBB0_30:
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_31:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_32:
	movq	(%r15), %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_s_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_camera_call
	testl	%eax, %eax
	jne	LBB0_34
LBB0_35:
	xorl	%ebx, %ebx
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_vino_drvdata,8,3               ## @vino_drvdata
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VINO_INDYCAM_V4L2_CONTROL_COUNT,4,2 ## @VINO_INDYCAM_V4L2_CONTROL_COUNT
	.comm	_vino_indycam_v4l2_controls,8,3 ## @vino_indycam_v4l2_controls
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_core,4,2                       ## @core
	.comm	_s_ctrl,4,2                     ## @s_ctrl
	.comm	_VINO_SAA7191_V4L2_CONTROL_COUNT,4,2 ## @VINO_SAA7191_V4L2_CONTROL_COUNT
	.comm	_vino_saa7191_v4l2_controls,8,3 ## @vino_saa7191_v4l2_controls
	.no_dead_strip	_vino_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_s_ctrl
_vino_s_ctrl:                           ; @vino_s_ctrl
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _vino_drvdata@GOTPAGE
Lloh1:
	ldr	x21, [x21, _vino_drvdata@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_vino_is_input_owner
	cbz	w0, LBB0_9
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_15
; %bb.4:
Lloh2:
	adrp	x20, _EINVAL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh4:
	adrp	x8, _VINO_INDYCAM_V4L2_CONTROL_COUNT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VINO_INDYCAM_V4L2_CONTROL_COUNT@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_23
; %bb.5:
	mov	x12, #0
Lloh7:
	adrp	x8, _vino_indycam_v4l2_controls@GOTPAGE
Lloh8:
	ldr	x8, [x8, _vino_indycam_v4l2_controls@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w13, [x19, #4]
	sub	w10, w11, #1
	add	x10, x10, #1
	mov	w14, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x8, x14]
	cmp	w15, w13
	b.eq	LBB0_25
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x12, x12, #1
	add	x14, x14, #12
	cmp	x11, x12
	b.ne	LBB0_6
; %bb.8:
	cbnz	w9, LBB0_24
	b	LBB0_26
LBB0_9:
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_30
LBB0_10:
Lloh12:
	adrp	x20, _EINVAL@GOTPAGE
Lloh13:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh14:
	adrp	x8, _VINO_SAA7191_V4L2_CONTROL_COUNT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VINO_SAA7191_V4L2_CONTROL_COUNT@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x12, #0
Lloh17:
	adrp	x8, _vino_saa7191_v4l2_controls@GOTPAGE
Lloh18:
	ldr	x8, [x8, _vino_saa7191_v4l2_controls@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	w13, [x19, #4]
	sub	w10, w11, #1
	add	x10, x10, #1
	mov	w14, #8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x8, x14]
	cmp	w15, w13
	b.eq	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x12, x12, #1
	add	x14, x14, #12
	cmp	x11, x12
	b.ne	LBB0_12
; %bb.14:
	cbnz	w9, LBB0_24
	b	LBB0_17
LBB0_15:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_30
LBB0_16:
	mov	x10, #0
	cbnz	w9, LBB0_24
LBB0_17:
Lloh22:
	adrp	x8, _vino_saa7191_v4l2_controls@GOTPAGE
Lloh23:
	ldr	x8, [x8, _vino_saa7191_v4l2_controls@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	b	LBB0_19
LBB0_18:
	mov	x10, x12
LBB0_19:
	ldr	w9, [x19]
	and	x10, x10, #0xffffffff
	mov	w11, #12
	madd	x11, x10, x11, x8
	ldr	w11, [x11, #4]
	cmp	w9, w11
	b.lt	LBB0_29
; %bb.20:
	mov	w11, #12
	mul	x10, x10, x11
	ldr	w8, [x8, x10]
	cmp	w9, w8
	b.gt	LBB0_29
; %bb.21:
Lloh25:
	adrp	x8, _core@GOTPAGE
Lloh26:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _s_ctrl@GOTPAGE
Lloh29:
	ldr	x8, [x8, _s_ctrl@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_decoder_call
	cbz	w0, LBB0_34
LBB0_22:
	ldr	w8, [x20]
	b	LBB0_31
LBB0_23:
	mov	x10, #0
	cbz	w9, LBB0_26
LBB0_24:
	neg	w19, w9
	b	LBB0_32
LBB0_25:
	mov	x10, x12
	b	LBB0_27
LBB0_26:
Lloh31:
	adrp	x8, _vino_indycam_v4l2_controls@GOTPAGE
Lloh32:
	ldr	x8, [x8, _vino_indycam_v4l2_controls@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
LBB0_27:
	ldr	w9, [x19]
	and	x10, x10, #0xffffffff
	mov	w11, #12
	madd	x11, x10, x11, x8
	ldr	w11, [x11, #4]
	cmp	w9, w11
	b.lt	LBB0_29
; %bb.28:
	mov	w11, #12
	mul	x10, x10, x11
	ldr	w8, [x8, x10]
	cmp	w9, w8
	b.le	LBB0_33
LBB0_29:
Lloh34:
	adrp	x8, _ERANGE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_30:
	ldr	w8, [x8]
LBB0_31:
	neg	w19, w8
LBB0_32:
	ldr	x0, [x21]
	bl	_spin_unlock_irqrestore
	mov	x0, 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
	ret
LBB0_33:
Lloh36:
	adrp	x8, _core@GOTPAGE
Lloh37:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _s_ctrl@GOTPAGE
Lloh40:
	ldr	x8, [x8, _s_ctrl@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_camera_call
	cbnz	w0, LBB0_22
LBB0_34:
	mov	w19, #0
	b	LBB0_32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_vino_drvdata,8,3               ; @vino_drvdata
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VINO_INDYCAM_V4L2_CONTROL_COUNT,4,2 ; @VINO_INDYCAM_V4L2_CONTROL_COUNT
	.comm	_vino_indycam_v4l2_controls,8,3 ; @vino_indycam_v4l2_controls
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_core,4,2                       ; @core
	.comm	_s_ctrl,4,2                     ; @s_ctrl
	.comm	_VINO_SAA7191_V4L2_CONTROL_COUNT,4,2 ; @VINO_SAA7191_V4L2_CONTROL_COUNT
	.comm	_vino_saa7191_v4l2_controls,8,3 ; @vino_saa7191_v4l2_controls
	.no_dead_strip	_vino_s_ctrl
.subsections_via_symbols
