	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmio_probe
_tmio_probe:                            ## @tmio_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	(%rdi), %rax
	movq	(%rax), %r15
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r12
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	movq	%rax, %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, 120(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	leaq	24(%rbx), %rax
	movq	%rax, 112(%rbx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 104(%rbx)
	movl	(%r13), %edi
	movl	4(%r13), %esi
	subl	%edi, %esi
	incl	%esi
	callq	_ioremap
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%r12), %edi
	movl	%edi, %eax
	andl	$1048575, %eax                  ## imm = 0xFFFFF
	movl	%eax, (%rbx)
	movl	4(%r12), %esi
	subl	%edi, %esi
	incl	%esi
	callq	_ioremap
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tmio_hw_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.9:
	movq	16(%rbx), %rax
	movq	%rax, 96(%rbx)
	movq	%rax, 88(%rbx)
	movq	_tmio_nand_hwcontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_tmio_nand_dev_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_tmio_nand_read_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_tmio_nand_write_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_tmio_nand_read_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_tmio_nand_verify_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_NAND_ECC_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movabsq	$25769804288, %rax              ## imm = 0x600000200
	movq	%rax, 36(%rbx)
	movq	_tmio_nand_enable_hwecc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_tmio_nand_calculate_ecc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_tmio_nand_correct_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movl	16(%r15), %eax
	movl	%eax, 32(%rbx)
LBB0_11:
	movl	$15, 24(%rbx)
	movq	_IRQF_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_dev_name
	movq	_tmio_irq@GOTPCREL(%rip), %rsi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_20
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_24
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_23
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_22
LBB0_13:
	movq	%rbx, %r13
	addq	$104, %r13
	movl	%r15d, 4(%rbx)
	movq	_tmio_nand_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_nand_scan
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_15:
	movq	%r13, %rdi
	callq	_add_mtd_device
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_nand_release
LBB0_18:
	movl	4(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_20:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tmio_hw_stop
LBB0_21:
	movq	16(%rbx), %rdi
	callq	_iounmap
LBB0_22:
	movq	8(%rbx), %rdi
	callq	_iounmap
LBB0_23:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_24:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%r12d, %r12d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NULL platform data!\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"tmio-nand"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_tmio_nand_hwcontrol,4,2        ## @tmio_nand_hwcontrol
	.comm	_tmio_nand_dev_ready,4,2        ## @tmio_nand_dev_ready
	.comm	_tmio_nand_read_byte,4,2        ## @tmio_nand_read_byte
	.comm	_tmio_nand_write_buf,4,2        ## @tmio_nand_write_buf
	.comm	_tmio_nand_read_buf,4,2         ## @tmio_nand_read_buf
	.comm	_tmio_nand_verify_buf,4,2       ## @tmio_nand_verify_buf
	.comm	_NAND_ECC_HW,4,2                ## @NAND_ECC_HW
	.comm	_tmio_nand_enable_hwecc,4,2     ## @tmio_nand_enable_hwecc
	.comm	_tmio_nand_calculate_ecc,4,2    ## @tmio_nand_calculate_ecc
	.comm	_tmio_nand_correct_data,4,2     ## @tmio_nand_correct_data
	.comm	_tmio_irq,4,2                   ## @tmio_irq
	.comm	_IRQF_DISABLED,4,2              ## @IRQF_DISABLED
L_.str.2:                               ## @.str.2
	.asciz	"request_irq error %d\n"

	.comm	_tmio_nand_wait,4,2             ## @tmio_nand_wait
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_part_probes,4,2                ## @part_probes
	.no_dead_strip	_tmio_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 tmio_probe
lCPI0_0:
	.long	512                             ; 0x200
	.long	6                               ; 0x6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tmio_probe:                            ; @tmio_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x25, [x8]
Lloh0:
	adrp	x20, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x23, x0
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	mov	x24, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	cbnz	x25, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #128
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
	str	x19, [x0, #120]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh7:
	adrp	x8, l_.str.1@PAGE
Lloh8:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x22, x20
	str	x8, [x22, #104]!
	sub	x8, x22, #80
	str	x8, [x22, #8]
	ldp	w0, w8, [x24]
	sub	w8, w8, w0
	add	w1, w8, #1
	bl	_ioremap
	stur	x0, [x22, #-96]
	cbz	x0, LBB0_11
; %bb.4:
	ldp	w0, w8, [x23]
	and	w9, w0, #0xfffff
	str	w9, [x20]
	sub	w8, w8, w0
	add	w1, w8, #1
	bl	_ioremap
	str	x0, [x20, #16]
	cbz	x0, LBB0_12
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_tmio_hw_init
	mov	x23, x0
	cbnz	w0, LBB0_20
; %bb.6:
	ldr	x8, [x20, #16]
Lloh9:
	adrp	x9, _tmio_nand_hwcontrol@GOTPAGE
Lloh10:
	ldr	x9, [x9, _tmio_nand_hwcontrol@GOTPAGEOFF]
	stp	x8, x8, [x20, #88]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _tmio_nand_dev_ready@GOTPAGE
Lloh13:
	ldr	x9, [x9, _tmio_nand_dev_ready@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #76]
Lloh15:
	adrp	x8, _tmio_nand_read_byte@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tmio_nand_read_byte@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _tmio_nand_write_buf@GOTPAGE
Lloh19:
	ldr	x9, [x9, _tmio_nand_write_buf@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #68]
Lloh21:
	adrp	x8, _tmio_nand_read_buf@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tmio_nand_read_buf@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _tmio_nand_verify_buf@GOTPAGE
Lloh25:
	ldr	x9, [x9, _tmio_nand_verify_buf@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _NAND_ECC_HW@GOTPAGE
Lloh28:
	ldr	x10, [x10, _NAND_ECC_HW@GOTPAGEOFF]
	stp	w9, w8, [x20, #60]
Lloh29:
	ldr	w8, [x10]
Lloh30:
	adrp	x9, lCPI0_0@PAGE
Lloh31:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
Lloh32:
	adrp	x9, _tmio_nand_enable_hwecc@GOTPAGE
Lloh33:
	ldr	x9, [x9, _tmio_nand_enable_hwecc@GOTPAGEOFF]
	stur	d0, [x20, #36]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #52]
Lloh35:
	adrp	x8, _tmio_nand_calculate_ecc@GOTPAGE
Lloh36:
	ldr	x8, [x8, _tmio_nand_calculate_ecc@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _tmio_nand_correct_data@GOTPAGE
Lloh39:
	ldr	x9, [x9, _tmio_nand_correct_data@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #44]
	cbz	x25, LBB0_8
; %bb.7:
	ldr	w8, [x25, #16]
	str	w8, [x20, #32]
LBB0_8:
	mov	w8, #15
	str	w8, [x20, #24]
Lloh41:
	adrp	x8, _IRQF_DISABLED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQF_DISABLED@GOTPAGEOFF]
Lloh43:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
Lloh44:
	adrp	x1, _tmio_irq@GOTPAGE
Lloh45:
	ldr	x1, [x1, _tmio_irq@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, x23
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_13
; %bb.9:
	mov	x23, x0
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_19
LBB0_10:
Lloh48:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_23
LBB0_11:
Lloh51:
	adrp	x8, _EIO@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_22
LBB0_12:
Lloh54:
	adrp	x8, _EIO@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_21
LBB0_13:
	str	w21, [x20, #4]
Lloh57:
	adrp	x8, _tmio_nand_wait@GOTPAGE
Lloh58:
	ldr	x8, [x8, _tmio_nand_wait@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	mov	x0, x22
	mov	w1, #1
	bl	_nand_scan
	cbz	x0, LBB0_15
; %bb.14:
Lloh60:
	adrp	x8, _ENODEV@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_15:
	mov	x0, x22
	bl	_add_mtd_device
	mov	x23, x0
	cbz	w0, LBB0_23
; %bb.16:
	mov	x0, x22
	bl	_nand_release
LBB0_17:
	ldr	w0, [x20, #4]
	cbz	w0, LBB0_19
; %bb.18:
	mov	x1, x20
	bl	_free_irq
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	bl	_tmio_hw_stop
LBB0_20:
	ldr	x0, [x20, #16]
	bl	_iounmap
LBB0_21:
	ldr	x0, [x20, #8]
	bl	_iounmap
LBB0_22:
	mov	x0, x20
	bl	_kfree
LBB0_23:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdrp	Lloh30, Lloh32
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NULL platform data!\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"tmio-nand"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_tmio_nand_hwcontrol,4,2        ; @tmio_nand_hwcontrol
	.comm	_tmio_nand_dev_ready,4,2        ; @tmio_nand_dev_ready
	.comm	_tmio_nand_read_byte,4,2        ; @tmio_nand_read_byte
	.comm	_tmio_nand_write_buf,4,2        ; @tmio_nand_write_buf
	.comm	_tmio_nand_read_buf,4,2         ; @tmio_nand_read_buf
	.comm	_tmio_nand_verify_buf,4,2       ; @tmio_nand_verify_buf
	.comm	_NAND_ECC_HW,4,2                ; @NAND_ECC_HW
	.comm	_tmio_nand_enable_hwecc,4,2     ; @tmio_nand_enable_hwecc
	.comm	_tmio_nand_calculate_ecc,4,2    ; @tmio_nand_calculate_ecc
	.comm	_tmio_nand_correct_data,4,2     ; @tmio_nand_correct_data
	.comm	_tmio_irq,4,2                   ; @tmio_irq
	.comm	_IRQF_DISABLED,4,2              ; @IRQF_DISABLED
l_.str.2:                               ; @.str.2
	.asciz	"request_irq error %d\n"

	.comm	_tmio_nand_wait,4,2             ; @tmio_nand_wait
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_part_probes,4,2                ; @part_probes
	.no_dead_strip	_tmio_probe
.subsections_via_symbols
