	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c2440_nand_hwcontrol
_s3c2440_nand_hwcontrol:                ## @s3c2440_nand_hwcontrol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_s3c2410_nand_mtd_toinfo
	movq	_NAND_CMD_NONE@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_1
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_NAND_CLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	jne	LBB0_2
## %bb.3:
	movq	_S3C2440_NFADDR@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_S3C2440_NFCMD@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writeb                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_NONE,4,2              ## @NAND_CMD_NONE
	.comm	_NAND_CLE,4,2                   ## @NAND_CLE
	.comm	_S3C2440_NFCMD,8,3              ## @S3C2440_NFCMD
	.comm	_S3C2440_NFADDR,8,3             ## @S3C2440_NFADDR
	.no_dead_strip	_s3c2440_nand_hwcontrol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c2440_nand_hwcontrol
_s3c2440_nand_hwcontrol:                ; @s3c2440_nand_hwcontrol
	.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	x20, x2
	mov	x19, x1
	bl	_s3c2410_nand_mtd_toinfo
Lloh0:
	adrp	x8, _NAND_CMD_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CMD_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x8, _NAND_CLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAND_CLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x0]
Lloh6:
	adrp	x10, _S3C2440_NFADDR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _S3C2440_NFADDR@GOTPAGEOFF]
Lloh8:
	adrp	x11, _S3C2440_NFCMD@GOTPAGE
Lloh9:
	ldr	x11, [x11, _S3C2440_NFCMD@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	add	x1, x8, x9
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writeb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_NONE,4,2              ; @NAND_CMD_NONE
	.comm	_NAND_CLE,4,2                   ; @NAND_CLE
	.comm	_S3C2440_NFCMD,8,3              ; @S3C2440_NFCMD
	.comm	_S3C2440_NFADDR,8,3             ; @S3C2440_NFADDR
	.no_dead_strip	_s3c2440_nand_hwcontrol
.subsections_via_symbols
