	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_dev_get_platdata
	movq	%rax, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r15
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$120, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leaq	112(%rax), %rdi
	callq	_init_completion
	movq	%r13, 104(%r14)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	addq	$24, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_nand_to_mtd
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%rax)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, 8(%rax)
	movl	(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_resource_size
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_devm_ioremap
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%r15), %ebx
	movl	%ebx, %eax
	andl	$1048575, %eax                  ## imm = 0xFFFFF
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_resource_size
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_ioremap
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_6
## %bb.8:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_tmio_hw_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.9:
	movq	8(%r14), %rax
	movq	%rax, 64(%r14)
	movq	%rax, 56(%r14)
	movq	_tmio_nand_hwcontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_tmio_nand_dev_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movq	_tmio_nand_read_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	_tmio_nand_write_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_tmio_nand_read_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_NAND_ECC_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r14)
	movabsq	$25769804288, %rax              ## imm = 0x600000200
	movq	%rax, 76(%r14)
	movl	$2, 84(%r14)
	movq	_tmio_nand_enable_hwecc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r14)
	movq	_tmio_nand_calculate_ecc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r14)
	movq	_tmio_nand_correct_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r14)
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movl	24(%r15), %eax
	movl	%eax, 72(%r14)
LBB0_11:
	movl	$15, 24(%r14)
	movq	%r13, %rdi
	callq	_dev_name
	movq	_tmio_irq@GOTPCREL(%rip), %rdx
	movq	%r13, %rdi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_19
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%r12d, 4(%r14)
	movq	_tmio_nand_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movl	$1, %esi
	callq	_nand_scan
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.14:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_15
## %bb.16:
	movq	16(%r15), %rsi
	movq	8(%r15), %rcx
	movl	(%r15), %r8d
	jmp	LBB0_17
LBB0_15:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
LBB0_17:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_mtd_device_parse_register
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_nand_release
	movl	%r15d, %ebx
LBB0_19:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_tmio_hw_stop
	jmp	LBB0_20
	.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	_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
L_.str.2:                               ## @.str.2
	.asciz	"request_irq error %d\n"

	.comm	_tmio_nand_wait,4,2             ## @tmio_nand_wait
	.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	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	x19, x0
	bl	_dev_get_platdata
	mov	x21, x0
Lloh0:
	adrp	x20, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x25, x0
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	mov	x26, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x24, x0
	cbnz	x21, 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	w2, [x8]
	mov	x0, x19
	mov	w1, #120
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.3:
	mov	x20, x0
	add	x0, x0, #112
	bl	_init_completion
	str	x19, [x20, #104]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x22, x20, #24
	mov	x0, x22
	bl	_nand_to_mtd
	mov	x23, x0
Lloh7:
	adrp	x8, l_.str.1@PAGE
Lloh8:
	add	x8, x8, l_.str.1@PAGEOFF
	stp	x8, x19, [x0]
	ldr	w27, [x26]
	mov	x0, x26
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x27
	bl	_devm_ioremap
	str	x0, [x20, #16]
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w26, [x25]
	and	w8, w26, #0xfffff
	str	w8, [x20]
	mov	x0, x25
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x26
	bl	_devm_ioremap
	str	x0, [x20, #8]
	cbz	x0, LBB0_10
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_tmio_hw_init
	mov	x25, x0
	cbnz	w0, LBB0_13
; %bb.6:
	ldr	x8, [x20, #8]
	stp	x8, x8, [x20, #56]
Lloh9:
	adrp	x8, _tmio_nand_hwcontrol@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tmio_nand_hwcontrol@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _tmio_nand_dev_ready@GOTPAGE
Lloh13:
	ldr	x9, [x9, _tmio_nand_dev_ready@GOTPAGEOFF]
	str	w8, [x20, #48]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _tmio_nand_read_byte@GOTPAGE
Lloh16:
	ldr	x9, [x9, _tmio_nand_read_byte@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
Lloh18:
	adrp	x8, _tmio_nand_write_buf@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tmio_nand_write_buf@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _tmio_nand_read_buf@GOTPAGE
Lloh22:
	ldr	x9, [x9, _tmio_nand_read_buf@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
Lloh24:
	adrp	x8, _NAND_ECC_HW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NAND_ECC_HW@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #100]
Lloh27:
	adrp	x8, lCPI0_0@PAGE
Lloh28:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #76]
Lloh29:
	adrp	x8, _tmio_nand_enable_hwecc@GOTPAGE
Lloh30:
	ldr	x8, [x8, _tmio_nand_enable_hwecc@GOTPAGEOFF]
	mov	w9, #2
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x10, _tmio_nand_calculate_ecc@GOTPAGE
Lloh33:
	ldr	x10, [x10, _tmio_nand_calculate_ecc@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	stp	w10, w8, [x20, #92]
Lloh35:
	adrp	x8, _tmio_nand_correct_data@GOTPAGE
Lloh36:
	ldr	x8, [x8, _tmio_nand_correct_data@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	stp	w9, w8, [x20, #84]
	cbz	x21, LBB0_8
; %bb.7:
	ldr	w8, [x21, #24]
	str	w8, [x20, #72]
LBB0_8:
	mov	w8, #15
	str	w8, [x20, #24]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
Lloh38:
	adrp	x2, _tmio_irq@GOTPAGE
Lloh39:
	ldr	x2, [x2, _tmio_irq@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x24
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_14
; %bb.9:
	mov	x25, x0
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x25
	bl	_dev_err
	b	LBB0_20
LBB0_10:
Lloh42:
	adrp	x8, _EIO@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_13:
	mov	x0, x25
	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_14:
	str	w24, [x20, #4]
Lloh46:
	adrp	x8, _tmio_nand_wait@GOTPAGE
Lloh47:
	ldr	x8, [x8, _tmio_nand_wait@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	mov	x0, x22
	mov	w1, #1
	bl	_nand_scan
	mov	x25, x0
	cbnz	w0, LBB0_20
; %bb.15:
	cbz	x21, LBB0_17
; %bb.16:
	ldp	x3, x1, [x21, #8]
	ldr	w4, [x21]
	b	LBB0_18
LBB0_17:
	mov	x3, #0
	mov	x1, #0
	mov	w4, #0
LBB0_18:
	mov	x0, x23
	mov	x2, #0
	bl	_mtd_device_parse_register
	mov	x25, x0
	cbz	w0, LBB0_13
; %bb.19:
	mov	x0, x22
	bl	_nand_release
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_tmio_hw_stop
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdrp	Lloh27, Lloh29
	.loh AdrpLdr	Lloh27, Lloh28
	.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	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.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	_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
l_.str.2:                               ; @.str.2
	.asciz	"request_irq error %d\n"

	.comm	_tmio_nand_wait,4,2             ; @tmio_nand_wait
	.no_dead_strip	_tmio_probe
.subsections_via_symbols
