	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orion_nand_cmd_ctrl
_orion_nand_cmd_ctrl:                   ## @orion_nand_cmd_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NAND_CMD_NONE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
LBB0_5:
	popq	%rbp
	retq
LBB0_1:
	movq	(%rdi), %rdi
	movq	16(%rdi), %rax
	movq	_NAND_CLE@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	jne	LBB0_4
## %bb.2:
	movq	_NAND_ALE@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_5
## %bb.3:
	addq	$4, %rax
LBB0_4:
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rdi), %ecx
	setne	%cl
	shll	%cl, %eax
	cltq
	addq	8(%rdi), %rax
	movl	%esi, %edi
	movq	%rax, %rsi
	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	_NAND_ALE,4,2                   ## @NAND_ALE
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.no_dead_strip	_orion_nand_cmd_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orion_nand_cmd_ctrl
_orion_nand_cmd_ctrl:                   ; @orion_nand_cmd_ctrl
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NAND_CMD_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CMD_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
LBB0_1:
	ret
LBB0_2:
	ldr	x8, [x0]
	ldr	x9, [x8, #16]
Lloh3:
	adrp	x10, _NAND_CLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NAND_CLE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w2
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x10, _NAND_ALE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NAND_ALE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w2
	b.eq	LBB0_1
; %bb.4:
	add	x9, x9, #4
LBB0_5:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	ldr	w10, [x8]
Lloh9:
	adrp	x11, _NAND_BUSWIDTH_16@GOTPAGE
Lloh10:
	ldr	x11, [x11, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w10
	cset	w10, ne
	lsl	w9, w9, w10
	ldr	x8, [x8, #8]
	add	x8, x8, w9, sxtw
	mov	x0, x1
	mov	x1, x8
	b	_writeb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_NONE,4,2              ; @NAND_CMD_NONE
	.comm	_NAND_CLE,4,2                   ; @NAND_CLE
	.comm	_NAND_ALE,4,2                   ; @NAND_ALE
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.no_dead_strip	_orion_nand_cmd_ctrl
.subsections_via_symbols
