	.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_thread
_meson_ao_cec_g12a_irq_thread:          ## @meson_ao_cec_g12a_irq_thread
	.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	%rsi, %rbx
	movl	8(%rsi), %edi
	movq	_CECB_INTR_STAT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_regmap_read
	movl	8(%rbx), %edi
	movq	_CECB_INTR_CLR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-12(%rbp), %edx
	callq	_regmap_write
	movl	-12(%rbp), %eax
	movq	_CECB_INTR_DONE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cec_transmit_attempt_done
	movl	-12(%rbp), %eax
LBB0_2:
	movq	_CECB_INTR_EOM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_meson_ao_cec_g12a_irq_rx
	movl	-12(%rbp), %eax
LBB0_4:
	movq	_CECB_INTR_NACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cec_transmit_attempt_done
	movl	-12(%rbp), %eax
LBB0_6:
	movq	_CECB_INTR_ARB_LOSS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	movq	_CECB_TX_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_CECB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CECB_CTRL_SEND@GOTPCREL(%rip), %rax
	movq	_CECB_CTRL_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	4(%rbx), %edi
	movq	_CEC_TX_STATUS_ARB_LOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cec_transmit_attempt_done
	movl	-12(%rbp), %eax
LBB0_8:
	movq	_CECB_INTR_INITIATOR_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movl	4(%rbx), %edi
	movq	_CEC_TX_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cec_transmit_attempt_done
	movl	-12(%rbp), %eax
LBB0_10:
	movq	_CECB_INTR_FOLLOWER_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movl	(%rbx), %edi
	movq	_CECB_LOCK_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
LBB0_12:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CECB_INTR_STAT_REG,4,2         ## @CECB_INTR_STAT_REG
	.comm	_CECB_INTR_CLR_REG,4,2          ## @CECB_INTR_CLR_REG
	.comm	_CECB_INTR_DONE,4,2             ## @CECB_INTR_DONE
	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.comm	_CECB_INTR_EOM,4,2              ## @CECB_INTR_EOM
	.comm	_CECB_INTR_NACK,4,2             ## @CECB_INTR_NACK
	.comm	_CEC_TX_STATUS_NACK,4,2         ## @CEC_TX_STATUS_NACK
	.comm	_CECB_INTR_ARB_LOSS,4,2         ## @CECB_INTR_ARB_LOSS
	.comm	_CECB_TX_CNT,4,2                ## @CECB_TX_CNT
	.comm	_CECB_CTRL,4,2                  ## @CECB_CTRL
	.comm	_CECB_CTRL_SEND,4,2             ## @CECB_CTRL_SEND
	.comm	_CECB_CTRL_TYPE,4,2             ## @CECB_CTRL_TYPE
	.comm	_CEC_TX_STATUS_ARB_LOST,4,2     ## @CEC_TX_STATUS_ARB_LOST
	.comm	_CECB_INTR_INITIATOR_ERR,4,2    ## @CECB_INTR_INITIATOR_ERR
	.comm	_CEC_TX_STATUS_ERROR,4,2        ## @CEC_TX_STATUS_ERROR
	.comm	_CECB_INTR_FOLLOWER_ERR,4,2     ## @CECB_INTR_FOLLOWER_ERR
	.comm	_CECB_LOCK_BUF,4,2              ## @CECB_LOCK_BUF
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_meson_ao_cec_g12a_irq_thread
.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_thread
_meson_ao_cec_g12a_irq_thread:          ; @meson_ao_cec_g12a_irq_thread
	.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, x1
	ldr	w0, [x1, #8]
Lloh0:
	adrp	x8, _CECB_INTR_STAT_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CECB_INTR_STAT_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _CECB_INTR_CLR_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CECB_INTR_CLR_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_regmap_write
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _CECB_INTR_DONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CECB_INTR_DONE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x8, _CEC_TX_STATUS_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CEC_TX_STATUS_OK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_cec_transmit_attempt_done
	ldr	w8, [sp, #12]
LBB0_2:
Lloh12:
	adrp	x9, _CECB_INTR_EOM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CECB_INTR_EOM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_meson_ao_cec_g12a_irq_rx
	ldr	w8, [sp, #12]
LBB0_4:
Lloh15:
	adrp	x9, _CECB_INTR_NACK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CECB_INTR_NACK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
Lloh18:
	adrp	x8, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_cec_transmit_attempt_done
	ldr	w8, [sp, #12]
LBB0_6:
Lloh21:
	adrp	x9, _CECB_INTR_ARB_LOSS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CECB_INTR_ARB_LOSS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh24:
	adrp	x8, _CECB_TX_CNT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CECB_TX_CNT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x19]
Lloh27:
	adrp	x8, _CECB_CTRL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CECB_CTRL@GOTPAGEOFF]
Lloh29:
	adrp	x9, _CECB_CTRL_SEND@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CECB_CTRL_SEND@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	ldr	w8, [x9]
Lloh33:
	adrp	x9, _CECB_CTRL_TYPE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _CECB_CTRL_TYPE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	w0, [x19, #4]
Lloh36:
	adrp	x8, _CEC_TX_STATUS_ARB_LOST@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CEC_TX_STATUS_ARB_LOST@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_cec_transmit_attempt_done
	ldr	w8, [sp, #12]
LBB0_8:
Lloh39:
	adrp	x9, _CECB_INTR_INITIATOR_ERR@GOTPAGE
Lloh40:
	ldr	x9, [x9, _CECB_INTR_INITIATOR_ERR@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
Lloh42:
	adrp	x8, _CEC_TX_STATUS_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CEC_TX_STATUS_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	bl	_cec_transmit_attempt_done
	ldr	w8, [sp, #12]
LBB0_10:
Lloh45:
	adrp	x9, _CECB_INTR_FOLLOWER_ERR@GOTPAGE
Lloh46:
	ldr	x9, [x9, _CECB_INTR_FOLLOWER_ERR@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x19]
Lloh48:
	adrp	x8, _CECB_LOCK_BUF@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CECB_LOCK_BUF@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
LBB0_12:
Lloh51:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_CECB_INTR_STAT_REG,4,2         ; @CECB_INTR_STAT_REG
	.comm	_CECB_INTR_CLR_REG,4,2          ; @CECB_INTR_CLR_REG
	.comm	_CECB_INTR_DONE,4,2             ; @CECB_INTR_DONE
	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.comm	_CECB_INTR_EOM,4,2              ; @CECB_INTR_EOM
	.comm	_CECB_INTR_NACK,4,2             ; @CECB_INTR_NACK
	.comm	_CEC_TX_STATUS_NACK,4,2         ; @CEC_TX_STATUS_NACK
	.comm	_CECB_INTR_ARB_LOSS,4,2         ; @CECB_INTR_ARB_LOSS
	.comm	_CECB_TX_CNT,4,2                ; @CECB_TX_CNT
	.comm	_CECB_CTRL,4,2                  ; @CECB_CTRL
	.comm	_CECB_CTRL_SEND,4,2             ; @CECB_CTRL_SEND
	.comm	_CECB_CTRL_TYPE,4,2             ; @CECB_CTRL_TYPE
	.comm	_CEC_TX_STATUS_ARB_LOST,4,2     ; @CEC_TX_STATUS_ARB_LOST
	.comm	_CECB_INTR_INITIATOR_ERR,4,2    ; @CECB_INTR_INITIATOR_ERR
	.comm	_CEC_TX_STATUS_ERROR,4,2        ; @CEC_TX_STATUS_ERROR
	.comm	_CECB_INTR_FOLLOWER_ERR,4,2     ; @CECB_INTR_FOLLOWER_ERR
	.comm	_CECB_LOCK_BUF,4,2              ; @CECB_LOCK_BUF
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_meson_ao_cec_g12a_irq_thread
.subsections_via_symbols
