	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mchip_delay
_mchip_delay:                           ## @mchip_delay
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_mchip_read
	movq	%rax, %rcx
	movl	$9, %eax
	cmpq	%r14, %rcx
	je	LBB0_10
## %bb.1:
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_mchip_read
	movq	%rax, %rcx
	movl	$8, %eax
	cmpq	%r14, %rcx
	je	LBB0_10
## %bb.2:
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_mchip_read
	movq	%rax, %rcx
	movl	$7, %eax
	cmpq	%r14, %rcx
	je	LBB0_10
## %bb.3:
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_mchip_read
	movq	%rax, %rcx
	movl	$6, %eax
	cmpq	%r14, %rcx
	je	LBB0_10
## %bb.4:
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_mchip_read
	movq	%rax, %rcx
	movl	$5, %eax
	cmpq	%r14, %rcx
	je	LBB0_10
## %bb.5:
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_mchip_read
	movq	%rax, %rcx
	movl	$4, %eax
	cmpq	%r14, %rcx
	je	LBB0_10
## %bb.6:
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_mchip_read
	movq	%rax, %rcx
	movl	$3, %eax
	cmpq	%r14, %rcx
	je	LBB0_10
## %bb.7:
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_mchip_read
	movq	%rax, %rcx
	movl	$2, %eax
	cmpq	%r14, %rcx
	je	LBB0_10
## %bb.8:
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_mchip_read
	movq	%rax, %rcx
	movl	$1, %eax
	cmpq	%r14, %rcx
	je	LBB0_10
## %bb.9:
	movl	$1, %edi
	callq	_udelay
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mchip_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mchip_delay
_mchip_delay:                           ; @mchip_delay
	.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	x19, x1
	mov	x20, x0
	bl	_mchip_read
	cmp	x0, x19
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #9
	b	LBB0_18
LBB0_2:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_mchip_read
	cmp	x0, x19
	b.ne	LBB0_4
; %bb.3:
	mov	w21, #8
	b	LBB0_18
LBB0_4:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_mchip_read
	cmp	x0, x19
	b.ne	LBB0_6
; %bb.5:
	mov	w21, #7
	b	LBB0_18
LBB0_6:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_mchip_read
	cmp	x0, x19
	b.ne	LBB0_8
; %bb.7:
	mov	w21, #6
	b	LBB0_18
LBB0_8:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_mchip_read
	cmp	x0, x19
	b.ne	LBB0_10
; %bb.9:
	mov	w21, #5
	b	LBB0_18
LBB0_10:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_mchip_read
	cmp	x0, x19
	b.ne	LBB0_12
; %bb.11:
	mov	w21, #4
	b	LBB0_18
LBB0_12:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_mchip_read
	cmp	x0, x19
	b.ne	LBB0_14
; %bb.13:
	mov	w21, #3
	b	LBB0_18
LBB0_14:
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_mchip_read
	cmp	x0, x19
	b.ne	LBB0_16
; %bb.15:
	mov	w21, #2
	b	LBB0_18
LBB0_16:
	mov	w21, #1
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_mchip_read
	cmp	x0, x19
	b.eq	LBB0_18
; %bb.17:
	mov	w0, #1
	bl	_udelay
	mov	w21, #0
LBB0_18:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mchip_delay
.subsections_via_symbols
