	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov2640_probe
_ov2640_probe:                          ## @ov2640_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, %rbx
	movq	8(%rdi), %r14
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r15), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_7:
	callq	_clk_prepare_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ov2640_probe_dt
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movq	_SVGA_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SVGA_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ov2640_select_win
	movl	%eax, 48(%r15)
	movq	_MEDIA_BUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	leaq	24(%r15), %rdi
	movq	_ov2640_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_v4l2_i2c_subdev_init
	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, 24(%r15)
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_mutex_init
	leaq	8(%r15), %r13
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_v4l2_ctrl_handler_init
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, 16(%r15)
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_ov2640_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_TEST_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ov2640_test_pattern_menu@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	leaq	-1(%rax), %rcx
	movq	_ov2640_test_pattern_menu@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movq	_ov2640_ctrl_ops@GOTPCREL(%rip), %rsi
	movl	%r12d, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_v4l2_ctrl_new_std_menu_items
	movq	%r13, 32(%r15)
	movl	8(%r15), %r12d
	testl	%r12d, %r12d
	jne	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_ov2640_video_probe
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_async_register_subdev
	testl	%eax, %eax
	js	LBB0_12
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %r12d
	movq	%r15, %rdi
	addq	$28, %rdi
	callq	_media_entity_cleanup
LBB0_13:
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_destroy
LBB0_14:
	movl	(%r15), %edi
	callq	_clk_disable_unprepare
LBB0_15:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OV2640: I2C-Adapter doesn't support SMBUS\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"xvclk"

	.comm	_SVGA_WIDTH,4,2                 ## @SVGA_WIDTH
	.comm	_SVGA_HEIGHT,4,2                ## @SVGA_HEIGHT
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ## @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_ov2640_subdev_ops,4,2          ## @ov2640_subdev_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	_ov2640_ctrl_ops,4,2            ## @ov2640_ctrl_ops
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_TEST_PATTERN,4,2      ## @V4L2_CID_TEST_PATTERN
	.comm	_ov2640_test_pattern_menu,4,2   ## @ov2640_test_pattern_menu
L_.str.2:                               ## @.str.2
	.asciz	"OV2640 Probed\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
	.no_dead_strip	_ov2640_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov2640_probe
_ov2640_probe:                          ; @ov2640_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	w0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19]
	cbz	x8, LBB0_8
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_17
LBB0_8:
	bl	_clk_prepare_enable
	mov	x25, x0
	cbnz	w0, LBB0_17
LBB0_9:
	mov	x0, x21
	mov	x1, x19
	bl	_ov2640_probe_dt
	mov	x25, x0
	cbnz	w0, LBB0_16
; %bb.10:
Lloh14:
	adrp	x8, _SVGA_WIDTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SVGA_WIDTH@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _SVGA_HEIGHT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SVGA_HEIGHT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_ov2640_select_win
Lloh20:
	adrp	x8, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #44]
	add	x24, x19, #24
Lloh23:
	adrp	x2, _ov2640_subdev_ops@GOTPAGE
Lloh24:
	ldr	x2, [x2, _ov2640_subdev_ops@GOTPAGEOFF]
	mov	x0, x24
	mov	x1, x21
	bl	_v4l2_i2c_subdev_init
Lloh25:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #24]
	orr	w8, w8, w9
	str	w8, [x19, #24]
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_init
	add	x23, x19, #8
	mov	x0, x23
	mov	w1, #3
	bl	_v4l2_ctrl_handler_init
	str	x22, [x19, #16]
Lloh31:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x25, _ov2640_ctrl_ops@GOTPAGE
Lloh35:
	ldr	x25, [x25, _ov2640_ctrl_ops@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x25
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh36:
	adrp	x8, _V4L2_CID_HFLIP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _V4L2_CID_HFLIP@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x25
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh39:
	adrp	x8, _V4L2_CID_TEST_PATTERN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _V4L2_CID_TEST_PATTERN@GOTPAGEOFF]
Lloh41:
	ldr	w26, [x8]
Lloh42:
	adrp	x27, _ov2640_test_pattern_menu@GOTPAGE
Lloh43:
	ldr	x27, [x27, _ov2640_test_pattern_menu@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_ARRAY_SIZE
	sub	x3, x0, #1
	ldr	w6, [x27]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x26
	mov	w4, #0
	mov	w5, #0
	bl	_v4l2_ctrl_new_std_menu_items
	str	x23, [x19, #32]
	ldr	w25, [x19, #8]
	cbnz	w25, LBB0_15
; %bb.11:
	mov	x0, x21
	bl	_ov2640_video_probe
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	x0, x24
	bl	_v4l2_async_register_subdev
	tbnz	w0, #31, LBB0_14
; %bb.13:
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w25, #0
	b	LBB0_17
LBB0_14:
	mov	x25, x0
	add	x0, x19, #28
	bl	_media_entity_cleanup
LBB0_15:
	mov	x0, x23
	bl	_v4l2_ctrl_handler_free
	mov	x0, x22
	bl	_mutex_destroy
LBB0_16:
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
LBB0_17:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OV2640: I2C-Adapter doesn't support SMBUS\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"xvclk"

	.comm	_SVGA_WIDTH,4,2                 ; @SVGA_WIDTH
	.comm	_SVGA_HEIGHT,4,2                ; @SVGA_HEIGHT
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ; @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_ov2640_subdev_ops,4,2          ; @ov2640_subdev_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	_ov2640_ctrl_ops,4,2            ; @ov2640_ctrl_ops
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_TEST_PATTERN,4,2      ; @V4L2_CID_TEST_PATTERN
	.comm	_ov2640_test_pattern_menu,4,2   ; @ov2640_test_pattern_menu
l_.str.2:                               ; @.str.2
	.asciz	"OV2640 Probed\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
	.no_dead_strip	_ov2640_probe
.subsections_via_symbols
