	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hynix_nand_rr_init
_hynix_nand_rr_init:                    ## @hynix_nand_rr_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, %r15
	callq	_hynix_nand_has_valid_jedecid
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	(%r15), %rax
	movl	20(%rax), %eax
	andl	$-16, %eax
	cmpl	$64, %eax
	jne	LBB0_7
## %bb.2:
	movq	_hynix_mlc_1xnm_rr_otps@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_hynix_mlc_1xnm_rr_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	movl	(%r14), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jl	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hynix_mlc_1xnm_rr_otps,4,2     ## @hynix_mlc_1xnm_rr_otps
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize read-retry infrastructure"

	.no_dead_strip	_hynix_nand_rr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hynix_nand_rr_init
_hynix_nand_rr_init:                    ; @hynix_nand_rr_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
	bl	_hynix_nand_has_valid_jedecid
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19]
	ldr	w8, [x8, #20]
	and	w8, w8, #0xfffffff0
	cmp	w8, #64
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x20, _hynix_mlc_1xnm_rr_otps@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hynix_mlc_1xnm_rr_otps@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hynix_mlc_1xnm_rr_init
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	w0, [x20]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.lt	LBB0_4
; %bb.6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_hynix_mlc_1xnm_rr_otps,4,2     ; @hynix_mlc_1xnm_rr_otps
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize read-retry infrastructure"

	.no_dead_strip	_hynix_nand_rr_init
.subsections_via_symbols
