	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_camera_probe
_soc_camera_probe:                      ## @soc_camera_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_soc_camera_dev
	movq	%rax, %r12
	movl	12(%rbx), %edi
	callq	_to_soc_camera_host
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_to_soc_camera_link
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_info
	movl	28(%r12), %edi
	movl	8(%r13), %edx
	movl	12(%r13), %esi
	callq	_regulator_bulk_get
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r12, %r15
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_soc_camera_power_set
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	40(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	28(%r15), %edi
	callq	*%rax
LBB0_6:
	movq	(%r14), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	callq	_video_dev_create
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	cmpq	$0, 24(%r13)
	je	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_soc_camera_init_i2c
	testl	%eax, %eax
	js	LBB0_12
## %bb.24:
	xorl	%eax, %eax
LBB0_25:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_soc_camera_init_user_formats
	testl	%eax, %eax
	js	LBB0_26
## %bb.27:
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	(%r15), %edi
	callq	_video_device_shadow_get
	leaq	4(%r12), %rdi
	movq	%rdi, (%rax)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_soc_camera_video_start
	testl	%eax, %eax
	js	LBB0_33
## %bb.28:
	movq	%r15, %rdi
	callq	_soc_camera_to_subdev
	movq	_video@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_g_mbus_fmt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-80(%rbp), %rcx
	movq	%rax, %rdi
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jne	LBB0_30
## %bb.29:
	movaps	-80(%rbp), %xmm0
	movups	%xmm0, 12(%r15)
LBB0_30:
	addq	$8, %r12
	movq	%r15, %rdi
	callq	_to_soc_camera_control
	leaq	8(%rax), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_sysfs_create_link
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
LBB0_32:
	movq	(%r14), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_soc_camera_power_set
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	jmp	LBB0_41
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_41
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_40
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_39
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_38
LBB0_13:
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	cmpq	$0, 16(%r13)
	je	LBB0_15
## %bb.16:
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_request_module
	movq	(%r13), %rcx
LBB0_18:
	leaq	8(%r12), %rsi
	movq	%r13, %rdi
	callq	*%rcx
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_37
## %bb.19:
	movq	%r15, %rdi
	callq	_to_soc_camera_control
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.21:
	movq	%rax, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_dev_get_drvdata
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_25
LBB0_23:
	movq	%r13, %rdi
	callq	*16(%r13)
	jmp	LBB0_37
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_37
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_37
LBB0_26:
	movl	%eax, %ebx
	cmpq	$0, 24(%r13)
	je	LBB0_36
LBB0_35:
	movq	%r15, %rdi
	callq	_soc_camera_free_i2c
	jmp	LBB0_37
LBB0_33:
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_soc_camera_free_user_formats
	cmpq	$0, 24(%r13)
	jne	LBB0_35
LBB0_36:
	movq	%r13, %rdi
	callq	*16(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_module_put
LBB0_37:
	movl	(%r15), %edi
	callq	_video_device_release
LBB0_38:
	movq	(%r14), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
LBB0_39:
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_soc_camera_power_set
LBB0_40:
	movl	8(%r13), %esi
	movl	12(%r13), %edi
	callq	_regulator_bulk_free
LBB0_41:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Probing %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.comm	_video,4,2                      ## @video
	.comm	_g_mbus_fmt,4,2                 ## @g_mbus_fmt
L_.str.1:                               ## @.str.1
	.asciz	"control"

L_.str.2:                               ## @.str.2
	.asciz	"Failed creating the control symlink\n"

	.no_dead_strip	_soc_camera_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_camera_probe
_soc_camera_probe:                      ; @soc_camera_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	x22, x0
	bl	_to_soc_camera_dev
	mov	x20, x0
	ldr	w0, [x22, #12]
	bl	_to_soc_camera_host
	mov	x21, x0
	mov	x0, x20
	bl	_to_soc_camera_link
	mov	x19, x0
	mov	x0, x22
	bl	_dev_name
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	ldr	w0, [x20, #28]
	ldp	w2, w1, [x19, #8]
	bl	_regulator_bulk_get
	tbnz	w0, #31, LBB0_16
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_soc_camera_power_set
	tbnz	w0, #31, LBB0_17
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20, #28]
	blr	x8
LBB0_4:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	tbnz	w0, #31, LBB0_18
; %bb.5:
	mov	x0, x20
	bl	_video_dev_create
	tbnz	w0, #31, LBB0_19
; %bb.6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_20
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_soc_camera_init_i2c
	tbnz	w0, #31, LBB0_30
; %bb.8:
	mov	x23, #0
LBB0_9:
	mov	x0, x20
	bl	_soc_camera_init_user_formats
	tbnz	w0, #31, LBB0_32
; %bb.10:
Lloh2:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	ldr	w0, [x20]
	bl	_video_device_shadow_get
	add	x24, x20, #4
	str	x24, [x0]
	mov	x0, x24
	bl	_mutex_lock
	mov	x0, x20
	bl	_soc_camera_video_start
	tbnz	w0, #31, LBB0_34
; %bb.11:
	mov	x0, x20
	bl	_soc_camera_to_subdev
Lloh5:
	adrp	x8, _video@GOTPAGE
Lloh6:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _g_mbus_fmt@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_mbus_fmt@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, sp
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	q0, [sp]
	stur	q0, [x20, #12]
LBB0_13:
	add	x22, x20, #8
	mov	x0, x20
	bl	_to_soc_camera_control
	add	x1, x0, #8
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_sysfs_create_link
	cbz	x0, LBB0_15
; %bb.14:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
LBB0_15:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_soc_camera_power_set
	mov	x0, x24
	bl	_mutex_unlock
	mov	w22, #0
	b	LBB0_40
LBB0_16:
	mov	x22, x0
	b	LBB0_40
LBB0_17:
	mov	x22, x0
	b	LBB0_39
LBB0_18:
	mov	x22, x0
	b	LBB0_38
LBB0_19:
	mov	x22, x0
	b	LBB0_37
LBB0_20:
	ldr	x8, [x19]
	cbz	x8, LBB0_31
; %bb.21:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_31
; %bb.22:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_24
; %bb.23:
	bl	_request_module
	ldr	x8, [x19]
LBB0_24:
	add	x1, x20, #8
	mov	x0, x19
	blr	x8
	mov	x22, x0
	tbnz	w0, #31, LBB0_36
; %bb.25:
	mov	x0, x20
	bl	_to_soc_camera_control
	cbz	x0, LBB0_29
; %bb.26:
	mov	x23, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_29
; %bb.27:
	mov	x0, x23
	bl	_dev_get_drvdata
	cbz	w0, LBB0_29
; %bb.28:
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_try_module_get
	cbnz	w0, LBB0_9
LBB0_29:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	b	LBB0_36
LBB0_30:
	mov	x22, x0
	b	LBB0_36
LBB0_31:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_36
LBB0_32:
	mov	x22, x0
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_35
LBB0_33:
	mov	x0, x20
	bl	_soc_camera_free_i2c
	b	LBB0_36
LBB0_34:
	mov	x22, x0
	mov	x0, x24
	bl	_mutex_unlock
	mov	x0, x20
	bl	_soc_camera_free_user_formats
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_33
LBB0_35:
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_module_put
LBB0_36:
	ldr	w0, [x20]
	bl	_video_device_release
LBB0_37:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
LBB0_38:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_soc_camera_power_set
LBB0_39:
	ldp	w1, w0, [x19, #8]
	bl	_regulator_bulk_free
LBB0_40:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Probing %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_video,4,2                      ; @video
	.comm	_g_mbus_fmt,4,2                 ; @g_mbus_fmt
l_.str.1:                               ; @.str.1
	.asciz	"control"

l_.str.2:                               ; @.str.2
	.asciz	"Failed creating the control symlink\n"

	.no_dead_strip	_soc_camera_probe
.subsections_via_symbols
