	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stfsm_jedec_probe
_stfsm_jedec_probe:                     ## @stfsm_jedec_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-64(%rbp), %r15
	movq	%r15, %rsi
	callq	_stfsm_read_jedec
	movl	-64(%rbp), %eax
	movl	-60(%rbp), %ebx
	shll	$16, %eax
	shll	$8, %ebx
	orl	%eax, %ebx
	orl	-56(%rbp), %ebx
	movl	-52(%rbp), %r12d
	shll	$8, %r12d
	orl	-48(%rbp), %r12d
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_dev_dbg
	movq	_flash_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_1
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 24(%rax)
	leaq	16(%rax), %rax
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r12d, %ecx
	jne	LBB0_4
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"JEDEC =  0x%08x [%5ph]\n"

	.comm	_flash_types,8,3                ## @flash_types
L_.str.1:                               ## @.str.1
	.asciz	"Unrecognized JEDEC id %06x\n"

	.no_dead_strip	_stfsm_jedec_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stfsm_jedec_probe
_stfsm_jedec_probe:                     ; @stfsm_jedec_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x1, sp, #4
	bl	_stfsm_read_jedec
	ldp	w8, w9, [sp, #4]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldp	w9, w21, [sp, #12]
	orr	w20, w8, w9
	ldr	w22, [sp, #20]
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #4
	mov	x2, x20
	bl	_dev_dbg
Lloh5:
	adrp	x8, _flash_types@GOTPAGE
Lloh6:
	ldr	x8, [x8, _flash_types@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.1:
	orr	w8, w22, w21, lsl #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x0, #24]
	add	x0, x0, #16
	cbz	x9, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0]
	cmp	w9, w20
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x0, #4]
	cmp	w9, #0
	ccmp	w9, w8, #4, ne
	b.ne	LBB0_2
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	mov	x0, #0
LBB0_6:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"JEDEC =  0x%08x [%5ph]\n"

	.comm	_flash_types,8,3                ; @flash_types
l_.str.1:                               ; @.str.1
	.asciz	"Unrecognized JEDEC id %06x\n"

	.no_dead_strip	_stfsm_jedec_probe
.subsections_via_symbols
