	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_nand_decode_id
_amd_nand_decode_id:                    ## @amd_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nand_to_mtd
	movq	%rax, %r14
	leaq	8(%rbx), %rdi
	callq	_nanddev_get_memorg
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_nand_decode_ext_id
	movq	(%rbx), %rax
	cmpl	$0, 16(%rax)
	je	LBB0_6
## %bb.1:
	cmpl	$0, 20(%rax)
	jne	LBB0_6
## %bb.2:
	cmpl	$0, 24(%rax)
	jne	LBB0_6
## %bb.3:
	cmpl	$0, 28(%rax)
	jne	LBB0_6
## %bb.4:
	cmpl	$512, (%r15)                    ## imm = 0x200
	jne	LBB0_6
## %bb.5:
	movl	$256, 4(%r15)                   ## imm = 0x100
	movb	12(%rax), %cl
	addb	%cl, %cl
	andb	$6, %cl
	movl	$256, %eax                      ## imm = 0x100
	shll	%cl, %eax
	movl	%eax, 4(%r15)
	shll	$9, %eax
	movl	%eax, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_amd_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 amd_nand_decode_id
_amd_nand_decode_id:                    ; @amd_nand_decode_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	bl	_nand_to_mtd
	mov	x19, x0
	add	x0, x21, #8
	bl	_nanddev_get_memorg
	mov	x20, x0
	mov	x0, x21
	bl	_nand_decode_ext_id
	ldr	x8, [x21]
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_6
; %bb.1:
	ldr	w9, [x8, #20]
	cbnz	w9, LBB0_6
; %bb.2:
	ldr	w9, [x8, #24]
	cbnz	w9, LBB0_6
; %bb.3:
	ldr	w9, [x8, #28]
	cbnz	w9, LBB0_6
; %bb.4:
	ldr	w9, [x20]
	cmp	w9, #512
	b.ne	LBB0_6
; %bb.5:
	mov	w9, #256
	str	w9, [x20, #4]
	ldr	w8, [x8, #12]
	ubfiz	w8, w8, #1, #2
	lsl	w8, w9, w8
	str	w8, [x20, #4]
	lsl	w8, w8, #9
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_amd_nand_decode_id
.subsections_via_symbols
