	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adv7511_cec_irq_process        ## -- Begin function adv7511_cec_irq_process
	.p2align	4, 0x90
_adv7511_cec_irq_process:               ## @adv7511_cec_irq_process
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rsi
	movq	_ADV7533@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_ADV7511_INT1_CEC_TX_READY@GOTPCREL(%rip), %rax
	movq	_ADV7511_INT1_CEC_TX_ARBIT_LOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ADV7533_REG_CEC_OFFSET@GOTPCREL(%rip), %rax
	movq	_ADV7511_INT1_CEC_TX_RETRY_TIMEOUT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	(%rax), %r15d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	testl	%ebx, %ecx
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%rsi, %r13
	movl	%ebx, %esi
	callq	_adv_cec_tx_raw_status
	movq	%r13, %rsi
LBB0_2:
	movq	_ADV7511_INT1_CEC_RX_READY1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.3:
	xorl	%r13d, %r13d
	cmpq	%r12, %rsi
	movl	12(%r14), %edi
	movq	_ADV7511_REG_CEC_RX_FRAME_LEN@GOTPCREL(%rip), %rax
	cmoveq	%r15, %r13
	movq	(%rax), %rsi
	addq	%r13, %rsi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movl	-44(%rbp), %ecx
	andl	$31, %ecx
	cmpl	$16, %ecx
	movl	$16, %eax
	cmovbl	%ecx, %eax
	movl	%eax, -64(%rbp)
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r14), %edi
	leaq	(%rbx,%r13), %rsi
	movq	_ADV7511_REG_CEC_RX_FRAME_HDR@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r15, %rdx
	callq	_regmap_read
	incq	%rbx
	cmpq	%r12, %rbx
	jb	LBB0_6
## %bb.7:
	movl	12(%r14), %edi
	movq	_ADV7511_REG_CEC_RX_BUFFERS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	%r13, %rsi
	movl	$1, %edx
	callq	_regmap_write
	movl	12(%r14), %edi
	addq	(%rbx), %r13
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	8(%r14), %edi
	leaq	-64(%rbp), %rsi
	callq	_cec_received_msg
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7533,8,3                    ## @ADV7533
	.comm	_ADV7533_REG_CEC_OFFSET,4,2     ## @ADV7533_REG_CEC_OFFSET
	.comm	_ADV7511_INT1_CEC_TX_READY,4,2  ## @ADV7511_INT1_CEC_TX_READY
	.comm	_ADV7511_INT1_CEC_TX_ARBIT_LOST,4,2 ## @ADV7511_INT1_CEC_TX_ARBIT_LOST
	.comm	_ADV7511_INT1_CEC_TX_RETRY_TIMEOUT,4,2 ## @ADV7511_INT1_CEC_TX_RETRY_TIMEOUT
	.comm	_ADV7511_INT1_CEC_RX_READY1,4,2 ## @ADV7511_INT1_CEC_RX_READY1
	.comm	_ADV7511_REG_CEC_RX_FRAME_LEN,8,3 ## @ADV7511_REG_CEC_RX_FRAME_LEN
	.comm	_ADV7511_REG_CEC_RX_FRAME_HDR,8,3 ## @ADV7511_REG_CEC_RX_FRAME_HDR
	.comm	_ADV7511_REG_CEC_RX_BUFFERS,8,3 ## @ADV7511_REG_CEC_RX_BUFFERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adv7511_cec_irq_process        ; -- Begin function adv7511_cec_irq_process
	.p2align	2
_adv7511_cec_irq_process:               ; @adv7511_cec_irq_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _ADV7533@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV7533@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _ADV7533_REG_CEC_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADV7533_REG_CEC_OFFSET@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ADV7511_INT1_CEC_TX_READY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADV7511_INT1_CEC_TX_READY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _ADV7511_INT1_CEC_TX_ARBIT_LOST@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ADV7511_INT1_CEC_TX_ARBIT_LOST@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh11:
	adrp	x10, _ADV7511_INT1_CEC_TX_RETRY_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ADV7511_INT1_CEC_TX_RETRY_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
Lloh14:
	ldr	w8, [x10]
	orr	w8, w9, w8
	stp	xzr, xzr, [sp, #16]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_adv_cec_tx_raw_status
LBB0_2:
Lloh15:
	adrp	x8, _ADV7511_INT1_CEC_RX_READY1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADV7511_INT1_CEC_RX_READY1@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.3:
	ldr	w0, [x19, #12]
Lloh18:
	adrp	x8, _ADV7511_REG_CEC_RX_FRAME_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADV7511_REG_CEC_RX_FRAME_LEN@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x21, x22
	csel	x20, x23, xzr, eq
	add	x1, x8, x20
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	w8, [sp, #12]
	and	w8, w8, #0x1f
	mov	w9, #16
	cmp	w8, #16
	csel	w21, w8, w9, lo
	str	w21, [sp, #16]
	cbz	w21, LBB0_8
; %bb.5:
	mov	x22, #0
Lloh21:
	adrp	x23, _ADV7511_REG_CEC_RX_FRAME_HDR@GOTPAGE
Lloh22:
	ldr	x23, [x23, _ADV7511_REG_CEC_RX_FRAME_HDR@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	ldr	x8, [x23]
	add	x9, x20, x22
	add	x1, x9, x8
	add	x2, sp, #8
	bl	_regmap_read
	add	x22, x22, #1
	cmp	x22, x21
	b.lo	LBB0_6
; %bb.7:
	ldr	w0, [x19, #12]
Lloh23:
	adrp	x21, _ADV7511_REG_CEC_RX_BUFFERS@GOTPAGE
Lloh24:
	ldr	x21, [x21, _ADV7511_REG_CEC_RX_BUFFERS@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	w2, #1
	bl	_regmap_write
	ldr	w0, [x19, #12]
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x19, #8]
	add	x1, sp, #16
	bl	_cec_received_msg
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7533,8,3                    ; @ADV7533
	.comm	_ADV7533_REG_CEC_OFFSET,4,2     ; @ADV7533_REG_CEC_OFFSET
	.comm	_ADV7511_INT1_CEC_TX_READY,4,2  ; @ADV7511_INT1_CEC_TX_READY
	.comm	_ADV7511_INT1_CEC_TX_ARBIT_LOST,4,2 ; @ADV7511_INT1_CEC_TX_ARBIT_LOST
	.comm	_ADV7511_INT1_CEC_TX_RETRY_TIMEOUT,4,2 ; @ADV7511_INT1_CEC_TX_RETRY_TIMEOUT
	.comm	_ADV7511_INT1_CEC_RX_READY1,4,2 ; @ADV7511_INT1_CEC_RX_READY1
	.comm	_ADV7511_REG_CEC_RX_FRAME_LEN,8,3 ; @ADV7511_REG_CEC_RX_FRAME_LEN
	.comm	_ADV7511_REG_CEC_RX_FRAME_HDR,8,3 ; @ADV7511_REG_CEC_RX_FRAME_HDR
	.comm	_ADV7511_REG_CEC_RX_BUFFERS,8,3 ; @ADV7511_REG_CEC_RX_BUFFERS
.subsections_via_symbols
