	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw5864_video_input_init
_tw5864_video_input_init:               ## @tw5864_video_input_init
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	12(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_init
	leaq	144(%rbx), %rdi
	callq	_spin_lock_init
	leaq	140(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	16(%rbx), %r13
	movl	%eax, 84(%rbx)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_VB2_MMAP@GOTPCREL(%rip), %rax
	movq	_VB2_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VB2_DMABUF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movq	_tw5864_video_qops@GOTPCREL(%rip), %rax
	movq	%rax, 72(%rbx)
	movq	_vb2_dma_contig_memops@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	movq	%rbx, 56(%rbx)
	movq	$0, 48(%rbx)
	movabsq	$8589934596, %rax               ## imm = 0x200000004
	movq	%rax, 20(%rbx)
	movq	%r15, 40(%rbx)
	movq	128(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%r13, %rdi
	callq	_vb2_queue_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, %rcx
	leaq	148(%rbx), %r13
	leaq	96(%rbx), %rdi
	movq	_tw5864_video_template@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 96(%rbx)
	movq	128(%rbx), %rax
	addq	$8, %rax
	movq	%rax, 120(%rbx)
	movq	%r15, 112(%rbx)
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, 104(%rbx)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_tw5864_ctrl_ops@GOTPCREL(%rip), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$-128, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$100, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_HUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$-128, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_MPEG_VIDEO_GOP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX_GOP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GOP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_MPEG_VIDEO_H264_MIN_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_QP_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$28, %ecx
	movl	$51, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_DETECT_MD_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_DETECT_MD_MODE_THRESHOLD_GRID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_V4L2_DETECT_MD_MODE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_v4l2_ctrl_new_std_menu
	movq	_V4L2_CID_DETECT_MD_GLOBAL_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_tw5864_md_thresholds@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	4(%r12), %r8d
	movl	8(%r12), %r9d
	movl	12(%r12), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_v4l2_ctrl_new_std
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_v4l2_ctrl_new_custom
	movl	%eax, 136(%rbx)
	movl	148(%rbx), %r14d
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.2:
	movq	%r13, 96(%rbx)
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_setup
	movq	_QP_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_GOP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$1, 8(%rbx)
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_video_register_device
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_vb2_queue_release
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_destroy
LBB0_6:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	128(%rbx), %rax
	movq	(%rax), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_video_device_node_name
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_info
	movq	_V4L2_STD_NTSC_M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movq	_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_TW5864_INDIR_VIN_E
	movl	%eax, %edi
	movl	$7, %esi
	callq	_tw_indir_writeb
	movl	%ebx, %edi
	callq	_TW5864_INDIR_VIN_F
	movl	%eax, %edi
	movl	$255, %esi
	callq	_tw_indir_writeb
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_READ,4,2                   ## @VB2_READ
	.comm	_VB2_DMABUF,4,2                 ## @VB2_DMABUF
	.comm	_tw5864_video_qops,4,2          ## @tw5864_video_qops
	.comm	_vb2_dma_contig_memops,4,2      ## @vb2_dma_contig_memops
	.comm	_tw5864_video_template,32,3     ## @tw5864_video_template
	.comm	_tw5864_ctrl_ops,4,2            ## @tw5864_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ## @V4L2_CID_SATURATION
	.comm	_V4L2_CID_HUE,4,2               ## @V4L2_CID_HUE
	.comm	_V4L2_CID_MPEG_VIDEO_GOP_SIZE,4,2 ## @V4L2_CID_MPEG_VIDEO_GOP_SIZE
	.comm	_MAX_GOP_SIZE,4,2               ## @MAX_GOP_SIZE
	.comm	_GOP_SIZE,4,2                   ## @GOP_SIZE
	.comm	_V4L2_CID_MPEG_VIDEO_H264_MIN_QP,4,2 ## @V4L2_CID_MPEG_VIDEO_H264_MIN_QP
	.comm	_QP_VALUE,4,2                   ## @QP_VALUE
	.comm	_V4L2_CID_DETECT_MD_MODE,4,2    ## @V4L2_CID_DETECT_MD_MODE
	.comm	_V4L2_DETECT_MD_MODE_THRESHOLD_GRID,4,2 ## @V4L2_DETECT_MD_MODE_THRESHOLD_GRID
	.comm	_V4L2_DETECT_MD_MODE_DISABLED,4,2 ## @V4L2_DETECT_MD_MODE_DISABLED
	.comm	_V4L2_CID_DETECT_MD_GLOBAL_THRESHOLD,4,2 ## @V4L2_CID_DETECT_MD_GLOBAL_THRESHOLD
	.comm	_tw5864_md_thresholds,16,2      ## @tw5864_md_thresholds
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registered video device %s\n"

	.comm	_V4L2_STD_NTSC_M,4,2            ## @V4L2_STD_NTSC_M
	.comm	_STD_NTSC,4,2                   ## @STD_NTSC
	.no_dead_strip	_tw5864_video_input_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tw5864_video_input_init
lCPI0_0:
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tw5864_video_input_init:               ; @tw5864_video_input_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #12
	mov	x0, x21
	bl	_mutex_init
	add	x0, x20, #144
	bl	_spin_lock_init
	add	x0, x20, #140
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VB2_MMAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VB2_MMAP@GOTPAGEOFF]
Lloh5:
	adrp	x10, _VB2_READ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _VB2_READ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _VB2_DMABUF@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VB2_DMABUF@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	mov	x22, x20
	str	w9, [x22, #16]!
Lloh12:
	adrp	x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _tw5864_video_qops@GOTPAGE
Lloh16:
	ldr	x10, [x10, _tw5864_video_qops@GOTPAGEOFF]
Lloh17:
	adrp	x11, _vb2_dma_contig_memops@GOTPAGE
Lloh18:
	ldr	x11, [x11, _vb2_dma_contig_memops@GOTPAGEOFF]
	stp	w9, w8, [x20, #80]
	stp	x11, x10, [x20, #64]
	stp	xzr, x20, [x20, #48]
Lloh19:
	adrp	x8, lCPI0_0@PAGE
Lloh20:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #20]
	ldr	x8, [x20, #128]
	ldr	x8, [x8]
	stp	x8, x21, [x20, #32]
	mov	x0, x22
	bl	_vb2_queue_init
	mov	x25, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh21:
	adrp	x8, _tw5864_video_template@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tw5864_video_template@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	mov	x23, x20
	str	x8, [x23, #96]!
	add	x24, x20, #148
	ldr	x8, [x20, #128]
	add	x8, x8, #8
	stp	x21, x8, [x20, #112]
	str	x22, [x20, #104]
	mov	x0, x23
	mov	x1, x20
	bl	_video_set_drvdata
	mov	x0, x24
	mov	w1, #6
	bl	_v4l2_ctrl_handler_init
Lloh24:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x25, _tw5864_ctrl_ops@GOTPAGE
Lloh28:
	ldr	x25, [x25, _tw5864_ctrl_ops@GOTPAGEOFF]
	mov	x0, x24
	mov	x1, x25
	mov	w3, #-128
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh29:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x25
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #100
	bl	_v4l2_ctrl_new_std
Lloh32:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh33:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x25
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh35:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x25
	mov	w3, #-128
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh38:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_GOP_SIZE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_GOP_SIZE@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	adrp	x8, _MAX_GOP_SIZE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MAX_GOP_SIZE@GOTPAGEOFF]
Lloh43:
	ldr	w4, [x8]
Lloh44:
	adrp	x28, _GOP_SIZE@GOTPAGE
Lloh45:
	ldr	x28, [x28, _GOP_SIZE@GOTPAGEOFF]
	ldr	w6, [x28]
	mov	x0, x24
	mov	x1, x25
	mov	w3, #1
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
Lloh46:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_H264_MIN_QP@GOTPAGE
Lloh47:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_H264_MIN_QP@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
Lloh49:
	adrp	x27, _QP_VALUE@GOTPAGE
Lloh50:
	ldr	x27, [x27, _QP_VALUE@GOTPAGEOFF]
	ldr	w6, [x27]
	mov	x0, x24
	mov	x1, x25
	mov	w3, #28
	mov	w4, #51
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
Lloh51:
	adrp	x8, _V4L2_CID_DETECT_MD_MODE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _V4L2_CID_DETECT_MD_MODE@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
Lloh54:
	adrp	x8, _V4L2_DETECT_MD_MODE_THRESHOLD_GRID@GOTPAGE
Lloh55:
	ldr	x8, [x8, _V4L2_DETECT_MD_MODE_THRESHOLD_GRID@GOTPAGEOFF]
Lloh56:
	ldr	w3, [x8]
Lloh57:
	adrp	x8, _V4L2_DETECT_MD_MODE_DISABLED@GOTPAGE
Lloh58:
	ldr	x8, [x8, _V4L2_DETECT_MD_MODE_DISABLED@GOTPAGEOFF]
Lloh59:
	ldr	w5, [x8]
	mov	x0, x24
	mov	x1, x25
	mov	w4, #0
	bl	_v4l2_ctrl_new_std_menu
Lloh60:
	adrp	x8, _V4L2_CID_DETECT_MD_GLOBAL_THRESHOLD@GOTPAGE
Lloh61:
	ldr	x8, [x8, _V4L2_CID_DETECT_MD_GLOBAL_THRESHOLD@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
Lloh63:
	adrp	x26, _tw5864_md_thresholds@GOTPAGE
Lloh64:
	ldr	x26, [x26, _tw5864_md_thresholds@GOTPAGEOFF]
	ldp	w3, w4, [x26]
	ldp	w5, w6, [x26, #8]
	mov	x0, x24
	mov	x1, x25
	bl	_v4l2_ctrl_new_std
	mov	x0, x24
	mov	x1, x26
	mov	x2, #0
	bl	_v4l2_ctrl_new_custom
	str	w0, [x20, #136]
	ldr	w25, [x20, #148]
	cbnz	w25, LBB0_3
; %bb.2:
	str	x24, [x20, #96]
	mov	x0, x24
	bl	_v4l2_ctrl_handler_setup
	ldr	w8, [x27]
	str	w8, [x20]
	ldr	w9, [x28]
	mov	w8, #1
	stp	w9, w8, [x20, #4]
Lloh65:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh66:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x19
	bl	_video_register_device
	mov	x25, x0
	cbz	w0, LBB0_6
LBB0_3:
	mov	x0, x24
	bl	_v4l2_ctrl_handler_free
	mov	x0, x22
	bl	_vb2_queue_release
LBB0_4:
	mov	x0, x21
	bl	_mutex_destroy
LBB0_5:
	mov	x0, x25
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x20, #128]
	ldr	x21, [x8]
	mov	x0, x23
	bl	_video_device_node_name
	mov	x2, x0
Lloh68:
	adrp	x1, l_.str@PAGE
Lloh69:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_info
Lloh70:
	adrp	x8, _V4L2_STD_NTSC_M@GOTPAGE
Lloh71:
	ldr	x8, [x8, _V4L2_STD_NTSC_M@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
Lloh73:
	adrp	x9, _STD_NTSC@GOTPAGE
Lloh74:
	ldr	x9, [x9, _STD_NTSC@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #88]
	mov	x0, x19
	bl	_TW5864_INDIR_VIN_E
	mov	w1, #7
	bl	_tw_indir_writeb
	mov	x0, x19
	bl	_TW5864_INDIR_VIN_F
	mov	w1, #255
	bl	_tw_indir_writeb
	b	LBB0_5
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_READ,4,2                   ; @VB2_READ
	.comm	_VB2_DMABUF,4,2                 ; @VB2_DMABUF
	.comm	_tw5864_video_qops,4,2          ; @tw5864_video_qops
	.comm	_vb2_dma_contig_memops,4,2      ; @vb2_dma_contig_memops
	.comm	_tw5864_video_template,32,3     ; @tw5864_video_template
	.comm	_tw5864_ctrl_ops,4,2            ; @tw5864_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ; @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ; @V4L2_CID_SATURATION
	.comm	_V4L2_CID_HUE,4,2               ; @V4L2_CID_HUE
	.comm	_V4L2_CID_MPEG_VIDEO_GOP_SIZE,4,2 ; @V4L2_CID_MPEG_VIDEO_GOP_SIZE
	.comm	_MAX_GOP_SIZE,4,2               ; @MAX_GOP_SIZE
	.comm	_GOP_SIZE,4,2                   ; @GOP_SIZE
	.comm	_V4L2_CID_MPEG_VIDEO_H264_MIN_QP,4,2 ; @V4L2_CID_MPEG_VIDEO_H264_MIN_QP
	.comm	_QP_VALUE,4,2                   ; @QP_VALUE
	.comm	_V4L2_CID_DETECT_MD_MODE,4,2    ; @V4L2_CID_DETECT_MD_MODE
	.comm	_V4L2_DETECT_MD_MODE_THRESHOLD_GRID,4,2 ; @V4L2_DETECT_MD_MODE_THRESHOLD_GRID
	.comm	_V4L2_DETECT_MD_MODE_DISABLED,4,2 ; @V4L2_DETECT_MD_MODE_DISABLED
	.comm	_V4L2_CID_DETECT_MD_GLOBAL_THRESHOLD,4,2 ; @V4L2_CID_DETECT_MD_GLOBAL_THRESHOLD
	.comm	_tw5864_md_thresholds,16,2      ; @tw5864_md_thresholds
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Registered video device %s\n"

	.comm	_V4L2_STD_NTSC_M,4,2            ; @V4L2_STD_NTSC_M
	.comm	_STD_NTSC,4,2                   ; @STD_NTSC
	.no_dead_strip	_tw5864_video_input_init
.subsections_via_symbols
