	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esmt_nand_decode_id
_esmt_nand_decode_id:                   ## @esmt_nand_decode_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_nand_decode_ext_id
	cmpl	$5, 8(%rbx)
	jl	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_nand_is_slc
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	$512, (%rbx)                    ## imm = 0x200
	movq	16(%rbx), %rax
	movl	16(%rax), %eax
	andl	$3, %eax
	cmpl	$2, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$1, %eax
	je	LBB0_6
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	$4, 4(%rbx)
	jmp	LBB0_9
LBB0_7:
	movl	$1, 4(%rbx)
	jmp	LBB0_9
LBB0_6:
	movl	$2, 4(%rbx)
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movl	$0, (%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get ECC info"

	.no_dead_strip	_esmt_nand_decode_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esmt_nand_decode_id
_esmt_nand_decode_id:                   ; @esmt_nand_decode_id
	.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	_nand_decode_ext_id
	ldr	w8, [x19, #8]
	cmp	w8, #5
	b.lt	LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_nand_is_slc
	cbz	x0, LBB0_9
; %bb.2:
	mov	w8, #512
	str	w8, [x19]
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #16]
	and	w8, w8, #0x3
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.4:
	cbnz	w8, LBB0_8
; %bb.5:
	mov	w8, #4
	str	w8, [x19, #4]
	b	LBB0_9
LBB0_6:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_9
LBB0_7:
	mov	w8, #2
	str	w8, [x19, #4]
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	str	wzr, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get ECC info"

	.no_dead_strip	_esmt_nand_decode_id
.subsections_via_symbols
