	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0900_recv_slave_reply
_stv0900_recv_slave_reply:              ## @stv0900_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	8(%rax), %r12
	movl	$0, (%rsi)
	movq	_RX_END@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_stv0900_get_bits
	cmpl	$1, %eax
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_stv0900_get_bits
	cmpl	$1, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %eax
	cmpl	$9, %ebx
	movl	%eax, %ebx
	jb	LBB0_2
LBB0_4:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_stv0900_get_bits
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	_FIFO_BYTENBR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv0900_get_bits
	movl	%eax, (%r14)
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_DISRXDATA@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_stv0900_read_reg
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_END,4,2                     ## @RX_END
	.comm	_FIFO_BYTENBR,4,2               ## @FIFO_BYTENBR
	.comm	_DISRXDATA,4,2                  ## @DISRXDATA
	.no_dead_strip	_stv0900_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 stv0900_recv_slave_reply
_stv0900_recv_slave_reply:              ; @stv0900_recv_slave_reply
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x20, [x8, #8]
	str	wzr, [x1]
Lloh0:
	adrp	x21, _RX_END@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_END@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_stv0900_get_bits
	cmp	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_msleep
	add	w23, w22, #1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_stv0900_get_bits
	cmp	w0, #1
	ccmp	w22, #9, #2, ne
	mov	x22, x23
	b.lo	LBB0_2
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_stv0900_get_bits
	cbz	w0, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _FIFO_BYTENBR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIFO_BYTENBR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv0900_get_bits
	str	w0, [x19]
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
Lloh5:
	adrp	x22, _DISRXDATA@GOTPAGE
Lloh6:
	ldr	x22, [x22, _DISRXDATA@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_stv0900_read_reg
	ldr	x8, [x19, #8]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_END,4,2                     ; @RX_END
	.comm	_FIFO_BYTENBR,4,2               ; @FIFO_BYTENBR
	.comm	_DISRXDATA,4,2                  ; @DISRXDATA
	.no_dead_strip	_stv0900_recv_slave_reply
.subsections_via_symbols
