	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_sbus_fast_mode           ## -- Begin function clear_sbus_fast_mode
	.p2align	4, 0x90
_clear_sbus_fast_mode:                  ## @clear_sbus_fast_mode
	.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	%rdi, %r12
	movq	_ASIC_STS_SBUS_COUNTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_read_csr
	movq	%rax, %r14
	movq	_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SBUS_COUNTER
	movq	%rax, %rbx
	movq	_RCV_DATA_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SBUS_COUNTER
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.1:
	movq	_SBUS_MAX_POLL_COUNT@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_5
## %bb.2:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	_ASIC_STS_SBUS_COUNTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_read_csr
	movq	%rax, %rbx
	movq	_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SBUS_COUNTER
	movq	%rax, %r14
	movq	_RCV_DATA_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SBUS_COUNTER
	cmpq	%rax, %r14
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r13), %rax
	cmpq	(%r15), %r13
	movq	%rax, %r13
	jl	LBB0_3
LBB0_5:
	movq	_ASIC_CFG_SBUS_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_csr                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ASIC_STS_SBUS_COUNTERS,4,2     ## @ASIC_STS_SBUS_COUNTERS
	.comm	_EXECUTE,4,2                    ## @EXECUTE
	.comm	_RCV_DATA_VALID,4,2             ## @RCV_DATA_VALID
	.comm	_SBUS_MAX_POLL_COUNT,8,3        ## @SBUS_MAX_POLL_COUNT
	.comm	_ASIC_CFG_SBUS_EXECUTE,4,2      ## @ASIC_CFG_SBUS_EXECUTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_clear_sbus_fast_mode           ; -- Begin function clear_sbus_fast_mode
	.p2align	2
_clear_sbus_fast_mode:                  ; @clear_sbus_fast_mode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x22, _ASIC_STS_SBUS_COUNTERS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ASIC_STS_SBUS_COUNTERS@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_read_csr
	mov	x20, x0
Lloh2:
	adrp	x23, _EXECUTE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EXECUTE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_SBUS_COUNTER
	mov	x21, x0
Lloh4:
	adrp	x24, _RCV_DATA_VALID@GOTPAGE
Lloh5:
	ldr	x24, [x24, _RCV_DATA_VALID@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_SBUS_COUNTER
Lloh6:
	adrp	x25, _SBUS_MAX_POLL_COUNT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SBUS_MAX_POLL_COUNT@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x21, x0
	ccmp	x8, #1, #8, ne
	b.lt	LBB0_3
; %bb.1:
	mov	w26, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_read_csr
	mov	x20, x0
	ldr	w1, [x23]
	bl	_SBUS_COUNTER
	mov	x21, x0
	ldr	w1, [x24]
	mov	x0, x20
	bl	_SBUS_COUNTER
	ldr	x8, [x25]
	cmp	x21, x0
	ccmp	x26, x8, #0, ne
	add	x26, x26, #1
	b.lt	LBB0_2
LBB0_3:
Lloh8:
	adrp	x8, _ASIC_CFG_SBUS_EXECUTE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASIC_CFG_SBUS_EXECUTE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_write_csr
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ASIC_STS_SBUS_COUNTERS,4,2     ; @ASIC_STS_SBUS_COUNTERS
	.comm	_EXECUTE,4,2                    ; @EXECUTE
	.comm	_RCV_DATA_VALID,4,2             ; @RCV_DATA_VALID
	.comm	_SBUS_MAX_POLL_COUNT,8,3        ; @SBUS_MAX_POLL_COUNT
	.comm	_ASIC_CFG_SBUS_EXECUTE,4,2      ; @ASIC_CFG_SBUS_EXECUTE
.subsections_via_symbols
