	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_nor_get_flash_info
_spi_nor_get_flash_info:                ## @spi_nor_get_flash_info
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_spi_nor_match_id
	testq	%rax, %rax
	je	LBB0_2
## %bb.11:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	callq	_spi_nor_read_id
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_3
LBB0_12:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_4:
	cmpq	$0, 8(%r12)
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	callq	_spi_nor_read_id
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rax, %rbx
	cmpq	%r12, %r15
	je	LBB0_8
## %bb.6:
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	%r15, %r12
LBB0_8:
	testq	%rbx, %rbx
	jne	LBB0_10
LBB0_9:
	movq	%r12, %r15
LBB0_10:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found %s, expected %s\n"

	.no_dead_strip	_spi_nor_get_flash_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spi_nor_get_flash_info
_spi_nor_get_flash_info:                ; @spi_nor_get_flash_info
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_spi_nor_match_id
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_4
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_spi_nor_read_id
	mov	x19, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	cbz	x21, LBB0_11
LBB0_6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_spi_nor_read_id
	mov	x21, x0
	bl	_IS_ERR
	mov	x22, x0
	cmp	x21, x19
	b.eq	LBB0_10
; %bb.8:
	cbnz	x22, LBB0_10
; %bb.9:
	ldr	w0, [x20]
	ldr	w2, [x21]
	ldr	w3, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	x19, x21
LBB0_10:
	cbnz	x22, LBB0_12
LBB0_11:
	mov	x21, x19
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found %s, expected %s\n"

	.no_dead_strip	_spi_nor_get_flash_info
.subsections_via_symbols
