	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_fmc2_probe
_stm32_fmc2_probe:                      ## @stm32_fmc2_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$152, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, 144(%rax)
	leaq	48(%rax), %r14
	movq	%r14, %rdi
	callq	_nand_controller_init
	movq	_stm32_fmc2_nand_controller_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r13)
	movq	%r13, %rdi
	callq	_stm32_fmc2_parse_dt
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.3:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 136(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	136(%r13), %rdi
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_40:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	movl	%eax, 128(%r13)
	movq	_FMC2_MAX_CE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_17
## %bb.6:
	movl	$1, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	addl	$3, %ebx
	movq	_FMC2_MAX_CE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_17
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r15d
	movl	%r12d, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_platform_get_resource
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	120(%r13), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	120(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %eax
	movq	112(%r13), %rcx
	movl	%eax, (%rcx,%r12,4)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leal	1(%rbx), %edx
	movq	%r14, %rdi
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	104(%r13), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	104(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %esi
	leal	2(%rbx), %edx
	movq	%r14, %rdi
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	96(%r13), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	96(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	96(%r13), %rax
	jmp	LBB0_10
LBB0_17:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_18
## %bb.21:
	movq	_stm32_fmc2_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r13, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_20
LBB0_18:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	je	LBB0_40
## %bb.19:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_20
LBB0_9:
	movq	120(%r13), %rax
	jmp	LBB0_10
LBB0_23:
	leaq	88(%r13), %rdi
	callq	_init_completion
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 8(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r13), %rdi
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_11
## %bb.24:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
LBB0_20:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_40
LBB0_13:
	movq	104(%r13), %rax
LBB0_10:
	movq	(%rax,%r12,8), %rdi
	jmp	LBB0_11
LBB0_26:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_reset_control_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:
	movq	%r15, %rdi
	callq	_reset_control_assert
	movq	%r15, %rdi
	callq	_reset_control_deassert
LBB0_28:
	movq	%r13, %rdi
	callq	_stm32_fmc2_dma_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.29:
	movq	%r13, %rdi
	callq	_stm32_fmc2_init
	leaq	64(%r13), %r15
	movq	%r15, %rdi
	callq	_nand_to_mtd
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, (%rax)
	movq	%rbx, 80(%r13)
	movq	_NAND_BUSWIDTH_AUTO@GOTPCREL(%rip), %rax
	movq	_NAND_NO_SUBPAGE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NAND_USE_BOUNCE_BUFFER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, 64(%r13)
	movq	_NAND_ECC_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r13)
	movq	_FMC2_ECC_STEP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r13)
	movq	_FMC2_ECC_BCH8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r13)
	movl	56(%r13), %esi
	movq	%r15, %rdi
	callq	_nand_scan
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.30:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mtd_device_register
	testl	%eax, %eax
	je	LBB0_31
## %bb.32:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_nand_cleanup
	movl	%ebx, %r12d
LBB0_33:
	movq	40(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.34:
	callq	_dma_release_channel
LBB0_35:
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.36:
	callq	_dma_release_channel
LBB0_37:
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.38:
	callq	_dma_release_channel
LBB0_39:
	leaq	20(%r13), %rdi
	callq	_sg_free_table
	movq	%r13, %rdi
	addq	$16, %rdi
	callq	_sg_free_table
	movq	8(%r13), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_40
LBB0_31:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_stm32_fmc2_nand_controller_ops,4,2 ## @stm32_fmc2_nand_controller_ops
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_FMC2_MAX_CE,4,2                ## @FMC2_MAX_CE
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ error missing or invalid\n"

	.comm	_stm32_fmc2_irq,4,2             ## @stm32_fmc2_irq
L_.str.1:                               ## @.str.1
	.asciz	"failed to request irq\n"

L_.str.2:                               ## @.str.2
	.asciz	"can not enable the clock\n"

	.comm	_NAND_BUSWIDTH_AUTO,4,2         ## @NAND_BUSWIDTH_AUTO
	.comm	_NAND_NO_SUBPAGE_WRITE,4,2      ## @NAND_NO_SUBPAGE_WRITE
	.comm	_NAND_USE_BOUNCE_BUFFER,4,2     ## @NAND_USE_BOUNCE_BUFFER
	.comm	_NAND_ECC_HW,4,2                ## @NAND_ECC_HW
	.comm	_FMC2_ECC_STEP_SIZE,4,2         ## @FMC2_ECC_STEP_SIZE
	.comm	_FMC2_ECC_BCH8,4,2              ## @FMC2_ECC_BCH8
	.no_dead_strip	_stm32_fmc2_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_fmc2_probe
_stm32_fmc2_probe:                      ; @stm32_fmc2_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #152
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #144]
	add	x21, x0, #48
	mov	x0, x21
	bl	_nand_controller_init
Lloh3:
	adrp	x8, _stm32_fmc2_nand_controller_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stm32_fmc2_nand_controller_ops@GOTPAGEOFF]
	str	x8, [x19, #48]
	mov	x0, x19
	bl	_stm32_fmc2_parse_dt
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x25, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	x0, [x19, #136]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #136]
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x22]
	str	w8, [x19, #128]
Lloh10:
	adrp	x26, _FMC2_MAX_CE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _FMC2_MAX_CE@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.8:
	mov	x22, #0
	mov	w23, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	add	w23, w23, #3
	ldrsw	x8, [x26]
	cmp	x22, x8
	b.ge	LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x19]
	mov	x0, x22
	bl	_BIT
	tst	w0, w24
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x23
	bl	_platform_get_resource
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	bl	_devm_ioremap_resource
	ldr	x8, [x19, #120]
	lsl	x27, x22, #3
	str	x0, [x8, x27]
	ldr	x8, [x19, #120]
	ldr	x0, [x8, x27]
	bl	_IS_ERR
	cbnz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x24]
	ldr	x9, [x19, #112]
	str	w8, [x9, x22, lsl #2]
	ldr	w1, [x25]
	add	w2, w23, #1
	mov	x0, x20
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	ldr	x8, [x19, #104]
	str	x0, [x8, x27]
	ldr	x8, [x19, #104]
	ldr	x0, [x8, x27]
	bl	_IS_ERR
	cbnz	x0, LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x25]
	add	w2, w23, #2
	mov	x0, x20
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	ldr	x8, [x19, #96]
	str	x0, [x8, x27]
	ldr	x8, [x19, #96]
	ldr	x0, [x8, x27]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.14:
	ldr	x8, [x19, #96]
	b	LBB0_26
LBB0_15:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_18
; %bb.16:
Lloh12:
	adrp	x8, _stm32_fmc2_irq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stm32_fmc2_irq@GOTPAGEOFF]
Lloh14:
	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
	cbz	w0, LBB0_21
; %bb.17:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_18:
Lloh17:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmn	w22, w8
	b.eq	LBB0_6
; %bb.19:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_24
LBB0_20:
	ldr	x8, [x19, #120]
	b	LBB0_26
LBB0_21:
	add	x0, x19, #88
	bl	_init_completion
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbnz	x8, LBB0_4
; %bb.22:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_27
; %bb.23:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_24:
	mov	x0, x20
	bl	_dev_err
	b	LBB0_6
LBB0_25:
	ldr	x8, [x19, #104]
LBB0_26:
	ldr	x0, [x8, x22, lsl #3]
	b	LBB0_4
LBB0_27:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_reset_control_get
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_29
; %bb.28:
	mov	x0, x22
	bl	_reset_control_assert
	mov	x0, x22
	bl	_reset_control_deassert
LBB0_29:
	mov	x0, x19
	bl	_stm32_fmc2_dma_setup
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.30:
	mov	x0, x19
	bl	_stm32_fmc2_init
	add	x23, x19, #64
	mov	x0, x23
	bl	_nand_to_mtd
	mov	x24, x0
	str	x20, [x0]
	str	x21, [x19, #80]
Lloh24:
	adrp	x8, _NAND_BUSWIDTH_AUTO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NAND_BUSWIDTH_AUTO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _NAND_NO_SUBPAGE_WRITE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NAND_NO_SUBPAGE_WRITE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh30:
	adrp	x9, _NAND_USE_BOUNCE_BUFFER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NAND_USE_BOUNCE_BUFFER@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x19, #64]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _NAND_ECC_HW@GOTPAGE
Lloh34:
	ldr	x9, [x9, _NAND_ECC_HW@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _FMC2_ECC_STEP_SIZE@GOTPAGE
Lloh37:
	ldr	x10, [x10, _FMC2_ECC_STEP_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #72]
Lloh39:
	adrp	x9, _FMC2_ECC_BCH8@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FMC2_ECC_BCH8@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #64]
	ldr	w1, [x19, #56]
	mov	x0, x23
	bl	_nand_scan
	mov	x22, x0
	cbnz	w0, LBB0_33
; %bb.31:
	mov	x0, x24
	mov	x1, #0
	mov	w2, #0
	bl	_mtd_device_register
	mov	x22, x0
	cbz	w0, LBB0_40
; %bb.32:
	mov	x0, x23
	bl	_nand_cleanup
LBB0_33:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_35
; %bb.34:
	bl	_dma_release_channel
LBB0_35:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_37
; %bb.36:
	bl	_dma_release_channel
LBB0_37:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_39
; %bb.38:
	bl	_dma_release_channel
LBB0_39:
	add	x0, x19, #20
	bl	_sg_free_table
	add	x0, x19, #16
	bl	_sg_free_table
	ldr	x0, [x19, #8]
	bl	_clk_disable_unprepare
	b	LBB0_6
LBB0_40:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_stm32_fmc2_nand_controller_ops,4,2 ; @stm32_fmc2_nand_controller_ops
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_FMC2_MAX_CE,4,2                ; @FMC2_MAX_CE
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ error missing or invalid\n"

	.comm	_stm32_fmc2_irq,4,2             ; @stm32_fmc2_irq
l_.str.1:                               ; @.str.1
	.asciz	"failed to request irq\n"

l_.str.2:                               ; @.str.2
	.asciz	"can not enable the clock\n"

	.comm	_NAND_BUSWIDTH_AUTO,4,2         ; @NAND_BUSWIDTH_AUTO
	.comm	_NAND_NO_SUBPAGE_WRITE,4,2      ; @NAND_NO_SUBPAGE_WRITE
	.comm	_NAND_USE_BOUNCE_BUFFER,4,2     ; @NAND_USE_BOUNCE_BUFFER
	.comm	_NAND_ECC_HW,4,2                ; @NAND_ECC_HW
	.comm	_FMC2_ECC_STEP_SIZE,4,2         ; @FMC2_ECC_STEP_SIZE
	.comm	_FMC2_ECC_BCH8,4,2              ; @FMC2_ECC_BCH8
	.no_dead_strip	_stm32_fmc2_probe
.subsections_via_symbols
