	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_recv_slave_reply
_stb0899_recv_slave_reply:              ## @stb0899_recv_slave_reply
	.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	%rsi, %r14
	movq	(%rdi), %r12
	movq	%r12, %rdi
	movl	$100, %esi
	callq	_stb0899_wait_diseqc_rxidle
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	_STB0899_DISRX_ST0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stb0899_read_reg
	movq	_RXEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_STB0899_GETFIELD
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	_STB0899_DISRX_ST1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stb0899_read_reg
	movq	_FIFOBYTENBR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_STB0899_GETFIELD
	cmpl	$9, %eax
	jb	LBB0_6
## %bb.5:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %ebx
	movq	_STB0899_DISFIFO@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_stb0899_read_reg
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%r15,8)
	incq	%r15
	cmpq	%r15, %rbx
	jne	LBB0_8
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_STB0899_DISRX_ST0,4,2          ## @STB0899_DISRX_ST0
	.comm	_RXEND,4,2                      ## @RXEND
	.comm	_STB0899_DISRX_ST1,4,2          ## @STB0899_DISRX_ST1
	.comm	_FIFOBYTENBR,4,2                ## @FIFOBYTENBR
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_STB0899_DISFIFO,4,2            ## @STB0899_DISFIFO
	.no_dead_strip	_stb0899_recv_slave_reply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_recv_slave_reply
_stb0899_recv_slave_reply:              ; @stb0899_recv_slave_reply
	.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
	ldr	x20, [x0]
	mov	x0, x20
	mov	w1, #100
	bl	_stb0899_wait_diseqc_rxidle
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _STB0899_DISRX_ST0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STB0899_DISRX_ST0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stb0899_read_reg
	mov	x1, x0
Lloh3:
	adrp	x8, _RXEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXEND@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_STB0899_GETFIELD
	cbz	w0, LBB0_15
; %bb.2:
Lloh6:
	adrp	x8, _STB0899_DISRX_ST1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STB0899_DISRX_ST1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stb0899_read_reg
	mov	x1, x0
Lloh9:
	adrp	x8, _FIFOBYTENBR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FIFOBYTENBR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_STB0899_GETFIELD
	cmp	w0, #9
	b.lo	LBB0_6
; %bb.3:
Lloh12:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_6:
	mov	x21, x0
	str	w0, [x19]
	cbz	w0, LBB0_14
; %bb.7:
Lloh16:
	adrp	x22, _STB0899_DISFIFO@GOTPAGE
Lloh17:
	ldr	x22, [x22, _STB0899_DISFIFO@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_stb0899_read_reg
	ldr	x8, [x19, #8]
	str	x0, [x8]
	cmp	w21, #1
	b.eq	LBB0_14
; %bb.8:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_stb0899_read_reg
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	cmp	w21, #2
	b.eq	LBB0_14
; %bb.9:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_stb0899_read_reg
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	cmp	w21, #3
	b.eq	LBB0_14
; %bb.10:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_stb0899_read_reg
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	cmp	w21, #4
	b.eq	LBB0_14
; %bb.11:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_stb0899_read_reg
	ldr	x8, [x19, #8]
	str	x0, [x8, #32]
	cmp	w21, #5
	b.eq	LBB0_14
; %bb.12:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_stb0899_read_reg
	ldr	x8, [x19, #8]
	str	x0, [x8, #40]
	cmp	w21, #6
	b.eq	LBB0_14
; %bb.13:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_stb0899_read_reg
	ldr	x8, [x19, #8]
	str	x0, [x8, #48]
	cmp	w21, #7
	b.ne	LBB0_16
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
LBB0_16:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_stb0899_read_reg
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #8]
	str	x8, [x9, #56]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_STB0899_DISRX_ST0,4,2          ; @STB0899_DISRX_ST0
	.comm	_RXEND,4,2                      ; @RXEND
	.comm	_STB0899_DISRX_ST1,4,2          ; @STB0899_DISRX_ST1
	.comm	_FIFOBYTENBR,4,2                ; @FIFOBYTENBR
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_STB0899_DISFIFO,4,2            ; @STB0899_DISFIFO
	.no_dead_strip	_stb0899_recv_slave_reply
.subsections_via_symbols
