	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov965x_probe
_ov965x_probe:                          ## @ov965x_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, %rbx
	movq	(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	leaq	_ov965x_probe.ov965x_regmap_config(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_sccb
	movl	%eax, 76(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movl	76(%r15), %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testq	%r14, %r14
	je	LBB0_15
## %bb.8:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:
	movq	%rax, (%r15)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ov965x_configure_gpios_pdata
	testl	%eax, %eax
	js	LBB0_20
LBB0_10:
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_init
	leaq	40(%r15), %r12
	movq	_ov965x_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_i2c_subdev_init
	movl	64(%r15), %edi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	_ov965x_sd_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r15)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movq	_V4L2_SUBDEV_FL_HAS_EVENTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 40(%r15)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	36(%r15), %rdx
	movl	%eax, 36(%r15)
	movq	_MEDIA_ENT_F_CAM_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	44(%r15), %rbx
	movl	%eax, 44(%r15)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_23
## %bb.11:
	movq	%r15, %rdi
	callq	_ov965x_initialize_controls
	testl	%eax, %eax
	js	LBB0_24
## %bb.12:
	movq	%r15, %rdi
	addq	$32, %rdi
	callq	_ov965x_get_default_format
	movq	_ov965x_framesizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movq	_ov965x_intervals@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	%r12, %rdi
	callq	_ov965x_detect_sensor
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_ov965x_update_exposure_ctrl
	movq	%r12, %rdi
	callq	_v4l2_async_register_subdev
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jns	LBB0_6
LBB0_14:
	movl	%eax, %r13d
	movl	48(%r15), %edi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_25
LBB0_15:
	movq	%rbx, %rdi
	callq	_dev_fwnode
	testq	%rax, %rax
	je	LBB0_21
## %bb.16:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 72(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	72(%r15), %edi
	testq	%rax, %rax
	jne	LBB0_3
## %bb.17:
	callq	_clk_get_rate
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_ov965x_configure_gpios
	testl	%eax, %eax
	jns	LBB0_10
LBB0_20:
	movl	%eax, %r13d
	jmp	LBB0_6
LBB0_19:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.2(%rip), %rsi
LBB0_22:
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_23:
	movl	%eax, %r13d
	jmp	LBB0_26
LBB0_24:
	movl	%eax, %r13d
LBB0_25:
	movq	%rbx, %rdi
	callq	_media_entity_cleanup
LBB0_26:
	movq	%r14, %rdi
	callq	_mutex_destroy
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @ov965x_probe.ov965x_regmap_config
_ov965x_probe.ov965x_regmap_config:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	171                             ## 0xab

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate register map\n"

L_.str.1:                               ## @.str.1
	.asciz	"MCLK frequency not specified\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Neither platform data nor device property specified\n"

	.comm	_ov965x_subdev_ops,4,2          ## @ov965x_subdev_ops
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_ov965x_sd_internal_ops,4,2     ## @ov965x_sd_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_V4L2_SUBDEV_FL_HAS_EVENTS,4,2  ## @V4L2_SUBDEV_FL_HAS_EVENTS
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ## @MEDIA_ENT_F_CAM_SENSOR
	.comm	_ov965x_framesizes,8,3          ## @ov965x_framesizes
	.comm	_ov965x_intervals,8,3           ## @ov965x_intervals
	.no_dead_strip	_ov965x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov965x_probe
_ov965x_probe:                          ; @ov965x_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	x21, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, _ov965x_probe.ov965x_regmap_config@PAGE
Lloh4:
	add	x1, x1, _ov965x_probe.ov965x_regmap_config@PAGEOFF
	mov	x0, x21
	bl	_devm_regmap_init_sccb
	str	w0, [x19, #76]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w0, [x19, #76]
LBB0_3:
	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_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	mov	x0, x23
	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_7:
	cbz	x20, LBB0_15
; %bb.8:
	ldr	x8, [x20]
	cbz	x8, LBB0_19
; %bb.9:
	str	x8, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_ov965x_configure_gpios_pdata
	tbnz	w0, #31, LBB0_18
LBB0_10:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_init
	add	x22, x19, #40
Lloh9:
	adrp	x2, _ov965x_subdev_ops@GOTPAGE
Lloh10:
	ldr	x2, [x2, _ov965x_subdev_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x21
	bl	_v4l2_i2c_subdev_init
	ldr	w0, [x19, #64]
Lloh11:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strscpy
Lloh14:
	adrp	x8, _ov965x_sd_internal_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ov965x_sd_internal_ops@GOTPAGEOFF]
Lloh16:
	adrp	x9, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	mov	x21, x19
	str	w9, [x21, #44]!
	stur	x8, [x21, #12]
Lloh19:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh21:
	adrp	x9, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #40]
	orr	w8, w8, w9
	str	w8, [x19, #40]
Lloh25:
	adrp	x8, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	mov	x2, x21
	str	w8, [x2, #-8]!
	mov	x0, x21
	mov	w1, #1
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_22
; %bb.11:
	mov	x0, x19
	bl	_ov965x_initialize_controls
	tbnz	w0, #31, LBB0_23
; %bb.12:
	add	x0, x19, #32
	bl	_ov965x_get_default_format
Lloh28:
	adrp	x8, _ov965x_framesizes@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ov965x_framesizes@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
Lloh31:
	adrp	x9, _ov965x_intervals@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ov965x_intervals@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	mov	x0, x22
	bl	_ov965x_detect_sensor
	tbnz	w0, #31, LBB0_24
; %bb.13:
	mov	x0, x19
	bl	_ov965x_update_exposure_ctrl
	mov	x0, x22
	bl	_v4l2_async_register_subdev
	tbnz	w0, #31, LBB0_24
; %bb.14:
	mov	w23, #0
	b	LBB0_6
LBB0_15:
	mov	x0, x21
	bl	_dev_fwnode
	cbz	x0, LBB0_20
; %bb.16:
	mov	x0, x21
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #72]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #72]
	cbnz	x8, LBB0_3
; %bb.17:
	bl	_clk_get_rate
	str	x0, [x19]
	mov	x0, x19
	bl	_ov965x_configure_gpios
	tbz	w0, #31, LBB0_10
LBB0_18:
	mov	x23, x0
	b	LBB0_6
LBB0_19:
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_21:
	mov	x0, x21
	bl	_dev_err
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_22:
	mov	x23, x0
	b	LBB0_26
LBB0_23:
	mov	x23, x0
	b	LBB0_25
LBB0_24:
	mov	x23, x0
	ldr	w0, [x19, #48]
	bl	_v4l2_ctrl_handler_free
LBB0_25:
	mov	x0, x21
	bl	_media_entity_cleanup
LBB0_26:
	mov	x0, x20
	bl	_mutex_destroy
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ov965x_probe.ov965x_regmap_config
_ov965x_probe.ov965x_regmap_config:
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	171                             ; 0xab

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate register map\n"

l_.str.1:                               ; @.str.1
	.asciz	"MCLK frequency not specified\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Neither platform data nor device property specified\n"

	.comm	_ov965x_subdev_ops,4,2          ; @ov965x_subdev_ops
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_ov965x_sd_internal_ops,4,2     ; @ov965x_sd_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_V4L2_SUBDEV_FL_HAS_EVENTS,4,2  ; @V4L2_SUBDEV_FL_HAS_EVENTS
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_MEDIA_ENT_F_CAM_SENSOR,4,2     ; @MEDIA_ENT_F_CAM_SENSOR
	.comm	_ov965x_framesizes,8,3          ; @ov965x_framesizes
	.comm	_ov965x_intervals,8,3           ; @ov965x_intervals
	.no_dead_strip	_ov965x_probe
.subsections_via_symbols
