	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rts_reset                      ## -- Begin function rts_reset
	.p2align	4, 0x90
_rts_reset:                             ## @rts_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_RTS_PIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_digitalRead
	movq	%rax, _rts_reset.firstread(%rip)
	movl	(%rbx), %edi
	movq	_PinDirectionOutput@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pinMode
	movq	_rts_reset.firstread(%rip), %rax
	movq	_PinLevelHigh@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_PinLevelLow@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_digitalWrite
LBB0_2:
	movl	$10, %edi
	callq	__delay_ms
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	callq	_digitalWrite
	movl	$5, %edi
	callq	__delay_ms
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_rts_reset.firstread,8,3 ## @rts_reset.firstread
	.comm	_RTS_PIN,4,2                    ## @RTS_PIN
	.comm	_PinDirectionOutput,4,2         ## @PinDirectionOutput
	.comm	_PinLevelHigh,8,3               ## @PinLevelHigh
	.comm	_PinLevelLow,8,3                ## @PinLevelLow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rts_reset                      ; -- Begin function rts_reset
	.p2align	2
_rts_reset:                             ; @rts_reset
	.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
Lloh0:
	adrp	x19, _RTS_PIN@GOTPAGE
Lloh1:
	ldr	x19, [x19, _RTS_PIN@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_digitalRead
Lloh2:
	adrp	x20, _rts_reset.firstread@PAGE
	str	x0, [x20, _rts_reset.firstread@PAGEOFF]
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _PinDirectionOutput@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PinDirectionOutput@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_pinMode
	ldr	x8, [x20, _rts_reset.firstread@PAGEOFF]
Lloh6:
	adrp	x20, _PinLevelHigh@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PinLevelHigh@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _PinLevelLow@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PinLevelLow@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	bl	_digitalWrite
LBB0_2:
	mov	w0, #10
	bl	__delay_ms
	ldr	w0, [x19]
	ldr	x1, [x20]
	bl	_digitalWrite
	mov	w0, #5
	bl	__delay_ms
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_rts_reset.firstread,8,3 ; @rts_reset.firstread
	.comm	_RTS_PIN,4,2                    ; @RTS_PIN
	.comm	_PinDirectionOutput,4,2         ; @PinDirectionOutput
	.comm	_PinLevelHigh,8,3               ; @PinLevelHigh
	.comm	_PinLevelLow,8,3                ; @PinLevelLow
.subsections_via_symbols
