	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7740_probe
_ov7740_probe:                          ## @ov7740_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, %r12
	movq	8(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	leaq	4(%r12), %r15
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movl	%eax, 60(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	60(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ov7740_probe_dt
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ov7740_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 56(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	56(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_10:
	movq	_I2C_CLIENT_SCCB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
	movq	_ov7740_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ov7740_set_power
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	movq	%r15, %rdi
	callq	_pm_runtime_set_active
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_ov7740_detect
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:
	leaq	48(%r14), %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_ov7740_init_controls
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movl	(%r12), %edx
	addl	%edx, %edx
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l_info
	movq	_ov7740_formats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	_ov7740_framesizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
	leaq	24(%r14), %rsi
	movq	%r14, %rdi
	callq	_ov7740_get_default_format
	movq	%r14, %rdi
	callq	_v4l2_async_register_subdev
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	callq	_v4l2_ctrl_handler_free
LBB0_16:
	movq	%r14, %rdi
	callq	_ov7740_free_controls
LBB0_17:
	movq	%r15, %rdi
	callq	_pm_runtime_disable
	movq	%r15, %rdi
	callq	_pm_runtime_set_suspended
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ov7740_set_power
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_media_entity_cleanup
	jmp	LBB0_18
LBB0_14:
	movq	%r15, %rdi
	callq	_pm_runtime_idle
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.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	"OV7740: 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"

L_.str.2:                               ## @.str.2
	.asciz	"OV7740: fail to get xvclk: %d\n"

	.comm	_ov7740_regmap_config,4,2       ## @ov7740_regmap_config
L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_I2C_CLIENT_SCCB,4,2            ## @I2C_CLIENT_SCCB
	.comm	_ov7740_subdev_ops,4,2          ## @ov7740_subdev_ops
L_.str.4:                               ## @.str.4
	.asciz	"chip found @ 0x%02x (%s)\n"

	.comm	_ov7740_formats,8,3             ## @ov7740_formats
	.comm	_ov7740_framesizes,8,3          ## @ov7740_framesizes
	.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	_V4L2_SUBDEV_FL_HAS_EVENTS,4,2  ## @V4L2_SUBDEV_FL_HAS_EVENTS
	.comm	_ov7740_subdev_internal_ops,4,2 ## @ov7740_subdev_internal_ops
	.no_dead_strip	_ov7740_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7740_probe
_ov7740_probe:                          ; @ov7740_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	x21, x0
	ldr	x0, [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]
	bl	_i2c_check_functionality
	add	x19, x21, #4
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w0, [x20, #60]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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_8:
	mov	x0, x21
	mov	x1, x20
	bl	_ov7740_probe_dt
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.9:
Lloh16:
	adrp	x1, _ov7740_regmap_config@GOTPAGE
Lloh17:
	ldr	x1, [x1, _ov7740_regmap_config@GOTPAGEOFF]
	mov	x0, x21
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x20, #56]
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_7
LBB0_11:
Lloh20:
	adrp	x8, _I2C_CLIENT_SCCB@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I2C_CLIENT_SCCB@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
Lloh23:
	adrp	x2, _ov7740_subdev_ops@GOTPAGE
Lloh24:
	ldr	x2, [x2, _ov7740_subdev_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_v4l2_i2c_subdev_init
	mov	x0, x20
	mov	w1, #1
	bl	_ov7740_set_power
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.12:
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_ov7740_detect
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.13:
	add	x0, x20, #48
	bl	_mutex_init
	mov	x0, x20
	bl	_ov7740_init_controls
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.14:
	ldr	w8, [x21]
	lsl	w2, w8, #1
	ldr	x8, [x21, #8]
	ldr	w3, [x8]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_v4l_info
Lloh27:
	adrp	x8, _ov7740_formats@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ov7740_formats@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _ov7740_framesizes@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ov7740_framesizes@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	stp	x9, x8, [x20, #32]
	add	x1, x20, #24
	mov	x0, x20
	bl	_ov7740_get_default_format
	mov	x0, x20
	bl	_v4l2_async_register_subdev
	mov	x22, x0
	cbz	w0, LBB0_18
; %bb.15:
	ldr	w0, [x20, #8]
	bl	_v4l2_ctrl_handler_free
LBB0_16:
	mov	x0, x20
	bl	_ov7740_free_controls
LBB0_17:
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_set_suspended
	mov	x0, x20
	mov	w1, #0
	bl	_ov7740_set_power
	add	x0, x20, #4
	bl	_media_entity_cleanup
	b	LBB0_7
LBB0_18:
	mov	x0, x19
	bl	_pm_runtime_idle
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.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	"OV7740: 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"

l_.str.2:                               ; @.str.2
	.asciz	"OV7740: fail to get xvclk: %d\n"

	.comm	_ov7740_regmap_config,4,2       ; @ov7740_regmap_config
l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate register map: %d\n"

	.comm	_I2C_CLIENT_SCCB,4,2            ; @I2C_CLIENT_SCCB
	.comm	_ov7740_subdev_ops,4,2          ; @ov7740_subdev_ops
l_.str.4:                               ; @.str.4
	.asciz	"chip found @ 0x%02x (%s)\n"

	.comm	_ov7740_formats,8,3             ; @ov7740_formats
	.comm	_ov7740_framesizes,8,3          ; @ov7740_framesizes
	.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	_V4L2_SUBDEV_FL_HAS_EVENTS,4,2  ; @V4L2_SUBDEV_FL_HAS_EVENTS
	.comm	_ov7740_subdev_internal_ops,4,2 ; @ov7740_subdev_internal_ops
	.no_dead_strip	_ov7740_probe
.subsections_via_symbols
