	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Rd_Indx
_Rd_Indx:                               ## @Rd_Indx
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %ebx
	movl	%edi, %r14d
	leal	(%rdx,%rdx), %eax
	orl	%eax, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ClkTx
	movl	$2, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_ActClk
	movl	$1, %edi
	callq	_udelay
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_Wr_Byte
	movl	$1, %edi
	callq	_Sdelay
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ClkTx
	movl	$2, %edi
	callq	_Tdelay
	movl	$10, %ebx
	movq	_Rd_Valid@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_ActClk
	movl	$1, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_ActClk
	movl	$1, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_ClkTx
	movl	$1, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	movl	$52, %esi
	callq	_ReadReg
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	jne	LBB0_2
## %bb.6:
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_ActClk
	movl	$1, %edi
	callq	_Tdelay
	xorl	%r15d, %r15d
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_ActClk
	movl	$2, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_ActClk
	movl	$1, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_ActClk
	movl	$2, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	movl	$52, %esi
	callq	_ReadReg
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
	movq	_RxBit@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_ActClk
	movl	$1, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_ActClk
	movl	%r14d, %edi
	movl	$52, %esi
	callq	_ReadReg
	andl	(%r12), %eax
	movl	%r15d, %ecx
	btsl	%ebx, %ecx
	btrl	%ebx, %r15d
	testl	%eax, %eax
	cmovnel	%ecx, %r15d
	movl	$2, %edi
	callq	_Tdelay
	incl	%ebx
	cmpl	$8, %ebx
	jne	LBB0_4
LBB0_5:
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_ActClk
	movl	$1, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_ActClk
	movl	$2, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ClkTx
	movl	$1, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_ActClk
	movl	$1, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_ActClk
	movl	$2, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_ActClk
	movl	$1, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_ActClk
	movl	$2, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_ActClk
	movl	$1, %edi
	callq	_Tdelay
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_ActClk
	movl	$2, %edi
	callq	_Tdelay
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Rd_Valid,4,2                   ## @Rd_Valid
	.comm	_RxBit,4,2                      ## @RxBit
	.no_dead_strip	_Rd_Indx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Rd_Indx
_Rd_Indx:                               ; @Rd_Indx
	.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	x19, x0
	orr	w20, w1, w2, lsl #1
	mov	w1, #0
	mov	w2, #0
	bl	_ClkTx
	mov	w0, #2
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #1
	bl	_ActClk
	mov	w0, #1
	bl	_udelay
	mov	x0, x19
	mov	x1, x20
	bl	_Wr_Byte
	mov	w0, #1
	bl	_Sdelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_ClkTx
	mov	w0, #2
	bl	_Tdelay
	mov	w20, #10
Lloh0:
	adrp	x21, _Rd_Valid@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Rd_Valid@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_ActClk
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #0
	bl	_ActClk
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_ClkTx
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #52
	bl	_ReadReg
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w20, w20, #1
	b.ne	LBB0_1
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_ActClk
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #0
	bl	_ActClk
	mov	w0, #2
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #1
	bl	_ActClk
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #0
	bl	_ActClk
	mov	w0, #2
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #52
	bl	_ReadReg
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	mov	w20, #0
	mov	w22, #1
Lloh2:
	adrp	x23, _RxBit@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RxBit@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_ActClk
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #0
	bl	_ActClk
	mov	x0, x19
	mov	w1, #52
	bl	_ReadReg
	lsl	w8, w22, w21
	ldr	w9, [x23]
	orr	w10, w8, w20
	bic	w8, w20, w8
	tst	w9, w0
	csel	w20, w8, w10, eq
	mov	w0, #2
	bl	_Tdelay
	add	w21, w21, #1
	cmp	w21, #8
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	bl	_ActClk
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #0
	bl	_ActClk
	mov	w0, #2
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_ClkTx
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #1
	bl	_ActClk
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #0
	bl	_ActClk
	mov	w0, #2
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #1
	bl	_ActClk
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #0
	bl	_ActClk
	mov	w0, #2
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #1
	bl	_ActClk
	mov	w0, #1
	bl	_Tdelay
	mov	x0, x19
	mov	w1, #0
	bl	_ActClk
	mov	w0, #2
	bl	_Tdelay
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_Rd_Valid,4,2                   ; @Rd_Valid
	.comm	_RxBit,4,2                      ; @RxBit
	.no_dead_strip	_Rd_Indx
.subsections_via_symbols
