	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pulseIn                        ## -- Begin function pulseIn
	.p2align	4, 0x90
_pulseIn:                               ## @pulseIn
	.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
	movq	%rdx, %r12
	movl	%esi, %r13d
	movl	%edi, %ebx
	callq	_digitalPinToBitMask
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_digitalPinToPort
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	movl	%r14d, %r15d
	cmovel	%r13d, %r14d
	movq	%r12, %rdi
	callq	_microsecondsToClockCycles
                                        ## kill: def $eax killed $eax def $rax
	leal	15(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rbx
	incq	%rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_portInputRegister
	movl	(%rax), %eax
	andl	%r15d, %eax
	cmpl	%r14d, %eax
	jne	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%rbx
	jne	LBB0_1
	jmp	LBB0_10
LBB0_2:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_portInputRegister
	movl	(%rax), %eax
	andl	%r15d, %eax
	cmpl	%r14d, %eax
	je	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	cmpq	%r12, %rbx
	jne	LBB0_3
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_portInputRegister
	movl	(%rax), %eax
	andl	%r15d, %eax
	movl	$16, %r13d
	cmpl	%r14d, %eax
	jne	LBB0_8
## %bb.5:
	subq	%r12, %rbx
	movl	$16, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rbx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$21, %r13
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_portInputRegister
	movl	(%rax), %eax
	andl	%r15d, %eax
	cmpl	%r14d, %eax
	je	LBB0_6
LBB0_8:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clockCyclesToMicroseconds      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pulseIn                        ; -- Begin function pulseIn
	.p2align	2
_pulseIn:                               ; @pulseIn
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_digitalPinToBitMask
	mov	x19, x0
	mov	x0, x20
	bl	_digitalPinToPort
	mov	x20, x0
	cmp	w22, #0
	csel	w22, wzr, w19, eq
	mov	x0, x21
	bl	_microsecondsToClockCycles
	add	w8, w0, #15
	cmp	w0, #0
	csel	w8, w8, w0, lt
	sbfx	x8, x8, #4, #28
	add	x21, x8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_portInputRegister
	ldr	w8, [x0]
	and	w8, w8, w19
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	x21, x21, #1
	b.ne	LBB0_1
	b	LBB0_6
LBB0_3:
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_portInputRegister
	ldr	w8, [x0]
	and	w8, w8, w19
	cmp	w8, w22
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x21, x23
	b.ne	LBB0_4
LBB0_6:
	mov	x0, #0
	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
LBB0_7:
	mov	x0, x20
	bl	_portInputRegister
	ldr	w8, [x0]
	and	w8, w8, w19
	cmp	w8, w22
	b.ne	LBB0_11
; %bb.8:
	sub	x23, x21, x23
	mov	w21, #16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	subs	x23, x23, #1
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #21
	mov	x0, x20
	bl	_portInputRegister
	ldr	w8, [x0]
	and	w8, w8, w19
	cmp	w8, w22
	b.eq	LBB0_9
	b	LBB0_12
LBB0_11:
	mov	w21, #16
LBB0_12:
	mov	x0, x21
	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
	b	_clockCyclesToMicroseconds
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
