	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flctl_probe
_flctl_probe:                           ## @flctl_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	$112, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 104(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	104(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_4:
	subl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%rbx), %rax
	addq	$36, %rax
	movq	%rax, 96(%r12)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movq	_flctl_handle_flste@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_10:
	cmpl	$0, (%r14)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_flctl_parse_dt
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_dev_get_platdata
LBB0_13:
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %r15
	addq	$32, %r15
	movq	%r15, %rdi
	callq	_nand_to_mtd
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_nand_set_flash_node
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, (%rbx)
	movq	%r14, 24(%r12)
	movq	16(%r13), %rsi
	movq	%rsi, 8(%r12)
	movl	12(%r13), %eax
	movl	%eax, 16(%r12)
	movl	(%r13), %eax
	movl	%eax, (%r12)
	xorl	%ecx, %ecx
	movq	_STERINTE@GOTPCREL(%rip), %rdx
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:
	movq	_ECERB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:
	orl	(%rdx), %ecx
	movl	%ecx, 4(%r12)
	movl	$20, 40(%r12)
	movq	_flctl_read_byte@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 88(%r12)
	movq	_flctl_write_buf@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 84(%r12)
	movq	_flctl_read_buf@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 80(%r12)
	movq	_flctl_select_chip@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 76(%r12)
	movq	_flctl_cmdfunc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 72(%r12)
	movq	_nand_get_set_features_notsupp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 64(%r12)
	movq	%rcx, 56(%r12)
	movq	_SEL_16BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.17:
	movq	%r13, %rbx
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rcx
	movl	(%r15), %eax
	orl	(%rcx), %eax
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_19:
	movq	%r13, %rbx
	movl	(%r15), %eax
LBB0_20:
	movq	_NAND_BBM_FIRSTPAGE@GOTPCREL(%rip), %rcx
	movq	_NAND_BBM_SECONDPAGE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%eax, %edx
	movl	%edx, 32(%r12)
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_resume
	movq	%r12, %rdi
	callq	_flctl_setup_dma
	movq	_flctl_nand_controller_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r12)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_nand_scan
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.21:
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtd_device_register
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_nand_cleanup
LBB0_23:
	movq	%r12, %rdi
	callq	_flctl_release_dma
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_5
LBB0_24:
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get flste irq data: %d\n"

	.comm	_flctl_handle_flste,4,2         ## @flctl_handle_flste
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"flste"

L_.str.2:                               ## @.str.2
	.asciz	"request interrupt failed.\n"

L_.str.3:                               ## @.str.3
	.asciz	"no setup data defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_STERINTE,4,2                   ## @STERINTE
	.comm	_ECERB,4,2                      ## @ECERB
	.comm	_flctl_read_byte,4,2            ## @flctl_read_byte
	.comm	_flctl_write_buf,4,2            ## @flctl_write_buf
	.comm	_flctl_read_buf,4,2             ## @flctl_read_buf
	.comm	_flctl_select_chip,4,2          ## @flctl_select_chip
	.comm	_flctl_cmdfunc,4,2              ## @flctl_cmdfunc
	.comm	_nand_get_set_features_notsupp,8,3 ## @nand_get_set_features_notsupp
	.comm	_SEL_16BIT,4,2                  ## @SEL_16BIT
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.comm	_NAND_BBM_FIRSTPAGE,4,2         ## @NAND_BBM_FIRSTPAGE
	.comm	_NAND_BBM_SECONDPAGE,4,2        ## @NAND_BBM_SECONDPAGE
	.comm	_flctl_nand_controller_ops,4,2  ## @flctl_nand_controller_ops
	.no_dead_strip	_flctl_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flctl_probe
_flctl_probe:                           ; @flctl_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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #112
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	w0, [x20, #104]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x20, #104]
	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
	b	_PTR_ERR
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_10
LBB0_5:
	ldr	x8, [x21]
	add	x8, x8, #36
	str	x8, [x20, #96]
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x24, x0
	tbnz	w0, #31, LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _flctl_handle_flste@GOTPAGE
Lloh9:
	ldr	x8, [x8, _flctl_handle_flste@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x4, l_.str.1@PAGE
Lloh15:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x24
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_11
; %bb.7:
	mov	x24, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	str	x24, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_dev_err
LBB0_10:
	mov	x0, x24
	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_11:
	ldr	w8, [x19]
	cbz	w8, LBB0_15
; %bb.12:
	mov	x0, x19
	bl	_flctl_parse_dt
	mov	x21, x0
	cbz	x0, LBB0_16
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x22, x20, #32
	mov	x0, x22
	bl	_nand_to_mtd
	mov	x23, x0
	ldr	w1, [x19]
	mov	x0, x22
	bl	_nand_set_flash_node
	str	x19, [x23]
	str	x19, [x20, #24]
	ldr	x8, [x21, #16]
	str	x8, [x20, #8]
	ldr	w9, [x21, #12]
	str	w9, [x20, #16]
	ldr	w9, [x21]
	str	w9, [x20]
Lloh20:
	adrp	x10, _STERINTE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _STERINTE@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	adrp	x11, _ECERB@GOTPAGE
Lloh24:
	ldr	x11, [x11, _ECERB@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	cmp	x8, #0
	csel	w8, wzr, w11, eq
	orr	w8, w8, w10
	str	w8, [x20, #4]
	mov	w8, #20
	str	w8, [x20, #40]
Lloh26:
	adrp	x8, _flctl_read_byte@GOTPAGE
Lloh27:
	ldr	x8, [x8, _flctl_read_byte@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x10, _flctl_write_buf@GOTPAGE
Lloh30:
	ldr	x10, [x10, _flctl_write_buf@GOTPAGEOFF]
	str	w8, [x20, #88]
Lloh31:
	ldr	w8, [x10]
Lloh32:
	adrp	x10, _flctl_read_buf@GOTPAGE
Lloh33:
	ldr	x10, [x10, _flctl_read_buf@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	stp	w10, w8, [x20, #80]
Lloh35:
	adrp	x8, _flctl_select_chip@GOTPAGE
Lloh36:
	ldr	x8, [x8, _flctl_select_chip@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x10, _flctl_cmdfunc@GOTPAGE
Lloh39:
	ldr	x10, [x10, _flctl_cmdfunc@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	stp	w10, w8, [x20, #72]
Lloh41:
	adrp	x8, _nand_get_set_features_notsupp@GOTPAGE
Lloh42:
	ldr	x8, [x8, _nand_get_set_features_notsupp@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	stp	x8, x8, [x20, #56]
Lloh44:
	adrp	x8, _SEL_16BIT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SEL_16BIT@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_17
; %bb.14:
Lloh47:
	adrp	x8, _NAND_BUSWIDTH_16@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	b	LBB0_18
LBB0_15:
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x21, x0
	cbnz	x0, LBB0_13
LBB0_16:
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh52:
	adrp	x8, _EINVAL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_17:
	ldr	w8, [x22]
LBB0_18:
Lloh54:
	adrp	x9, _NAND_BBM_FIRSTPAGE@GOTPAGE
Lloh55:
	ldr	x9, [x9, _NAND_BBM_FIRSTPAGE@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
Lloh57:
	adrp	x10, _NAND_BBM_SECONDPAGE@GOTPAGE
Lloh58:
	ldr	x10, [x10, _NAND_BBM_SECONDPAGE@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x20, #32]
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_resume
	mov	x0, x20
	bl	_flctl_setup_dma
Lloh60:
	adrp	x8, _flctl_nand_controller_ops@GOTPAGE
Lloh61:
	ldr	x8, [x8, _flctl_nand_controller_ops@GOTPAGEOFF]
	str	x8, [x20, #48]
	mov	x0, x22
	mov	w1, #1
	bl	_nand_scan
	mov	x24, x0
	cbnz	w0, LBB0_21
; %bb.19:
	ldp	w2, w1, [x21, #4]
	mov	x0, x23
	bl	_mtd_device_register
	mov	x24, x0
	cbz	w0, LBB0_10
; %bb.20:
	mov	x0, x22
	bl	_nand_cleanup
LBB0_21:
	mov	x0, x20
	bl	_flctl_release_dma
	mov	x0, x19
	bl	_pm_runtime_disable
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get flste irq data: %d\n"

	.comm	_flctl_handle_flste,4,2         ; @flctl_handle_flste
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"flste"

l_.str.2:                               ; @.str.2
	.asciz	"request interrupt failed.\n"

l_.str.3:                               ; @.str.3
	.asciz	"no setup data defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_STERINTE,4,2                   ; @STERINTE
	.comm	_ECERB,4,2                      ; @ECERB
	.comm	_flctl_read_byte,4,2            ; @flctl_read_byte
	.comm	_flctl_write_buf,4,2            ; @flctl_write_buf
	.comm	_flctl_read_buf,4,2             ; @flctl_read_buf
	.comm	_flctl_select_chip,4,2          ; @flctl_select_chip
	.comm	_flctl_cmdfunc,4,2              ; @flctl_cmdfunc
	.comm	_nand_get_set_features_notsupp,8,3 ; @nand_get_set_features_notsupp
	.comm	_SEL_16BIT,4,2                  ; @SEL_16BIT
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.comm	_NAND_BBM_FIRSTPAGE,4,2         ; @NAND_BBM_FIRSTPAGE
	.comm	_NAND_BBM_SECONDPAGE,4,2        ; @NAND_BBM_SECONDPAGE
	.comm	_flctl_nand_controller_ops,4,2  ; @flctl_nand_controller_ops
	.no_dead_strip	_flctl_probe
.subsections_via_symbols
