	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dataflash_probe
_dataflash_probe:                       ## @dataflash_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_jedec_probe
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.23:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.24:
	movl	16(%rbx), %esi
	movl	12(%rbx), %edx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	movq	_SUP_POW2PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	cmpl	$1, %eax
	movl	$100, %r9d
	sbbl	$0, %r9d
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_dataflash_otp              ## TAILCALL
LBB0_2:
	movq	%r15, %rdi
	callq	_dataflash_status
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	cmpl	$255, %r14d
	je	LBB0_4
## %bb.7:
	andl	$60, %r14d
	leal	-12(%r14), %eax
	shrl	$2, %eax
	cmpl	$12, %eax
	ja	LBB0_19
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movl	$8192, %edx                     ## imm = 0x2000
	movl	$1056, %ecx                     ## imm = 0x420
	movl	$11, %r8d
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_dev_dbg
	cmpl	$255, %r14d
	je	LBB0_6
## %bb.5:
	testl	%r14d, %r14d
	jne	LBB0_22
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_22
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$512, %edx                      ## imm = 0x200
	jmp	LBB0_10
LBB0_19:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_dev_info
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_20
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	jmp	LBB0_10
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	$2048, %edx                     ## imm = 0x800
	jmp	LBB0_10
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
LBB0_10:
	movl	$264, %ecx                      ## imm = 0x108
	movl	$9, %r8d
	jmp	LBB0_11
LBB0_17:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	$8192, %edx                     ## imm = 0x2000
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
LBB0_16:
	movl	$528, %ecx                      ## imm = 0x210
	movl	$10, %r8d
LBB0_11:
	callq	_add_dataflash
	movl	%eax, %r14d
LBB0_20:
	testl	%r14d, %r14d
	jns	LBB0_22
## %bb.21:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_dev_dbg
LBB0_22:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_19
	.long	L0_0_set_12
	.long	L0_0_set_19
	.long	L0_0_set_13
	.long	L0_0_set_19
	.long	L0_0_set_14
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_19
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_SUP_POW2PS,4,2                 ## @SUP_POW2PS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status error %d\n"

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

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"AT45DB161x"

L_.str.6:                               ## @.str.6
	.asciz	"AT45DB321x"

L_.str.7:                               ## @.str.7
	.asciz	"AT45DB642x"

L_.str.8:                               ## @.str.8
	.asciz	"unsupported device (%x)\n"

L_.str.9:                               ## @.str.9
	.asciz	"add_dataflash --> %d\n"

	.no_dead_strip	_dataflash_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dataflash_probe
_dataflash_probe:                       ; @dataflash_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_jedec_probe
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	ldp	w2, w1, [x20, #12]
	ldp	w4, w3, [x20, #4]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _SUP_POW2PS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUP_POW2PS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #99
	cinc	w5, w8, ne
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_add_dataflash_otp
LBB0_4:
	mov	x0, x19
	bl	_dataflash_status
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.5:
	cmp	w20, #255
	b.eq	LBB0_9
; %bb.6:
	and	w2, w20, #0x3c
	sub	w8, w2, #12
	lsr	w8, w8, #2
	cmp	w8, #12
	b.hi	LBB0_13
; %bb.7:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh5:
	adrp	x1, l_.str.7@PAGE
Lloh6:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w2, #8192
	mov	w3, #1056
	mov	w4, #11
	b	LBB0_21
LBB0_9:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
	cmp	w20, #255
	b.eq	LBB0_11
; %bb.10:
	cbnz	w20, LBB0_24
LBB0_11:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_24
LBB0_12:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #512
	b	LBB0_17
LBB0_13:
Lloh14:
	adrp	x1, l_.str.8@PAGE
Lloh15:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_22
LBB0_14:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #1024
	b	LBB0_17
LBB0_15:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #2048
	b	LBB0_17
LBB0_16:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w2, #4096
LBB0_17:
	mov	w3, #264
	mov	w4, #9
	b	LBB0_21
LBB0_18:
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w2, #8192
	b	LBB0_20
LBB0_19:
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w2, #4096
LBB0_20:
	mov	w3, #528
	mov	w4, #10
LBB0_21:
	bl	_add_dataflash
	mov	x20, x0
LBB0_22:
	tbz	w20, #31, LBB0_24
; %bb.23:
Lloh29:
	adrp	x1, l_.str.9@PAGE
Lloh30:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_19-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
                                        ; -- End function
	.comm	_SUP_POW2PS,4,2                 ; @SUP_POW2PS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status error %d\n"

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

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"AT45DB161x"

l_.str.6:                               ; @.str.6
	.asciz	"AT45DB321x"

l_.str.7:                               ; @.str.7
	.asciz	"AT45DB642x"

l_.str.8:                               ; @.str.8
	.asciz	"unsupported device (%x)\n"

l_.str.9:                               ; @.str.9
	.asciz	"add_dataflash --> %d\n"

	.no_dead_strip	_dataflash_probe
.subsections_via_symbols
