	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hynix_mlc_1xnm_rr_value
_hynix_mlc_1xnm_rr_value:               ## @hynix_mlc_1xnm_rr_value
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	16(%rbp), %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NAND_HYNIX_1XNM_RR_REPEAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.1:
	imull	%r14d, %ebx
	addl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	imull	%r14d, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, %r14
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rbx
	movl	%r13d, %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	callq	_NAND_HYNIX_1XNM_RR_SET_OFFS
	movq	%rbx, %rdi
	addl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	movl	(%r14,%rax,4), %eax
	movl	%eax, (%rbx,%r13,4)
	incq	%r13
	movq	_NAND_HYNIX_1XNM_RR_REPEAT@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	cmpq	%r15, %r13
	jl	LBB0_2
## %bb.3:
	movq	16(%rbp), %r13
LBB0_4:
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_hynix_get_majority
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	notl	(%r13)
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_HYNIX_1XNM_RR_REPEAT,4,2  ## @NAND_HYNIX_1XNM_RR_REPEAT
	.no_dead_strip	_hynix_mlc_1xnm_rr_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hynix_mlc_1xnm_rr_value
_hynix_mlc_1xnm_rr_value:               ; @hynix_mlc_1xnm_rr_value
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x6
	mov	x20, x5
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _NAND_HYNIX_1XNM_RR_REPEAT@GOTPAGE
Lloh4:
	ldr	x25, [x25, _NAND_HYNIX_1XNM_RR_REPEAT@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x12, x8, #2
	mov	x9, x12
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x7fffffff0
	sub	x22, x9, x10
	mov	sp, x22
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	madd	w26, w3, w2, w4
	mul	w24, w2, w1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x24
	mov	x2, x20
	bl	_NAND_HYNIX_1XNM_RR_SET_OFFS
	add	w8, w26, w0
	ldr	w8, [x21, w8, sxtw #2]
	str	w8, [x22, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [x25]
	cmp	x23, x8
	b.lt	LBB0_2
; %bb.3:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_4:
	mov	x0, x22
	mov	x1, x8
	mov	x2, x19
	bl	_hynix_get_majority
	cbz	w20, LBB0_7
; %bb.5:
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x19]
	mvn	w8, w8
	str	w8, [x19]
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_HYNIX_1XNM_RR_REPEAT,4,2  ; @NAND_HYNIX_1XNM_RR_REPEAT
	.no_dead_strip	_hynix_mlc_1xnm_rr_value
.subsections_via_symbols
