	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi4_cec_irq                  ## -- Begin function hdmi4_cec_irq
	.p2align	4, 0x90
_hdmi4_cec_irq:                         ## @hdmi4_cec_irq
	.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, %rbx
	movl	(%rdi), %edi
	movq	_HDMI_CEC_INT_STATUS_0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_hdmi_read_reg
	movl	%eax, %r14d
	movl	(%rbx), %edi
	movq	_HDMI_CEC_INT_STATUS_1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_hdmi_read_reg
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movl	%r14d, %edx
	callq	_hdmi_write_reg
	movl	(%rbx), %edi
	movl	(%r13), %esi
	movl	%r15d, %edx
	callq	_hdmi_write_reg
	testb	$32, %r14b
	jne	LBB0_1
## %bb.2:
	testb	$2, %r15b
	je	LBB0_5
## %bb.3:
	movl	(%rbx), %edi
	movq	_HDMI_CEC_DBG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hdmi_read_reg
	movl	4(%rbx), %edi
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rcx
	movq	_CEC_TX_STATUS_MAX_RETRIES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	shrl	$4, %eax
	andl	$7, %eax
	xorl	%edx, %edx
	movl	%eax, %ecx
	jmp	LBB0_4
LBB0_1:
	movl	4(%rbx), %edi
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_4:
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cec_transmit_done
	movl	(%rbx), %edi
	movq	_HDMI_CEC_DBG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	movl	$7, %ecx
	movl	$7, %r8d
	callq	_REG_FLD_MOD
LBB0_5:
	testb	$2, %r14b
	jne	LBB0_7
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hdmi_cec_received_msg          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_CEC_INT_STATUS_0,4,2      ## @HDMI_CEC_INT_STATUS_0
	.comm	_HDMI_CEC_INT_STATUS_1,4,2      ## @HDMI_CEC_INT_STATUS_1
	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.comm	_HDMI_CEC_DBG_3,4,2             ## @HDMI_CEC_DBG_3
	.comm	_CEC_TX_STATUS_NACK,4,2         ## @CEC_TX_STATUS_NACK
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ## @CEC_TX_STATUS_MAX_RETRIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi4_cec_irq                  ; -- Begin function hdmi4_cec_irq
	.p2align	2
_hdmi4_cec_irq:                         ; @hdmi4_cec_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x22, _HDMI_CEC_INT_STATUS_0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HDMI_CEC_INT_STATUS_0@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_hdmi_read_reg
	mov	x20, x0
	ldr	w0, [x19]
Lloh2:
	adrp	x23, _HDMI_CEC_INT_STATUS_1@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HDMI_CEC_INT_STATUS_1@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_hdmi_read_reg
	mov	x21, x0
	ldr	w0, [x19]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_hdmi_write_reg
	ldr	w0, [x19]
	ldr	w1, [x23]
	mov	x2, x21
	bl	_hdmi_write_reg
Lloh4:
	adrp	x22, _HDMI_CEC_DBG_3@GOTPAGE
Lloh5:
	ldr	x22, [x22, _HDMI_CEC_DBG_3@GOTPAGEOFF]
	tbnz	w20, #5, LBB0_3
; %bb.1:
	tbz	w21, #1, LBB0_5
; %bb.2:
	ldr	w0, [x19]
	ldr	w1, [x22]
	bl	_hdmi_read_reg
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w1, w10, w9
	ubfx	w3, w0, #4, #3
	mov	x0, x8
	mov	w2, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x8, _CEC_TX_STATUS_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CEC_TX_STATUS_OK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
LBB0_4:
	mov	w4, #0
	mov	w5, #0
	bl	_cec_transmit_done
	ldr	w0, [x19]
	ldr	w1, [x22]
	mov	w2, #1
	mov	w3, #7
	mov	w4, #7
	bl	_REG_FLD_MOD
LBB0_5:
	tbnz	w20, #1, LBB0_7
; %bb.6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hdmi_cec_received_msg
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_CEC_INT_STATUS_0,4,2      ; @HDMI_CEC_INT_STATUS_0
	.comm	_HDMI_CEC_INT_STATUS_1,4,2      ; @HDMI_CEC_INT_STATUS_1
	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.comm	_HDMI_CEC_DBG_3,4,2             ; @HDMI_CEC_DBG_3
	.comm	_CEC_TX_STATUS_NACK,4,2         ; @CEC_TX_STATUS_NACK
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ; @CEC_TX_STATUS_MAX_RETRIES
.subsections_via_symbols
