	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_nand_probe
_gpio_nand_probe:                       ## @gpio_nand_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, %rbx
	cmpl	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_dev_get_platdata
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$120, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 80(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	80(%r14), %rdi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	%rbx, %rdi
	callq	_gpio_nand_get_io_sync
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 64(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	64(%r14), %rdi
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_39:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	16(%r14), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_gpio_nand_get_config
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.13:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	(%r14), %rdi
	jmp	LBB0_8
LBB0_15:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	8(%r14), %rdi
	jmp	LBB0_22
LBB0_17:
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 56(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	56(%r14), %rdi
	jmp	LBB0_22
LBB0_19:
	movl	(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 48(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	48(%r14), %rdi
	jmp	LBB0_22
LBB0_21:
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	40(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_23
LBB0_22:
	callq	_PTR_ERR
	movl	%eax, %r12d
LBB0_36:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.37:
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_39
## %bb.38:
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_gpiod_set_value
	jmp	LBB0_39
LBB0_23:
	movq	%r14, %r12
	addq	$72, %r12
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	movq	_gpio_nand_devready@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r14)
LBB0_25:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_nand_set_flash_node
	movq	80(%r14), %rax
	movq	%rax, 88(%r14)
	movq	_NAND_ECC_SOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r14)
	movq	_NAND_ECC_HAMMING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r14)
	movl	32(%r14), %eax
	movl	36(%r14), %ecx
	movl	%ecx, 104(%r14)
	movl	%eax, 76(%r14)
	movq	_gpio_nand_cmd_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r14)
	movq	%r12, %rdi
	callq	_nand_to_mtd
	movq	%rax, %r13
	movq	%rbx, 8(%rax)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.26:
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:
	movq	8(%r14), %rdi
	movl	$1, %esi
	callq	_gpiod_direction_output
LBB0_28:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_nand_scan
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.29:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	*%rax
LBB0_31:
	movl	16(%r14), %edx
	movl	20(%r14), %esi
	movq	%r13, %rdi
	callq	_mtd_device_register
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_32
LBB0_33:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.34:
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_36
## %bb.35:
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	callq	_gpiod_set_value
	jmp	LBB0_36
LBB0_32:
	xorl	%r12d, %r12d
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	"nce"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.1:                               ## @.str.1
	.asciz	"nwp"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.2:                               ## @.str.2
	.asciz	"ale"

L_.str.3:                               ## @.str.3
	.asciz	"cle"

L_.str.4:                               ## @.str.4
	.asciz	"rdy"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
	.comm	_gpio_nand_devready,4,2         ## @gpio_nand_devready
	.comm	_NAND_ECC_SOFT,4,2              ## @NAND_ECC_SOFT
	.comm	_NAND_ECC_HAMMING,4,2           ## @NAND_ECC_HAMMING
	.comm	_gpio_nand_cmd_ctrl,4,2         ## @gpio_nand_cmd_ctrl
	.no_dead_strip	_gpio_nand_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_nand_probe
_gpio_nand_probe:                       ; @gpio_nand_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	x20, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_dev_get_platdata
	cbz	w0, LBB0_10
LBB0_2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #120
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x0, [x19, #80]
LBB0_5:
	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_6:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	mov	x0, x20
	bl	_gpio_nand_get_io_sync
	cbz	x0, LBB0_13
; %bb.8:
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.9:
	ldr	x0, [x19, #64]
	b	LBB0_5
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	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_13:
	add	x21, x19, #16
	mov	x0, x20
	mov	x1, x21
	bl	_gpio_nand_get_config
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.14:
Lloh10:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x0, [x19]
	b	LBB0_5
LBB0_16:
Lloh15:
	adrp	x22, _GPIOD_OUT_LOW@GOTPAGE
Lloh16:
	ldr	x22, [x22, _GPIOD_OUT_LOW@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x0, [x19, #8]
	b	LBB0_23
LBB0_18:
	ldr	w2, [x22]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	x0, [x19, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x0, [x19, #56]
	b	LBB0_23
LBB0_20:
	ldr	w2, [x22]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_22
; %bb.21:
	ldr	x0, [x19, #48]
	b	LBB0_23
LBB0_22:
Lloh23:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	x0, [x19, #40]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #40]
	cbz	x8, LBB0_27
LBB0_23:
	bl	_PTR_ERR
	mov	x22, x0
LBB0_24:
	ldr	x0, [x19]
	cbz	x0, LBB0_12
; %bb.25:
	bl	_IS_ERR
	cbnz	x0, LBB0_12
; %bb.26:
	ldr	x0, [x19]
	mov	w1, #0
	bl	_gpiod_set_value
	b	LBB0_12
LBB0_27:
	add	x22, x19, #72
	cbz	x0, LBB0_29
; %bb.28:
Lloh28:
	adrp	x8, _gpio_nand_devready@GOTPAGE
Lloh29:
	ldr	x8, [x8, _gpio_nand_devready@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19, #96]
LBB0_29:
	ldr	w1, [x20]
	mov	x0, x22
	bl	_nand_set_flash_node
	ldr	x8, [x19, #80]
	str	x8, [x19, #88]
Lloh31:
	adrp	x8, _NAND_ECC_SOFT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NAND_ECC_SOFT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x19, #112]
Lloh34:
	adrp	x8, _NAND_ECC_HAMMING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NAND_ECC_HAMMING@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldp	w10, w9, [x19, #32]
	stp	w9, w8, [x19, #104]
Lloh37:
	adrp	x8, _gpio_nand_cmd_ctrl@GOTPAGE
Lloh38:
	ldr	x8, [x8, _gpio_nand_cmd_ctrl@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	stp	w8, w10, [x19, #72]
	mov	x0, x22
	bl	_nand_to_mtd
	mov	x23, x0
	str	x20, [x0, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_32
; %bb.30:
	bl	_IS_ERR
	cbnz	x0, LBB0_32
; %bb.31:
	ldr	x0, [x19, #8]
	mov	w1, #1
	bl	_gpiod_direction_output
LBB0_32:
	mov	x0, x22
	mov	w1, #1
	bl	_nand_scan
	mov	x22, x0
	cbnz	w0, LBB0_36
; %bb.33:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_35
; %bb.34:
	ldr	w1, [x23]
	mov	x0, x21
	blr	x8
LBB0_35:
	ldp	w2, w1, [x19, #16]
	mov	x0, x23
	bl	_mtd_device_register
	mov	x22, x0
	cbz	w0, LBB0_12
LBB0_36:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_24
; %bb.37:
	bl	_IS_ERR
	cbnz	x0, LBB0_24
; %bb.38:
	ldr	x0, [x19, #8]
	mov	w1, #0
	bl	_gpiod_set_value
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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	"nce"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.1:                               ; @.str.1
	.asciz	"nwp"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.2:                               ; @.str.2
	.asciz	"ale"

l_.str.3:                               ; @.str.3
	.asciz	"cle"

l_.str.4:                               ; @.str.4
	.asciz	"rdy"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
	.comm	_gpio_nand_devready,4,2         ; @gpio_nand_devready
	.comm	_NAND_ECC_SOFT,4,2              ; @NAND_ECC_SOFT
	.comm	_NAND_ECC_HAMMING,4,2           ; @NAND_ECC_HAMMING
	.comm	_gpio_nand_cmd_ctrl,4,2         ; @gpio_nand_cmd_ctrl
	.no_dead_strip	_gpio_nand_probe
.subsections_via_symbols
