	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmpcam_probe
_mmpcam_probe:                          ## @mmpcam_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$120, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 112(%rax)
	leaq	104(%rax), %rdi
	callq	_INIT_LIST_HEAD
	movq	_mmpcam_calc_dphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rbx)
	movq	%r14, 88(%rbx)
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movl	(%rsi), %edx
	movl	4(%rsi), %ecx
	movq	8(%rsi), %rax
	movq	%rax, 16(%rbx)
	movq	16(%rsi), %rdi
	movq	%rdi, 24(%rbx)
	movl	24(%rsi), %esi
	movl	%esi, 96(%rbx)
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_4:
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	16(%rbx), %rax
	movl	$2, %ecx
	movl	$3, %edx
LBB0_7:
	movl	%edx, 8(%rbx)
	movl	%ecx, 12(%rbx)
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	24(%rbx), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_19
LBB0_10:
	movl	$0, 32(%rbx)
	movq	_MCAM_ARMADA610@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_B_DMA_sg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movl	72(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	leaq	68(%rbx), %rdi
	callq	_spin_lock_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 64(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	64(%rbx), %edi
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_13:
	movq	%rbx, %r15
	addq	$8, %r15
	movq	%r12, %rdi
	callq	_resource_size
	movl	%eax, 60(%rbx)
	movq	%r15, %rdi
	callq	_mcam_init_clk
	movl	(%r14), %edi
	callq	_of_fwnode_handle
	xorl	%r12d, %r12d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_fwnode_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%rax, %r13
	movq	_V4L2_ASYNC_MATCH_FWNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	%r13, %rdi
	callq	_fwnode_graph_get_remote_port_parent
	movq	%rax, 40(%rbx)
	movq	%r13, %rdi
	callq	_fwnode_handle_put
	movq	%r15, %rdi
	callq	_mccic_register
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.15:
	movl	(%r14), %edi
	movq	_of_clk_src_simple_get@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	56(%rbx), %edx
	callq	_of_clk_add_provider
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_17:
	movq	40(%rbx), %rdi
	callq	_fwnode_handle_put
	movq	%r15, %rdi
	callq	_mccic_shutdown
	jmp	LBB0_5
LBB0_18:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_19:
	movl	4(%rbx), %edi
	jmp	LBB0_12
LBB0_20:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movl	(%rax), %esi
	movl	%esi, (%rbx)
	movq	_mmpcam_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %r8
	movq	%r14, %rdi
	movq	%r15, %r9
	callq	_devm_request_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.22:
	movq	%rbx, %rdi
	callq	_mmpcam_add_device
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_23:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mmpcam_calc_dphy,4,2           ## @mmpcam_calc_dphy
	.comm	_V4L2_MBUS_CSI2_DPHY,8,3        ## @V4L2_MBUS_CSI2_DPHY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mipi"

	.comm	_MCAM_ARMADA610,4,2             ## @MCAM_ARMADA610
	.comm	_B_DMA_sg,4,2                   ## @B_DMA_sg
L_.str.1:                               ## @.str.1
	.asciz	"platform:mmp-camera"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ## @V4L2_ASYNC_MATCH_FWNODE
	.comm	_of_clk_src_simple_get,4,2      ## @of_clk_src_simple_get
L_.str.2:                               ## @.str.2
	.asciz	"can't add DT clock provider\n"

	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.comm	_mmpcam_irq,4,2                 ## @mmpcam_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.3:                               ## @.str.3
	.asciz	"mmp-camera"

	.no_dead_strip	_mmpcam_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mmpcam_probe
lCPI0_0:
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mmpcam_probe:                          ; @mmpcam_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #120
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x21, [x0, #112]
	add	x0, x0, #104
	bl	_INIT_LIST_HEAD
	add	x20, x19, #8
Lloh3:
	adrp	x8, _mmpcam_calc_dphy@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmpcam_calc_dphy@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #100]
	str	x21, [x19, #88]
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_6
; %bb.2:
	ldr	d0, [x9]
	ldp	x8, x10, [x9, #8]
	stp	x8, x10, [x19, #16]
	ldr	w9, [x9, #24]
	str	w9, [x19, #96]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	ldr	x8, [x19, #16]
LBB0_7:
	str	d0, [x20]
Lloh10:
	adrp	x9, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_19
LBB0_10:
	str	wzr, [x19, #32]
Lloh15:
	adrp	x8, _MCAM_ARMADA610@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MCAM_ARMADA610@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _B_DMA_sg@GOTPAGE
Lloh19:
	ldr	x9, [x9, _B_DMA_sg@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #76]
	ldr	w0, [x19, #72]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	add	x0, x19, #68
	bl	_spin_lock_init
Lloh23:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	w0, [x19, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w0, [x19, #64]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_13:
	mov	x0, x22
	bl	_resource_size
	str	w0, [x19, #60]
	mov	x0, x20
	bl	_mcam_init_clk
	ldr	w0, [x21]
	bl	_of_fwnode_handle
	mov	x1, #0
	bl	_fwnode_graph_get_next_endpoint
	cbz	x0, LBB0_18
; %bb.14:
	mov	x22, x0
Lloh26:
	adrp	x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	bl	_fwnode_graph_get_remote_port_parent
	str	x0, [x19, #40]
	mov	x0, x22
	bl	_fwnode_handle_put
	mov	x0, x20
	bl	_mccic_register
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.15:
	ldr	w0, [x21]
Lloh29:
	adrp	x8, _of_clk_src_simple_get@GOTPAGE
Lloh30:
	ldr	x8, [x8, _of_clk_src_simple_get@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [x19, #56]
	bl	_of_clk_add_provider
	cbz	w0, LBB0_20
; %bb.16:
	mov	x22, x0
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_17:
	ldr	x0, [x19, #40]
	bl	_fwnode_handle_put
	mov	x0, x20
	bl	_mccic_shutdown
	b	LBB0_5
LBB0_18:
Lloh34:
	adrp	x8, _ENODEV@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_19:
	ldr	w0, [x19, #4]
	b	LBB0_12
LBB0_20:
Lloh36:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_23
; %bb.21:
	ldr	w1, [x0]
	str	w1, [x19]
Lloh39:
	adrp	x8, _mmpcam_irq@GOTPAGE
Lloh40:
	ldr	x8, [x8, _mmpcam_irq@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
Lloh45:
	adrp	x4, l_.str.3@PAGE
Lloh46:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x5, x20
	bl	_devm_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.22:
	mov	x0, x19
	bl	_mmpcam_add_device
	b	LBB0_5
LBB0_23:
Lloh47:
	adrp	x8, _ENODEV@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mmpcam_calc_dphy,4,2           ; @mmpcam_calc_dphy
	.comm	_V4L2_MBUS_CSI2_DPHY,8,3        ; @V4L2_MBUS_CSI2_DPHY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mipi"

	.comm	_MCAM_ARMADA610,4,2             ; @MCAM_ARMADA610
	.comm	_B_DMA_sg,4,2                   ; @B_DMA_sg
l_.str.1:                               ; @.str.1
	.asciz	"platform:mmp-camera"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ; @V4L2_ASYNC_MATCH_FWNODE
	.comm	_of_clk_src_simple_get,4,2      ; @of_clk_src_simple_get
l_.str.2:                               ; @.str.2
	.asciz	"can't add DT clock provider\n"

	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.comm	_mmpcam_irq,4,2                 ; @mmpcam_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.3:                               ; @.str.3
	.asciz	"mmp-camera"

	.no_dead_strip	_mmpcam_probe
.subsections_via_symbols
