	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stih_rx_done
_stih_rx_done:                          ## @stih_rx_done
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_CEC_RX_ERROR_MIN@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	_CEC_RX_ERROR_MAX@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	jne	LBB0_8
## %bb.2:
	movq	%rdi, %r14
	movq	_CEC_DATA_ARRAY_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	andl	$31, %eax
	movl	%eax, -48(%rbp)
	je	LBB0_8
## %bb.3:
	cmpl	$17, %eax
	jb	LBB0_5
## %bb.4:
	movl	$16, -48(%rbp)
	movl	$16, %eax
LBB0_5:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movq	_CEC_RX_DATA_BASE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_readl
	incq	%rbx
	cmpq	%r15, %rbx
	jb	LBB0_6
## %bb.7:
	movl	(%r14), %edi
	leaq	-48(%rbp), %rsi
	callq	_cec_received_msg
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_RX_ERROR_MIN,4,2           ## @CEC_RX_ERROR_MIN
	.comm	_CEC_RX_ERROR_MAX,4,2           ## @CEC_RX_ERROR_MAX
	.comm	_CEC_DATA_ARRAY_STATUS,8,3      ## @CEC_DATA_ARRAY_STATUS
	.comm	_CEC_RX_DATA_BASE,8,3           ## @CEC_RX_DATA_BASE
	.no_dead_strip	_stih_rx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stih_rx_done
_stih_rx_done:                          ; @stih_rx_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _CEC_RX_ERROR_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CEC_RX_ERROR_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.ne	LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _CEC_RX_ERROR_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CEC_RX_ERROR_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w1
	b.ne	LBB0_8
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _CEC_DATA_ARRAY_STATUS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CEC_DATA_ARRAY_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ands	w8, w0, #0x1f
	str	w8, [sp]
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #17
	b.lo	LBB0_5
; %bb.4:
	mov	w8, #16
	str	w8, [sp]
LBB0_5:
	mov	x20, #0
	mov	w21, w8
Lloh9:
	adrp	x22, _CEC_RX_DATA_BASE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _CEC_RX_DATA_BASE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x8, x8, x9
	add	x0, x20, x8
	bl	_readl
	add	x20, x20, #1
	cmp	x20, x21
	b.lo	LBB0_6
; %bb.7:
	ldr	w0, [x19]
	mov	x1, sp
	bl	_cec_received_msg
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_RX_ERROR_MIN,4,2           ; @CEC_RX_ERROR_MIN
	.comm	_CEC_RX_ERROR_MAX,4,2           ; @CEC_RX_ERROR_MAX
	.comm	_CEC_DATA_ARRAY_STATUS,8,3      ; @CEC_DATA_ARRAY_STATUS
	.comm	_CEC_RX_DATA_BASE,8,3           ; @CEC_RX_DATA_BASE
	.no_dead_strip	_stih_rx_done
.subsections_via_symbols
