	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov5647_probe
_ov5647_probe:                          ## @ov5647_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_ov5647_parse_dt
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 24(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	24(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	24(%r14), %edi
	callq	_clk_get_rate
	cmpl	$25000000, %eax                 ## imm = 0x17D7840
	jne	LBB0_15
## %bb.11:
	movq	%r14, %rdi
	callq	_mutex_init
	leaq	8(%r14), %r12
	movq	_ov5647_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	_ov5647_subdev_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rdx
	addq	$4, %rdx
	movl	%eax, 4(%r14)
	movq	_MEDIA_ENT_F_CAM_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_16
## %bb.12:
	movq	%r12, %rdi
	callq	_ov5647_detect
	testl	%eax, %eax
	js	LBB0_17
## %bb.13:
	movq	%r12, %rdi
	callq	_v4l2_async_register_subdev
	testl	%eax, %eax
	js	LBB0_17
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_15:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_16:
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_17:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_media_entity_cleanup
LBB0_18:
	movq	%r14, %rdi
	callq	_mutex_destroy
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DT parsing error: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not get xclk"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported clock frequency: %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ov5647_subdev_ops,4,2          ## @ov5647_subdev_ops
	.comm	_ov5647_subdev_internal_ops,4,2 ## @ov5647_subdev_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ## @MEDIA_ENT_F_CAM_SENSOR
L_.str.3:                               ## @.str.3
	.asciz	"OmniVision OV5647 camera driver probed\n"

	.no_dead_strip	_ov5647_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov5647_probe
_ov5647_probe:                          ; @ov5647_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _CONFIG_OF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG_OF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cmp	x0, #0
	ccmp	x21, #0, #4, ne
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_ov5647_parse_dt
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #24]
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	w0, [x20, #24]
	bl	_clk_get_rate
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w8, #30784
	movk	w8, #381, lsl #16
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.10:
	mov	x0, x20
	bl	_mutex_init
	add	x22, x20, #8
Lloh12:
	adrp	x2, _ov5647_subdev_ops@GOTPAGE
Lloh13:
	ldr	x2, [x2, _ov5647_subdev_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
Lloh14:
	adrp	x8, _ov5647_subdev_internal_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ov5647_subdev_internal_ops@GOTPAGEOFF]
Lloh16:
	adrp	x9, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	mov	x2, x20
	str	w9, [x2, #4]!
	stur	x8, [x2, #12]
Lloh19:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x2, #8]
	orr	w8, w9, w8
	str	w8, [x2, #8]
Lloh22:
	adrp	x8, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x22
	mov	w1, #1
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_15
; %bb.11:
	mov	x0, x22
	bl	_ov5647_detect
	tbnz	w0, #31, LBB0_16
; %bb.12:
	mov	x0, x22
	bl	_v4l2_async_register_subdev
	tbnz	w0, #31, LBB0_16
; %bb.13:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w21, #0
	b	LBB0_8
LBB0_14:
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_15:
	mov	x21, x0
	b	LBB0_17
LBB0_16:
	mov	x21, x0
	mov	x0, x22
	bl	_media_entity_cleanup
LBB0_17:
	mov	x0, x20
	bl	_mutex_destroy
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DT parsing error: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not get xclk"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported clock frequency: %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ov5647_subdev_ops,4,2          ; @ov5647_subdev_ops
	.comm	_ov5647_subdev_internal_ops,4,2 ; @ov5647_subdev_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ; @MEDIA_ENT_F_CAM_SENSOR
l_.str.3:                               ; @.str.3
	.asciz	"OmniVision OV5647 camera driver probed\n"

	.no_dead_strip	_ov5647_probe
.subsections_via_symbols
