	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s3c_camif_register_video_node  ## -- Begin function s3c_camif_register_video_node
	.p2align	4, 0x90
_s3c_camif_register_video_node:         ## @s3c_camif_register_video_node
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movslq	%esi, %rax
	movq	%rax, %rcx
	shlq	$8, %rcx
	leaq	(%rcx,%rax,8), %r15
	leaq	(%r15,%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r13), %rbx
	addq	$152, %rbx
	leaq	(%r15,%r13), %r14
	addq	$40, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	movl	60(%r13,%r15), %edi
	cmpq	$0, (%r13,%r15)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_s3c_camif_fops@GOTPCREL(%rip), %rax
	movq	%rax, 144(%r13,%r15)
	movq	_s3c_camif_ioctl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 136(%r13,%r15)
	movq	%r12, 128(%r13,%r15)
	movl	$-1, 40(%r13,%r15)
	movq	_video_device_release_empty@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%r13,%r15)
	leaq	4(%r12), %rax
	movq	%rax, 80(%r13,%r15)
	movq	$0, 32(%r13,%r15)
	leaq	(%r15,%r13), %rdi
	addq	$28, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r13), %rdi
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 232(%r13,%r15)
	movq	_VB2_MMAP@GOTPCREL(%rip), %rax
	movq	_VB2_USERPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 156(%r13,%r15)
	movq	_s3c_camif_qops@GOTPCREL(%rip), %rax
	movq	%rax, 224(%r13,%r15)
	movq	_vb2_dma_contig_memops@GOTPCREL(%rip), %rax
	movq	%rax, 216(%r13,%r15)
	movl	$4, 160(%r13,%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 208(%r13,%r15)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 200(%r13,%r15)
	movq	16(%r13,%r15), %rax
	movq	%rax, 192(%r13,%r15)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	%eax, 184(%r13,%r15)
	movq	%rbx, %rdi
	callq	_vb2_queue_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r15,%r13), %rdx
	addq	$12, %rdx
	movl	%eax, 12(%r13,%r15)
	leaq	(%r15,%r13), %r12
	addq	$56, %r12
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_media_entity_pads_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	leaq	(%r15,%r13), %r12
	addq	$8, %r12
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_s3c_camif_video_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, (%rax)
LBB0_4:
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_s3c_camif_video_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, (%rax)
LBB0_6:
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.7:
	movq	%r12, 64(%r13,%r15)
	movq	_V4L2_CAP_STREAMING@GOTPCREL(%rip), %rax
	movq	_V4L2_CAP_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 52(%r13,%r15)
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_free
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_media_entity_cleanup
LBB0_11:
	movq	%r14, %rdi
	callq	_video_device_release
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	(%r15,%r13), %rax
	addq	$60, %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_video_device_node_name
	leaq	L_.str.3(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_v4l2_info
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"camif-%s"

L_.str.1:                               ## @.str.1
	.asciz	"codec"

L_.str.2:                               ## @.str.2
	.asciz	"preview"

	.comm	_s3c_camif_fops,4,2             ## @s3c_camif_fops
	.comm	_s3c_camif_ioctl_ops,4,2        ## @s3c_camif_ioctl_ops
	.comm	_video_device_release_empty,4,2 ## @video_device_release_empty
	.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	_s3c_camif_qops,4,2             ## @s3c_camif_qops
	.comm	_vb2_dma_contig_memops,4,2      ## @vb2_dma_contig_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_s3c_camif_video_ctrl_ops,4,2   ## @s3c_camif_video_ctrl_ops
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
	.comm	_V4L2_CAP_STREAMING,4,2         ## @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ## @V4L2_CAP_VIDEO_CAPTURE
	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
L_.str.3:                               ## @.str.3
	.asciz	"registered %s as /dev/%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s3c_camif_register_video_node  ; -- Begin function s3c_camif_register_video_node
	.p2align	2
_s3c_camif_register_video_node:         ; @s3c_camif_register_video_node
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x20, x0
	ldr	x26, [x0, #8]
	mov	w8, #264
	smaddl	x21, w1, w8, x26
	add	x23, x21, #152
	add	x19, x21, #40
	mov	x0, x19
	mov	w1, #0
	mov	w2, #112
	bl	_memset
	mov	x25, x21
	ldr	w0, [x25, #60]!
	ldr	x8, [x21]
Lloh0:
	adrp	x9, l_.str.2@PAGE
Lloh1:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x3, x10, x9, eq
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	w24, #4
	mov	w1, #4
	bl	_snprintf
Lloh6:
	adrp	x8, _s3c_camif_fops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s3c_camif_fops@GOTPAGEOFF]
	str	x8, [x21, #144]
Lloh8:
	adrp	x8, _s3c_camif_ioctl_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _s3c_camif_ioctl_ops@GOTPAGEOFF]
	stp	x20, x8, [x21, #128]
	mov	w8, #-1
	str	w8, [x21, #40]
Lloh10:
	adrp	x8, _video_device_release_empty@GOTPAGE
Lloh11:
	ldr	x8, [x8, _video_device_release_empty@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #124]
	add	x8, x20, #4
	str	x8, [x21, #80]
	str	xzr, [x21, #32]
	add	x0, x21, #28
	bl	_INIT_LIST_HEAD
	add	x0, x21, #24
	bl	_INIT_LIST_HEAD
	mov	x0, x23
	mov	w1, #0
	mov	w2, #112
	bl	_memset
Lloh13:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x21, #232]
Lloh16:
	adrp	x8, _VB2_MMAP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VB2_MMAP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _VB2_USERPTR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VB2_USERPTR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _s3c_camif_qops@GOTPAGE
Lloh23:
	ldr	x9, [x9, _s3c_camif_qops@GOTPAGEOFF]
	str	x9, [x21, #224]
Lloh24:
	adrp	x9, _vb2_dma_contig_memops@GOTPAGE
Lloh25:
	ldr	x9, [x9, _vb2_dma_contig_memops@GOTPAGEOFF]
	stp	w8, w24, [x21, #156]
	stp	x21, x9, [x21, #208]
Lloh26:
	adrp	x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x21, #200]
	ldr	x8, [x21, #16]
	str	x8, [x21, #192]
	ldr	w8, [x20]
	str	w8, [x21, #184]
	mov	x0, x23
	bl	_vb2_queue_init
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.1:
	sxtw	x27, w22
Lloh29:
	adrp	x8, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	mov	w9, #264
	madd	x2, x27, x9, x26
	str	w8, [x2, #12]!
	add	x22, x2, #44
	mov	x0, x22
	mov	w1, #1
	bl	_media_entity_pads_init
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_video_set_drvdata
	mov	w8, #264
	madd	x8, x27, x8, x26
	add	x23, x8, #8
	mov	x0, x23
	mov	w1, #1
	bl	_v4l2_ctrl_handler_init
Lloh32:
	adrp	x8, _V4L2_CID_HFLIP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _V4L2_CID_HFLIP@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x1, _s3c_camif_video_ctrl_ops@GOTPAGE
Lloh36:
	ldr	x1, [x1, _s3c_camif_video_ctrl_ops@GOTPAGEOFF]
	mov	x0, x23
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	cbz	x0, LBB0_4
; %bb.3:
	str	x21, [x0]
LBB0_4:
Lloh37:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x1, _s3c_camif_video_ctrl_ops@GOTPAGE
Lloh41:
	ldr	x1, [x1, _s3c_camif_video_ctrl_ops@GOTPAGEOFF]
	mov	x0, x23
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	cbz	x0, LBB0_6
; %bb.5:
	str	x21, [x0]
LBB0_6:
	ldr	w24, [x23]
	tbnz	w24, #31, LBB0_9
; %bb.7:
	mov	w8, #264
	madd	x8, x27, x8, x26
	str	x23, [x8, #64]
Lloh42:
	adrp	x9, _V4L2_CAP_STREAMING@GOTPAGE
Lloh43:
	ldr	x9, [x9, _V4L2_CAP_STREAMING@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
Lloh45:
	adrp	x10, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGE
Lloh46:
	ldr	x10, [x10, _V4L2_CAP_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8, #52]
Lloh48:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh49:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_video_register_device
	mov	x24, x0
	cbz	w0, LBB0_12
; %bb.8:
	mov	x0, x23
	bl	_v4l2_ctrl_handler_free
LBB0_9:
	mov	x0, x22
	bl	_media_entity_cleanup
LBB0_10:
	mov	x0, x19
	bl	_video_device_release
LBB0_11:
	mov	x0, x24
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w21, [x25]
	mov	x0, x19
	bl	_video_device_node_name
	mov	x3, x0
Lloh51:
	adrp	x1, l_.str.3@PAGE
Lloh52:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_v4l2_info
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"camif-%s"

l_.str.1:                               ; @.str.1
	.asciz	"codec"

l_.str.2:                               ; @.str.2
	.asciz	"preview"

	.comm	_s3c_camif_fops,4,2             ; @s3c_camif_fops
	.comm	_s3c_camif_ioctl_ops,4,2        ; @s3c_camif_ioctl_ops
	.comm	_video_device_release_empty,4,2 ; @video_device_release_empty
	.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	_s3c_camif_qops,4,2             ; @s3c_camif_qops
	.comm	_vb2_dma_contig_memops,4,2      ; @vb2_dma_contig_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_s3c_camif_video_ctrl_ops,4,2   ; @s3c_camif_video_ctrl_ops
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
	.comm	_V4L2_CAP_STREAMING,4,2         ; @V4L2_CAP_STREAMING
	.comm	_V4L2_CAP_VIDEO_CAPTURE,4,2     ; @V4L2_CAP_VIDEO_CAPTURE
	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
l_.str.3:                               ; @.str.3
	.asciz	"registered %s as /dev/%s\n"

.subsections_via_symbols
