	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_rx_done
_stm32_rx_done:                         ## @stm32_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_RXACKE@GOTPCREL(%rip), %rcx
	movq	_RXOVR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	jne	LBB0_5
## %bb.1:
	movq	_RXBR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movl	28(%rbx), %edi
	movq	_CEC_RXDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_regmap_read
	movzbl	-12(%rbp), %eax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 16(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movl	(%rbx), %eax
LBB0_3:
	movq	_RXEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movl	24(%rbx), %edi
	leaq	8(%rbx), %rsi
	callq	_cec_received_msg
LBB0_5:
	movq	$0, 16(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXACKE,4,2                     ## @RXACKE
	.comm	_RXOVR,4,2                      ## @RXOVR
	.comm	_RXBR,4,2                       ## @RXBR
	.comm	_CEC_RXDR,4,2                   ## @CEC_RXDR
	.comm	_RXEND,4,2                      ## @RXEND
	.no_dead_strip	_stm32_rx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_rx_done
_stm32_rx_done:                         ; @stm32_rx_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RXACKE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXACKE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _RXOVR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RXOVR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_5
; %bb.1:
Lloh6:
	adrp	x9, _RXBR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RXBR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #28]
Lloh9:
	adrp	x8, _CEC_RXDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CEC_RXDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldrb	w8, [sp, #12]
	ldp	x9, x10, [x19, #8]
	add	x11, x10, #1
	str	x11, [x19, #16]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19]
LBB0_3:
Lloh12:
	adrp	x9, _RXEND@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RXEND@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x19, #24]
	add	x1, x19, #8
	bl	_cec_received_msg
LBB0_5:
	str	xzr, [x19, #16]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RXACKE,4,2                     ; @RXACKE
	.comm	_RXOVR,4,2                      ; @RXOVR
	.comm	_RXBR,4,2                       ; @RXBR
	.comm	_CEC_RXDR,4,2                   ; @CEC_RXDR
	.comm	_RXEND,4,2                      ; @RXEND
	.no_dead_strip	_stm32_rx_done
.subsections_via_symbols
