	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camif_media_dev_init
_camif_media_dev_init:                  ## @camif_media_dev_init
	.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	32(%rdi), %r15
	leaq	16(%rdi), %r14
	movq	8(%rdi), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	44(%rbx), %edi
	movq	_S3C6410_CAMIF_IP_REV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	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
	movl	40(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	%r12d, 32(%rbx)
	movl	(%rbx), %eax
	movl	24(%rbx), %edi
	movl	%eax, 36(%rbx)
	leaq	L_.str.4(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	%r15, 16(%rbx)
	movq	%r15, %rdi
	callq	_media_device_init
	movl	(%rbx), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_device_register           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SAMSUNG S3C%s CAMIF"

	.comm	_S3C6410_CAMIF_IP_REV,4,2       ## @S3C6410_CAMIF_IP_REV
L_.str.1:                               ## @.str.1
	.asciz	"6410"

L_.str.2:                               ## @.str.2
	.asciz	"244X"

L_.str.3:                               ## @.str.3
	.asciz	"platform"

L_.str.4:                               ## @.str.4
	.asciz	"s3c-camif"

	.no_dead_strip	_camif_media_dev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function camif_media_dev_init
_camif_media_dev_init:                  ; @camif_media_dev_init
	.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
	add	x20, x0, #32
	ldr	x8, [x0, #8]
	ldr	w21, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [x19, #44]
Lloh0:
	adrp	x8, _S3C6410_CAMIF_IP_REV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S3C6410_CAMIF_IP_REV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, l_.str.2@PAGE
Lloh4:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh5:
	adrp	x10, l_.str.1@PAGE
Lloh6:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w21, w8
	csel	x3, x10, x9, eq
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	w0, [x19, #40]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	w8, [x19]
	stp	w21, w8, [x19, #32]
	ldr	w0, [x19, #24]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	mov	x21, x19
	str	x20, [x21, #16]!
	mov	x0, x20
	bl	_media_device_init
	ldr	w0, [x19]
	mov	x1, 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
	b	_v4l2_device_register
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SAMSUNG S3C%s CAMIF"

	.comm	_S3C6410_CAMIF_IP_REV,4,2       ; @S3C6410_CAMIF_IP_REV
l_.str.1:                               ; @.str.1
	.asciz	"6410"

l_.str.2:                               ; @.str.2
	.asciz	"244X"

l_.str.3:                               ; @.str.3
	.asciz	"platform"

l_.str.4:                               ; @.str.4
	.asciz	"s3c-camif"

	.no_dead_strip	_camif_media_dev_init
.subsections_via_symbols
