	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5pcxx_nand_enable_hwecc
_s5pcxx_nand_enable_hwecc:              ## @s5pcxx_nand_enable_hwecc
	.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
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movq	8(%rax), %rbx
	movl	(%rax), %edi
	shll	$16, %edi
	addl	$-65533, %edi                   ## imm = 0xFFFF0003
	movq	_S5P_NFECCCONF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_S5P_NFECCCONT@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	movq	_S5P_NFECCCONT_ECCDIRWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NAND_ECC_WRITE@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	%r14d, (%rax)
	cmovel	%esi, %edx
	callq	_rwl
	movq	_S5P_NFECCSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	xorl	%esi, %esi
	movl	$50331648, %edx                 ## imm = 0x3000000
	callq	_rwl
	movq	_S5P_NFCONT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	movq	_S5P_NFCONT_MECCLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rwl
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	movq	_S5P_NFECCCONT_MECCINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rwl                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_NFECCCONF,8,3              ## @S5P_NFECCCONF
	.comm	_S5P_NFECCCONT,8,3              ## @S5P_NFECCCONT
	.comm	_S5P_NFECCCONT_ECCDIRWR,4,2     ## @S5P_NFECCCONT_ECCDIRWR
	.comm	_NAND_ECC_WRITE,4,2             ## @NAND_ECC_WRITE
	.comm	_S5P_NFECCSTAT,8,3              ## @S5P_NFECCSTAT
	.comm	_S5P_NFCONT,8,3                 ## @S5P_NFCONT
	.comm	_S5P_NFCONT_MECCLOCK,4,2        ## @S5P_NFCONT_MECCLOCK
	.comm	_S5P_NFECCCONT_MECCINIT,4,2     ## @S5P_NFECCCONT_MECCINIT
	.no_dead_strip	_s5pcxx_nand_enable_hwecc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5pcxx_nand_enable_hwecc
_s5pcxx_nand_enable_hwecc:              ; @s5pcxx_nand_enable_hwecc
	.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, x1
	ldr	x8, [x0]
	ldr	x20, [x8, #8]
	ldr	w8, [x8]
	mov	w9, #-65533
	add	w0, w9, w8, lsl #16
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _S5P_NFECCCONF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S5P_NFECCCONF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
Lloh3:
	adrp	x21, _S5P_NFECCCONT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _S5P_NFECCCONT@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
Lloh5:
	adrp	x8, _S5P_NFECCCONT_ECCDIRWR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S5P_NFECCCONT_ECCDIRWR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _NAND_ECC_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NAND_ECC_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w19
	csel	w2, w1, wzr, eq
	bl	_rwl
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _S5P_NFECCSTAT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _S5P_NFECCSTAT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	mov	w2, #50331648
	bl	_rwl
Lloh14:
	adrp	x8, _S5P_NFCONT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S5P_NFCONT@GOTPAGEOFF]
	ldr	x9, [x20, #8]
Lloh16:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh17:
	adrp	x8, _S5P_NFCONT_MECCLOCK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _S5P_NFCONT_MECCLOCK@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_rwl
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
Lloh20:
	adrp	x8, _S5P_NFECCCONT_MECCINIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _S5P_NFECCCONT_MECCINIT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w1, #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
	b	_rwl
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_NFECCCONF,8,3              ; @S5P_NFECCCONF
	.comm	_S5P_NFECCCONT,8,3              ; @S5P_NFECCCONT
	.comm	_S5P_NFECCCONT_ECCDIRWR,4,2     ; @S5P_NFECCCONT_ECCDIRWR
	.comm	_NAND_ECC_WRITE,4,2             ; @NAND_ECC_WRITE
	.comm	_S5P_NFECCSTAT,8,3              ; @S5P_NFECCSTAT
	.comm	_S5P_NFCONT,8,3                 ; @S5P_NFCONT
	.comm	_S5P_NFCONT_MECCLOCK,4,2        ; @S5P_NFCONT_MECCLOCK
	.comm	_S5P_NFECCCONT_MECCINIT,4,2     ; @S5P_NFECCCONT_MECCINIT
	.no_dead_strip	_s5pcxx_nand_enable_hwecc
.subsections_via_symbols
