	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov8856_probe
_ov8856_probe:                          ## @ov8856_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, %r15
	callq	_ov8856_check_hwcfg
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	leaq	8(%rax), %r12
	movq	_ov8856_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r14, %rdi
	callq	_ov8856_identify_module
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_init
	movq	_supported_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r14)
	movq	%r14, %rdi
	callq	_ov8856_init_controls
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_10:
	movq	_ov8856_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r14)
	leaq	16(%r14), %r13
	movq	_ov8856_subdev_entity_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_MEDIA_ENT_F_CAM_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rdx
	addq	$48, %rdx
	movl	%eax, 48(%r14)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_14:
	movl	8(%r14), %edi
	callq	_v4l2_ctrl_handler_free
	movq	%r14, %rdi
	callq	_mutex_destroy
	jmp	LBB0_15
LBB0_12:
	movq	%r12, %rdi
	callq	_v4l2_async_register_subdev_sensor_common
	testl	%eax, %eax
	js	LBB0_13
## %bb.16:
	movq	%r15, %rdi
	callq	_pm_runtime_set_active
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	%r15, %rdi
	callq	_pm_runtime_idle
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_13:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r13, %rdi
	callq	_media_entity_cleanup
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to check HW configuration: %d"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ov8856_subdev_ops,4,2          ## @ov8856_subdev_ops
L_.str.1:                               ## @.str.1
	.asciz	"failed to find sensor: %d"

	.comm	_supported_modes,8,3            ## @supported_modes
L_.str.2:                               ## @.str.2
	.asciz	"failed to init controls: %d"

	.comm	_ov8856_internal_ops,4,2        ## @ov8856_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_ov8856_subdev_entity_ops,4,2   ## @ov8856_subdev_entity_ops
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ## @MEDIA_ENT_F_CAM_SENSOR
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
L_.str.3:                               ## @.str.3
	.asciz	"failed to init entity pads: %d"

L_.str.4:                               ## @.str.4
	.asciz	"failed to register V4L2 subdev: %d"

	.no_dead_strip	_ov8856_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov8856_probe
_ov8856_probe:                          ; @ov8856_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	x19, x0
	bl	_ov8856_check_hwcfg
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_3:
	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_4:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	add	x22, x0, #8
Lloh5:
	adrp	x2, _ov8856_subdev_ops@GOTPAGE
Lloh6:
	ldr	x2, [x2, _ov8856_subdev_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	mov	x0, x20
	bl	_ov8856_identify_module
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_3
LBB0_8:
	mov	x0, x20
	bl	_mutex_init
Lloh12:
	adrp	x8, _supported_modes@GOTPAGE
Lloh13:
	ldr	x8, [x8, _supported_modes@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x20, #56]
	mov	x0, x20
	bl	_ov8856_init_controls
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh17:
	adrp	x8, _ov8856_internal_ops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ov8856_internal_ops@GOTPAGEOFF]
Lloh19:
	adrp	x9, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	mov	x2, x20
	str	w9, [x2, #48]!
	stur	x8, [x2, #-8]
Lloh22:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldur	w9, [x2, #-16]
	orr	w8, w9, w8
	stur	w8, [x2, #-16]
Lloh25:
	adrp	x8, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	mov	x23, x2
	str	w8, [x23, #-32]!
Lloh28:
	adrp	x8, _ov8856_subdev_entity_ops@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ov8856_subdev_entity_ops@GOTPAGEOFF]
	stur	x8, [x2, #-24]
	mov	x0, x23
	mov	w1, #1
	bl	_media_entity_pads_init
	cbz	w0, LBB0_14
; %bb.11:
	mov	x21, x0
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_13:
	ldr	w0, [x20, #8]
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_mutex_destroy
	b	LBB0_3
LBB0_14:
	mov	x0, x22
	bl	_v4l2_async_register_subdev_sensor_common
	tbnz	w0, #31, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_idle
	mov	w21, #0
	b	LBB0_3
LBB0_16:
	mov	x21, x0
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	mov	x0, x23
	bl	_media_entity_cleanup
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to check HW configuration: %d"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ov8856_subdev_ops,4,2          ; @ov8856_subdev_ops
l_.str.1:                               ; @.str.1
	.asciz	"failed to find sensor: %d"

	.comm	_supported_modes,8,3            ; @supported_modes
l_.str.2:                               ; @.str.2
	.asciz	"failed to init controls: %d"

	.comm	_ov8856_internal_ops,4,2        ; @ov8856_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_ov8856_subdev_entity_ops,4,2   ; @ov8856_subdev_entity_ops
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ; @MEDIA_ENT_F_CAM_SENSOR
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
l_.str.3:                               ; @.str.3
	.asciz	"failed to init entity pads: %d"

l_.str.4:                               ; @.str.4
	.asciz	"failed to register V4L2 subdev: %d"

	.no_dead_strip	_ov8856_probe
.subsections_via_symbols
