	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov2685_probe
_ov2685_probe:                          ## @ov2685_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%r14, 48(%rax)
	movq	_supported_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 32(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	32(%r15), %edi
	movq	_OV2685_XVCLK_FREQ@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_clk_set_rate
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movl	32(%r15), %edi
	callq	_clk_get_rate
	cmpq	(%r12), %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_11:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get
	movl	%eax, 28(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_13:
	movq	%r15, %rdi
	callq	_ov2685_configure_regulators
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_23
LBB0_15:
	movq	%r15, %rdi
	callq	_mutex_init
	leaq	8(%r15), %r12
	movq	_ov2685_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r15, %rdi
	callq	_ov2685_initialize_controls
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.16:
	movq	%r15, %rdi
	callq	___ov2685_power_on
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ov2685_check_sensor_id
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:
	movq	%r12, %rdi
	callq	_v4l2_async_register_subdev
	testl	%eax, %eax
	je	LBB0_24
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_20:
	movq	%r15, %rdi
	callq	___ov2685_power_off
LBB0_21:
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_v4l2_ctrl_handler_free
LBB0_22:
	movq	%r15, %rdi
	callq	_mutex_destroy
	jmp	LBB0_23
LBB0_24:
	movq	%r14, %rdi
	callq	_pm_runtime_set_active
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_idle
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_supported_modes,8,3            ## @supported_modes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xvclk"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get xvclk\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OV2685_XVCLK_FREQ,8,3          ## @OV2685_XVCLK_FREQ
L_.str.2:                               ## @.str.2
	.asciz	"Failed to set xvclk rate (24MHz)\n"

L_.str.3:                               ## @.str.3
	.asciz	"xvclk mismatched, modes are based on 24MHz\n"

L_.str.4:                               ## @.str.4
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.5:                               ## @.str.5
	.asciz	"Failed to get reset-gpios\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to get power regulators\n"

	.comm	_ov2685_subdev_ops,4,2          ## @ov2685_subdev_ops
L_.str.7:                               ## @.str.7
	.asciz	"v4l2 async register subdev failed\n"

	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ## @MEDIA_ENT_F_CAM_SENSOR
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_ov2685_internal_ops,4,2        ## @ov2685_internal_ops
	.no_dead_strip	_ov2685_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov2685_probe
_ov2685_probe:                          ; @ov2685_probe
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _supported_modes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _supported_modes@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x19, [x0, #40]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, 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
	ret
LBB0_7:
	ldr	w0, [x20, #32]
Lloh14:
	adrp	x22, _OV2685_XVCLK_FREQ@GOTPAGE
Lloh15:
	ldr	x22, [x22, _OV2685_XVCLK_FREQ@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_clk_set_rate
	tbnz	w0, #31, LBB0_12
; %bb.8:
	ldr	w0, [x20, #32]
	bl	_clk_get_rate
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_10:
Lloh18:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	w0, [x20, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_12:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	bl	_ov2685_configure_regulators
	cbz	w0, LBB0_16
; %bb.14:
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_16:
	mov	x0, x20
	bl	_mutex_init
	add	x22, x20, #8
Lloh29:
	adrp	x2, _ov2685_subdev_ops@GOTPAGE
Lloh30:
	ldr	x2, [x2, _ov2685_subdev_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	mov	x0, x20
	bl	_ov2685_initialize_controls
	mov	x21, x0
	cbnz	w0, LBB0_23
; %bb.17:
	mov	x0, x20
	bl	___ov2685_power_on
	mov	x21, x0
	cbnz	w0, LBB0_22
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	bl	_ov2685_check_sensor_id
	mov	x21, x0
	cbnz	w0, LBB0_21
; %bb.19:
	mov	x0, x22
	bl	_v4l2_async_register_subdev
	mov	x21, x0
	cbz	w0, LBB0_24
; %bb.20:
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_21:
	mov	x0, x20
	bl	___ov2685_power_off
LBB0_22:
	add	x0, x20, #4
	bl	_v4l2_ctrl_handler_free
LBB0_23:
	mov	x0, x20
	bl	_mutex_destroy
	b	LBB0_6
LBB0_24:
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_idle
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_supported_modes,8,3            ; @supported_modes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xvclk"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get xvclk\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OV2685_XVCLK_FREQ,8,3          ; @OV2685_XVCLK_FREQ
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set xvclk rate (24MHz)\n"

l_.str.3:                               ; @.str.3
	.asciz	"xvclk mismatched, modes are based on 24MHz\n"

l_.str.4:                               ; @.str.4
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.5:                               ; @.str.5
	.asciz	"Failed to get reset-gpios\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to get power regulators\n"

	.comm	_ov2685_subdev_ops,4,2          ; @ov2685_subdev_ops
l_.str.7:                               ; @.str.7
	.asciz	"v4l2 async register subdev failed\n"

	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ; @MEDIA_ENT_F_CAM_SENSOR
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_ov2685_internal_ops,4,2        ; @ov2685_internal_ops
	.no_dead_strip	_ov2685_probe
.subsections_via_symbols
