	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c2410_nand_update_chip
_s3c2410_nand_update_chip:              ## @s3c2410_nand_update_chip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	movl	(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_dbg
	movq	8(%rbx), %rax
	movq	_NAND_ECC_HW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpl	$11, (%rbx)
	jl	LBB0_3
## %bb.2:
	movabsq	$12884902144, %rax              ## imm = 0x300000100
	movq	%rax, 16(%rbx)
	jmp	LBB0_4
LBB0_3:
	movabsq	$12884902400, %rax              ## imm = 0x300000200
	movq	%rax, 16(%rbx)
	movq	_nand_hw_eccoob@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip %p => page shift %d\n"

	.comm	_NAND_ECC_HW,8,3                ## @NAND_ECC_HW
	.comm	_nand_hw_eccoob,4,2             ## @nand_hw_eccoob
	.no_dead_strip	_s3c2410_nand_update_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function s3c2410_nand_update_chip
lCPI0_0:
	.long	512                             ; 0x200
	.long	3                               ; 0x3
lCPI0_1:
	.long	256                             ; 0x100
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_s3c2410_nand_update_chip:              ; @s3c2410_nand_update_chip
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x0]
	ldr	w3, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _NAND_ECC_HW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NAND_ECC_HW@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #11
	b.lt	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x19, #16]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #16]
Lloh9:
	adrp	x8, _nand_hw_eccoob@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nand_hw_eccoob@GOTPAGEOFF]
	str	x8, [x19, #24]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip %p => page shift %d\n"

	.comm	_NAND_ECC_HW,8,3                ; @NAND_ECC_HW
	.comm	_nand_hw_eccoob,4,2             ; @nand_hw_eccoob
	.no_dead_strip	_s3c2410_nand_update_chip
.subsections_via_symbols
