	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pasemi_hwcontrol
_pasemi_hwcontrol:                      ## @pasemi_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	_NAND_CMD_NONE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
## %bb.5:
	popq	%rbp
	retq
LBB0_1:
	movq	(%rdi), %rax
	movq	_NAND_CLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	jne	LBB0_2
## %bb.3:
	movq	_ALE_PIN_CTL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_CLE_PIN_CTL@GOTPCREL(%rip), %rcx
LBB0_4:
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movslq	%edx, %rdi
	addq	(%rax), %rdi
	callq	_out_8
	xorl	%eax, %eax
	callq	_eieio
	movq	_lpcctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_inl                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_NONE,4,2              ## @NAND_CMD_NONE
	.comm	_NAND_CLE,4,2                   ## @NAND_CLE
	.comm	_CLE_PIN_CTL,4,2                ## @CLE_PIN_CTL
	.comm	_ALE_PIN_CTL,4,2                ## @ALE_PIN_CTL
	.comm	_lpcctl,4,2                     ## @lpcctl
	.no_dead_strip	_pasemi_hwcontrol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pasemi_hwcontrol
_pasemi_hwcontrol:                      ; @pasemi_hwcontrol
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
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
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _NAND_CLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_CLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	x8, [x8]
Lloh6:
	adrp	x10, _ALE_PIN_CTL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ALE_PIN_CTL@GOTPAGEOFF]
Lloh8:
	adrp	x11, _CLE_PIN_CTL@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CLE_PIN_CTL@GOTPAGEOFF]
	tst	w9, w2
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	add	x0, x8, w9, sxtw
	bl	_out_8
	bl	_eieio
Lloh10:
	adrp	x8, _lpcctl@GOTPAGE
Lloh11:
	ldr	x8, [x8, _lpcctl@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_inl
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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	_CLE_PIN_CTL,4,2                ; @CLE_PIN_CTL
	.comm	_ALE_PIN_CTL,4,2                ; @ALE_PIN_CTL
	.comm	_lpcctl,4,2                     ; @lpcctl
	.no_dead_strip	_pasemi_hwcontrol
.subsections_via_symbols
