	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ams_delta_hwcontrol
_ams_delta_hwcontrol:                   ## @ams_delta_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	%edx, %eax
	notl	%eax
	movq	_NAND_NCE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	andl	(%rcx), %eax
	movq	_AMS_DELTA_LATCH2_NAND_NCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rcx
	cmoveq	%rsi, %rcx
	movq	_NAND_CLE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%edx, %edi
	movq	_AMS_DELTA_LATCH2_NAND_CLE@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	%rdi, %rbx
	cmoveq	%rsi, %rbx
	orq	%rcx, %rbx
	movq	_NAND_ALE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_AMS_DELTA_LATCH2_NAND_ALE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmovneq	%rcx, %rsi
	orq	%rbx, %rsi
	orq	%rax, %rdi
	orq	%rcx, %rdi
	callq	_ams_delta_latch2_write
LBB0_2:
	movq	_NAND_CMD_NONE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ams_delta_write_byte           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CTRL_CHANGE,4,2           ## @NAND_CTRL_CHANGE
	.comm	_NAND_NCE,4,2                   ## @NAND_NCE
	.comm	_AMS_DELTA_LATCH2_NAND_NCE,8,3  ## @AMS_DELTA_LATCH2_NAND_NCE
	.comm	_NAND_CLE,4,2                   ## @NAND_CLE
	.comm	_AMS_DELTA_LATCH2_NAND_CLE,8,3  ## @AMS_DELTA_LATCH2_NAND_CLE
	.comm	_NAND_ALE,4,2                   ## @NAND_ALE
	.comm	_AMS_DELTA_LATCH2_NAND_ALE,8,3  ## @AMS_DELTA_LATCH2_NAND_ALE
	.comm	_NAND_CMD_NONE,4,2              ## @NAND_CMD_NONE
	.no_dead_strip	_ams_delta_hwcontrol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ams_delta_hwcontrol
_ams_delta_hwcontrol:                   ; @ams_delta_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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NAND_CTRL_CHANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CTRL_CHANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _NAND_NCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAND_NCE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _AMS_DELTA_LATCH2_NAND_NCE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AMS_DELTA_LATCH2_NAND_NCE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	x9, [x9]
	bics	wzr, w8, w2
	csel	x8, xzr, x9, eq
Lloh9:
	adrp	x10, _NAND_CLE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NAND_CLE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _AMS_DELTA_LATCH2_NAND_CLE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _AMS_DELTA_LATCH2_NAND_CLE@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	tst	w10, w2
	csel	x10, xzr, x11, eq
	orr	x8, x10, x8
Lloh15:
	adrp	x10, _NAND_ALE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _NAND_ALE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x12, _AMS_DELTA_LATCH2_NAND_ALE@GOTPAGE
Lloh19:
	ldr	x12, [x12, _AMS_DELTA_LATCH2_NAND_ALE@GOTPAGEOFF]
Lloh20:
	ldr	x12, [x12]
	tst	w10, w2
	csel	x10, xzr, x12, eq
	orr	x1, x8, x10
	orr	x8, x11, x9
	orr	x0, x8, x12
	bl	_ams_delta_latch2_write
LBB0_2:
Lloh21:
	adrp	x8, _NAND_CMD_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NAND_CMD_NONE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ams_delta_write_byte
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CTRL_CHANGE,4,2           ; @NAND_CTRL_CHANGE
	.comm	_NAND_NCE,4,2                   ; @NAND_NCE
	.comm	_AMS_DELTA_LATCH2_NAND_NCE,8,3  ; @AMS_DELTA_LATCH2_NAND_NCE
	.comm	_NAND_CLE,4,2                   ; @NAND_CLE
	.comm	_AMS_DELTA_LATCH2_NAND_CLE,8,3  ; @AMS_DELTA_LATCH2_NAND_CLE
	.comm	_NAND_ALE,4,2                   ; @NAND_ALE
	.comm	_AMS_DELTA_LATCH2_NAND_ALE,8,3  ; @AMS_DELTA_LATCH2_NAND_ALE
	.comm	_NAND_CMD_NONE,4,2              ; @NAND_CMD_NONE
	.no_dead_strip	_ams_delta_hwcontrol
.subsections_via_symbols
