	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_recv_slave_reply
_stv090x_recv_slave_reply:              ## @stv090x_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, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	xorl	%ebx, %ebx
	movq	_DISRX_ST0@GOTPCREL(%rip), %r13
	movq	_RX_END_FIELD@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_msleep
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movq	%rax, %r12
	movl	(%r14), %esi
	movl	%r12d, %edi
	callq	_STV090x_GETFIELD_Px
	cmpl	$1, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$9, %ebx
	movl	%ecx, %ebx
	jb	LBB0_1
LBB0_3:
	testl	%eax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_7
## %bb.4:
	movq	_FIFO_BYTENBR_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%eax, (%r13)
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	_DISRXDATA@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISRX_ST0,4,2                  ## @DISRX_ST0
	.comm	_RX_END_FIELD,4,2               ## @RX_END_FIELD
	.comm	_FIFO_BYTENBR_FIELD,4,2         ## @FIFO_BYTENBR_FIELD
	.comm	_DISRXDATA,4,2                  ## @DISRXDATA
	.no_dead_strip	_stv090x_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 stv090x_recv_slave_reply
_stv090x_recv_slave_reply:              ; @stv090x_recv_slave_reply
	.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, x1
	mov	w22, #0
	ldr	x20, [x0]
Lloh0:
	adrp	x23, _DISRX_ST0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DISRX_ST0@GOTPAGEOFF]
Lloh2:
	adrp	x24, _RX_END_FIELD@GOTPAGE
Lloh3:
	ldr	x24, [x24, _RX_END_FIELD@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_msleep
	add	w25, w22, #1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
	ldr	w1, [x24]
	bl	_STV090x_GETFIELD_Px
	cmp	w0, #1
	ccmp	w22, #9, #2, ne
	mov	x22, x25
	b.lo	LBB0_1
; %bb.2:
	cbz	w0, LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _FIFO_BYTENBR_FIELD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FIFO_BYTENBR_FIELD@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_STV090x_GETFIELD_Px
	str	w0, [x19]
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
Lloh7:
	adrp	x22, _DISRXDATA@GOTPAGE
Lloh8:
	ldr	x22, [x22, _DISRXDATA@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	ldr	x8, [x19, #8]
	str	x0, [x8, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	mov	w0, #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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DISRX_ST0,4,2                  ; @DISRX_ST0
	.comm	_RX_END_FIELD,4,2               ; @RX_END_FIELD
	.comm	_FIFO_BYTENBR_FIELD,4,2         ; @FIFO_BYTENBR_FIELD
	.comm	_DISRXDATA,4,2                  ; @DISRXDATA
	.no_dead_strip	_stv090x_recv_slave_reply
.subsections_via_symbols
