	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_video_setup_video
_aspeed_video_setup_video:              ## @aspeed_video_setup_video
	.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, %rbx
	movq	_V4L2_JPEG_CHROMA_SUBSAMPLING_444@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_V4L2_JPEG_CHROMA_SUBSAMPLING_420@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	leaq	160(%rbx), %r14
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_V4L2_QUANTIZATION_FULL_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	orl	%r15d, %r13d
	notl	%r13d
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ASPEED_VIDEO_JPEG_NUM_QUALITIES@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	decq	%r8
	movl	$0, (%rsp)
	movq	_aspeed_video_ctrl_ops@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_JPEG_CHROMA_SUBSAMPLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V4L2_JPEG_CHROMA_SUBSAMPLING_420@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_V4L2_JPEG_CHROMA_SUBSAMPLING_444@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %r8d
	callq	_v4l2_ctrl_new_std_menu
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_device_unregister
	movl	(%rbx), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, 168(%rbx)
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 156(%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
	leaq	104(%rbx), %r13
	movl	%ecx, 104(%rbx)
	movl	160(%rbx), %eax
	movl	%eax, 152(%rbx)
	leaq	16(%rbx), %r14
	movq	%r14, 144(%rbx)
	movq	_aspeed_video_vb2_ops@GOTPCREL(%rip), %rax
	movq	%rax, 136(%rbx)
	movq	_vb2_dma_contig_memops@GOTPCREL(%rip), %rax
	movq	%rax, 128(%rbx)
	movq	%rbx, 120(%rbx)
	movl	$4, 108(%rbx)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%rbx)
	movl	$3, 112(%rbx)
	movq	%r13, %rdi
	callq	_vb2_queue_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_device_unregister
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	leaq	40(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, 96(%rbx)
	movq	_aspeed_video_v4l2_fops@GOTPCREL(%rip), %rax
	movq	%rax, 88(%rbx)
	movq	_V4L2_CAP_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_READWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 40(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 80(%rbx)
	movl	76(%rbx), %edi
	movq	_DEVICE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, 72(%rbx)
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_video_device_release_empty@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_aspeed_video_ioctl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movq	%r14, 48(%rbx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movl	(%r12), %esi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_vb2_queue_release
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_device_unregister
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r14d, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_JPEG_CHROMA_SUBSAMPLING_444,4,2 ## @V4L2_JPEG_CHROMA_SUBSAMPLING_444
	.comm	_V4L2_JPEG_CHROMA_SUBSAMPLING_420,4,2 ## @V4L2_JPEG_CHROMA_SUBSAMPLING_420
	.comm	_V4L2_PIX_FMT_JPEG,4,2          ## @V4L2_PIX_FMT_JPEG
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_QUANTIZATION_FULL_RANGE,4,2 ## @V4L2_QUANTIZATION_FULL_RANGE
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ## @V4L2_IN_ST_NO_SIGNAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register v4l2 device\n"

	.comm	_aspeed_video_ctrl_ops,4,2      ## @aspeed_video_ctrl_ops
	.comm	_V4L2_CID_JPEG_COMPRESSION_QUALITY,4,2 ## @V4L2_CID_JPEG_COMPRESSION_QUALITY
	.comm	_ASPEED_VIDEO_JPEG_NUM_QUALITIES,8,3 ## @ASPEED_VIDEO_JPEG_NUM_QUALITIES
	.comm	_V4L2_CID_JPEG_CHROMA_SUBSAMPLING,4,2 ## @V4L2_CID_JPEG_CHROMA_SUBSAMPLING
L_.str.1:                               ## @.str.1
	.asciz	"Failed to init controls: %d\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_READ,4,2                   ## @VB2_READ
	.comm	_VB2_DMABUF,4,2                 ## @VB2_DMABUF
	.comm	_aspeed_video_vb2_ops,4,2       ## @aspeed_video_vb2_ops
	.comm	_vb2_dma_contig_memops,4,2      ## @vb2_dma_contig_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
L_.str.2:                               ## @.str.2
	.asciz	"Failed to init vb2 queue\n"

	.comm	_aspeed_video_v4l2_fops,4,2     ## @aspeed_video_v4l2_fops
	.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	_DEVICE_NAME,4,2                ## @DEVICE_NAME
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.comm	_VFL_DIR_RX,4,2                 ## @VFL_DIR_RX
	.comm	_video_device_release_empty,4,2 ## @video_device_release_empty
	.comm	_aspeed_video_ioctl_ops,4,2     ## @aspeed_video_ioctl_ops
L_.str.3:                               ## @.str.3
	.asciz	"Failed to register video device\n"

	.no_dead_strip	_aspeed_video_setup_video
.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 aspeed_video_setup_video
lCPI0_0:
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_aspeed_video_setup_video:              ; @aspeed_video_setup_video
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _V4L2_JPEG_CHROMA_SUBSAMPLING_444@GOTPAGE
Lloh1:
	ldr	x24, [x24, _V4L2_JPEG_CHROMA_SUBSAMPLING_444@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_BIT
	mov	x21, x0
Lloh2:
	adrp	x25, _V4L2_JPEG_CHROMA_SUBSAMPLING_420@GOTPAGE
Lloh3:
	ldr	x25, [x25, _V4L2_JPEG_CHROMA_SUBSAMPLING_420@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_BIT
	mov	x22, x0
	add	x20, x19, #160
Lloh4:
	adrp	x8, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #36]
Lloh7:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
Lloh13:
	adrp	x8, _V4L2_QUANTIZATION_FULL_RANGE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_QUANTIZATION_FULL_RANGE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
	ldr	w0, [x19]
	mov	x1, x20
	bl	_v4l2_device_register
	cbz	w0, LBB0_3
; %bb.1:
	mov	x23, x0
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_err
	b	LBB0_5
LBB0_3:
	orr	w8, w22, w21
	mvn	w22, w8
	add	x21, x19, #8
	mov	x0, x21
	mov	w1, #2
	bl	_v4l2_ctrl_handler_init
Lloh21:
	adrp	x8, _V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V4L2_CID_JPEG_COMPRESSION_QUALITY@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _ASPEED_VIDEO_JPEG_NUM_QUALITIES@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ASPEED_VIDEO_JPEG_NUM_QUALITIES@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	sub	x4, x8, #1
Lloh27:
	adrp	x23, _aspeed_video_ctrl_ops@GOTPAGE
Lloh28:
	ldr	x23, [x23, _aspeed_video_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x23
	mov	w3, #0
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh29:
	adrp	x8, _V4L2_CID_JPEG_CHROMA_SUBSAMPLING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_CID_JPEG_CHROMA_SUBSAMPLING@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	ldr	w3, [x25]
	ldr	w5, [x24]
	mov	x0, x21
	mov	x1, x23
	mov	x4, x22
	bl	_v4l2_ctrl_new_std_menu
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_v4l2_device_unregister
	ldr	w0, [x19]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	w23, #0
LBB0_5:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
LBB0_6:
	add	x22, x19, #104
	str	x21, [x19, #168]
Lloh34:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh36:
	adrp	x9, _VB2_MMAP@GOTPAGE
Lloh37:
	ldr	x9, [x9, _VB2_MMAP@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x10, _VB2_READ@GOTPAGE
Lloh41:
	ldr	x10, [x10, _VB2_READ@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh43:
	adrp	x10, _VB2_DMABUF@GOTPAGE
Lloh44:
	ldr	x10, [x10, _VB2_DMABUF@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x19, #104]
	ldr	w9, [x19, #160]
	stp	w9, w8, [x19, #152]
	add	x24, x19, #16
Lloh46:
	adrp	x8, _aspeed_video_vb2_ops@GOTPAGE
Lloh47:
	ldr	x8, [x8, _aspeed_video_vb2_ops@GOTPAGEOFF]
	stp	x8, x24, [x19, #136]
Lloh48:
	adrp	x8, _vb2_dma_contig_memops@GOTPAGE
Lloh49:
	ldr	x8, [x8, _vb2_dma_contig_memops@GOTPAGEOFF]
Lloh50:
	adrp	x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh51:
	ldr	x9, [x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
	stp	x19, x8, [x19, #120]
Lloh52:
	ldr	w8, [x9]
	str	w8, [x19, #116]
Lloh53:
	adrp	x8, lCPI0_0@PAGE
Lloh54:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #108]
	mov	x0, x22
	bl	_vb2_queue_init
	cbz	w0, LBB0_8
; %bb.7:
	mov	x23, x0
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_v4l2_device_unregister
	ldr	w0, [x19]
Lloh55:
	adrp	x1, l_.str.2@PAGE
Lloh56:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_8:
	add	x23, x19, #40
Lloh57:
	adrp	x8, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	adrp	x9, _V4L2_CAP_READWRITE@GOTPAGE
Lloh61:
	ldr	x9, [x9, _V4L2_CAP_READWRITE@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh63:
	adrp	x9, _V4L2_CAP_STREAMING@GOTPAGE
Lloh64:
	ldr	x9, [x9, _V4L2_CAP_STREAMING@GOTPAGEOFF]
	str	x22, [x19, #96]
Lloh65:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh66:
	adrp	x9, _aspeed_video_v4l2_fops@GOTPAGE
Lloh67:
	ldr	x9, [x9, _aspeed_video_v4l2_fops@GOTPAGEOFF]
	str	w8, [x19, #40]
	stp	x20, x9, [x19, #80]
	ldr	w0, [x19, #76]
Lloh68:
	adrp	x8, _DEVICE_NAME@GOTPAGE
Lloh69:
	ldr	x8, [x8, _DEVICE_NAME@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strscpy
Lloh71:
	adrp	x25, _VFL_TYPE_GRABBER@GOTPAGE
Lloh72:
	ldr	x25, [x25, _VFL_TYPE_GRABBER@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [x19, #72]
Lloh73:
	adrp	x8, _VFL_DIR_RX@GOTPAGE
Lloh74:
	ldr	x8, [x8, _VFL_DIR_RX@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
Lloh76:
	adrp	x9, _video_device_release_empty@GOTPAGE
Lloh77:
	ldr	x9, [x9, _video_device_release_empty@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
Lloh79:
	adrp	x8, _aspeed_video_ioctl_ops@GOTPAGE
Lloh80:
	ldr	x8, [x8, _aspeed_video_ioctl_ops@GOTPAGEOFF]
	stp	x24, x8, [x19, #48]
	mov	x0, x23
	mov	x1, x19
	bl	_video_set_drvdata
	ldr	w1, [x25]
	mov	x0, x23
	mov	w2, #0
	bl	_video_register_device
	mov	x23, x0
	cbz	w0, LBB0_5
; %bb.9:
	mov	x0, x22
	bl	_vb2_queue_release
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_v4l2_device_unregister
	ldr	w0, [x19]
Lloh81:
	adrp	x1, l_.str.3@PAGE
Lloh82:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdr	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh81, Lloh82
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_JPEG_CHROMA_SUBSAMPLING_444,4,2 ; @V4L2_JPEG_CHROMA_SUBSAMPLING_444
	.comm	_V4L2_JPEG_CHROMA_SUBSAMPLING_420,4,2 ; @V4L2_JPEG_CHROMA_SUBSAMPLING_420
	.comm	_V4L2_PIX_FMT_JPEG,4,2          ; @V4L2_PIX_FMT_JPEG
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_QUANTIZATION_FULL_RANGE,4,2 ; @V4L2_QUANTIZATION_FULL_RANGE
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ; @V4L2_IN_ST_NO_SIGNAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register v4l2 device\n"

	.comm	_aspeed_video_ctrl_ops,4,2      ; @aspeed_video_ctrl_ops
	.comm	_V4L2_CID_JPEG_COMPRESSION_QUALITY,4,2 ; @V4L2_CID_JPEG_COMPRESSION_QUALITY
	.comm	_ASPEED_VIDEO_JPEG_NUM_QUALITIES,8,3 ; @ASPEED_VIDEO_JPEG_NUM_QUALITIES
	.comm	_V4L2_CID_JPEG_CHROMA_SUBSAMPLING,4,2 ; @V4L2_CID_JPEG_CHROMA_SUBSAMPLING
l_.str.1:                               ; @.str.1
	.asciz	"Failed to init controls: %d\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_READ,4,2                   ; @VB2_READ
	.comm	_VB2_DMABUF,4,2                 ; @VB2_DMABUF
	.comm	_aspeed_video_vb2_ops,4,2       ; @aspeed_video_vb2_ops
	.comm	_vb2_dma_contig_memops,4,2      ; @vb2_dma_contig_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
l_.str.2:                               ; @.str.2
	.asciz	"Failed to init vb2 queue\n"

	.comm	_aspeed_video_v4l2_fops,4,2     ; @aspeed_video_v4l2_fops
	.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	_DEVICE_NAME,4,2                ; @DEVICE_NAME
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.comm	_VFL_DIR_RX,4,2                 ; @VFL_DIR_RX
	.comm	_video_device_release_empty,4,2 ; @video_device_release_empty
	.comm	_aspeed_video_ioctl_ops,4,2     ; @aspeed_video_ioctl_ops
l_.str.3:                               ; @.str.3
	.asciz	"Failed to register video device\n"

	.no_dead_strip	_aspeed_video_setup_video
.subsections_via_symbols
