	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_g_ctrl
_vino_g_ctrl:                           ## @vino_g_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
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_17
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_VINO_INDYCAM_V4L2_CONTROL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:
	movq	_vino_indycam_v4l2_controls@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r14), %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rcx,%rsi,4)
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_5
LBB0_7:
	testl	%ebx, %ebx
	jne	LBB0_8
LBB0_18:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_camera_call
	testl	%eax, %eax
	jne	LBB0_19
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_VINO_SAA7191_V4L2_CONTROL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.10:
	movq	_vino_saa7191_v4l2_controls@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r14), %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rcx,%rsi,4)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_11
LBB0_13:
	testl	%ebx, %ebx
	je	LBB0_15
LBB0_8:
	negl	%ebx
	jmp	LBB0_20
LBB0_15:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_decoder_call
	testl	%eax, %eax
	je	LBB0_21
LBB0_19:
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
	jmp	LBB0_20
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movq	(%r15), %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vino_drvdata,8,3               ## @vino_drvdata
	.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	_core,4,2                       ## @core
	.comm	_g_ctrl,4,2                     ## @g_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_g_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_g_ctrl
_vino_g_ctrl:                           ; @vino_g_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
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_17
; %bb.3:
Lloh2:
	adrp	x20, _EINVAL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _VINO_INDYCAM_V4L2_CONTROL_COUNT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VINO_INDYCAM_V4L2_CONTROL_COUNT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.4:
Lloh7:
	adrp	x10, _vino_indycam_v4l2_controls@GOTPAGE
Lloh8:
	ldr	x10, [x10, _vino_indycam_v4l2_controls@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	ldr	w11, [x19]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	cmp	w12, w11
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #4
	subs	x9, x9, #1
	b.ne	LBB0_5
LBB0_7:
	cbnz	w8, LBB0_18
LBB0_8:
Lloh10:
	adrp	x8, _core@GOTPAGE
Lloh11:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _g_ctrl@GOTPAGE
Lloh14:
	ldr	x8, [x8, _g_ctrl@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_camera_call
	cbnz	w0, LBB0_16
LBB0_9:
	mov	w19, #0
	b	LBB0_19
LBB0_10:
Lloh16:
	adrp	x20, _EINVAL@GOTPAGE
Lloh17:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _VINO_SAA7191_V4L2_CONTROL_COUNT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VINO_SAA7191_V4L2_CONTROL_COUNT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.11:
Lloh21:
	adrp	x10, _vino_saa7191_v4l2_controls@GOTPAGE
Lloh22:
	ldr	x10, [x10, _vino_saa7191_v4l2_controls@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	ldr	w11, [x19]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	cmp	w12, w11
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x10, x10, #4
	subs	x9, x9, #1
	b.ne	LBB0_12
LBB0_14:
	cbnz	w8, LBB0_18
LBB0_15:
Lloh24:
	adrp	x8, _core@GOTPAGE
Lloh25:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _g_ctrl@GOTPAGE
Lloh28:
	ldr	x8, [x8, _g_ctrl@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_decoder_call
	cbz	w0, LBB0_9
LBB0_16:
	ldr	w8, [x20]
	b	LBB0_18
LBB0_17:
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
LBB0_18:
	neg	w19, w8
LBB0_19:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_vino_drvdata,8,3               ; @vino_drvdata
	.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	_core,4,2                       ; @core
	.comm	_g_ctrl,4,2                     ; @g_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_g_ctrl
.subsections_via_symbols
