	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ams_delta_exec_op
_ams_delta_exec_op:                     ## @ams_delta_exec_op
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_nand_get_controller_data
	xorl	%r12d, %r12d
	testl	%r13d, %r13d
	jne	LBB0_17
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_ams_delta_ctrl_cs
	cmpl	$0, (%r15)
	jle	LBB0_15
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rbx
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r14), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	leaq	56(%rbx), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_ams_delta_write_buf
	movl	8(%r14), %edi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%esi, %esi
	callq	_gpiod_set_value
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$64, %rbx
	movslq	(%r15), %rax
	shlq	$6, %rax
	addq	8(%r15), %rax
	cmpq	%rax, %rbx
	jae	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %esi
	movl	8(%rbx), %edx
	testl	%esi, %esi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nand_gpio_waitrdy
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rsi
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	callq	_ams_delta_write_buf
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%rbx), %edx
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_ams_delta_read_buf
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r14), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	movq	48(%rbx), %rsi
	movl	40(%rbx), %edx
	movq	%r14, %rdi
	callq	_ams_delta_write_buf
	movl	4(%r14), %edi
	jmp	LBB0_6
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%edx, %esi
	callq	_nand_soft_waitrdy
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_14
	jmp	LBB0_16
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ams_delta_ctrl_cs
LBB0_17:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_ams_delta_exec_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ams_delta_exec_op
_ams_delta_exec_op:                     ; @ams_delta_exec_op
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_nand_get_controller_data
	cbz	w22, LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_17
LBB0_2:
	mov	x19, x0
	mov	w1, #1
	bl	_ams_delta_ctrl_cs
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.3:
	ldr	x23, [x20, #8]
Lloh0:
	adrp	x24, lJTI0_0@PAGE
Lloh1:
	add	x24, x24, lJTI0_0@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #8]
	mov	w1, #1
	bl	_gpiod_set_value
	add	x1, x23, #56
	mov	x0, x19
	mov	w2, #1
	bl	_ams_delta_write_buf
	ldr	w0, [x19, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w1, #0
	bl	_gpiod_set_value
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #64
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #6
	cmp	x23, x8
	b.hs	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x19]
	ldr	w2, [x23, #8]
	mov	x0, x21
	cbz	w1, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_nand_gpio_waitrdy
	mov	x22, x0
	cbz	w0, LBB0_6
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x23, #24]
	ldr	w2, [x23, #16]
	mov	x0, x19
	bl	_ams_delta_write_buf
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x23, #32]
	ldr	w2, [x23, #16]
	mov	x0, x19
	bl	_ams_delta_read_buf
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_gpiod_set_value
	ldr	x1, [x23, #48]
	ldr	w2, [x23, #40]
	mov	x0, x19
	bl	_ams_delta_write_buf
	ldr	w0, [x19, #4]
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x2
	bl	_nand_soft_waitrdy
	mov	x22, x0
	cbz	w0, LBB0_6
	b	LBB0_16
LBB0_15:
	mov	w22, #0
LBB0_16:
	mov	x0, x19
	mov	w1, #0
	bl	_ams_delta_ctrl_cs
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.no_dead_strip	_ams_delta_exec_op
.subsections_via_symbols
