	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_probe
_fimc_probe:                            ## @fimc_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
	leaq	8(%rdi), %r14
	movq	$0, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movq	%r15, 48(%rax)
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.2:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_fimc_parse_dt
	testl	%eax, %eax
	js	LBB0_18
## %bb.3:
	movq	16(%r12), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_5:
	movq	%r15, %rdi
	callq	_fimc_get_drvdata
	movq	%rax, 16(%r12)
	movl	(%r15), %ecx
	movl	%ecx, (%r12)
LBB0_6:
	movl	(%r12), %edx
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	testl	%edx, %edx
	js	LBB0_13
## %bb.8:
	cmpl	(%rax), %edx
	jge	LBB0_13
## %bb.9:
	cmpq	$0, (%r14)
	jne	LBB0_11
## %bb.10:
	movq	16(%rax), %rax
	movl	(%rax,%rdx,4), %eax
	movl	%eax, 44(%r12)
LBB0_11:
	leaq	40(%r12), %rdi
	callq	_init_waitqueue_head
	leaq	36(%r12), %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	movq	(%r14), %rdi
	callq	_fimc_get_sysreg_regmap
	movl	%eax, 28(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movl	28(%r12), %edi
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_15:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 24(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movl	24(%r12), %edi
LBB0_17:
	callq	_PTR_ERR
LBB0_18:
	movl	%eax, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_31
## %bb.21:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_fimc_clk_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.22:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	jne	LBB0_24
## %bb.23:
	movq	16(%r12), %rax
	movq	8(%rax), %rsi
	movq	%rsi, -48(%rbp)
LBB0_24:
	movq	8(%r12), %rax
	movq	_CLK_BUS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_set_rate
	testl	%eax, %eax
	js	LBB0_18
## %bb.25:
	movq	8(%r12), %rax
	movq	_CLK_BUS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_enable
	testl	%eax, %eax
	js	LBB0_18
## %bb.26:
	movl	(%r13), %r13d
	movq	_fimc_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_34
## %bb.27:
	movq	%r12, %rdi
	callq	_fimc_initialize_capture_subdev
	testl	%eax, %eax
	movq	_CLK_BUS@GOTPCREL(%rip), %r13
	js	LBB0_35
## %bb.28:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_enabled
	testl	%eax, %eax
	jne	LBB0_30
## %bb.29:
	movq	8(%r12), %rax
	movq	_CLK_GATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_enable
	testl	%eax, %eax
	js	LBB0_36
LBB0_30:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_vb2_dma_contig_set_max_seg_size
	movslq	(%r12), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_31:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_34:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_CLK_BUS@GOTPCREL(%rip), %r13
	jmp	LBB0_37
LBB0_35:
	movl	%eax, %ebx
	jmp	LBB0_37
LBB0_36:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_fimc_unregister_capture_subdev
LBB0_37:
	movq	8(%r12), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_clk_disable
	movq	%r12, %rdi
	callq	_fimc_clk_put
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid driver data or device id (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get IRQ resource\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_CLK_BUS,8,3                    ## @CLK_BUS
	.comm	_fimc_irq_handler,4,2           ## @fimc_irq_handler
L_.str.2:                               ## @.str.2
	.asciz	"failed to install irq (%d)\n"

	.comm	_CLK_GATE,8,3                   ## @CLK_GATE
L_.str.3:                               ## @.str.3
	.asciz	"FIMC.%d registered successfully\n"

	.no_dead_strip	_fimc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_probe
_fimc_probe:                            ; @fimc_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	x21, x0
	add	x20, x0, #8
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	x21, [x0, #48]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_fimc_parse_dt
	tbnz	w0, #31, LBB0_29
; %bb.3:
	ldr	x0, [x19, #16]
	ldr	w8, [x19]
	cbnz	x0, LBB0_6
	b	LBB0_12
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	mov	x0, x21
	bl	_fimc_get_drvdata
	str	x0, [x19, #16]
	ldr	w8, [x21]
	str	w8, [x19]
	ldr	w8, [x19]
	cbz	x0, LBB0_12
LBB0_6:
	tbnz	w8, #31, LBB0_12
; %bb.7:
	ldr	w9, [x0]
	cmp	w8, w9
	b.ge	LBB0_12
; %bb.8:
	ldr	x9, [x20]
	cbnz	x9, LBB0_10
; %bb.9:
	ldr	x9, [x0, #16]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x19, #44]
LBB0_10:
	add	x0, x19, #40
	bl	_init_waitqueue_head
	add	x0, x19, #36
	bl	_spin_lock_init
	add	x0, x19, #32
	bl	_mutex_init
	ldr	x0, [x20]
	bl	_fimc_get_sysreg_regmap
	str	w0, [x19, #28]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w0, [x19, #28]
	b	LBB0_17
LBB0_12:
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	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
LBB0_15:
Lloh9:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.16:
	ldr	w0, [x19, #24]
LBB0_17:
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_14
LBB0_18:
Lloh12:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_30
; %bb.19:
	mov	x23, x0
	mov	x0, x19
	bl	_fimc_clk_get
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.20:
	ldr	x1, [sp, #8]
	cbnz	x1, LBB0_22
; %bb.21:
	ldr	x8, [x19, #16]
	ldr	x1, [x8, #8]
	str	x1, [sp, #8]
LBB0_22:
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x24, _CLK_BUS@GOTPAGE
Lloh16:
	ldr	x24, [x24, _CLK_BUS@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_set_rate
	tbnz	w0, #31, LBB0_29
; %bb.23:
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_enable
	tbnz	w0, #31, LBB0_29
; %bb.24:
	ldr	w22, [x23]
Lloh17:
	adrp	x8, _fimc_irq_handler@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fimc_irq_handler@GOTPAGEOFF]
Lloh19:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x4, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_31
; %bb.25:
	mov	x0, x19
	bl	_fimc_initialize_capture_subdev
	tbnz	w0, #31, LBB0_32
; %bb.26:
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_pm_runtime_enabled
	cbnz	w0, LBB0_28
; %bb.27:
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _CLK_GATE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CLK_GATE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_enable
	tbnz	w0, #31, LBB0_33
LBB0_28:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_vb2_dma_contig_set_max_seg_size
	ldrsw	x2, [x19]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w22, #0
	b	LBB0_14
LBB0_29:
	mov	x22, x0
	b	LBB0_14
LBB0_30:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh27:
	adrp	x8, _ENXIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_31:
	mov	x22, x0
	str	x22, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_34
LBB0_32:
	mov	x22, x0
	b	LBB0_34
LBB0_33:
	mov	x22, x0
	mov	x0, x19
	bl	_fimc_unregister_capture_subdev
LBB0_34:
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
	bl	_clk_disable
	mov	x0, x19
	bl	_fimc_clk_put
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid driver data or device id (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get IRQ resource\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_CLK_BUS,8,3                    ; @CLK_BUS
	.comm	_fimc_irq_handler,4,2           ; @fimc_irq_handler
l_.str.2:                               ; @.str.2
	.asciz	"failed to install irq (%d)\n"

	.comm	_CLK_GATE,8,3                   ; @CLK_GATE
l_.str.3:                               ; @.str.3
	.asciz	"FIMC.%d registered successfully\n"

	.no_dead_strip	_fimc_probe
.subsections_via_symbols
