	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c_camif_probe
_s3c_camif_probe:                       ## @s3c_camif_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	leaq	68(%rax), %rdi
	callq	_spin_lock_init
	leaq	64(%r15), %rdi
	callq	_mutex_init
	movq	%r14, 56(%r15)
	testq	%r13, %r13
	je	LBB0_6
## %bb.2:
	cmpq	$0, (%r13)
	je	LBB0_6
## %bb.3:
	cmpq	$0, 8(%r13)
	je	LBB0_6
## %bb.4:
	movq	16(%r13), %rax
	movq	%rax, 40(%r15)
	movups	(%r13), %xmm0
	movups	%xmm0, 24(%r15)
	movq	%r14, %rdi
	callq	_platform_get_device_id
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 48(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	48(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_camif_request_irqs
	testl	%eax, %eax
	js	LBB0_24
## %bb.11:
	xorl	%eax, %eax
	callq	*(%r13)
	testl	%eax, %eax
	js	LBB0_24
## %bb.12:
	movq	%r15, %rdi
	callq	_s3c_camif_create_subdev
	testl	%eax, %eax
	js	LBB0_25
## %bb.13:
	movq	%r15, %rdi
	callq	_camif_clk_get
	testl	%eax, %eax
	js	LBB0_26
## %bb.14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	16(%r15), %rax
	movq	_CLK_CAM@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	40(%r15), %esi
	callq	_clk_set_rate
	movq	16(%r15), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_get_rate
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_info
	movq	%r15, %rdi
	callq	_s3c_camif_set_defaults
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_27
## %bb.15:
	movq	%r15, %rdi
	callq	_camif_media_dev_init
	testl	%eax, %eax
	js	LBB0_29
## %bb.16:
	movq	%r15, %rdi
	callq	_camif_register_sensor
	testl	%eax, %eax
	js	LBB0_28
## %bb.17:
	leaq	4(%r15), %r12
	leaq	8(%r15), %rsi
	movq	%r12, %rdi
	callq	_v4l2_device_register_subdev
	testl	%eax, %eax
	js	LBB0_28
## %bb.18:
	movq	%r12, %rdi
	callq	_v4l2_device_register_subdev_nodes
	testl	%eax, %eax
	js	LBB0_28
## %bb.19:
	movq	%r15, %rdi
	callq	_camif_register_video_nodes
	testl	%eax, %eax
	js	LBB0_28
## %bb.20:
	movq	%r15, %rdi
	callq	_camif_create_media_links
	testl	%eax, %eax
	js	LBB0_28
## %bb.21:
	movq	%r15, %rdi
	callq	_media_device_register
	testl	%eax, %eax
	js	LBB0_28
## %bb.22:
	movq	%r14, %rdi
	callq	_pm_runtime_put
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_24:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_25:
	movl	%eax, %ebx
	jmp	LBB0_33
LBB0_26:
	movl	%eax, %ebx
	jmp	LBB0_32
LBB0_27:
	movl	%eax, %ebx
	jmp	LBB0_31
LBB0_28:
	movl	%eax, %ebx
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_v4l2_device_unregister
	movq	%r15, %rdi
	callq	_media_device_unregister
	movq	%r15, %rdi
	callq	_media_device_cleanup
	movq	%r15, %rdi
	callq	_camif_unregister_media_entities
	jmp	LBB0_30
LBB0_29:
	movl	%eax, %ebx
LBB0_30:
	movq	%r14, %rdi
	callq	_pm_runtime_put
	movq	%r14, %rdi
	callq	_pm_runtime_disable
LBB0_31:
	movq	%r15, %rdi
	callq	_camif_clk_put
LBB0_32:
	movq	%r15, %rdi
	callq	_s3c_camif_unregister_subdev
LBB0_33:
	xorl	%eax, %eax
	callq	*8(%r13)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_CLK_CAM,8,3                    ## @CLK_CAM
L_.str.1:                               ## @.str.1
	.asciz	"sensor clock frequency: %lu\n"

	.no_dead_strip	_s3c_camif_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c_camif_probe
_s3c_camif_probe:                       ; @s3c_camif_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	add	x0, x0, #68
	bl	_spin_lock_init
	add	x0, x19, #64
	bl	_mutex_init
	str	x20, [x19, #56]
	cbz	x23, LBB0_6
; %bb.2:
	ldr	x8, [x23]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	q0, [x23]
	ldr	x8, [x23, #16]
	str	x8, [x19, #40]
	stur	q0, [x19, #24]
	mov	x0, x20
	bl	_platform_get_device_id
	ldr	x8, [x0]
	ldr	w8, [x8]
	str	w8, [x19, #52]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w0, [x19, #48]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_6:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_camif_request_irqs
	tbnz	w0, #31, LBB0_23
; %bb.11:
	ldr	x8, [x23]
	blr	x8
	tbnz	w0, #31, LBB0_23
; %bb.12:
	mov	x0, x19
	bl	_s3c_camif_create_subdev
	tbnz	w0, #31, LBB0_24
; %bb.13:
	mov	x0, x19
	bl	_camif_clk_get
	tbnz	w0, #31, LBB0_25
; %bb.14:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x21, _CLK_CAM@GOTPAGE
Lloh13:
	ldr	x21, [x21, _CLK_CAM@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x19, #40]
	bl	_clk_set_rate
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_get_rate
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	x0, x19
	bl	_s3c_camif_set_defaults
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_26
; %bb.15:
	mov	x0, x19
	bl	_camif_media_dev_init
	tbnz	w0, #31, LBB0_28
; %bb.16:
	mov	x0, x19
	bl	_camif_register_sensor
	tbnz	w0, #31, LBB0_27
; %bb.17:
	add	x22, x19, #4
	add	x1, x19, #8
	mov	x0, x22
	bl	_v4l2_device_register_subdev
	tbnz	w0, #31, LBB0_27
; %bb.18:
	mov	x0, x22
	bl	_v4l2_device_register_subdev_nodes
	tbnz	w0, #31, LBB0_27
; %bb.19:
	mov	x0, x19
	bl	_camif_register_video_nodes
	tbnz	w0, #31, LBB0_27
; %bb.20:
	mov	x0, x19
	bl	_camif_create_media_links
	tbnz	w0, #31, LBB0_27
; %bb.21:
	mov	x0, x19
	bl	_media_device_register
	tbnz	w0, #31, LBB0_27
; %bb.22:
	mov	x0, x20
	bl	_pm_runtime_put
	mov	w21, #0
	b	LBB0_9
LBB0_23:
	mov	x21, x0
	b	LBB0_9
LBB0_24:
	mov	x21, x0
	b	LBB0_32
LBB0_25:
	mov	x21, x0
	b	LBB0_31
LBB0_26:
	mov	x21, x0
	b	LBB0_30
LBB0_27:
	mov	x21, x0
	add	x0, x19, #4
	bl	_v4l2_device_unregister
	mov	x0, x19
	bl	_media_device_unregister
	mov	x0, x19
	bl	_media_device_cleanup
	mov	x0, x19
	bl	_camif_unregister_media_entities
	b	LBB0_29
LBB0_28:
	mov	x21, x0
LBB0_29:
	mov	x0, x20
	bl	_pm_runtime_put
	mov	x0, x20
	bl	_pm_runtime_disable
LBB0_30:
	mov	x0, x19
	bl	_camif_clk_put
LBB0_31:
	mov	x0, x19
	bl	_s3c_camif_unregister_subdev
LBB0_32:
	ldr	x8, [x23, #8]
	blr	x8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_CLK_CAM,8,3                    ; @CLK_CAM
l_.str.1:                               ; @.str.1
	.asciz	"sensor clock frequency: %lu\n"

	.no_dead_strip	_s3c_camif_probe
.subsections_via_symbols
