	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns_hwcontrol
_ns_hwcontrol:                          ## @ns_hwcontrol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %r9
	movq	_NAND_CLE@GOTPCREL(%rip), %r8
	xorl	%ecx, %ecx
	movl	(%r8), %eax
	andl	%edx, %eax
	setne	%cl
	movl	%ecx, (%r9)
	movq	_NAND_ALE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%edx, %eax
	setne	%cl
	movl	%ecx, 4(%r9)
	movq	_NAND_NCE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %edx
	setne	%cl
	movl	%ecx, 8(%r9)
	movq	_NAND_CMD_NONE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	popq	%rbp
	retq
LBB0_2:
	popq	%rbp
	jmp	_ns_nand_write_byte             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CLE,4,2                   ## @NAND_CLE
	.comm	_NAND_ALE,4,2                   ## @NAND_ALE
	.comm	_NAND_NCE,4,2                   ## @NAND_NCE
	.comm	_NAND_CMD_NONE,4,2              ## @NAND_CMD_NONE
	.no_dead_strip	_ns_hwcontrol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns_hwcontrol
_ns_hwcontrol:                          ; @ns_hwcontrol
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _NAND_CLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_CLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w2
	cset	w9, ne
	str	w9, [x8]
Lloh3:
	adrp	x9, _NAND_ALE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_ALE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w2
	cset	w9, ne
Lloh6:
	adrp	x10, _NAND_NCE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NAND_NCE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w2
	cset	w10, ne
	stp	w9, w10, [x8, #4]
Lloh9:
	adrp	x8, _NAND_CMD_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NAND_CMD_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ret
LBB0_2:
	b	_ns_nand_write_byte
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CLE,4,2                   ; @NAND_CLE
	.comm	_NAND_ALE,4,2                   ; @NAND_ALE
	.comm	_NAND_NCE,4,2                   ; @NAND_NCE
	.comm	_NAND_CMD_NONE,4,2              ; @NAND_CMD_NONE
	.no_dead_strip	_ns_hwcontrol
.subsections_via_symbols
