	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvin_v4l2_register             ## -- Begin function rvin_v4l2_register
	.p2align	4, 0x90
_rvin_v4l2_register:                    ## @rvin_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	_rvin_notify@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	64(%rdi), %r14
	movl	%eax, 64(%rdi)
	movq	%r14, 56(%rdi)
	leaq	100(%rdi), %rax
	movq	%rax, 48(%rdi)
	movl	(%rdi), %ecx
	movl	44(%rdi), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_video_device_release_empty@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	leaq	96(%rbx), %rax
	movq	%rax, 32(%rbx)
	movq	_rvin_fops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_V4L2_CAP_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_V4L2_CAP_READWRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	_RVIN_DEFAULT_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	68(%rbx), %r12
	movl	%eax, 84(%rbx)
	movq	_RVIN_DEFAULT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_RVIN_DEFAULT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_RVIN_DEFAULT_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_RVIN_DEFAULT_COLORSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	88(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_rvin_mc_ioctl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	_rvin_ioctl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_rvin_reset_format
LBB0_3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_rvin_format_align
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_vin_err
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movq	%r15, %rdi
	callq	_video_device_node_name
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_v4l2_info
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rvin_notify,4,2                ## @rvin_notify
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIN%u output"

	.comm	_video_device_release_empty,4,2 ## @video_device_release_empty
	.comm	_rvin_fops,4,2                  ## @rvin_fops
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ## @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_STREAMING,4,2         ## @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_READWRITE,4,2         ## @V4L2_CAP_READWRITE
	.comm	_RVIN_DEFAULT_FORMAT,4,2        ## @RVIN_DEFAULT_FORMAT
	.comm	_RVIN_DEFAULT_WIDTH,4,2         ## @RVIN_DEFAULT_WIDTH
	.comm	_RVIN_DEFAULT_HEIGHT,4,2        ## @RVIN_DEFAULT_HEIGHT
	.comm	_RVIN_DEFAULT_FIELD,4,2         ## @RVIN_DEFAULT_FIELD
	.comm	_RVIN_DEFAULT_COLORSPACE,4,2    ## @RVIN_DEFAULT_COLORSPACE
	.comm	_rvin_mc_ioctl_ops,4,2          ## @rvin_mc_ioctl_ops
	.comm	_rvin_ioctl_ops,4,2             ## @rvin_ioctl_ops
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register video device\n"

L_.str.2:                               ## @.str.2
	.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	_rvin_v4l2_register             ; -- Begin function rvin_v4l2_register
	.p2align	2
_rvin_v4l2_register:                    ; @rvin_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	x20, x0
Lloh0:
	adrp	x8, _rvin_notify@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rvin_notify@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x19, x0
	str	w8, [x19, #64]!
	add	x8, x0, #100
	stp	x8, x19, [x0, #48]
	ldr	w0, [x0, #44]
	ldr	w3, [x20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh5:
	adrp	x8, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _V4L2_CAP_STREAMING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_CAP_STREAMING@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _V4L2_CAP_READWRITE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _V4L2_CAP_READWRITE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	x21, x20
	str	w8, [x21, #8]!
Lloh14:
	adrp	x8, _video_device_release_empty@GOTPAGE
Lloh15:
	ldr	x8, [x8, _video_device_release_empty@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	add	x8, x21, #88
Lloh17:
	adrp	x9, _rvin_fops@GOTPAGE
Lloh18:
	ldr	x9, [x9, _rvin_fops@GOTPAGEOFF]
	stp	x9, x8, [x21, #16]
Lloh19:
	adrp	x8, _RVIN_DEFAULT_FORMAT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RVIN_DEFAULT_FORMAT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _RVIN_DEFAULT_COLORSPACE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RVIN_DEFAULT_COLORSPACE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	mov	x22, x21
	str	w9, [x22, #60]!
Lloh25:
	adrp	x9, _RVIN_DEFAULT_WIDTH@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RVIN_DEFAULT_WIDTH@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #72]
Lloh28:
	adrp	x8, _RVIN_DEFAULT_HEIGHT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RVIN_DEFAULT_HEIGHT@GOTPAGEOFF]
Lloh30:
	adrp	x9, _RVIN_DEFAULT_FIELD@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RVIN_DEFAULT_FIELD@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #64]
	ldr	x8, [x21, #80]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh34:
	adrp	x8, _rvin_mc_ioctl_ops@GOTPAGE
Lloh35:
	ldr	x8, [x8, _rvin_mc_ioctl_ops@GOTPAGEOFF]
	str	x8, [x20, #16]
	b	LBB0_3
LBB0_2:
Lloh36:
	adrp	x8, _rvin_ioctl_ops@GOTPAGE
Lloh37:
	ldr	x8, [x8, _rvin_ioctl_ops@GOTPAGEOFF]
	str	x8, [x20, #16]
	mov	x0, x20
	bl	_rvin_reset_format
LBB0_3:
	mov	x0, x20
	mov	x1, x22
	bl	_rvin_format_align
Lloh38:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #-1
	bl	_video_register_device
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_vin_err
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_video_set_drvdata
	mov	x0, x21
	bl	_video_device_node_name
	mov	x2, x0
Lloh43:
	adrp	x1, l_.str.2@PAGE
Lloh44:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
LBB0_6:
	mov	x0, x22
	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	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_rvin_notify,4,2                ; @rvin_notify
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIN%u output"

	.comm	_video_device_release_empty,4,2 ; @video_device_release_empty
	.comm	_rvin_fops,4,2                  ; @rvin_fops
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ; @V4L2_CAP_VIDEO_CAPTURE
	.comm	_V4L2_CAP_STREAMING,4,2         ; @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_READWRITE,4,2         ; @V4L2_CAP_READWRITE
	.comm	_RVIN_DEFAULT_FORMAT,4,2        ; @RVIN_DEFAULT_FORMAT
	.comm	_RVIN_DEFAULT_WIDTH,4,2         ; @RVIN_DEFAULT_WIDTH
	.comm	_RVIN_DEFAULT_HEIGHT,4,2        ; @RVIN_DEFAULT_HEIGHT
	.comm	_RVIN_DEFAULT_FIELD,4,2         ; @RVIN_DEFAULT_FIELD
	.comm	_RVIN_DEFAULT_COLORSPACE,4,2    ; @RVIN_DEFAULT_COLORSPACE
	.comm	_rvin_mc_ioctl_ops,4,2          ; @rvin_mc_ioctl_ops
	.comm	_rvin_ioctl_ops,4,2             ; @rvin_ioctl_ops
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register video device\n"

l_.str.2:                               ; @.str.2
	.asciz	"Device registered as %s\n"

.subsections_via_symbols
