	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_acquire_input
_vino_acquire_input:                    ## @vino_acquire_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
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_vino_drvdata@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	cmpq	$0, 48(%rax)
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rcx
	movq	_VINO_NO_CHANNEL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	(%r12), %rcx
	movq	%rcx, (%rax)
	movq	_VINO_INPUT_D1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, 8(%r12)
	movq	_VINO_DATA_NORM_D1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_3:
	cmpq	$0, 40(%rax)
	je	LBB0_8
## %bb.4:
	movq	8(%rax), %rcx
	movq	_VINO_NO_CHANNEL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.5:
	movq	_VINO_INPUT_COMPOSITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_s_routing@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_vino_get_saa7191_input
	xorl	%r15d, %r15d
	movl	%ebx, %edi
	movq	_vino_drvdata@GOTPCREL(%rip), %rbx
	movl	%r13d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_decoder_call
	testl	%eax, %eax
	jne	LBB0_18
## %bb.6:
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_spin_unlock_irqrestore
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_querystd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	leaq	-52(%rbp), %rdx
	xorl	%eax, %eax
	callq	_decoder_call
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_spin_lock_irqsave
	jmp	LBB0_18
LBB0_8:
	movq	(%r12), %rcx
	movq	_VINO_CHANNEL_A@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	sete	%sil
	movl	20(%rax,%rsi,8), %r14d
	movl	%r14d, 8(%r12)
	movl	24(%rax,%rsi,8), %eax
LBB0_9:
	movl	%eax, 12(%r12)
LBB0_10:
	movq	_VINO_INPUT_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_12
## %bb.11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_12:
	movq	%r12, %rdi
	callq	_vino_set_default_clipping
	movq	%r12, %rdi
	callq	_vino_set_default_scaling
	movq	%r12, %rdi
	callq	_vino_set_default_framerate
	movq	_vino_inputs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	8(%r12), %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_20
LBB0_13:
	movq	_vino_data_norms@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-52(%rbp), %edx
	movl	$0, %ecx
	testl	%edx, (%rax)
	jne	LBB0_17
## %bb.14:
	testl	%edx, 4(%rax)
	je	LBB0_16
## %bb.15:
	movl	$1, %r13d
	xorl	%ecx, %ecx
	jmp	LBB0_17
LBB0_16:
	xorl	%ecx, %ecx
	testl	%edx, 8(%rax)
	sete	%cl
	movl	%ecx, %r13d
	orl	$2, %r13d
LBB0_17:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_VINO_DATA_NORM_PAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_decoder_call
	movl	%eax, %ebx
	movq	_vino_drvdata@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$16, %rdi
	callq	_spin_lock_irqsave
	testl	%ebx, %ebx
	movq	_vino_drvdata@GOTPCREL(%rip), %rbx
	je	LBB0_21
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_19:
	subl	(%rax), %r15d
LBB0_20:
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	cmovnel	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	%r14d, 8(%r12)
	movl	%r13d, 12(%r12)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vino_acquire_input():\n"

	.comm	_vino_drvdata,8,3               ## @vino_drvdata
	.comm	_VINO_NO_CHANNEL,8,3            ## @VINO_NO_CHANNEL
	.comm	_VINO_INPUT_D1,4,2              ## @VINO_INPUT_D1
	.comm	_VINO_DATA_NORM_D1,4,2          ## @VINO_DATA_NORM_D1
	.comm	_VINO_INPUT_COMPOSITE,4,2       ## @VINO_INPUT_COMPOSITE
	.comm	_video,4,2                      ## @video
	.comm	_s_routing,4,2                  ## @s_routing
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_querystd,4,2                   ## @querystd
	.comm	_vino_data_norms,8,3            ## @vino_data_norms
	.comm	_VINO_DATA_NORM_PAL,4,2         ## @VINO_DATA_NORM_PAL
	.comm	_core,4,2                       ## @core
	.comm	_s_std,4,2                      ## @s_std
	.comm	_VINO_CHANNEL_A,8,3             ## @VINO_CHANNEL_A
	.comm	_VINO_INPUT_NONE,4,2            ## @VINO_INPUT_NONE
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"vino_acquire_input(): %s\n"

	.comm	_vino_inputs,8,3                ## @vino_inputs
	.no_dead_strip	_vino_acquire_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_acquire_input
_vino_acquire_input:                    ; @vino_acquire_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh2:
	adrp	x23, _vino_drvdata@GOTPAGE
Lloh3:
	ldr	x23, [x23, _vino_drvdata@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, #16
	bl	_spin_lock_irqsave
	ldr	x8, [x23]
	ldr	x10, [x8, #48]
Lloh4:
	adrp	x9, _VINO_NO_CHANNEL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VINO_NO_CHANNEL@GOTPAGEOFF]
	cbz	x10, LBB0_3
; %bb.1:
	ldr	x10, [x8]
	ldr	x11, [x9]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.2:
	ldr	x9, [x19]
	str	x9, [x8]
Lloh6:
	adrp	x8, _VINO_INPUT_D1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VINO_INPUT_D1@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _VINO_DATA_NORM_D1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VINO_DATA_NORM_D1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w20, [x19, #8]
	b	LBB0_9
LBB0_3:
	ldr	x10, [x8, #40]
	cbz	x10, LBB0_8
; %bb.4:
	ldr	x10, [x8, #8]
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_8
; %bb.5:
Lloh12:
	adrp	x8, _VINO_INPUT_COMPOSITE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VINO_INPUT_COMPOSITE@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
Lloh15:
	adrp	x24, _video@GOTPAGE
Lloh16:
	ldr	x24, [x24, _video@GOTPAGEOFF]
	ldr	w21, [x24]
Lloh17:
	adrp	x8, _s_routing@GOTPAGE
Lloh18:
	ldr	x8, [x8, _s_routing@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_vino_get_saa7191_input
                                        ; kill: def $w0 killed $w0 def $x0
	stp	xzr, xzr, [sp, #8]
	str	x0, [sp]
	mov	x0, x21
	mov	x1, x22
	bl	_decoder_call
	cbnz	w0, LBB0_18
; %bb.6:
	ldr	x8, [x23]
	add	x0, x8, #16
	bl	_spin_unlock_irqrestore
	ldr	w0, [x24]
Lloh20:
	adrp	x8, _querystd@GOTPAGE
Lloh21:
	ldr	x8, [x8, _querystd@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x8, sp, #28
	str	x8, [sp]
	bl	_decoder_call
	cbz	w0, LBB0_12
; %bb.7:
	ldr	x8, [x23]
	add	x0, x8, #16
	bl	_spin_lock_irqsave
	b	LBB0_18
LBB0_8:
	ldr	x9, [x19]
Lloh23:
	adrp	x10, _VINO_CHANNEL_A@GOTPAGE
Lloh24:
	ldr	x10, [x10, _VINO_CHANNEL_A@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	mov	w11, #20
	mov	w12, #28
	cmp	x9, x10
	csel	x9, x12, x11, eq
	ldr	w20, [x8, x9]
	str	w20, [x19, #8]
	mov	w9, #24
	mov	w10, #32
	csel	x9, x10, x9, eq
	ldr	w8, [x8, x9]
LBB0_9:
	str	w8, [x19, #12]
Lloh26:
	adrp	x8, _VINO_INPUT_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VINO_INPUT_NONE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_11
; %bb.10:
Lloh29:
	adrp	x8, _ENODEV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_19
LBB0_11:
	mov	x0, x19
	bl	_vino_set_default_clipping
	mov	x0, x19
	bl	_vino_set_default_scaling
	mov	x0, x19
	bl	_vino_set_default_framerate
Lloh31:
	adrp	x8, _vino_inputs@GOTPAGE
Lloh32:
	ldr	x8, [x8, _vino_inputs@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldrsw	x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
	str	x8, [sp]
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	mov	w19, #0
	b	LBB0_20
LBB0_12:
Lloh36:
	adrp	x8, _vino_data_norms@GOTPAGE
Lloh37:
	ldr	x8, [x8, _vino_data_norms@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x8]
	ldr	w8, [sp, #28]
	ldr	w10, [x9]
	tst	w8, w10
	b.eq	LBB0_14
; %bb.13:
	mov	w22, #0
	mov	w24, #0
	b	LBB0_17
LBB0_14:
	ldr	w10, [x9, #4]
	tst	w8, w10
	b.eq	LBB0_16
; %bb.15:
	mov	w22, #0
	mov	w24, #1
	b	LBB0_17
LBB0_16:
	ldr	w9, [x9, #8]
	tst	w8, w9
	cset	w22, eq
	mov	w9, #2
	cinc	w24, w9, eq
LBB0_17:
Lloh39:
	adrp	x9, _VINO_DATA_NORM_PAL@GOTPAGE
Lloh40:
	ldr	x9, [x9, _VINO_DATA_NORM_PAL@GOTPAGEOFF]
Lloh41:
	ldr	w25, [x9]
Lloh42:
	adrp	x9, _core@GOTPAGE
Lloh43:
	ldr	x9, [x9, _core@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x9]
Lloh45:
	adrp	x9, _s_std@GOTPAGE
Lloh46:
	ldr	x9, [x9, _s_std@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x9]
	str	x8, [sp]
	bl	_decoder_call
	mov	x21, x0
	ldr	x8, [x23]
	add	x0, x8, #16
	bl	_spin_lock_irqsave
	cbz	w21, LBB0_21
LBB0_18:
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_20:
	ldr	x8, [x23]
	add	x0, x8, #16
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	cmp	w22, #0
	csel	w8, w25, w24, ne
	ldr	x9, [x19]
	ldr	x10, [x23]
	str	x9, [x10, #8]
	str	w20, [x19, #8]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vino_acquire_input():\n"

	.comm	_vino_drvdata,8,3               ; @vino_drvdata
	.comm	_VINO_NO_CHANNEL,8,3            ; @VINO_NO_CHANNEL
	.comm	_VINO_INPUT_D1,4,2              ; @VINO_INPUT_D1
	.comm	_VINO_DATA_NORM_D1,4,2          ; @VINO_DATA_NORM_D1
	.comm	_VINO_INPUT_COMPOSITE,4,2       ; @VINO_INPUT_COMPOSITE
	.comm	_video,4,2                      ; @video
	.comm	_s_routing,4,2                  ; @s_routing
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_querystd,4,2                   ; @querystd
	.comm	_vino_data_norms,8,3            ; @vino_data_norms
	.comm	_VINO_DATA_NORM_PAL,4,2         ; @VINO_DATA_NORM_PAL
	.comm	_core,4,2                       ; @core
	.comm	_s_std,4,2                      ; @s_std
	.comm	_VINO_CHANNEL_A,8,3             ; @VINO_CHANNEL_A
	.comm	_VINO_INPUT_NONE,4,2            ; @VINO_INPUT_NONE
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"vino_acquire_input(): %s\n"

	.comm	_vino_inputs,8,3                ; @vino_inputs
	.no_dead_strip	_vino_acquire_input
.subsections_via_symbols
