	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_go7007_v4l2_init               ## -- Begin function go7007_v4l2_init
	.p2align	4, 0x90
_go7007_v4l2_init:                      ## @go7007_v4l2_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	80(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_init
	leaq	84(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_init
	leaq	88(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_VB2_MMAP@GOTPCREL(%rip), %rax
	movq	_VB2_USERPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VB2_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	24(%rbx), %r12
	movl	%ecx, 24(%rbx)
	movq	_go7007_video_qops@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	movq	_vb2_vmalloc_memops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movq	%rbx, 48(%rbx)
	movl	$4, 28(%rbx)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r14, 32(%rbx)
	movq	%r12, %rdi
	callq	_vb2_queue_init
	testl	%eax, %eax
	jne	LBB0_22
## %bb.1:
	leaq	96(%rbx), %r14
	movq	_go7007_template@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, 16(%r14)
	movups	(%rax), %xmm0
	movups	%xmm0, (%r14)
	movq	%r15, 128(%rbx)
	movq	%r12, 120(%rbx)
	movq	_V4L2_CAP_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	movq	_V4L2_CAP_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 96(%rbx)
	movq	8(%rbx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_V4L2_CAP_AUDIO@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%r14)
LBB0_3:
	movq	_GO7007_BOARD_HAS_TUNER@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	testl	%edx, 8(%rcx)
	je	LBB0_5
## %bb.4:
	movq	_V4L2_CAP_TUNER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	leaq	20(%rbx), %r15
	movq	%r15, 112(%rbx)
	movq	_video@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_querystd@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_v4l2_device_has_op
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_VIDIOC_QUERYSTD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
LBB0_7:
	movq	8(%rbx), %rax
	movl	(%r13), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_8
## %bb.9:
	movl	$980, -48(%rbp)                 ## imm = 0x3D4
	movq	_V4L2_TUNER_ANALOG_TV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	callq	_call_all
	jmp	LBB0_10
LBB0_8:
	movq	_VIDIOC_S_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	_VIDIOC_G_FREQUENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	_VIDIOC_S_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	_VIDIOC_G_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
LBB0_10:
	movq	8(%rbx), %rax
	movl	12(%rax), %ecx
	movq	_GO7007_SENSOR_TV@GOTPCREL(%rip), %r15
	testl	%ecx, (%r15)
	jne	LBB0_12
## %bb.11:
	movq	_VIDIOC_G_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	_VIDIOC_S_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	$0, 104(%rbx)
	movq	8(%rbx), %rax
	movl	12(%rax), %ecx
LBB0_12:
	movq	_GO7007_SENSOR_SCALING@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_14
## %bb.13:
	movq	_VIDIOC_ENUM_FRAMESIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	8(%rbx), %rax
LBB0_14:
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.15:
	movq	_VIDIOC_G_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	_VIDIOC_S_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	_VIDIOC_ENUMAUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_v4l2_disable_ioctl
	movq	8(%rbx), %rax
LBB0_16:
	movq	_GO7007_SENSOR_SAA7115@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%rax)
	je	LBB0_18
## %bb.17:
	movl	16(%rbx), %edi
	movl	(%r12), %esi
	movq	_s_crystal_freq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SAA7115_FREQ_24_576_MHZ@GOTPCREL(%rip), %r9
	movq	_SAA7115_FREQ_FL_APLL@GOTPCREL(%rip), %rcx
	movq	_SAA7115_FREQ_FL_UCGC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	orl	(%rcx), %r8d
	movl	(%r9), %ecx
	movq	_SAA7115_FREQ_FL_DOUBLE_ASCLK@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	callq	_v4l2_subdev_call
LBB0_18:
	movq	%rbx, %rdi
	callq	_go7007_s_input
	movq	8(%rbx), %rax
	movl	(%r15), %ecx
	testl	%ecx, 12(%rax)
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_go7007_s_std
LBB0_20:
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	js	LBB0_22
## %bb.21:
	movl	(%rbx), %ebx
	movq	%r14, %rdi
	callq	_video_device_node_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_info
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ## @VB2_USERPTR
	.comm	_VB2_READ,4,2                   ## @VB2_READ
	.comm	_go7007_video_qops,4,2          ## @go7007_video_qops
	.comm	_vb2_vmalloc_memops,4,2         ## @vb2_vmalloc_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_go7007_template,40,3           ## @go7007_template
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ## @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_READWRITE,4,2         ## @V4L2_CAP_READWRITE
	.comm	_V4L2_CAP_STREAMING,4,2         ## @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_AUDIO,4,2             ## @V4L2_CAP_AUDIO
	.comm	_GO7007_BOARD_HAS_TUNER,4,2     ## @GO7007_BOARD_HAS_TUNER
	.comm	_V4L2_CAP_TUNER,4,2             ## @V4L2_CAP_TUNER
	.comm	_video,4,2                      ## @video
	.comm	_querystd,4,2                   ## @querystd
	.comm	_VIDIOC_QUERYSTD,4,2            ## @VIDIOC_QUERYSTD
	.comm	_VIDIOC_S_FREQUENCY,4,2         ## @VIDIOC_S_FREQUENCY
	.comm	_VIDIOC_G_FREQUENCY,4,2         ## @VIDIOC_G_FREQUENCY
	.comm	_VIDIOC_S_TUNER,4,2             ## @VIDIOC_S_TUNER
	.comm	_VIDIOC_G_TUNER,4,2             ## @VIDIOC_G_TUNER
	.comm	_V4L2_TUNER_ANALOG_TV,4,2       ## @V4L2_TUNER_ANALOG_TV
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_frequency,4,2                ## @s_frequency
	.comm	_GO7007_SENSOR_TV,4,2           ## @GO7007_SENSOR_TV
	.comm	_VIDIOC_G_STD,4,2               ## @VIDIOC_G_STD
	.comm	_VIDIOC_S_STD,4,2               ## @VIDIOC_S_STD
	.comm	_GO7007_SENSOR_SCALING,4,2      ## @GO7007_SENSOR_SCALING
	.comm	_VIDIOC_ENUM_FRAMESIZES,4,2     ## @VIDIOC_ENUM_FRAMESIZES
	.comm	_VIDIOC_G_AUDIO,4,2             ## @VIDIOC_G_AUDIO
	.comm	_VIDIOC_S_AUDIO,4,2             ## @VIDIOC_S_AUDIO
	.comm	_VIDIOC_ENUMAUDIO,4,2           ## @VIDIOC_ENUMAUDIO
	.comm	_GO7007_SENSOR_SAA7115,4,2      ## @GO7007_SENSOR_SAA7115
	.comm	_s_crystal_freq,4,2             ## @s_crystal_freq
	.comm	_SAA7115_FREQ_24_576_MHZ,4,2    ## @SAA7115_FREQ_24_576_MHZ
	.comm	_SAA7115_FREQ_FL_APLL,4,2       ## @SAA7115_FREQ_FL_APLL
	.comm	_SAA7115_FREQ_FL_UCGC,4,2       ## @SAA7115_FREQ_FL_UCGC
	.comm	_SAA7115_FREQ_FL_DOUBLE_ASCLK,4,2 ## @SAA7115_FREQ_FL_DOUBLE_ASCLK
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"registered device %s [v4l2]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_go7007_v4l2_init               ; -- Begin function go7007_v4l2_init
	.p2align	2
_go7007_v4l2_init:                      ; @go7007_v4l2_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	add	x21, x0, #80
	mov	x0, x21
	bl	_mutex_init
	add	x20, x19, #84
	mov	x0, x20
	bl	_mutex_init
	add	x0, x19, #88
	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:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _VB2_USERPTR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VB2_USERPTR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _VB2_READ@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VB2_READ@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	mov	x22, x19
	str	w9, [x22, #24]!
	str	w8, [x19, #72]
Lloh12:
	adrp	x8, _go7007_video_qops@GOTPAGE
Lloh13:
	ldr	x8, [x8, _go7007_video_qops@GOTPAGEOFF]
	str	x8, [x19, #64]
Lloh14:
	adrp	x8, _vb2_vmalloc_memops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _vb2_vmalloc_memops@GOTPAGEOFF]
	stp	x19, x8, [x19, #48]
	mov	w8, #4
	str	w8, [x19, #28]
Lloh16:
	adrp	x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	str	x20, [x19, #32]
	mov	x0, x22
	bl	_vb2_queue_init
	cbnz	w0, LBB0_22
; %bb.1:
	add	x20, x19, #96
Lloh19:
	adrp	x8, _go7007_template@GOTPAGE
Lloh20:
	ldr	x8, [x8, _go7007_template@GOTPAGEOFF]
	ldr	q0, [x8]
	str	q0, [x20]
	ldr	x8, [x8, #16]
	str	x8, [x20, #16]
	stp	x22, x21, [x19, #120]
Lloh21:
	adrp	x8, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _V4L2_CAP_READWRITE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _V4L2_CAP_READWRITE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _V4L2_CAP_STREAMING@GOTPAGE
Lloh28:
	ldr	x10, [x10, _V4L2_CAP_STREAMING@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh29:
	ldr	w9, [x10]
	orr	w8, w8, w9
	str	w8, [x19, #96]
	ldr	x9, [x19, #8]
	ldr	x10, [x9]
	cbz	x10, LBB0_3
; %bb.2:
Lloh30:
	adrp	x10, _V4L2_CAP_AUDIO@GOTPAGE
Lloh31:
	ldr	x10, [x10, _V4L2_CAP_AUDIO@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x20]
LBB0_3:
	ldr	w9, [x9, #8]
Lloh33:
	adrp	x23, _GO7007_BOARD_HAS_TUNER@GOTPAGE
Lloh34:
	ldr	x23, [x23, _GO7007_BOARD_HAS_TUNER@GOTPAGEOFF]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh35:
	adrp	x9, _V4L2_CAP_TUNER@GOTPAGE
Lloh36:
	ldr	x9, [x9, _V4L2_CAP_TUNER@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_video_set_drvdata
	add	x21, x19, #20
	str	x21, [x19, #112]
Lloh38:
	adrp	x22, _video@GOTPAGE
Lloh39:
	ldr	x22, [x22, _video@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh40:
	adrp	x8, _querystd@GOTPAGE
Lloh41:
	ldr	x8, [x8, _querystd@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_v4l2_device_has_op
	cbnz	w0, LBB0_7
; %bb.6:
Lloh43:
	adrp	x8, _VIDIOC_QUERYSTD@GOTPAGE
Lloh44:
	ldr	x8, [x8, _VIDIOC_QUERYSTD@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #8]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #980
Lloh46:
	adrp	x9, _V4L2_TUNER_ANALOG_TV@GOTPAGE
Lloh47:
	ldr	x9, [x9, _V4L2_TUNER_ANALOG_TV@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh49:
	adrp	x8, _tuner@GOTPAGE
Lloh50:
	ldr	x8, [x8, _tuner@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x8, _s_frequency@GOTPAGE
Lloh53:
	ldr	x8, [x8, _s_frequency@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_call_all
	b	LBB0_10
LBB0_9:
Lloh55:
	adrp	x8, _VIDIOC_S_FREQUENCY@GOTPAGE
Lloh56:
	ldr	x8, [x8, _VIDIOC_S_FREQUENCY@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
Lloh58:
	adrp	x8, _VIDIOC_G_FREQUENCY@GOTPAGE
Lloh59:
	ldr	x8, [x8, _VIDIOC_G_FREQUENCY@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
Lloh61:
	adrp	x8, _VIDIOC_S_TUNER@GOTPAGE
Lloh62:
	ldr	x8, [x8, _VIDIOC_S_TUNER@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
Lloh64:
	adrp	x8, _VIDIOC_G_TUNER@GOTPAGE
Lloh65:
	ldr	x8, [x8, _VIDIOC_G_TUNER@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #12]
Lloh67:
	adrp	x21, _GO7007_SENSOR_TV@GOTPAGE
Lloh68:
	ldr	x21, [x21, _GO7007_SENSOR_TV@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w9
	b.ne	LBB0_12
; %bb.11:
Lloh69:
	adrp	x8, _VIDIOC_G_STD@GOTPAGE
Lloh70:
	ldr	x8, [x8, _VIDIOC_G_STD@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
Lloh72:
	adrp	x8, _VIDIOC_S_STD@GOTPAGE
Lloh73:
	ldr	x8, [x8, _VIDIOC_S_STD@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
	str	xzr, [x19, #104]
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #12]
LBB0_12:
Lloh75:
	adrp	x10, _GO7007_SENSOR_SCALING@GOTPAGE
Lloh76:
	ldr	x10, [x10, _GO7007_SENSOR_SCALING@GOTPAGEOFF]
Lloh77:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_14
; %bb.13:
Lloh78:
	adrp	x8, _VIDIOC_ENUM_FRAMESIZES@GOTPAGE
Lloh79:
	ldr	x8, [x8, _VIDIOC_ENUM_FRAMESIZES@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
	ldr	x8, [x19, #8]
LBB0_14:
	ldr	x9, [x8]
	cbnz	x9, LBB0_16
; %bb.15:
Lloh81:
	adrp	x8, _VIDIOC_G_AUDIO@GOTPAGE
Lloh82:
	ldr	x8, [x8, _VIDIOC_G_AUDIO@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
Lloh84:
	adrp	x8, _VIDIOC_S_AUDIO@GOTPAGE
Lloh85:
	ldr	x8, [x8, _VIDIOC_S_AUDIO@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
Lloh87:
	adrp	x8, _VIDIOC_ENUMAUDIO@GOTPAGE
Lloh88:
	ldr	x8, [x8, _VIDIOC_ENUMAUDIO@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_v4l2_disable_ioctl
	ldr	x8, [x19, #8]
LBB0_16:
	ldr	w8, [x8, #12]
Lloh90:
	adrp	x9, _GO7007_SENSOR_SAA7115@GOTPAGE
Lloh91:
	ldr	x9, [x9, _GO7007_SENSOR_SAA7115@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
Lloh93:
	adrp	x8, _s_crystal_freq@GOTPAGE
Lloh94:
	ldr	x8, [x8, _s_crystal_freq@GOTPAGEOFF]
Lloh95:
	ldr	w2, [x8]
Lloh96:
	adrp	x8, _SAA7115_FREQ_24_576_MHZ@GOTPAGE
Lloh97:
	ldr	x8, [x8, _SAA7115_FREQ_24_576_MHZ@GOTPAGEOFF]
Lloh98:
	ldr	w3, [x8]
Lloh99:
	adrp	x8, _SAA7115_FREQ_FL_APLL@GOTPAGE
Lloh100:
	ldr	x8, [x8, _SAA7115_FREQ_FL_APLL@GOTPAGEOFF]
Lloh101:
	ldr	w8, [x8]
Lloh102:
	adrp	x9, _SAA7115_FREQ_FL_UCGC@GOTPAGE
Lloh103:
	ldr	x9, [x9, _SAA7115_FREQ_FL_UCGC@GOTPAGEOFF]
Lloh104:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh105:
	adrp	x9, _SAA7115_FREQ_FL_DOUBLE_ASCLK@GOTPAGE
Lloh106:
	ldr	x9, [x9, _SAA7115_FREQ_FL_DOUBLE_ASCLK@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	orr	w4, w8, w9
	bl	_v4l2_subdev_call
LBB0_18:
	mov	x0, x19
	bl	_go7007_s_input
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_go7007_s_std
LBB0_20:
Lloh108:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh109:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh110:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_video_register_device
	tbnz	w0, #31, LBB0_22
; %bb.21:
	ldr	w19, [x19]
	mov	x0, x20
	bl	_video_device_node_name
	mov	x2, x0
Lloh111:
	adrp	x1, l_.str@PAGE
Lloh112:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpAdd	Lloh111, Lloh112
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_USERPTR,4,2                ; @VB2_USERPTR
	.comm	_VB2_READ,4,2                   ; @VB2_READ
	.comm	_go7007_video_qops,4,2          ; @go7007_video_qops
	.comm	_vb2_vmalloc_memops,4,2         ; @vb2_vmalloc_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_go7007_template,40,3           ; @go7007_template
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ; @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_READWRITE,4,2         ; @V4L2_CAP_READWRITE
	.comm	_V4L2_CAP_STREAMING,4,2         ; @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_AUDIO,4,2             ; @V4L2_CAP_AUDIO
	.comm	_GO7007_BOARD_HAS_TUNER,4,2     ; @GO7007_BOARD_HAS_TUNER
	.comm	_V4L2_CAP_TUNER,4,2             ; @V4L2_CAP_TUNER
	.comm	_video,4,2                      ; @video
	.comm	_querystd,4,2                   ; @querystd
	.comm	_VIDIOC_QUERYSTD,4,2            ; @VIDIOC_QUERYSTD
	.comm	_VIDIOC_S_FREQUENCY,4,2         ; @VIDIOC_S_FREQUENCY
	.comm	_VIDIOC_G_FREQUENCY,4,2         ; @VIDIOC_G_FREQUENCY
	.comm	_VIDIOC_S_TUNER,4,2             ; @VIDIOC_S_TUNER
	.comm	_VIDIOC_G_TUNER,4,2             ; @VIDIOC_G_TUNER
	.comm	_V4L2_TUNER_ANALOG_TV,4,2       ; @V4L2_TUNER_ANALOG_TV
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_frequency,4,2                ; @s_frequency
	.comm	_GO7007_SENSOR_TV,4,2           ; @GO7007_SENSOR_TV
	.comm	_VIDIOC_G_STD,4,2               ; @VIDIOC_G_STD
	.comm	_VIDIOC_S_STD,4,2               ; @VIDIOC_S_STD
	.comm	_GO7007_SENSOR_SCALING,4,2      ; @GO7007_SENSOR_SCALING
	.comm	_VIDIOC_ENUM_FRAMESIZES,4,2     ; @VIDIOC_ENUM_FRAMESIZES
	.comm	_VIDIOC_G_AUDIO,4,2             ; @VIDIOC_G_AUDIO
	.comm	_VIDIOC_S_AUDIO,4,2             ; @VIDIOC_S_AUDIO
	.comm	_VIDIOC_ENUMAUDIO,4,2           ; @VIDIOC_ENUMAUDIO
	.comm	_GO7007_SENSOR_SAA7115,4,2      ; @GO7007_SENSOR_SAA7115
	.comm	_s_crystal_freq,4,2             ; @s_crystal_freq
	.comm	_SAA7115_FREQ_24_576_MHZ,4,2    ; @SAA7115_FREQ_24_576_MHZ
	.comm	_SAA7115_FREQ_FL_APLL,4,2       ; @SAA7115_FREQ_FL_APLL
	.comm	_SAA7115_FREQ_FL_UCGC,4,2       ; @SAA7115_FREQ_FL_UCGC
	.comm	_SAA7115_FREQ_FL_DOUBLE_ASCLK,4,2 ; @SAA7115_FREQ_FL_DOUBLE_ASCLK
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"registered device %s [v4l2]\n"

.subsections_via_symbols
