	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx258_probe
_imx258_probe:                          ## @imx258_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$0, -28(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_device_property_read_u32
	cmpl	$19200000, -28(%rbp)            ## imm = 0x124F800
	jne	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_device_property_read_u32
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	cmpl	$180, -28(%rbp)
	jne	LBB0_1
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	_imx258_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r14, %rdi
	callq	_imx258_identify_module
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	_supported_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	movq	%r14, %rdi
	callq	_imx258_init_controls
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movq	_imx258_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	movq	_MEDIA_ENT_F_CAM_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rdx
	addq	$16, %rdx
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_media_entity_pads_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_13:
	movq	%r14, %rdi
	callq	_imx258_free_controls
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	%r14, %rdi
	callq	_v4l2_async_register_subdev_sensor_common
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	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_14
LBB0_12:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_media_entity_cleanup
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-frequency"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"rotation"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_imx258_subdev_ops,4,2          ## @imx258_subdev_ops
	.comm	_supported_modes,8,3            ## @supported_modes
	.comm	_imx258_internal_ops,4,2        ## @imx258_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.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	_imx258_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx258_probe
_imx258_probe:                          ; @imx258_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	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_device_property_read_u32
	ldr	w8, [sp, #12]
	mov	w9, #63488
	movk	w9, #292, lsl #16
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_device_property_read_u32
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w8, [sp, #12]
	cmp	w8, #180
	b.ne	LBB0_8
; %bb.3:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x20, x0
Lloh7:
	adrp	x2, _imx258_subdev_ops@GOTPAGE
Lloh8:
	ldr	x2, [x2, _imx258_subdev_ops@GOTPAGEOFF]
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	mov	x0, x20
	bl	_imx258_identify_module
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.5:
Lloh9:
	adrp	x8, _supported_modes@GOTPAGE
Lloh10:
	ldr	x8, [x8, _supported_modes@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	mov	x0, x20
	bl	_imx258_init_controls
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.6:
Lloh12:
	adrp	x8, _imx258_internal_ops@GOTPAGE
Lloh13:
	ldr	x8, [x8, _imx258_internal_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
Lloh14:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MEDIA_ENT_F_CAM_SENSOR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
Lloh20:
	adrp	x8, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	mov	x2, x20
	str	w8, [x2, #16]!
	mov	x0, x20
	mov	w1, #1
	bl	_media_entity_pads_init
	mov	x21, x0
	cbz	w0, LBB0_12
LBB0_7:
	mov	x0, x20
	bl	_imx258_free_controls
	b	LBB0_10
LBB0_8:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	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
	add	sp, sp, #64
	ret
LBB0_11:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
	mov	x0, x20
	bl	_v4l2_async_register_subdev_sensor_common
	tbnz	w0, #31, LBB0_14
; %bb.13:
	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_10
LBB0_14:
	mov	x21, x0
	mov	x0, x20
	bl	_media_entity_cleanup
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-frequency"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"rotation"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_imx258_subdev_ops,4,2          ; @imx258_subdev_ops
	.comm	_supported_modes,8,3            ; @supported_modes
	.comm	_imx258_internal_ops,4,2        ; @imx258_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.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	_imx258_probe
.subsections_via_symbols
