	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hynix_read_rr_otp
_hynix_read_rr_otp:                     ## @hynix_read_rr_otp
	.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
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_nand_reset_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	_NAND_HYNIX_CMD_SET_PARAMS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_hynix_nand_cmd_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.2:
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	24(%r13), %rcx
	movl	(%rax,%rbx,4), %esi
	movl	(%rcx,%rbx,4), %edx
	movq	%r15, %rdi
	callq	_hynix_nand_reg_write_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_NAND_HYNIX_CMD_APPLY_PARAMS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_hynix_nand_cmd_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movq	%r15, %rdi
	movl	$23, %esi
	callq	_hynix_nand_cmd_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_hynix_nand_cmd_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	%r15, %rdi
	movl	$25, %esi
	callq	_hynix_nand_cmd_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movl	16(%r13), %r8d
	movl	20(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_nand_read_page_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	%r15, %rdi
	callq	_nand_reset_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_hynix_nand_cmd_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	movl	$56, %esi
	xorl	%edx, %edx
	callq	_hynix_nand_reg_write_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_hynix_nand_cmd_op
	testl	%eax, %eax
	je	LBB0_16
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nand_read_page_op              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_HYNIX_CMD_SET_PARAMS,4,2  ## @NAND_HYNIX_CMD_SET_PARAMS
	.comm	_NAND_HYNIX_CMD_APPLY_PARAMS,4,2 ## @NAND_HYNIX_CMD_APPLY_PARAMS
	.no_dead_strip	_hynix_read_rr_otp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hynix_read_rr_otp
_hynix_read_rr_otp:                     ; @hynix_read_rr_otp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_nand_reset_op
	cbnz	w0, LBB0_15
; %bb.1:
Lloh0:
	adrp	x22, _NAND_HYNIX_CMD_SET_PARAMS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NAND_HYNIX_CMD_SET_PARAMS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_hynix_nand_cmd_op
	cbnz	w0, LBB0_15
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	lsl	x9, x23, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x21, #24]
	ldr	w2, [x8, x9]
	mov	x0, x19
	bl	_hynix_nand_reg_write_op
	cbnz	w0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_6:
Lloh2:
	adrp	x23, _NAND_HYNIX_CMD_APPLY_PARAMS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NAND_HYNIX_CMD_APPLY_PARAMS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_hynix_nand_cmd_op
	cbnz	w0, LBB0_15
; %bb.7:
	mov	x0, x19
	mov	w1, #23
	bl	_hynix_nand_cmd_op
	cbnz	w0, LBB0_15
; %bb.8:
	mov	x0, x19
	mov	w1, #4
	bl	_hynix_nand_cmd_op
	cbnz	w0, LBB0_15
; %bb.9:
	mov	x0, x19
	mov	w1, #25
	bl	_hynix_nand_cmd_op
	cbnz	w0, LBB0_15
; %bb.10:
	ldp	w4, w1, [x21, #16]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_nand_read_page_op
	cbnz	w0, LBB0_15
; %bb.11:
	mov	x0, x19
	bl	_nand_reset_op
	cbnz	w0, LBB0_15
; %bb.12:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_hynix_nand_cmd_op
	cbnz	w0, LBB0_15
; %bb.13:
	mov	x0, x19
	mov	w1, #56
	mov	w2, #0
	bl	_hynix_nand_reg_write_op
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_hynix_nand_cmd_op
	cbz	w0, LBB0_16
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nand_read_page_op
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_HYNIX_CMD_SET_PARAMS,4,2  ; @NAND_HYNIX_CMD_SET_PARAMS
	.comm	_NAND_HYNIX_CMD_APPLY_PARAMS,4,2 ; @NAND_HYNIX_CMD_APPLY_PARAMS
	.no_dead_strip	_hynix_read_rr_otp
.subsections_via_symbols
