	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flash_probe
_flash_probe:                           ## @flash_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	_READ_ID_CODES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DATA_TO_FLASH
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_write32
	xorl	%edi, %edi
	callq	_ADDR_TO_FLASH_U2
	movl	%eax, %edi
	callq	_read32
	movl	%eax, %edi
	callq	_FLASH_TO_DATA
	movq	%rax, %r15
	movl	$1, %edi
	callq	_ADDR_TO_FLASH_U2
	movl	%eax, %edi
	callq	_read32
	movl	%eax, %edi
	callq	_FLASH_TO_DATA
	movq	%rax, %rbx
	movq	_READ_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DATA_TO_FLASH
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_write32
	movq	_FLASH_MANUFACTURER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_2
## %bb.1:
	movq	_FLASH_DEVICE_16mbit_TOP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	sete	%al
	movq	_FLASH_DEVICE_16mbit_BOTTOM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ_ID_CODES,4,2              ## @READ_ID_CODES
	.comm	_READ_ARRAY,4,2                 ## @READ_ARRAY
	.comm	_FLASH_MANUFACTURER,8,3         ## @FLASH_MANUFACTURER
	.comm	_FLASH_DEVICE_16mbit_TOP,8,3    ## @FLASH_DEVICE_16mbit_TOP
	.comm	_FLASH_DEVICE_16mbit_BOTTOM,8,3 ## @FLASH_DEVICE_16mbit_BOTTOM
	.no_dead_strip	_flash_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flash_probe
_flash_probe:                           ; @flash_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
Lloh0:
	adrp	x8, _READ_ID_CODES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ_ID_CODES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DATA_TO_FLASH
	mov	w1, #0
	bl	_write32
	mov	w0, #0
	bl	_ADDR_TO_FLASH_U2
	bl	_read32
	bl	_FLASH_TO_DATA
	mov	x20, x0
	mov	w0, #1
	bl	_ADDR_TO_FLASH_U2
	bl	_read32
	bl	_FLASH_TO_DATA
	mov	x19, x0
Lloh3:
	adrp	x8, _READ_ARRAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _READ_ARRAY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_DATA_TO_FLASH
	mov	w1, #0
	bl	_write32
	mov	w0, #0
Lloh6:
	adrp	x8, _FLASH_MANUFACTURER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLASH_MANUFACTURER@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _FLASH_DEVICE_16mbit_TOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLASH_DEVICE_16mbit_TOP@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x19, x8
Lloh12:
	adrp	x8, _FLASH_DEVICE_16mbit_BOTTOM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLASH_DEVICE_16mbit_BOTTOM@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ccmp	x19, x8, #4, ne
	cset	w0, eq
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_READ_ID_CODES,4,2              ; @READ_ID_CODES
	.comm	_READ_ARRAY,4,2                 ; @READ_ARRAY
	.comm	_FLASH_MANUFACTURER,8,3         ; @FLASH_MANUFACTURER
	.comm	_FLASH_DEVICE_16mbit_TOP,8,3    ; @FLASH_DEVICE_16mbit_TOP
	.comm	_FLASH_DEVICE_16mbit_BOTTOM,8,3 ; @FLASH_DEVICE_16mbit_BOTTOM
	.no_dead_strip	_flash_probe
.subsections_via_symbols
