	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_md_probe
_fimc_md_probe:                         ## @fimc_md_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
	subq	$24, %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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	84(%rax), %rdi
	callq	_spin_lock_init
	leaq	80(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, 72(%rbx)
	leaq	32(%rbx), %r14
	movl	48(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_fimc_md_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	%r12, 32(%rbx)
	leaq	16(%rbx), %r15
	movq	%r14, 24(%rbx)
	movq	_fimc_sensor_notify@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	(%r12), %edi
	callq	_fimc_md_is_isp_available
	movl	%eax, 64(%rbx)
	movl	$1, (%rbx)
	movq	%r14, %rdi
	callq	_media_device_init
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_fimc_md_get_clocks
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.5:
	movq	%rbx, %rdi
	callq	_fimc_md_get_pinctrl
	testl	%eax, %eax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	js	LBB0_6
## %bb.8:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %r15
	addq	$56, %r15
	movq	%r15, %rdi
	callq	_v4l2_async_notifier_init
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_fimc_md_register_platform_entities
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.9:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_fimc_md_register_sensor_entities
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:
	movq	_dev_attr_subdev_conf_mode@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_device_create_file
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movq	%rbx, %rdi
	callq	_fimc_md_register_clk_provider
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	xorl	%r13d, %r13d
	cmpq	$0, 8(%rbx)
	jle	LBB0_21
## %bb.14:
	movq	_subdev_notifier_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movq	$0, 8(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_v4l2_async_notifier_register
	testl	%eax, %eax
	je	LBB0_21
## %bb.15:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_fimc_md_unregister_clk_provider
	movl	%r15d, %r13d
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_21
LBB0_3:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_v4l2_err
	jmp	LBB0_21
LBB0_6:
	movl	%eax, %r13d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_19
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dev_err
	jmp	LBB0_19
LBB0_12:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_v4l2_err
LBB0_16:
	movq	_dev_attr_subdev_conf_mode@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_device_remove_file
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_async_notifier_cleanup
LBB0_18:
	movq	%rbx, %rdi
	callq	_fimc_md_unregister_entities
LBB0_19:
	movq	%rbx, %rdi
	callq	_fimc_md_put_clocks
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_20:
	movq	%r14, %rdi
	callq	_media_device_cleanup
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
LBB0_21:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"SAMSUNG S5P FIMC"

	.comm	_fimc_md_ops,4,2                ## @fimc_md_ops
	.comm	_fimc_sensor_notify,4,2         ## @fimc_sensor_notify
L_.str.1:                               ## @.str.1
	.asciz	"s5p-fimc-md"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to register v4l2_device: %d\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.3:                               ## @.str.3
	.asciz	"Failed to get pinctrl: %d\n"

	.comm	_dev_attr_subdev_conf_mode,4,2  ## @dev_attr_subdev_conf_mode
L_.str.4:                               ## @.str.4
	.asciz	"clock provider registration failed\n"

	.comm	_subdev_notifier_ops,4,2        ## @subdev_notifier_ops
	.no_dead_strip	_fimc_md_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_md_probe
_fimc_md_probe:                         ; @fimc_md_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	add	x0, x0, #84
	bl	_spin_lock_init
	add	x0, x19, #80
	bl	_INIT_LIST_HEAD
	str	x22, [x19, #72]
	ldr	w0, [x19, #48]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	mov	x21, x19
	str	x22, [x21, #32]!
Lloh5:
	adrp	x8, _fimc_md_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fimc_md_ops@GOTPAGEOFF]
	mov	x20, x19
	ldr	w0, [x20, #16]!
	str	x8, [x19, #40]
	str	x21, [x19, #24]
Lloh7:
	adrp	x8, _fimc_sensor_notify@GOTPAGE
Lloh8:
	ldr	x8, [x8, _fimc_sensor_notify@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	w0, [x22]
	bl	_fimc_md_is_isp_available
	str	w0, [x19, #64]
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x21
	bl	_media_device_init
	mov	x0, x22
	mov	x1, x20
	bl	_v4l2_device_register
	tbnz	w0, #31, LBB0_12
; %bb.2:
	mov	x0, x19
	bl	_fimc_md_get_clocks
	mov	x23, x0
	cbnz	w0, LBB0_20
; %bb.3:
	mov	x0, x19
	bl	_fimc_md_get_pinctrl
	tbnz	w0, #31, LBB0_13
; %bb.4:
	mov	x0, x22
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x24, x19, #56
	mov	x0, x24
	bl	_v4l2_async_notifier_init
	ldr	w1, [x22]
	mov	x0, x19
	bl	_fimc_md_register_platform_entities
	mov	x23, x0
	cbnz	w0, LBB0_19
; %bb.5:
	mov	x0, x19
	bl	_fimc_md_register_sensor_entities
	mov	x23, x0
	cbnz	w0, LBB0_18
; %bb.6:
Lloh12:
	adrp	x1, _dev_attr_subdev_conf_mode@GOTPAGE
Lloh13:
	ldr	x1, [x1, _dev_attr_subdev_conf_mode@GOTPAGEOFF]
	mov	x0, x22
	bl	_device_create_file
	mov	x23, x0
	cbnz	w0, LBB0_17
; %bb.7:
	mov	x0, x19
	bl	_fimc_md_register_clk_provider
	tbnz	w0, #31, LBB0_15
; %bb.8:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_22
; %bb.9:
Lloh14:
	adrp	x8, _subdev_notifier_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _subdev_notifier_ops@GOTPAGEOFF]
	str	x8, [x19, #56]
	str	xzr, [x19, #8]
	mov	x0, x20
	mov	x1, x24
	bl	_v4l2_async_notifier_register
	mov	x23, x0
	cbz	w0, LBB0_21
; %bb.10:
	mov	x0, x19
	bl	_fimc_md_unregister_clk_provider
	b	LBB0_16
LBB0_11:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_21
LBB0_12:
	mov	x23, x0
	str	x23, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
	b	LBB0_21
LBB0_13:
	mov	x23, x0
Lloh21:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_19
; %bb.14:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_dev_err
	b	LBB0_19
LBB0_15:
	mov	x23, x0
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
LBB0_16:
Lloh28:
	adrp	x1, _dev_attr_subdev_conf_mode@GOTPAGE
Lloh29:
	ldr	x1, [x1, _dev_attr_subdev_conf_mode@GOTPAGEOFF]
	mov	x0, x22
	bl	_device_remove_file
LBB0_17:
	mov	x0, x24
	bl	_v4l2_async_notifier_cleanup
LBB0_18:
	mov	x0, x19
	bl	_fimc_md_unregister_entities
LBB0_19:
	mov	x0, x19
	bl	_fimc_md_put_clocks
LBB0_20:
	mov	x0, x21
	bl	_media_device_cleanup
	mov	x0, x20
	bl	_v4l2_device_unregister
LBB0_21:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_22:
	mov	w23, #0
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.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	"SAMSUNG S5P FIMC"

	.comm	_fimc_md_ops,4,2                ; @fimc_md_ops
	.comm	_fimc_sensor_notify,4,2         ; @fimc_sensor_notify
l_.str.1:                               ; @.str.1
	.asciz	"s5p-fimc-md"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to register v4l2_device: %d\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.3:                               ; @.str.3
	.asciz	"Failed to get pinctrl: %d\n"

	.comm	_dev_attr_subdev_conf_mode,4,2  ; @dev_attr_subdev_conf_mode
l_.str.4:                               ; @.str.4
	.asciz	"clock provider registration failed\n"

	.comm	_subdev_notifier_ops,4,2        ; @subdev_notifier_ops
	.no_dead_strip	_fimc_md_probe
.subsections_via_symbols
