	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_csi_v4l2_register        ## -- Begin function sun4i_csi_v4l2_register
	.p2align	4, 0x90
_sun4i_csi_v4l2_register:               ## @sun4i_csi_v4l2_register
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	_V4L2_CAP_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rdi)
	leaq	88(%rdi), %rax
	movq	%rax, 56(%rdi)
	leaq	84(%rdi), %rax
	movq	%rax, 48(%rdi)
	movl	44(%rdi), %edi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	_video_device_release_empty@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	leaq	80(%rbx), %rax
	movq	%rax, 32(%rbx)
	movq	_sun4i_csi_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	leaq	68(%rbx), %rsi
	movl	%eax, 76(%rbx)
	movq	_CSI_DEFAULT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_CSI_DEFAULT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	%rbx, %rdi
	callq	__sun4i_csi_try_fmt
	movq	_sun4i_csi_pad_fmt_default@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_sun4i_csi_fops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_sun4i_csi_ioctl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	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
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CAP_VIDEO_CAPTURE_MPLANE,4,2 ## @V4L2_CAP_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_CAP_STREAMING,4,2         ## @V4L2_CAP_STREAMING
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_video_device_release_empty,4,2 ## @video_device_release_empty
	.comm	_sun4i_csi_formats,8,3          ## @sun4i_csi_formats
	.comm	_CSI_DEFAULT_WIDTH,4,2          ## @CSI_DEFAULT_WIDTH
	.comm	_CSI_DEFAULT_HEIGHT,4,2         ## @CSI_DEFAULT_HEIGHT
	.comm	_sun4i_csi_pad_fmt_default,4,2  ## @sun4i_csi_pad_fmt_default
	.comm	_sun4i_csi_fops,4,2             ## @sun4i_csi_fops
	.comm	_sun4i_csi_ioctl_ops,4,2        ## @sun4i_csi_ioctl_ops
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device registered as %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_csi_v4l2_register        ; -- Begin function sun4i_csi_v4l2_register
	.p2align	2
_sun4i_csi_v4l2_register:               ; @sun4i_csi_v4l2_register
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _V4L2_CAP_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CAP_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_CAP_STREAMING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CAP_STREAMING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x20, x0
	str	w8, [x20, #8]!
	add	x8, x0, #88
	add	x9, x0, #84
	stp	x9, x8, [x0, #48]
	ldr	w0, [x0, #44]
Lloh6:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strscpy
Lloh9:
	adrp	x8, _video_device_release_empty@GOTPAGE
Lloh10:
	ldr	x8, [x8, _video_device_release_empty@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	add	x8, x19, #80
	str	x8, [x19, #32]
Lloh12:
	adrp	x8, _sun4i_csi_formats@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sun4i_csi_formats@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _CSI_DEFAULT_WIDTH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CSI_DEFAULT_WIDTH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #72]
Lloh18:
	adrp	x8, _CSI_DEFAULT_HEIGHT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CSI_DEFAULT_HEIGHT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	mov	x1, x19
	str	w8, [x1, #68]!
	mov	x0, x19
	bl	__sun4i_csi_try_fmt
Lloh21:
	adrp	x8, _sun4i_csi_pad_fmt_default@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sun4i_csi_pad_fmt_default@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #64]
Lloh24:
	adrp	x8, _sun4i_csi_fops@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sun4i_csi_fops@GOTPAGEOFF]
Lloh26:
	adrp	x9, _sun4i_csi_ioctl_ops@GOTPAGE
Lloh27:
	ldr	x9, [x9, _sun4i_csi_ioctl_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_video_set_drvdata
Lloh28:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_video_register_device
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w19, [x19]
	mov	x0, x20
	bl	_video_device_node_name
	mov	x2, x0
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CAP_VIDEO_CAPTURE_MPLANE,4,2 ; @V4L2_CAP_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_CAP_STREAMING,4,2         ; @V4L2_CAP_STREAMING
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_video_device_release_empty,4,2 ; @video_device_release_empty
	.comm	_sun4i_csi_formats,8,3          ; @sun4i_csi_formats
	.comm	_CSI_DEFAULT_WIDTH,4,2          ; @CSI_DEFAULT_WIDTH
	.comm	_CSI_DEFAULT_HEIGHT,4,2         ; @CSI_DEFAULT_HEIGHT
	.comm	_sun4i_csi_pad_fmt_default,4,2  ; @sun4i_csi_pad_fmt_default
	.comm	_sun4i_csi_fops,4,2             ; @sun4i_csi_fops
	.comm	_sun4i_csi_ioctl_ops,4,2        ; @sun4i_csi_ioctl_ops
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device registered as %s\n"

.subsections_via_symbols
