	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx319_probe
_imx319_probe:                          ## @imx319_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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_init
	leaq	16(%r12), %r13
	movq	_imx319_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r12, %rdi
	callq	_imx319_identify_module
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_5:
	movq	%r15, %rdi
	callq	_imx319_get_hwcfg
	movq	%rax, 64(%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	_link_freq_menu_items@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_IMX319_LINK_FREQ_INDEX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, (%r12)
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.7:
	movq	8(%rax), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rax,%rbx,8)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_8
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_dev_dbg
	movq	64(%r12), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_16
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_destroy
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_supported_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r12)
	movq	%r12, %rdi
	callq	_imx319_init_controls
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_18:
	movq	_imx319_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r12)
	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, 16(%r12)
	leaq	24(%r12), %rdi
	movq	_imx319_subdev_entity_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	_MEDIA_ENT_F_CAM_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdx
	addq	$48, %rdx
	movl	%eax, 48(%r12)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %esi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_20:
	movl	20(%r12), %edi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_14
LBB0_21:
	movq	%r13, %rdi
	callq	_v4l2_async_register_subdev_sensor_common
	testl	%eax, %eax
	js	LBB0_23
## %bb.22:
	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_23:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_media_entity_cleanup
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_imx319_subdev_ops,4,2          ## @imx319_subdev_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find sensor: %d"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get hwcfg"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_link_freq_menu_items,8,3       ## @link_freq_menu_items
	.comm	_IMX319_LINK_FREQ_INDEX,8,3     ## @IMX319_LINK_FREQ_INDEX
L_.str.2:                               ## @.str.2
	.asciz	"link freq index %d matched"

L_.str.3:                               ## @.str.3
	.asciz	"no link frequency supported"

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

	.comm	_imx319_internal_ops,4,2        ## @imx319_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	_imx319_subdev_entity_ops,4,2   ## @imx319_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.5:                               ## @.str.5
	.asciz	"failed to init entity pads: %d"

	.no_dead_strip	_imx319_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx319_probe
_imx319_probe:                          ; @imx319_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_init
	add	x22, x21, #16
Lloh3:
	adrp	x2, _imx319_subdev_ops@GOTPAGE
Lloh4:
	ldr	x2, [x2, _imx319_subdev_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	mov	x0, x21
	bl	_imx319_identify_module
	cbz	w0, LBB0_4
; %bb.2:
	mov	x23, x0
	str	x23, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_13
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_4:
	mov	x0, x20
	bl	_imx319_get_hwcfg
	str	x0, [x21, #64]
	cbz	x0, LBB0_9
; %bb.5:
Lloh10:
	adrp	x8, _link_freq_menu_items@GOTPAGE
Lloh11:
	ldr	x8, [x8, _link_freq_menu_items@GOTPAGEOFF]
Lloh12:
	adrp	x9, _IMX319_LINK_FREQ_INDEX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IMX319_LINK_FREQ_INDEX@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x21]
	ldr	x9, [x0]
	cbz	x9, LBB0_11
; %bb.6:
	mov	x23, #0
	ldr	x10, [x0, #8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x23, lsl #3]
	cmp	x11, x8
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	cmp	x9, x23
	b.ne	LBB0_7
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dev_dbg
	ldr	x8, [x21, #64]
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_15
LBB0_11:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	mov	x0, x19
	bl	_mutex_destroy
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
Lloh26:
	adrp	x8, _supported_modes@GOTPAGE
Lloh27:
	ldr	x8, [x8, _supported_modes@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x21, #56]
	mov	x0, x21
	bl	_imx319_init_controls
	cbz	w0, LBB0_17
; %bb.16:
	mov	x23, x0
	str	x23, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_13
LBB0_17:
Lloh31:
	adrp	x8, _imx319_internal_ops@GOTPAGE
Lloh32:
	ldr	x8, [x8, _imx319_internal_ops@GOTPAGEOFF]
Lloh33:
	adrp	x9, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	mov	x2, x21
	str	w9, [x2, #48]!
Lloh36:
	adrp	x9, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
Lloh39:
	adrp	x10, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGE
Lloh40:
	ldr	x10, [x10, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldur	w10, [x2, #-32]
	orr	w9, w9, w10
	stur	w9, [x2, #-32]
Lloh42:
	adrp	x9, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGE
Lloh43:
	ldr	x9, [x9, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	mov	x24, x2
	str	w9, [x24, #-24]!
Lloh45:
	adrp	x9, _imx319_subdev_entity_ops@GOTPAGE
Lloh46:
	ldr	x9, [x9, _imx319_subdev_entity_ops@GOTPAGEOFF]
	stp	x9, x8, [x2, #-16]
	mov	x0, x24
	mov	w1, #1
	bl	_media_entity_pads_init
	cbz	w0, LBB0_20
; %bb.18:
	mov	x23, x0
	str	x23, [sp]
Lloh47:
	adrp	x1, l_.str.5@PAGE
Lloh48:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_19:
	ldr	w0, [x21, #20]
	bl	_v4l2_ctrl_handler_free
	b	LBB0_13
LBB0_20:
	mov	x0, x22
	bl	_v4l2_async_register_subdev_sensor_common
	tbnz	w0, #31, LBB0_22
; %bb.21:
	mov	x0, x20
	bl	_pm_runtime_set_active
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_pm_runtime_idle
	mov	w23, #0
	b	LBB0_14
LBB0_22:
	mov	x23, x0
	mov	x0, x24
	bl	_media_entity_cleanup
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_imx319_subdev_ops,4,2          ; @imx319_subdev_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find sensor: %d"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get hwcfg"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_link_freq_menu_items,8,3       ; @link_freq_menu_items
	.comm	_IMX319_LINK_FREQ_INDEX,8,3     ; @IMX319_LINK_FREQ_INDEX
l_.str.2:                               ; @.str.2
	.asciz	"link freq index %d matched"

l_.str.3:                               ; @.str.3
	.asciz	"no link frequency supported"

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

	.comm	_imx319_internal_ops,4,2        ; @imx319_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	_imx319_subdev_entity_ops,4,2   ; @imx319_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.5:                               ; @.str.5
	.asciz	"failed to init entity pads: %d"

	.no_dead_strip	_imx319_probe
.subsections_via_symbols
