	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function micron_nand_onfi_init
_micron_nand_onfi_init:                 ## @micron_nand_onfi_init
	.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
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_micron_nand_setup_read_retry@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_ONFI_FEATURE_ADDR_READ_RETRY@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	12(%rbx), %esi
	callq	_set_bit
	movq	_ONFI_FEATURE_ON_DIE_ECC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	12(%rbx), %esi
	callq	_set_bit
	movl	(%r14), %edi
	movl	8(%rbx), %esi
	callq	_set_bit
	movl	(%r15), %edi
	movl	8(%rbx), %esi
	callq	_set_bit
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_micron_nand_setup_read_retry,4,2 ## @micron_nand_setup_read_retry
	.comm	_ONFI_FEATURE_ADDR_READ_RETRY,4,2 ## @ONFI_FEATURE_ADDR_READ_RETRY
	.comm	_ONFI_FEATURE_ON_DIE_ECC,4,2    ## @ONFI_FEATURE_ON_DIE_ECC
	.no_dead_strip	_micron_nand_onfi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function micron_nand_onfi_init
_micron_nand_onfi_init:                 ; @micron_nand_onfi_init
	.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	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _micron_nand_setup_read_retry@GOTPAGE
Lloh1:
	ldr	x9, [x9, _micron_nand_setup_read_retry@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x20, _ONFI_FEATURE_ADDR_READ_RETRY@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ONFI_FEATURE_ADDR_READ_RETRY@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w1, [x19, #12]
	bl	_set_bit
Lloh5:
	adrp	x21, _ONFI_FEATURE_ON_DIE_ECC@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ONFI_FEATURE_ON_DIE_ECC@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19, #12]
	bl	_set_bit
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	bl	_set_bit
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	_set_bit
LBB0_4:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_micron_nand_setup_read_retry,4,2 ; @micron_nand_setup_read_retry
	.comm	_ONFI_FEATURE_ADDR_READ_RETRY,4,2 ; @ONFI_FEATURE_ADDR_READ_RETRY
	.comm	_ONFI_FEATURE_ON_DIE_ECC,4,2    ; @ONFI_FEATURE_ON_DIE_ECC
	.no_dead_strip	_micron_nand_onfi_init
.subsections_via_symbols
