	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_digitalRead                    ## -- Begin function digitalRead
	.p2align	4, 0x90
_digitalRead:                           ## @digitalRead
	.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
	movq	%rdi, %rbx
	callq	_digitalPinToTimer
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_digitalPinToBitMask
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_digitalPinToPort
	movq	%rax, %rbx
	movq	_NOT_A_PIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.1:
	movq	_NOT_ON_TIMER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_turnOffPWM
LBB0_3:
	movq	%rbx, %rdi
	callq	_portInputRegister
	testq	%r14, (%rax)
	jne	LBB0_4
LBB0_5:
	movq	_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_HIGH@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOT_A_PIN,8,3                  ## @NOT_A_PIN
	.comm	_LOW,4,2                        ## @LOW
	.comm	_NOT_ON_TIMER,8,3               ## @NOT_ON_TIMER
	.comm	_HIGH,4,2                       ## @HIGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_digitalRead                    ; -- Begin function digitalRead
	.p2align	2
_digitalRead:                           ; @digitalRead
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	bl	_digitalPinToTimer
	mov	x20, x0
	mov	x0, x21
	bl	_digitalPinToBitMask
	mov	x19, x0
	mov	x0, x21
	bl	_digitalPinToPort
Lloh0:
	adrp	x8, _NOT_A_PIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NOT_A_PIN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _LOW@GOTPAGE
Lloh4:
	ldr	x22, [x22, _LOW@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.1:
	mov	x21, x0
Lloh5:
	adrp	x8, _NOT_ON_TIMER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NOT_ON_TIMER@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_turnOffPWM
LBB0_3:
	mov	x0, x21
	bl	_portInputRegister
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _HIGH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HIGH@GOTPAGEOFF]
	tst	x8, x19
	csel	x22, x22, x9, eq
LBB0_4:
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NOT_A_PIN,8,3                  ; @NOT_A_PIN
	.comm	_LOW,4,2                        ; @LOW
	.comm	_NOT_ON_TIMER,8,3               ; @NOT_ON_TIMER
	.comm	_HIGH,4,2                       ; @HIGH
.subsections_via_symbols
