	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_ao_cec_g12a_irq_rx
_meson_ao_cec_g12a_irq_rx:              ## @meson_ao_cec_g12a_irq_rx
	.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	%rdi, %r14
	movl	20(%rdi), %edi
	movq	_CECB_RX_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r12d
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	movq	_CEC_MAX_MSG_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	movl	%ecx, (%r14)
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_CECB_RX_DATA00@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r14), %edi
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_regmap_read
	orl	%eax, %r12d
	movzbl	-44(%rbp), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	20(%r14), %edi
	movq	_CECB_LOCK_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	orl	%r12d, %eax
	jne	LBB0_5
## %bb.4:
	movl	16(%r14), %edi
	movq	%r14, %rsi
	callq	_cec_received_msg
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CECB_RX_CNT,8,3                ## @CECB_RX_CNT
	.comm	_CEC_MAX_MSG_SIZE,4,2           ## @CEC_MAX_MSG_SIZE
	.comm	_CECB_RX_DATA00,8,3             ## @CECB_RX_DATA00
	.comm	_CECB_LOCK_BUF,4,2              ## @CECB_LOCK_BUF
	.no_dead_strip	_meson_ao_cec_g12a_irq_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_ao_cec_g12a_irq_rx
_meson_ao_cec_g12a_irq_rx:              ; @meson_ao_cec_g12a_irq_rx
	.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
	mov	x19, x0
	ldr	w0, [x0, #20]
Lloh0:
	adrp	x8, _CECB_RX_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CECB_RX_CNT@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _CEC_MAX_MSG_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CEC_MAX_MSG_SIZE@GOTPAGEOFF]
	str	w8, [x19]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	str	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
Lloh6:
	adrp	x22, _CECB_RX_DATA00@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CECB_RX_DATA00@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #20]
	ldr	x8, [x22]
	add	x1, x21, x8
	add	x2, sp, #12
	bl	_regmap_read
	orr	w20, w0, w20
	ldrb	w8, [sp, #12]
	ldr	x9, [x19, #8]
	str	w8, [x9, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w0, [x19, #20]
Lloh8:
	adrp	x8, _CECB_LOCK_BUF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CECB_LOCK_BUF@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	orr	w8, w0, w20
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w0, [x19, #16]
	mov	x1, x19
	bl	_cec_received_msg
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CECB_RX_CNT,8,3                ; @CECB_RX_CNT
	.comm	_CEC_MAX_MSG_SIZE,4,2           ; @CEC_MAX_MSG_SIZE
	.comm	_CECB_RX_DATA00,8,3             ; @CECB_RX_DATA00
	.comm	_CECB_LOCK_BUF,4,2              ; @CECB_LOCK_BUF
	.no_dead_strip	_meson_ao_cec_g12a_irq_rx
.subsections_via_symbols
