	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdpvr_register_videodev        ## -- Begin function hdpvr_register_videodev
	.p2align	4, 0x90
_hdpvr_register_videodev:               ## @hdpvr_register_videodev
	.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
	movl	%edx, %ebx
	movq	%rdi, %r13
	movq	_HDPVR_FLAG_AC3_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	(%rdi), %r14d
	leaq	76(%rdi), %r15
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rdi)
	movabsq	$2061584302800, %rax            ## imm = 0x1E0000002D0
	movq	%rax, 4(%rdi)
	movq	_hdpvr_dv_timings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_HDPVR_DEF_DV_TIMINGS_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 68(%rdi)
	movq	%r15, %rdi
	movl	$11, %esi
	callq	_v4l2_ctrl_handler_init
	cmpl	$22, 12(%r13)
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jl	LBB0_2
## %bb.1:
	movl	$128, (%rsp)
	movq	_hdpvr_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %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	$64, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %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	$15, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$30, %r8d
	jmp	LBB0_3
LBB0_2:
	movl	$134, (%rsp)
	movq	_hdpvr_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %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	%r15, %rdi
	movq	%r12, %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	$128, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
LBB0_3:
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SHARPNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	_hdpvr_ctrl_ops@GOTPCREL(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_MPEG_STREAM_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %r8d
	movl	%ecx, %r9d
	callq	_v4l2_ctrl_new_std_menu
	movq	_V4L2_CID_MPEG_AUDIO_ENCODING@GOTPCREL(%rip), %rax
	movq	_V4L2_MPEG_AUDIO_ENCODING_AAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%r9d, %ecx
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movq	_V4L2_MPEG_AUDIO_ENCODING_AC3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	movl	(%rax), %edx
	je	LBB0_7
## %bb.6:
	movl	64(%r13), %r9d
LBB0_7:
	movq	_hdpvr_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$7, %r8d
	callq	_v4l2_ctrl_new_std_menu
	movq	_V4L2_CID_MPEG_VIDEO_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$3, %r8d
	movl	%ecx, %r9d
	callq	_v4l2_ctrl_new_std_menu
	movq	_V4L2_CID_MPEG_VIDEO_BITRATE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	movl	%ecx, %r9d
	callq	_v4l2_ctrl_new_std_menu
	movl	%eax, 40(%r13)
	movq	_V4L2_CID_MPEG_VIDEO_BITRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$6500000, (%rsp)                ## imm = 0x632EA0
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1000000, %ecx                  ## imm = 0xF4240
	movl	$13500000, %r8d                 ## imm = 0xCDFE60
	movl	$100000, %r9d                   ## imm = 0x186A0
	callq	_v4l2_ctrl_new_std
	movq	%rax, 56(%r13)
	movq	_V4L2_CID_MPEG_VIDEO_BITRATE_PEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$9000000, (%rsp)                ## imm = 0x895440
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1100000, %ecx                  ## imm = 0x10C8E0
	movl	$20200000, %r8d                 ## imm = 0x1343A40
	movl	$100000, %r9d                   ## imm = 0x186A0
	callq	_v4l2_ctrl_new_std
	movq	%rax, 48(%r13)
	leaq	16(%r13), %r12
	movq	%r15, 16(%r13)
	movl	76(%r13), %ebx
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
LBB0_13:
	movq	%r12, %rdi
	callq	_v4l2_err
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	40(%r13), %rsi
	movl	$3, %edi
	callq	_v4l2_ctrl_cluster
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_setup
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	leaq	24(%r13), %rbx
	movq	_hdpvr_video_template@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 24(%r13)
	movl	32(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	%r12, 24(%r13)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_video_set_drvdata
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_video_register_device
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_14
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_HDPVR_FLAG_AC3_CAP,4,2         ## @HDPVR_FLAG_AC3_CAP
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_hdpvr_dv_timings,8,3           ## @hdpvr_dv_timings
	.comm	_HDPVR_DEF_DV_TIMINGS_IDX,8,3   ## @HDPVR_DEF_DV_TIMINGS_IDX
	.comm	_hdpvr_ctrl_ops,4,2             ## @hdpvr_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_SHARPNESS,4,2         ## @V4L2_CID_SHARPNESS
	.comm	_V4L2_CID_MPEG_STREAM_TYPE,4,2  ## @V4L2_CID_MPEG_STREAM_TYPE
	.comm	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS,4,2 ## @V4L2_MPEG_STREAM_TYPE_MPEG2_TS
	.comm	_V4L2_CID_MPEG_AUDIO_ENCODING,4,2 ## @V4L2_CID_MPEG_AUDIO_ENCODING
	.comm	_V4L2_MPEG_AUDIO_ENCODING_AC3,4,2 ## @V4L2_MPEG_AUDIO_ENCODING_AC3
	.comm	_V4L2_MPEG_AUDIO_ENCODING_AAC,4,2 ## @V4L2_MPEG_AUDIO_ENCODING_AAC
	.comm	_V4L2_CID_MPEG_VIDEO_ENCODING,4,2 ## @V4L2_CID_MPEG_VIDEO_ENCODING
	.comm	_V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC,4,2 ## @V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC
	.comm	_V4L2_CID_MPEG_VIDEO_BITRATE_MODE,4,2 ## @V4L2_CID_MPEG_VIDEO_BITRATE_MODE
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,4,2 ## @V4L2_MPEG_VIDEO_BITRATE_MODE_CBR
	.comm	_V4L2_CID_MPEG_VIDEO_BITRATE,4,2 ## @V4L2_CID_MPEG_VIDEO_BITRATE
	.comm	_V4L2_CID_MPEG_VIDEO_BITRATE_PEAK,4,2 ## @V4L2_CID_MPEG_VIDEO_BITRATE_PEAK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not register controls\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not setup controls\n"

	.comm	_hdpvr_video_template,16,3      ## @hdpvr_video_template
L_.str.2:                               ## @.str.2
	.asciz	"Hauppauge HD PVR"

	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
L_.str.3:                               ## @.str.3
	.asciz	"video_device registration failed\n"

.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 hdpvr_register_videodev
lCPI0_0:
	.long	720                             ; 0x2d0
	.long	480                             ; 0x1e0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hdpvr_register_videodev
	.p2align	2
_hdpvr_register_videodev:               ; @hdpvr_register_videodev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x0
	add	x19, x0, #76
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HDPVR_FLAG_AC3_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDPVR_FLAG_AC3_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w23, w9, w8
Lloh3:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #72]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x0, #4]
Lloh8:
	adrp	x8, _hdpvr_dv_timings@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hdpvr_dv_timings@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _HDPVR_DEF_DV_TIMINGS_IDX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HDPVR_DEF_DV_TIMINGS_IDX@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x0, #68]
	mov	x0, x19
	mov	w1, #11
	bl	_v4l2_ctrl_handler_init
	ldr	w8, [x21, #12]
Lloh14:
	adrp	x9, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x9]
Lloh17:
	adrp	x22, _hdpvr_ctrl_ops@GOTPAGE
Lloh18:
	ldr	x22, [x22, _hdpvr_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	cmp	w8, #22
	b.lt	LBB0_2
; %bb.1:
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh19:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #64
	bl	_v4l2_ctrl_new_std
Lloh22:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #64
	bl	_v4l2_ctrl_new_std
Lloh25:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #30
	mov	w5, #1
	mov	w6, #15
	b	LBB0_3
LBB0_2:
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #134
	bl	_v4l2_ctrl_new_std
Lloh28:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh29:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh31:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh34:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
LBB0_3:
	bl	_v4l2_ctrl_new_std
Lloh37:
	adrp	x8, _V4L2_CID_SHARPNESS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _V4L2_CID_SHARPNESS@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x22, _hdpvr_ctrl_ops@GOTPAGE
Lloh41:
	ldr	x22, [x22, _hdpvr_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh42:
	adrp	x8, _V4L2_CID_MPEG_STREAM_TYPE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _V4L2_CID_MPEG_STREAM_TYPE@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
Lloh45:
	adrp	x8, _V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _V4L2_MPEG_STREAM_TYPE_MPEG2_TS@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w4, #1
	mov	x5, x3
	bl	_v4l2_ctrl_new_std_menu
Lloh48:
	adrp	x8, _V4L2_CID_MPEG_AUDIO_ENCODING@GOTPAGE
Lloh49:
	ldr	x8, [x8, _V4L2_CID_MPEG_AUDIO_ENCODING@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
Lloh51:
	adrp	x8, _V4L2_MPEG_AUDIO_ENCODING_AC3@GOTPAGE
Lloh52:
	ldr	x8, [x8, _V4L2_MPEG_AUDIO_ENCODING_AC3@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _V4L2_MPEG_AUDIO_ENCODING_AAC@GOTPAGE
Lloh55:
	ldr	x9, [x9, _V4L2_MPEG_AUDIO_ENCODING_AAC@GOTPAGEOFF]
Lloh56:
	ldr	w5, [x9]
	cmp	w23, #0
	csel	w3, w5, w8, eq
	cbz	w23, LBB0_5
; %bb.4:
	ldr	w5, [x21, #64]
LBB0_5:
Lloh57:
	adrp	x22, _hdpvr_ctrl_ops@GOTPAGE
Lloh58:
	ldr	x22, [x22, _hdpvr_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	w4, #7
	bl	_v4l2_ctrl_new_std_menu
Lloh59:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_ENCODING@GOTPAGE
Lloh60:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_ENCODING@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
Lloh62:
	adrp	x8, _V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC@GOTPAGE
Lloh63:
	ldr	x8, [x8, _V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC@GOTPAGEOFF]
Lloh64:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w4, #3
	mov	x5, x3
	bl	_v4l2_ctrl_new_std_menu
Lloh65:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_BITRATE_MODE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_BITRATE_MODE@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
Lloh68:
	adrp	x8, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _V4L2_MPEG_VIDEO_BITRATE_MODE_CBR@GOTPAGEOFF]
Lloh70:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w4, #0
	mov	x5, x3
	bl	_v4l2_ctrl_new_std_menu
	mov	x23, x21
	str	w0, [x23, #40]!
Lloh71:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_BITRATE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_BITRATE@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #16960
	movk	w3, #15, lsl #16
	mov	w4, #65120
	movk	w4, #205, lsl #16
	mov	w5, #34464
	movk	w5, #1, lsl #16
	mov	w6, #11936
	movk	w6, #99, lsl #16
	bl	_v4l2_ctrl_new_std
	str	x0, [x21, #56]
Lloh74:
	adrp	x8, _V4L2_CID_MPEG_VIDEO_BITRATE_PEAK@GOTPAGE
Lloh75:
	ldr	x8, [x8, _V4L2_CID_MPEG_VIDEO_BITRATE_PEAK@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #51424
	movk	w3, #16, lsl #16
	mov	w4, #14912
	movk	w4, #308, lsl #16
	mov	w5, #34464
	movk	w5, #1, lsl #16
	mov	w6, #21568
	movk	w6, #137, lsl #16
	bl	_v4l2_ctrl_new_std
	mov	x22, x21
	str	x19, [x22, #16]!
	str	x0, [x22, #32]
	ldr	w24, [x22, #60]
	cbz	w24, LBB0_9
; %bb.6:
Lloh77:
	adrp	x1, l_.str@PAGE
Lloh78:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x22
	bl	_v4l2_err
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
LBB0_8:
	mov	x0, x24
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #3
	mov	x1, x23
	bl	_v4l2_ctrl_cluster
	mov	x0, x19
	bl	_v4l2_ctrl_handler_setup
	tbnz	w0, #31, LBB0_12
; %bb.10:
	add	x23, x21, #24
Lloh79:
	adrp	x8, _hdpvr_video_template@GOTPAGE
Lloh80:
	ldr	x8, [x8, _hdpvr_video_template@GOTPAGEOFF]
Lloh81:
	ldr	q0, [x8]
	stur	q0, [x21, #24]
	ldr	w0, [x21, #32]
Lloh82:
	adrp	x1, l_.str.2@PAGE
Lloh83:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	str	x22, [x21, #24]
	mov	x0, x23
	mov	x1, x21
	bl	_video_set_drvdata
Lloh84:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh85:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x20
	bl	_video_register_device
	tbnz	w0, #31, LBB0_13
; %bb.11:
	mov	w24, #0
	b	LBB0_8
LBB0_12:
	mov	x24, x0
Lloh87:
	adrp	x1, l_.str.1@PAGE
Lloh88:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_13:
	mov	x24, x0
Lloh89:
	adrp	x1, l_.str.3@PAGE
Lloh90:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.comm	_HDPVR_FLAG_AC3_CAP,4,2         ; @HDPVR_FLAG_AC3_CAP
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_hdpvr_dv_timings,8,3           ; @hdpvr_dv_timings
	.comm	_HDPVR_DEF_DV_TIMINGS_IDX,8,3   ; @HDPVR_DEF_DV_TIMINGS_IDX
	.comm	_hdpvr_ctrl_ops,4,2             ; @hdpvr_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_SHARPNESS,4,2         ; @V4L2_CID_SHARPNESS
	.comm	_V4L2_CID_MPEG_STREAM_TYPE,4,2  ; @V4L2_CID_MPEG_STREAM_TYPE
	.comm	_V4L2_MPEG_STREAM_TYPE_MPEG2_TS,4,2 ; @V4L2_MPEG_STREAM_TYPE_MPEG2_TS
	.comm	_V4L2_CID_MPEG_AUDIO_ENCODING,4,2 ; @V4L2_CID_MPEG_AUDIO_ENCODING
	.comm	_V4L2_MPEG_AUDIO_ENCODING_AC3,4,2 ; @V4L2_MPEG_AUDIO_ENCODING_AC3
	.comm	_V4L2_MPEG_AUDIO_ENCODING_AAC,4,2 ; @V4L2_MPEG_AUDIO_ENCODING_AAC
	.comm	_V4L2_CID_MPEG_VIDEO_ENCODING,4,2 ; @V4L2_CID_MPEG_VIDEO_ENCODING
	.comm	_V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC,4,2 ; @V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC
	.comm	_V4L2_CID_MPEG_VIDEO_BITRATE_MODE,4,2 ; @V4L2_CID_MPEG_VIDEO_BITRATE_MODE
	.comm	_V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,4,2 ; @V4L2_MPEG_VIDEO_BITRATE_MODE_CBR
	.comm	_V4L2_CID_MPEG_VIDEO_BITRATE,4,2 ; @V4L2_CID_MPEG_VIDEO_BITRATE
	.comm	_V4L2_CID_MPEG_VIDEO_BITRATE_PEAK,4,2 ; @V4L2_CID_MPEG_VIDEO_BITRATE_PEAK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not register controls\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not setup controls\n"

	.comm	_hdpvr_video_template,16,3      ; @hdpvr_video_template
l_.str.2:                               ; @.str.2
	.asciz	"Hauppauge HD PVR"

	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
l_.str.3:                               ; @.str.3
	.asciz	"video_device registration failed\n"

.subsections_via_symbols
