	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_nandc_probe
_qcom_nandc_probe:                      ## @qcom_nandc_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	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 40(%rbx)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, 32(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	(%rbx), %rdi
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r12d, %r12d
LBB0_7:
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	8(%rbx), %rdi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movq	%r14, %rdi
	callq	_qcom_nandc_parse_dt
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.13:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	24(%rbx), %rdi
	jmp	LBB0_11
LBB0_15:
	movl	(%r15), %r13d
	movl	%r13d, 20(%rbx)
	movq	%r15, %rdi
	callq	_resource_size
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_dma_map_resource
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_25
## %bb.16:
	movq	%rbx, %rdi
	callq	_qcom_nandc_alloc
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.17:
	movq	(%rbx), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.18:
	movq	8(%rbx), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.19:
	movq	%rbx, %rdi
	callq	_qcom_nandc_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	callq	_qcom_probe_nand_devices
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_26
LBB0_21:
	movq	8(%rbx), %rdi
	callq	_clk_disable_unprepare
LBB0_22:
	movq	(%rbx), %rdi
	callq	_clk_disable_unprepare
LBB0_23:
	movq	%rbx, %rdi
	callq	_qcom_nandc_unalloc
LBB0_24:
	movl	(%r15), %ebx
	movq	%r15, %rdi
	callq	_resource_size
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_dma_unmap_resource
	jmp	LBB0_8
LBB0_25:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_26:
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.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	"failed to get device data\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"core"

L_.str.2:                               ## @.str.2
	.asciz	"aon"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_qcom_nandc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_nandc_probe
_qcom_nandc_probe:                      ; @qcom_nandc_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	str	x19, [x20, #40]
	mov	x0, x19
	bl	_of_device_get_match_data
	cbz	x0, LBB0_5
; %bb.2:
	str	x0, [x20, #32]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x0, [x20]
	b	LBB0_10
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x0, [x20, #8]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_11:
	mov	x0, x19
	bl	_qcom_nandc_parse_dt
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.12:
Lloh13:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh15:
	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	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x20, #24]
	b	LBB0_10
LBB0_14:
	ldr	w22, [x21]
	str	w22, [x20, #20]
	mov	x0, x21
	bl	_resource_size
	mov	x2, x0
Lloh16:
	adrp	x23, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh17:
	ldr	x23, [x23, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x22
	mov	w4, #0
	bl	_dma_map_resource
	str	w0, [x20, #16]
	cbz	w0, LBB0_24
; %bb.15:
	mov	x0, x20
	bl	_qcom_nandc_alloc
	mov	x22, x0
	cbnz	w0, LBB0_23
; %bb.16:
	ldr	x0, [x20]
	bl	_clk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.17:
	ldr	x0, [x20, #8]
	bl	_clk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.18:
	mov	x0, x20
	bl	_qcom_nandc_setup
	mov	x22, x0
	cbnz	w0, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_qcom_probe_nand_devices
	mov	x22, x0
	cbz	w0, LBB0_7
LBB0_20:
	ldr	x0, [x20, #8]
	bl	_clk_disable_unprepare
LBB0_21:
	ldr	x0, [x20]
	bl	_clk_disable_unprepare
LBB0_22:
	mov	x0, x20
	bl	_qcom_nandc_unalloc
LBB0_23:
	ldr	w20, [x21]
	mov	x0, x21
	bl	_resource_size
	mov	x2, x0
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	bl	_dma_unmap_resource
	b	LBB0_7
LBB0_24:
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.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	"failed to get device data\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"core"

l_.str.2:                               ; @.str.2
	.asciz	"aon"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_qcom_nandc_probe
.subsections_via_symbols
