	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jedec_lookup
_jedec_lookup:                          ## @jedec_lookup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_dataflash_data@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jg	LBB0_1
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_15:
	movl	%r13d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	movq	%rbx, %r13
	je	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	$16, %r14
	movq	_dataflash_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	cltq
	shlq	$4, %rax
	addq	%rbx, %rax
	cmpq	%rax, %r14
	jae	LBB0_14
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SUP_EXTID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_13
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r15, 8(%r14)
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SUP_POW2PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.2(%rip), %rdx
	andl	(%r14), %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_SUP_POW2PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_dataflash_status
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_IS_POW2PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	testb	$1, %r13b
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	movq	%rbx, %r13
	je	LBB0_13
LBB0_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_dataflash_data,8,3             ## @dataflash_data
	.comm	_SUP_EXTID,4,2                  ## @SUP_EXTID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OTP, sector protect%s\n"

	.comm	_SUP_POW2PS,4,2                 ## @SUP_POW2PS
L_.str.1:                               ## @.str.1
	.asciz	", binary pagesize"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"status error %d\n"

	.comm	_IS_POW2PS,4,2                  ## @IS_POW2PS
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_jedec_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jedec_lookup
_jedec_lookup:                          ; @jedec_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _dataflash_data@GOTPAGE
Lloh1:
	ldr	x25, [x25, _dataflash_data@GOTPAGEOFF]
	ldr	x22, [x25]
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.1:
Lloh2:
	adrp	x26, _SUP_POW2PS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SUP_POW2PS@GOTPAGEOFF]
Lloh4:
	adrp	x28, l_.str.2@PAGE
Lloh5:
	add	x28, x28, l_.str.2@PAGEOFF
Lloh6:
	adrp	x27, _SUP_EXTID@GOTPAGE
Lloh7:
	ldr	x27, [x27, _SUP_EXTID@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w8, LBB0_11
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #16
	ldr	x24, [x25]
	mov	x0, x24
	bl	_ARRAY_SIZE
	add	x8, x24, w0, sxtw #4
	cmp	x22, x8
	b.hs	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w20, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	cmp	x8, x21
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x26]
	tst	w9, w8
Lloh10:
	adrp	x8, l_.str.1@PAGE
Lloh11:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x8, x28, x8, eq
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_dev_dbg
	ldr	w8, [x22]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_dataflash_status
	mov	x24, x0
	tbnz	w0, #31, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
Lloh12:
	adrp	x9, _IS_POW2PS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IS_POW2PS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w9, w8
	tbz	w24, #0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w8, LBB0_3
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_13:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_14:
	str	x24, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_dataflash_data,8,3             ; @dataflash_data
	.comm	_SUP_EXTID,4,2                  ; @SUP_EXTID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OTP, sector protect%s\n"

	.comm	_SUP_POW2PS,4,2                 ; @SUP_POW2PS
l_.str.1:                               ; @.str.1
	.asciz	", binary pagesize"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"status error %d\n"

	.comm	_IS_POW2PS,4,2                  ; @IS_POW2PS
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_jedec_lookup
.subsections_via_symbols
