	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbus_request_slow              ## -- Begin function sbus_request_slow
	.p2align	4, 0x90
_sbus_request_slow:                     ## @sbus_request_slow
	.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
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_clear_sbus_fast_mode
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	_sbus_request
	movq	_ASIC_CFG_SBUS_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ASIC_CFG_SBUS_EXECUTE_EXECUTE_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_write_csr
	movq	_ASIC_STS_SBUS_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_read_csr
	movl	%eax, %ebx
	movq	_ASIC_STS_SBUS_RESULT_DONE_SMASK@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_2
## %bb.1:
	movq	_ASIC_STS_SBUS_RESULT_RCV_DATA_VALID_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	jne	LBB0_11
LBB0_2:
	movq	_SBUS_MAX_POLL_COUNT@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jle	LBB0_6
## %bb.3:
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	cmpq	%r12, (%r14)
	jle	LBB0_6
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	_ASIC_STS_SBUS_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_read_csr
	movl	%eax, %ebx
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_ASIC_STS_SBUS_RESULT_RCV_DATA_VALID_SMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	je	LBB0_5
	jmp	LBB0_11
LBB0_6:
	movq	_ASIC_STS_SBUS_COUNTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_read_csr
	testl	%ebx, (%r13)
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	movq	_RCV_DATA_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SBUS_COUNTER
	movq	%rax, %rbx
	movq	_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SBUS_COUNTER
	cmpq	%rax, %rbx
	jne	LBB0_8
LBB0_11:
	movq	_ASIC_CFG_SBUS_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	movq	_ASIC_STS_SBUS_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_read_csr
	testl	%eax, (%r13)
	je	LBB0_16
## %bb.12:
	movq	$-1, %rbx
	movq	_SBUS_MAX_POLL_COUNT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	cmpq	%rbx, (%r12)
	jle	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	_ASIC_STS_SBUS_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_read_csr
	testl	%eax, (%r13)
	jne	LBB0_13
	jmp	LBB0_16
LBB0_14:
	movq	_ETIME@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASIC_CFG_SBUS_EXECUTE,4,2      ## @ASIC_CFG_SBUS_EXECUTE
	.comm	_ASIC_CFG_SBUS_EXECUTE_EXECUTE_SMASK,4,2 ## @ASIC_CFG_SBUS_EXECUTE_EXECUTE_SMASK
	.comm	_ASIC_STS_SBUS_RESULT,4,2       ## @ASIC_STS_SBUS_RESULT
	.comm	_ASIC_STS_SBUS_RESULT_DONE_SMASK,4,2 ## @ASIC_STS_SBUS_RESULT_DONE_SMASK
	.comm	_ASIC_STS_SBUS_RESULT_RCV_DATA_VALID_SMASK,4,2 ## @ASIC_STS_SBUS_RESULT_RCV_DATA_VALID_SMASK
	.comm	_SBUS_MAX_POLL_COUNT,8,3        ## @SBUS_MAX_POLL_COUNT
	.comm	_ASIC_STS_SBUS_COUNTERS,4,2     ## @ASIC_STS_SBUS_COUNTERS
	.comm	_RCV_DATA_VALID,4,2             ## @RCV_DATA_VALID
	.comm	_EXECUTE,4,2                    ## @EXECUTE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ETIME,4,2                      ## @ETIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbus_request_slow              ; -- Begin function sbus_request_slow
	.p2align	2
_sbus_request_slow:                     ; @sbus_request_slow
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_clear_sbus_fast_mode
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_sbus_request
Lloh0:
	adrp	x24, _ASIC_CFG_SBUS_EXECUTE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ASIC_CFG_SBUS_EXECUTE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x8, _ASIC_CFG_SBUS_EXECUTE_EXECUTE_SMASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASIC_CFG_SBUS_EXECUTE_EXECUTE_SMASK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_write_csr
Lloh5:
	adrp	x22, _ASIC_STS_SBUS_RESULT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ASIC_STS_SBUS_RESULT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_read_csr
Lloh7:
	adrp	x23, _ASIC_STS_SBUS_RESULT_DONE_SMASK@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ASIC_STS_SBUS_RESULT_DONE_SMASK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w0
Lloh9:
	adrp	x21, _ASIC_STS_SBUS_RESULT_RCV_DATA_VALID_SMASK@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ASIC_STS_SBUS_RESULT_RCV_DATA_VALID_SMASK@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w9, w9, w0
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_8
; %bb.1:
Lloh11:
	adrp	x25, _SBUS_MAX_POLL_COUNT@GOTPAGE
Lloh12:
	ldr	x25, [x25, _SBUS_MAX_POLL_COUNT@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x26, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_read_csr
	ldr	w8, [x23]
	and	w8, w8, w0
	ldr	w9, [x21]
	and	w9, w9, w0
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
	add	x26, x26, #1
	ldr	x8, [x25]
	cmp	x8, x26
	b.gt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x20, x0
LBB0_6:
Lloh13:
	adrp	x8, _ASIC_STS_SBUS_COUNTERS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASIC_STS_SBUS_COUNTERS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_read_csr
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.7:
	mov	x21, x0
Lloh16:
	adrp	x8, _RCV_DATA_VALID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RCV_DATA_VALID@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_SBUS_COUNTER
	mov	x20, x0
Lloh19:
	adrp	x8, _EXECUTE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXECUTE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SBUS_COUNTER
	cmp	x20, x0
	b.ne	LBB0_13
LBB0_8:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_write_csr
	ldr	w1, [x22]
	mov	x0, x19
	bl	_read_csr
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.9:
	mov	x20, #-1
Lloh22:
	adrp	x21, _SBUS_MAX_POLL_COUNT@GOTPAGE
Lloh23:
	ldr	x21, [x21, _SBUS_MAX_POLL_COUNT@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x20, x20, #1
	cmp	x8, x20
	b.le	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	bl	_read_csr
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_10
LBB0_12:
	mov	w0, #0
	b	LBB0_16
LBB0_13:
Lloh24:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh26:
	adrp	x8, _ETIME@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ASIC_CFG_SBUS_EXECUTE,4,2      ; @ASIC_CFG_SBUS_EXECUTE
	.comm	_ASIC_CFG_SBUS_EXECUTE_EXECUTE_SMASK,4,2 ; @ASIC_CFG_SBUS_EXECUTE_EXECUTE_SMASK
	.comm	_ASIC_STS_SBUS_RESULT,4,2       ; @ASIC_STS_SBUS_RESULT
	.comm	_ASIC_STS_SBUS_RESULT_DONE_SMASK,4,2 ; @ASIC_STS_SBUS_RESULT_DONE_SMASK
	.comm	_ASIC_STS_SBUS_RESULT_RCV_DATA_VALID_SMASK,4,2 ; @ASIC_STS_SBUS_RESULT_RCV_DATA_VALID_SMASK
	.comm	_SBUS_MAX_POLL_COUNT,8,3        ; @SBUS_MAX_POLL_COUNT
	.comm	_ASIC_STS_SBUS_COUNTERS,4,2     ; @ASIC_STS_SBUS_COUNTERS
	.comm	_RCV_DATA_VALID,4,2             ; @RCV_DATA_VALID
	.comm	_EXECUTE,4,2                    ; @EXECUTE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ETIME,4,2                      ; @ETIME
.subsections_via_symbols
