	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda9950_irq
_tda9950_irq:                           ## @tda9950_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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
	cmpl	$0, 20(%rsi)
	je	LBB0_18
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rsi), %rdi
	movq	_REG_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tda9950_read
	movq	_CSR_INT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.2:
	movq	(%rbx), %rdi
	movq	_REG_CCONR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tda9950_read
	movl	%eax, %r14d
	movq	_CCONR_RETRY_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	(%rbx), %rdi
	movq	_REG_CDR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rdx
	movl	$76, %ecx
	callq	_tda9950_read_range
	movl	-112(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	movl	-108(%rbp), %eax
	cmpl	$131, %eax
	je	LBB0_15
## %bb.5:
	cmpl	$132, %eax
	jne	LBB0_16
## %bb.6:
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %r15
	movl	-104(%rbp), %eax
	movq	%r15, %rsi
	movl	$0, %edx
	movl	$0, %ecx
	movl	$0, %r9d
	cmpl	$128, %eax
	je	LBB0_12
## %bb.7:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.9:
	movq	_CEC_TX_STATUS_ARB_LOST@GOTPCREL(%rip), %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	jmp	LBB0_12
LBB0_3:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_18
LBB0_15:
	addl	$-2, %edx
	movq	_CEC_MAX_MSG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	cmovgel	%eax, %edx
	leaq	8(%rbx), %r14
	movl	%edx, 8(%rbx)
	movl	12(%rbx), %edi
	leaq	-104(%rbp), %rsi
	callq	_memcpy
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	callq	_cec_received_msg
	jmp	LBB0_17
LBB0_16:
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_17
LBB0_10:
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	xorl	%r9d, %r9d
	jmp	LBB0_12
LBB0_11:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_CEC_TX_STATUS_ERROR@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r9d
LBB0_12:
	movl	(%rsi), %eax
	movl	$0, %esi
	cmpl	(%r15), %eax
	je	LBB0_14
## %bb.13:
	movq	_CEC_TX_STATUS_MAX_RETRIES@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_14:
	orl	%eax, %esi
	movl	16(%rbx), %edi
	xorl	%r8d, %r8d
	callq	_cec_transmit_done
LBB0_17:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
LBB0_18:
	movl	(%r15), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_REG_CSR,4,2                    ## @REG_CSR
	.comm	_CSR_INT,4,2                    ## @CSR_INT
	.comm	_REG_CCONR,4,2                  ## @REG_CCONR
	.comm	_CCONR_RETRY_MASK,4,2           ## @CCONR_RETRY_MASK
	.comm	_REG_CDR0,4,2                   ## @REG_CDR0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt pending, but no message?\n"

	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.comm	_CEC_TX_STATUS_ARB_LOST,4,2     ## @CEC_TX_STATUS_ARB_LOST
	.comm	_CEC_TX_STATUS_NACK,4,2         ## @CEC_TX_STATUS_NACK
L_.str.1:                               ## @.str.1
	.asciz	"CNF reply error 0x%02x\n"

	.comm	_CEC_TX_STATUS_ERROR,4,2        ## @CEC_TX_STATUS_ERROR
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ## @CEC_TX_STATUS_MAX_RETRIES
	.comm	_CEC_MAX_MSG_SIZE,4,2           ## @CEC_MAX_MSG_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"unknown service id 0x%02x\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tda9950_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda9950_irq
_tda9950_irq:                           ; @tda9950_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w8, [x1, #20]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x19, x1
	ldr	x0, [x1]
Lloh3:
	adrp	x8, _REG_CSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_CSR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_tda9950_read
Lloh6:
	adrp	x8, _CSR_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSR_INT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.2:
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _REG_CCONR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_CCONR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_tda9950_read
	mov	x20, x0
Lloh12:
	adrp	x8, _CCONR_RETRY_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CCONR_RETRY_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	ldr	x0, [x19]
Lloh15:
	adrp	x8, _REG_CDR0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_CDR0@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #76
	bl	_tda9950_read_range
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.3:
	ldr	w2, [sp, #16]
	cmp	w2, #131
	b.eq	LBB0_11
; %bb.4:
	cmp	w2, #132
	b.ne	LBB0_12
; %bb.5:
Lloh18:
	adrp	x21, _CEC_TX_STATUS_OK@GOTPAGE
Lloh19:
	ldr	x21, [x21, _CEC_TX_STATUS_OK@GOTPAGEOFF]
	ldr	w2, [sp, #20]
	cmp	w2, #128
	b.eq	LBB0_13
; %bb.6:
	and	w20, w22, w20
	cmp	w2, #129
	b.eq	LBB0_14
; %bb.7:
	cmp	w2, #130
	b.ne	LBB0_15
; %bb.8:
	mov	w3, #0
Lloh20:
	adrp	x8, _CEC_TX_STATUS_ARB_LOST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CEC_TX_STATUS_ARB_LOST@GOTPAGEOFF]
	mov	x2, x20
	mov	w20, #0
	b	LBB0_16
LBB0_9:
	ldr	x0, [x19]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_10:
Lloh24:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_18
LBB0_11:
	sub	w8, w8, #2
Lloh26:
	adrp	x9, _CEC_MAX_MSG_SIZE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CEC_MAX_MSG_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w2, w8, w9, lt
	str	w2, [x19, #8]!
	ldr	w0, [x19, #4]
	add	x8, sp, #12
	add	x1, x8, #8
	bl	_memcpy
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_cec_received_msg
	b	LBB0_17
LBB0_12:
	ldr	x0, [x19]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_17
LBB0_13:
	mov	w2, #0
	mov	w3, #0
	mov	w20, #0
	mov	x8, x21
	b	LBB0_16
LBB0_14:
	mov	w2, #0
Lloh31:
	adrp	x8, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
	mov	x3, x20
	mov	w20, #0
	b	LBB0_16
LBB0_15:
	ldr	x0, [x19]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	w2, #0
	mov	w3, #0
Lloh35:
	adrp	x8, _CEC_TX_STATUS_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CEC_TX_STATUS_ERROR@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGE
Lloh38:
	ldr	x9, [x9, _CEC_TX_STATUS_MAX_RETRIES@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh39:
	ldr	w9, [x9]
	cmp	w8, w10
	csel	w9, wzr, w9, eq
	orr	w1, w9, w8
	ldr	w0, [x19, #16]
	mov	w4, #0
	mov	x5, x20
	bl	_cec_transmit_done
LBB0_17:
Lloh40:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_REG_CSR,4,2                    ; @REG_CSR
	.comm	_CSR_INT,4,2                    ; @CSR_INT
	.comm	_REG_CCONR,4,2                  ; @REG_CCONR
	.comm	_CCONR_RETRY_MASK,4,2           ; @CCONR_RETRY_MASK
	.comm	_REG_CDR0,4,2                   ; @REG_CDR0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt pending, but no message?\n"

	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.comm	_CEC_TX_STATUS_ARB_LOST,4,2     ; @CEC_TX_STATUS_ARB_LOST
	.comm	_CEC_TX_STATUS_NACK,4,2         ; @CEC_TX_STATUS_NACK
l_.str.1:                               ; @.str.1
	.asciz	"CNF reply error 0x%02x\n"

	.comm	_CEC_TX_STATUS_ERROR,4,2        ; @CEC_TX_STATUS_ERROR
	.comm	_CEC_TX_STATUS_MAX_RETRIES,4,2  ; @CEC_TX_STATUS_MAX_RETRIES
	.comm	_CEC_MAX_MSG_SIZE,4,2           ; @CEC_MAX_MSG_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"unknown service id 0x%02x\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tda9950_irq
.subsections_via_symbols
