	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_s_std
_vino_s_std:                            ## @vino_s_std
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	_vino_drvdata@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_vino_is_input_owner
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_vino_inputs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	testl	%eax, (%r15)
	je	LBB0_13
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	(%rbx), %rax
	movq	_VINO_INPUT_D1@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.4:
	movl	(%r15), %eax
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_VINO_DATA_NORM_PAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_VINO_DATA_NORM_NTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_VINO_DATA_NORM_SECAM@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_vino_set_data_norm
	testl	%eax, %eax
	je	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_15:
	movq	(%r12), %rdi
	movq	-40(%rbp), %rsi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_vino_drvdata,8,3               ## @vino_drvdata
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_vino_inputs,8,3                ## @vino_inputs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"standard accepted\n"

	.comm	_VINO_INPUT_D1,8,3              ## @VINO_INPUT_D1
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_VINO_DATA_NORM_PAL,4,2         ## @VINO_DATA_NORM_PAL
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_VINO_DATA_NORM_NTSC,4,2        ## @VINO_DATA_NORM_NTSC
	.comm	_V4L2_STD_SECAM,4,2             ## @V4L2_STD_SECAM
	.comm	_VINO_DATA_NORM_SECAM,4,2       ## @VINO_DATA_NORM_SECAM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vino_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_s_std
_vino_s_std:                            ; @vino_s_std
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	bl	_video_drvdata
	mov	x19, x0
Lloh0:
	adrp	x21, _vino_drvdata@GOTPAGE
Lloh1:
	ldr	x21, [x21, _vino_drvdata@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_vino_is_input_owner
	cbz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _vino_inputs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vino_inputs@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh4:
	ldr	x8, [x8]
	ldr	x10, [x19]
	ldr	w8, [x8, x10, lsl #2]
	tst	w8, w9
	b.eq	LBB0_11
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _VINO_INPUT_D1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VINO_INPUT_D1@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.3:
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _V4L2_STD_PAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh13:
	adrp	x8, _VINO_DATA_NORM_PAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VINO_DATA_NORM_PAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh17:
	adrp	x9, _V4L2_STD_NTSC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh20:
	adrp	x8, _VINO_DATA_NORM_NTSC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VINO_DATA_NORM_NTSC@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh22:
	adrp	x9, _V4L2_STD_SECAM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _V4L2_STD_SECAM@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.9:
Lloh25:
	adrp	x8, _VINO_DATA_NORM_SECAM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VINO_DATA_NORM_SECAM@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_vino_set_data_norm
	cbz	w0, LBB0_14
LBB0_11:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_15
LBB0_13:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
	cbnz	w0, LBB0_11
LBB0_14:
	mov	w19, #0
LBB0_15:
	ldr	x0, [x21]
	ldr	x1, [sp, #8]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_vino_drvdata,8,3               ; @vino_drvdata
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_vino_inputs,8,3                ; @vino_inputs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"standard accepted\n"

	.comm	_VINO_INPUT_D1,8,3              ; @VINO_INPUT_D1
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_VINO_DATA_NORM_PAL,4,2         ; @VINO_DATA_NORM_PAL
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_VINO_DATA_NORM_NTSC,4,2        ; @VINO_DATA_NORM_NTSC
	.comm	_V4L2_STD_SECAM,4,2             ; @V4L2_STD_SECAM
	.comm	_VINO_DATA_NORM_SECAM,4,2       ; @VINO_DATA_NORM_SECAM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vino_s_std
.subsections_via_symbols
