	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mipid02_probe
_mipid02_probe:                         ## @mipid02_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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	64(%rax), %rdi
	callq	_init_format
	movq	%r15, 56(%rbx)
	leaq	8(%rbx), %r14
	movq	_mipid02_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_i2c_subdev_init
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movl	%eax, 52(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.23:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	52(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_22
LBB0_3:
	movl	52(%rbx), %edi
	callq	_clk_get_rate
                                        ## kill: def $eax killed $eax def $rax
	leal	-27000001(%rax), %ecx
	cmpl	$-21000002, %ecx                ## imm = 0xFEBF90BE
	ja	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_22
LBB0_5:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get_optional
	movl	%eax, 48(%rbx)
	movq	%rbx, %rdi
	callq	_mipid02_get_regulators
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_7:
	movq	%rbx, %rdi
	callq	_mutex_init
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
	movq	_MEDIA_ENT_F_VID_IF_BRIDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_mipid02_subdev_entity_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	40(%rbx), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	%rax, 8(%rdx)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdx)
	movq	_MIPID02_PAD_NB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_9:
	movq	%rbx, %rdi
	callq	_mipid02_set_power_on
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.10:
	movq	%rbx, %rdi
	callq	_mipid02_detect
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_12
LBB0_13:
	movq	%rbx, %rdi
	callq	_mipid02_parse_tx_ep
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r12d
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_12
LBB0_15:
	movq	%rbx, %rdi
	callq	_mipid02_parse_rx_ep
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r12d
	leaq	L_.str.8(%rip), %rsi
LBB0_12:
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_19:
	movq	%rbx, %rdi
	callq	_mipid02_set_power_off
LBB0_20:
	movq	%r14, %rdi
	callq	_media_entity_cleanup
LBB0_21:
	movq	%rbx, %rdi
	callq	_mutex_destroy
LBB0_22:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r14, %rdi
	callq	_v4l2_async_register_subdev
	testl	%eax, %eax
	js	LBB0_18
## %bb.24:
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_22
LBB0_18:
	movl	%eax, %r12d
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %r15
	addq	$32, %r15
	movq	%r15, %rdi
	callq	_v4l2_async_notifier_unregister
	movq	%r15, %rdi
	callq	_v4l2_async_notifier_cleanup
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mipid02_subdev_ops,4,2         ## @mipid02_subdev_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xclk"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get xclk\n"

L_.str.2:                               ## @.str.2
	.asciz	"xclk freq must be in 6-27 Mhz range. got %d Hz\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.4:                               ## @.str.4
	.asciz	"failed to get regulators %d"

	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_ENT_F_VID_IF_BRIDGE,4,2  ## @MEDIA_ENT_F_VID_IF_BRIDGE
	.comm	_mipid02_subdev_entity_ops,4,2  ## @mipid02_subdev_entity_ops
	.comm	_MEDIA_PAD_FL_SINK,8,3          ## @MEDIA_PAD_FL_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,8,3        ## @MEDIA_PAD_FL_SOURCE
	.comm	_MIPID02_PAD_NB,4,2             ## @MIPID02_PAD_NB
L_.str.5:                               ## @.str.5
	.asciz	"pads init failed %d"

L_.str.6:                               ## @.str.6
	.asciz	"failed to detect mipid02 %d"

L_.str.7:                               ## @.str.7
	.asciz	"failed to parse tx %d"

L_.str.8:                               ## @.str.8
	.asciz	"failed to parse rx %d"

L_.str.9:                               ## @.str.9
	.asciz	"v4l2_async_register_subdev failed %d"

L_.str.10:                              ## @.str.10
	.asciz	"mipid02 device probe successfully"

	.no_dead_strip	_mipid02_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mipid02_probe
_mipid02_probe:                         ; @mipid02_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	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	x19, x0
	add	x0, x0, #64
	bl	_init_format
	str	x20, [x19, #56]
	add	x21, x19, #8
Lloh3:
	adrp	x2, _mipid02_subdev_ops@GOTPAGE
Lloh4:
	ldr	x2, [x2, _mipid02_subdev_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	w0, [x19, #52]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #52]
	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
	b	_PTR_ERR
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #52]
	bl	_clk_get_rate
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w8, #831
	movk	w8, #65124, lsl #16
	mov	w9, #37054
	movk	w9, #65215, lsl #16
	add	w8, w0, w8
	cmp	w8, w9
	b.hi	LBB0_8
; %bb.5:
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@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:
Lloh15:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	w0, [x19, #48]
	mov	x0, x19
	bl	_mipid02_get_regulators
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	bl	_mutex_init
Lloh22:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
Lloh25:
	adrp	x8, _MEDIA_ENT_F_VID_IF_BRIDGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MEDIA_ENT_F_VID_IF_BRIDGE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh28:
	adrp	x8, _mipid02_subdev_entity_ops@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mipid02_subdev_entity_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh30:
	adrp	x8, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x2, [x19, #40]
	str	x9, [x2]
	ldr	x8, [x8]
Lloh32:
	adrp	x9, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	stp	x8, x9, [x2, #8]
Lloh35:
	adrp	x8, _MIPID02_PAD_NB@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MIPID02_PAD_NB@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_media_entity_pads_init
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
	str	x22, [sp]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_22
LBB0_12:
	mov	x0, x19
	bl	_mipid02_set_power_on
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.13:
	mov	x0, x19
	bl	_mipid02_detect
	cbz	w0, LBB0_15
; %bb.14:
	mov	x22, x0
	str	x22, [sp]
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_15:
	mov	x0, x19
	bl	_mipid02_parse_tx_ep
	cbz	w0, LBB0_17
; %bb.16:
	mov	x22, x0
	str	x22, [sp]
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_17:
	mov	x0, x19
	bl	_mipid02_parse_rx_ep
	cbz	w0, LBB0_23
; %bb.18:
	mov	x22, x0
	str	x22, [sp]
Lloh44:
	adrp	x1, l_.str.8@PAGE
Lloh45:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_19:
	mov	x0, x20
	bl	_dev_err
LBB0_20:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	mov	x0, x19
	bl	_mipid02_set_power_off
LBB0_21:
	mov	x0, x21
	bl	_media_entity_cleanup
LBB0_22:
	mov	x0, x19
	bl	_mutex_destroy
	b	LBB0_7
LBB0_23:
	mov	x0, x21
	bl	_v4l2_async_register_subdev
	tbnz	w0, #31, LBB0_25
; %bb.24:
Lloh46:
	adrp	x1, l_.str.10@PAGE
Lloh47:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w22, #0
	b	LBB0_7
LBB0_25:
	mov	x22, x0
	str	x22, [sp]
Lloh48:
	adrp	x1, l_.str.9@PAGE
Lloh49:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	add	x20, x19, #32
	mov	x0, x20
	bl	_v4l2_async_notifier_unregister
	mov	x0, x20
	bl	_v4l2_async_notifier_cleanup
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mipid02_subdev_ops,4,2         ; @mipid02_subdev_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xclk"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get xclk\n"

l_.str.2:                               ; @.str.2
	.asciz	"xclk freq must be in 6-27 Mhz range. got %d Hz\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.4:                               ; @.str.4
	.asciz	"failed to get regulators %d"

	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_ENT_F_VID_IF_BRIDGE,4,2  ; @MEDIA_ENT_F_VID_IF_BRIDGE
	.comm	_mipid02_subdev_entity_ops,4,2  ; @mipid02_subdev_entity_ops
	.comm	_MEDIA_PAD_FL_SINK,8,3          ; @MEDIA_PAD_FL_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,8,3        ; @MEDIA_PAD_FL_SOURCE
	.comm	_MIPID02_PAD_NB,4,2             ; @MIPID02_PAD_NB
l_.str.5:                               ; @.str.5
	.asciz	"pads init failed %d"

l_.str.6:                               ; @.str.6
	.asciz	"failed to detect mipid02 %d"

l_.str.7:                               ; @.str.7
	.asciz	"failed to parse tx %d"

l_.str.8:                               ; @.str.8
	.asciz	"failed to parse rx %d"

l_.str.9:                               ; @.str.9
	.asciz	"v4l2_async_register_subdev failed %d"

l_.str.10:                              ; @.str.10
	.asciz	"mipid02 device probe successfully"

	.no_dead_strip	_mipid02_probe
.subsections_via_symbols
