	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spi_nor_scan                   ## -- Begin function spi_nor_scan
	.p2align	4, 0x90
_spi_nor_scan:                          ## @spi_nor_scan
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	176(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_spi_nor_get_flash_node
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_spi_nor_check
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_1
LBB0_40:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_SNOR_PROTO_1_1_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	movq	%rax, 64(%rbx)
	movq	%rax, 56(%rbx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 48(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_devm_kmalloc
	movl	%eax, 44(%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_spi_nor_get_flash_info
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.41:
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_40
LBB0_4:
	movq	%r12, 32(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_spi_nor_debugfs_init
	leaq	40(%rbx), %rdi
	callq	_mutex_init
	movl	(%r12), %eax
	movq	_SPI_NOR_XSR_RDY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_SNOR_F_READY_XSR_RDY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
LBB0_6:
	movq	_SPI_NOR_HAS_LOCK@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_8
## %bb.7:
	movq	_SNOR_F_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_8:
	movq	32(%rbx), %rdi
	callq	_JEDEC_MFR
	movq	_SNOR_MFR_ATMEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.9:
	movq	32(%rbx), %rdi
	callq	_JEDEC_MFR
	movq	_SNOR_MFR_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	32(%rbx), %rdi
	callq	_JEDEC_MFR
	movq	_SNOR_MFR_SST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	32(%rbx), %rax
	movl	(%r13), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
LBB0_12:
	movq	_spi_nor_clear_sr_bp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
LBB0_13:
	movq	%rbx, %rdi
	callq	_spi_nor_init_params
	cmpq	$0, 104(%rbx)
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_dev_name
	movq	%rax, 104(%rbx)
LBB0_15:
	movq	%rbx, 168(%rbx)
	movq	_MTD_NORFLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 160(%rbx)
	movl	$1, 80(%rbx)
	movq	_MTD_CAP_NORFLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rbx)
	movl	8(%rbx), %ecx
	movl	%ecx, 84(%rbx)
	movq	_spi_nor_erase@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 156(%rbx)
	movq	_spi_nor_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 152(%rbx)
	movq	_spi_nor_resume@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 148(%rbx)
	cmpq	$0, 16(%rbx)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_17
## %bb.16:
	movq	_spi_nor_lock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 144(%rbx)
	movq	_spi_nor_unlock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 140(%rbx)
	movq	_spi_nor_is_locked@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 136(%rbx)
LBB0_17:
	movl	(%r12), %ecx
	movq	_SST_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_18
## %bb.19:
	movq	_spi_nor_write@GOTPCREL(%rip), %rdx
	jmp	LBB0_20
LBB0_18:
	movq	_sst_write@GOTPCREL(%rip), %rdx
LBB0_20:
	movl	(%rdx), %edx
	movl	%edx, 132(%rbx)
	movq	_USE_FSR@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_22
## %bb.21:
	movq	_SNOR_F_USE_FSR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rbx)
LBB0_22:
	movq	_SPI_NOR_HAS_TB@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_24
## %bb.23:
	movq	_SNOR_F_HAS_SR_TB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rbx)
LBB0_24:
	movq	_NO_CHIP_ERASE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_26
## %bb.25:
	movq	_SNOR_F_NO_OP_CHIP_ERASE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rbx)
LBB0_26:
	movq	_USE_CLSR@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_28
## %bb.27:
	movq	_SNOR_F_USE_CLSR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rbx)
LBB0_28:
	movq	_SPI_NOR_NO_ERASE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_30
## %bb.29:
	movq	_MTD_NO_ERASE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 128(%rbx)
LBB0_30:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
	movq	%r15, 120(%rbx)
	movl	12(%rbx), %eax
	movl	%eax, 4(%rbx)
	movl	%eax, 112(%rbx)
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	_SNOR_F_BROKEN_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_32:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_spi_nor_setup
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.33:
	movq	_SPI_NOR_4B_OPCODES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_35
## %bb.34:
	movq	_SNOR_F_4B_OPCODES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_35:
	movq	%rbx, %rdi
	callq	_spi_nor_set_addr_width
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.36:
	movq	%rbx, %r12
	movq	%rbx, %rdi
	callq	_spi_nor_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.37:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movl	84(%r12), %eax
	sarl	$10, %eax
	movslq	%eax, %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movl	104(%r12), %edx
	movslq	84(%r12), %rcx
	movl	%ecx, %r8d
	sarl	$20, %r8d
	movl	88(%r12), %r9d
	movl	92(%r12), %r10d
	leal	1023(%r9), %r11d
	testl	%r9d, %r9d
	cmovnsl	%r9d, %r11d
	sarl	$10, %r11d
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r11
	callq	_dev_dbg
	addq	$16, %rsp
	cmpl	$0, 92(%r12)
	jle	LBB0_40
## %bb.38:
	movl	$8, %r15d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	96(%r12), %rax
	movq	(%rax,%r15), %rcx
	movl	-8(%rax,%r15), %r8d
	movl	-4(%rax,%r15), %r10d
	leal	1023(%r8), %r9d
	testl	%r8d, %r8d
	cmovnsl	%r8d, %r9d
	sarl	$10, %r9d
	subq	$8, %rsp
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	pushq	%r10
	callq	_dev_dbg
	addq	$16, %rsp
	incq	%rbx
	movslq	92(%r12), %rax
	addq	$16, %r15
	cmpq	%rax, %rbx
	jl	LBB0_39
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_SNOR_PROTO_1_1_1,8,3           ## @SNOR_PROTO_1_1_1
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SPI_NOR_XSR_RDY,4,2            ## @SPI_NOR_XSR_RDY
	.comm	_SNOR_F_READY_XSR_RDY,4,2       ## @SNOR_F_READY_XSR_RDY
	.comm	_SPI_NOR_HAS_LOCK,4,2           ## @SPI_NOR_HAS_LOCK
	.comm	_SNOR_F_HAS_LOCK,4,2            ## @SNOR_F_HAS_LOCK
	.comm	_SNOR_MFR_ATMEL,8,3             ## @SNOR_MFR_ATMEL
	.comm	_SNOR_MFR_INTEL,8,3             ## @SNOR_MFR_INTEL
	.comm	_SNOR_MFR_SST,8,3               ## @SNOR_MFR_SST
	.comm	_spi_nor_clear_sr_bp,4,2        ## @spi_nor_clear_sr_bp
	.comm	_MTD_NORFLASH,4,2               ## @MTD_NORFLASH
	.comm	_MTD_CAP_NORFLASH,4,2           ## @MTD_CAP_NORFLASH
	.comm	_spi_nor_erase,4,2              ## @spi_nor_erase
	.comm	_spi_nor_read,4,2               ## @spi_nor_read
	.comm	_spi_nor_resume,4,2             ## @spi_nor_resume
	.comm	_spi_nor_lock,4,2               ## @spi_nor_lock
	.comm	_spi_nor_unlock,4,2             ## @spi_nor_unlock
	.comm	_spi_nor_is_locked,4,2          ## @spi_nor_is_locked
	.comm	_SST_WRITE,4,2                  ## @SST_WRITE
	.comm	_sst_write,4,2                  ## @sst_write
	.comm	_spi_nor_write,4,2              ## @spi_nor_write
	.comm	_USE_FSR,4,2                    ## @USE_FSR
	.comm	_SNOR_F_USE_FSR,4,2             ## @SNOR_F_USE_FSR
	.comm	_SPI_NOR_HAS_TB,4,2             ## @SPI_NOR_HAS_TB
	.comm	_SNOR_F_HAS_SR_TB,4,2           ## @SNOR_F_HAS_SR_TB
	.comm	_NO_CHIP_ERASE,4,2              ## @NO_CHIP_ERASE
	.comm	_SNOR_F_NO_OP_CHIP_ERASE,4,2    ## @SNOR_F_NO_OP_CHIP_ERASE
	.comm	_USE_CLSR,4,2                   ## @USE_CLSR
	.comm	_SNOR_F_USE_CLSR,4,2            ## @SNOR_F_USE_CLSR
	.comm	_SPI_NOR_NO_ERASE,4,2           ## @SPI_NOR_NO_ERASE
	.comm	_MTD_NO_ERASE,4,2               ## @MTD_NO_ERASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"broken-flash-reset"

	.comm	_SNOR_F_BROKEN_RESET,4,2        ## @SNOR_F_BROKEN_RESET
	.comm	_SPI_NOR_4B_OPCODES,4,2         ## @SPI_NOR_4B_OPCODES
	.comm	_SNOR_F_4B_OPCODES,4,2          ## @SNOR_F_4B_OPCODES
L_.str.1:                               ## @.str.1
	.asciz	"%s (%lld Kbytes)\n"

L_.str.2:                               ## @.str.2
	.asciz	"mtd .name = %s, .size = 0x%llx (%lldMiB), .erasesize = 0x%.8x (%uKiB) .numeraseregions = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"mtd.eraseregions[%d] = { .offset = 0x%llx, .erasesize = 0x%.8x (%uKiB), .numblocks = %d }\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spi_nor_scan                   ; -- Begin function spi_nor_scan
	.p2align	2
_spi_nor_scan:                          ; @spi_nor_scan
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #176]
	bl	_spi_nor_get_flash_node
	mov	x23, x0
	mov	x0, x19
	bl	_spi_nor_check
	cbz	w0, LBB0_2
LBB0_1:
	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_2:
Lloh0:
	adrp	x8, _SNOR_PROTO_1_1_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNOR_PROTO_1_1_1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #72]
Lloh3:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
	stp	x8, x8, [x19, #56]
Lloh5:
	ldr	w1, [x9]
	str	w1, [x19, #48]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_devm_kmalloc
	str	w0, [x19, #44]
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_spi_nor_get_flash_info
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x22
	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_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_6:
	str	x22, [x19, #32]
	mov	x0, x19
	mov	x1, x22
	bl	_spi_nor_debugfs_init
	add	x0, x19, #40
	bl	_mutex_init
	ldr	w8, [x22]
Lloh12:
	adrp	x9, _SPI_NOR_XSR_RDY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SPI_NOR_XSR_RDY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh15:
	adrp	x9, _SNOR_F_READY_XSR_RDY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SNOR_F_READY_XSR_RDY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_8:
Lloh18:
	adrp	x24, _SPI_NOR_HAS_LOCK@GOTPAGE
Lloh19:
	ldr	x24, [x24, _SPI_NOR_HAS_LOCK@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh20:
	adrp	x8, _SNOR_F_HAS_LOCK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SNOR_F_HAS_LOCK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldr	x0, [x19, #32]
	bl	_JEDEC_MFR
Lloh23:
	adrp	x8, _SNOR_MFR_ATMEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SNOR_MFR_ATMEL@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.11:
	ldr	x0, [x19, #32]
	bl	_JEDEC_MFR
Lloh26:
	adrp	x8, _SNOR_MFR_INTEL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SNOR_MFR_INTEL@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.12:
	ldr	x0, [x19, #32]
	bl	_JEDEC_MFR
Lloh29:
	adrp	x8, _SNOR_MFR_SST@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SNOR_MFR_SST@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_14:
Lloh32:
	adrp	x8, _spi_nor_clear_sr_bp@GOTPAGE
Lloh33:
	ldr	x8, [x8, _spi_nor_clear_sr_bp@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_15:
	mov	x0, x19
	bl	_spi_nor_init_params
	ldr	x8, [x19, #104]
	cbnz	x8, LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_dev_name
	str	x0, [x19, #104]
LBB0_17:
Lloh35:
	adrp	x8, _MTD_NORFLASH@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MTD_NORFLASH@GOTPAGEOFF]
	str	x19, [x19, #168]
Lloh37:
	ldr	w9, [x8]
	mov	w10, #1
Lloh38:
	adrp	x8, _MTD_CAP_NORFLASH@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MTD_CAP_NORFLASH@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x19, #128]
	ldr	w11, [x19, #8]
	stp	w10, w11, [x19, #80]
Lloh41:
	adrp	x10, _spi_nor_erase@GOTPAGE
Lloh42:
	ldr	x10, [x10, _spi_nor_erase@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #156]
Lloh44:
	adrp	x9, _spi_nor_read@GOTPAGE
Lloh45:
	ldr	x9, [x9, _spi_nor_read@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
Lloh47:
	adrp	x10, _spi_nor_resume@GOTPAGE
Lloh48:
	ldr	x10, [x10, _spi_nor_resume@GOTPAGEOFF]
Lloh49:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #148]
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_19
; %bb.18:
Lloh50:
	adrp	x9, _spi_nor_lock@GOTPAGE
Lloh51:
	ldr	x9, [x9, _spi_nor_lock@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	str	w9, [x19, #144]
Lloh53:
	adrp	x9, _spi_nor_unlock@GOTPAGE
Lloh54:
	ldr	x9, [x9, _spi_nor_unlock@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
Lloh56:
	adrp	x10, _spi_nor_is_locked@GOTPAGE
Lloh57:
	ldr	x10, [x10, _spi_nor_is_locked@GOTPAGEOFF]
Lloh58:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #136]
LBB0_19:
	ldr	w9, [x22]
Lloh59:
	adrp	x10, _SST_WRITE@GOTPAGE
Lloh60:
	ldr	x10, [x10, _SST_WRITE@GOTPAGEOFF]
Lloh61:
	ldr	w10, [x10]
Lloh62:
	adrp	x11, _spi_nor_write@GOTPAGE
Lloh63:
	ldr	x11, [x11, _spi_nor_write@GOTPAGEOFF]
Lloh64:
	adrp	x12, _sst_write@GOTPAGE
Lloh65:
	ldr	x12, [x12, _sst_write@GOTPAGEOFF]
	tst	w10, w9
	csel	x10, x11, x12, eq
	ldr	w10, [x10]
	str	w10, [x19, #132]
Lloh66:
	adrp	x10, _USE_FSR@GOTPAGE
Lloh67:
	ldr	x10, [x10, _USE_FSR@GOTPAGEOFF]
Lloh68:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_21
; %bb.20:
Lloh69:
	adrp	x10, _SNOR_F_USE_FSR@GOTPAGE
Lloh70:
	ldr	x10, [x10, _SNOR_F_USE_FSR@GOTPAGEOFF]
Lloh71:
	ldr	w10, [x10]
	ldr	w11, [x19]
	orr	w10, w11, w10
	str	w10, [x19]
LBB0_21:
Lloh72:
	adrp	x10, _SPI_NOR_HAS_TB@GOTPAGE
Lloh73:
	ldr	x10, [x10, _SPI_NOR_HAS_TB@GOTPAGEOFF]
Lloh74:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_23
; %bb.22:
Lloh75:
	adrp	x10, _SNOR_F_HAS_SR_TB@GOTPAGE
Lloh76:
	ldr	x10, [x10, _SNOR_F_HAS_SR_TB@GOTPAGEOFF]
Lloh77:
	ldr	w10, [x10]
	ldr	w11, [x19]
	orr	w10, w11, w10
	str	w10, [x19]
LBB0_23:
Lloh78:
	adrp	x10, _NO_CHIP_ERASE@GOTPAGE
Lloh79:
	ldr	x10, [x10, _NO_CHIP_ERASE@GOTPAGEOFF]
Lloh80:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_25
; %bb.24:
Lloh81:
	adrp	x10, _SNOR_F_NO_OP_CHIP_ERASE@GOTPAGE
Lloh82:
	ldr	x10, [x10, _SNOR_F_NO_OP_CHIP_ERASE@GOTPAGEOFF]
Lloh83:
	ldr	w10, [x10]
	ldr	w11, [x19]
	orr	w10, w11, w10
	str	w10, [x19]
LBB0_25:
Lloh84:
	adrp	x10, _USE_CLSR@GOTPAGE
Lloh85:
	ldr	x10, [x10, _USE_CLSR@GOTPAGEOFF]
Lloh86:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_27
; %bb.26:
Lloh87:
	adrp	x10, _SNOR_F_USE_CLSR@GOTPAGE
Lloh88:
	ldr	x10, [x10, _SNOR_F_USE_CLSR@GOTPAGEOFF]
Lloh89:
	ldr	w10, [x10]
	ldr	w11, [x19]
	orr	w10, w11, w10
	str	w10, [x19]
LBB0_27:
Lloh90:
	adrp	x10, _SPI_NOR_NO_ERASE@GOTPAGE
Lloh91:
	ldr	x10, [x10, _SPI_NOR_NO_ERASE@GOTPAGEOFF]
Lloh92:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_29
; %bb.28:
Lloh93:
	adrp	x9, _MTD_NO_ERASE@GOTPAGE
Lloh94:
	ldr	x9, [x9, _MTD_NO_ERASE@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #128]
LBB0_29:
	str	x20, [x19, #120]
	ldr	w8, [x19, #12]
	str	w8, [x19, #4]
	str	w8, [x19, #112]
Lloh96:
	adrp	x1, l_.str@PAGE
Lloh97:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_of_property_read_bool
	cbz	x0, LBB0_31
; %bb.30:
Lloh98:
	adrp	x8, _SNOR_F_BROKEN_RESET@GOTPAGE
Lloh99:
	ldr	x8, [x8, _SNOR_F_BROKEN_RESET@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_31:
	mov	x0, x19
	mov	x1, x21
	bl	_spi_nor_setup
	cbnz	w0, LBB0_1
; %bb.32:
	ldr	w8, [x22]
Lloh101:
	adrp	x9, _SPI_NOR_4B_OPCODES@GOTPAGE
Lloh102:
	ldr	x9, [x9, _SPI_NOR_4B_OPCODES@GOTPAGEOFF]
Lloh103:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.33:
Lloh104:
	adrp	x8, _SNOR_F_4B_OPCODES@GOTPAGE
Lloh105:
	ldr	x8, [x8, _SNOR_F_4B_OPCODES@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_34:
	mov	x0, x19
	bl	_spi_nor_set_addr_width
	cbnz	w0, LBB0_1
; %bb.35:
	mov	x0, x19
	bl	_spi_nor_init
	cbnz	w0, LBB0_1
; %bb.36:
	ldr	w2, [x22, #4]
	ldr	w8, [x19, #84]
	sbfx	x3, x8, #10, #22
Lloh107:
	adrp	x1, l_.str.1@PAGE
Lloh108:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	ldr	w2, [x19, #104]
	ldp	w3, w5, [x19, #84]
                                        ; kill: def $w3 killed $w3 def $x3
	sxtw	x3, w3
	asr	w4, w3, #20
	add	w8, w5, #1023
	cmp	w5, #0
	csel	w8, w8, w5, lt
	asr	w6, w8, #10
	ldr	w8, [x19, #92]
	str	x8, [sp]
Lloh109:
	adrp	x1, l_.str.2@PAGE
Lloh110:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w8, [x19, #92]
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.37:
	mov	x23, #0
	mov	x21, #0
Lloh111:
	adrp	x22, l_.str.3@PAGE
Lloh112:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #96]
	add	x8, x8, x23
	ldr	x3, [x8, #8]
	ldp	w4, w6, [x8]
	add	w8, w4, #1023
	cmp	w4, #0
	csel	w8, w8, w4, lt
	asr	w5, w8, #10
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_dev_dbg
	mov	w0, #0
	add	x21, x21, #1
	ldrsw	x8, [x19, #92]
	add	x23, x23, #16
	cmp	x21, x8
	b.lt	LBB0_38
	b	LBB0_1
LBB0_39:
	mov	w0, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpAdd	Lloh111, Lloh112
	.cfi_endproc
                                        ; -- End function
	.comm	_SNOR_PROTO_1_1_1,8,3           ; @SNOR_PROTO_1_1_1
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SPI_NOR_XSR_RDY,4,2            ; @SPI_NOR_XSR_RDY
	.comm	_SNOR_F_READY_XSR_RDY,4,2       ; @SNOR_F_READY_XSR_RDY
	.comm	_SPI_NOR_HAS_LOCK,4,2           ; @SPI_NOR_HAS_LOCK
	.comm	_SNOR_F_HAS_LOCK,4,2            ; @SNOR_F_HAS_LOCK
	.comm	_SNOR_MFR_ATMEL,8,3             ; @SNOR_MFR_ATMEL
	.comm	_SNOR_MFR_INTEL,8,3             ; @SNOR_MFR_INTEL
	.comm	_SNOR_MFR_SST,8,3               ; @SNOR_MFR_SST
	.comm	_spi_nor_clear_sr_bp,4,2        ; @spi_nor_clear_sr_bp
	.comm	_MTD_NORFLASH,4,2               ; @MTD_NORFLASH
	.comm	_MTD_CAP_NORFLASH,4,2           ; @MTD_CAP_NORFLASH
	.comm	_spi_nor_erase,4,2              ; @spi_nor_erase
	.comm	_spi_nor_read,4,2               ; @spi_nor_read
	.comm	_spi_nor_resume,4,2             ; @spi_nor_resume
	.comm	_spi_nor_lock,4,2               ; @spi_nor_lock
	.comm	_spi_nor_unlock,4,2             ; @spi_nor_unlock
	.comm	_spi_nor_is_locked,4,2          ; @spi_nor_is_locked
	.comm	_SST_WRITE,4,2                  ; @SST_WRITE
	.comm	_sst_write,4,2                  ; @sst_write
	.comm	_spi_nor_write,4,2              ; @spi_nor_write
	.comm	_USE_FSR,4,2                    ; @USE_FSR
	.comm	_SNOR_F_USE_FSR,4,2             ; @SNOR_F_USE_FSR
	.comm	_SPI_NOR_HAS_TB,4,2             ; @SPI_NOR_HAS_TB
	.comm	_SNOR_F_HAS_SR_TB,4,2           ; @SNOR_F_HAS_SR_TB
	.comm	_NO_CHIP_ERASE,4,2              ; @NO_CHIP_ERASE
	.comm	_SNOR_F_NO_OP_CHIP_ERASE,4,2    ; @SNOR_F_NO_OP_CHIP_ERASE
	.comm	_USE_CLSR,4,2                   ; @USE_CLSR
	.comm	_SNOR_F_USE_CLSR,4,2            ; @SNOR_F_USE_CLSR
	.comm	_SPI_NOR_NO_ERASE,4,2           ; @SPI_NOR_NO_ERASE
	.comm	_MTD_NO_ERASE,4,2               ; @MTD_NO_ERASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"broken-flash-reset"

	.comm	_SNOR_F_BROKEN_RESET,4,2        ; @SNOR_F_BROKEN_RESET
	.comm	_SPI_NOR_4B_OPCODES,4,2         ; @SPI_NOR_4B_OPCODES
	.comm	_SNOR_F_4B_OPCODES,4,2          ; @SNOR_F_4B_OPCODES
l_.str.1:                               ; @.str.1
	.asciz	"%s (%lld Kbytes)\n"

l_.str.2:                               ; @.str.2
	.asciz	"mtd .name = %s, .size = 0x%llx (%lldMiB), .erasesize = 0x%.8x (%uKiB) .numeraseregions = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"mtd.eraseregions[%d] = { .offset = 0x%llx, .erasesize = 0x%.8x (%uKiB), .numblocks = %d }\n"

.subsections_via_symbols
