	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda998x_irq_thread
_tda998x_irq_thread:                    ## @tda998x_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	%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
	movq	%rsi, %rbx
	movq	_REG_CEC_INTSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cec_read
	movl	%eax, %r15d
	movq	_CEC_INTSTATUS_HDMI@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_REG_CEC_RXSHPDINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cec_read
	movl	%eax, %r12d
	movq	_REG_CEC_RXSHPDLEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cec_read
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_REG_INT_FLAGS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reg_read
	movl	%eax, %r13d
	movq	_REG_INT_FLAGS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reg_read
	movl	%eax, %r14d
	movq	_REG_INT_FLAGS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reg_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	callq	_DRM_DEBUG_DRIVER
	movq	_CEC_RXSHPDINT_HPD@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_CEC_RXSHPDLEV_HPD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_tda998x_edid_delay_start
	jmp	LBB0_7
LBB0_1:
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_3:
	xorl	%edi, %edi
	jmp	LBB0_8
LBB0_6:
	leaq	20(%rbx), %rdi
	callq	_schedule_work
	movl	16(%rbx), %edi
	movq	_CEC_PHYS_ADDR_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cec_notifier_set_phys_addr
LBB0_7:
	movl	$1, %edi
LBB0_8:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_INT_FLAGS_2_EDID_BLK_RD@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.9:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.10:
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_wake_up
	movl	$1, %edi
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CEC_INTSTATUS,4,2          ## @REG_CEC_INTSTATUS
	.comm	_CEC_INTSTATUS_HDMI,4,2         ## @CEC_INTSTATUS_HDMI
	.comm	_REG_CEC_RXSHPDINT,4,2          ## @REG_CEC_RXSHPDINT
	.comm	_REG_CEC_RXSHPDLEV,4,2          ## @REG_CEC_RXSHPDLEV
	.comm	_REG_INT_FLAGS_0,4,2            ## @REG_INT_FLAGS_0
	.comm	_REG_INT_FLAGS_1,4,2            ## @REG_INT_FLAGS_1
	.comm	_REG_INT_FLAGS_2,4,2            ## @REG_INT_FLAGS_2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tda irq sta %02x cec %02x lvl %02x f0 %02x f1 %02x f2 %02x\n"

	.comm	_CEC_RXSHPDINT_HPD,4,2          ## @CEC_RXSHPDINT_HPD
	.comm	_CEC_RXSHPDLEV_HPD,4,2          ## @CEC_RXSHPDLEV_HPD
	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ## @CEC_PHYS_ADDR_INVALID
	.comm	_INT_FLAGS_2_EDID_BLK_RD,4,2    ## @INT_FLAGS_2_EDID_BLK_RD
	.no_dead_strip	_tda998x_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda998x_irq_thread
_tda998x_irq_thread:                    ; @tda998x_irq_thread
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
Lloh0:
	adrp	x8, _REG_CEC_INTSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_CEC_INTSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cec_read
Lloh3:
	adrp	x8, _CEC_INTSTATUS_HDMI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CEC_INTSTATUS_HDMI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x8, _REG_CEC_RXSHPDINT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_CEC_RXSHPDINT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cec_read
	mov	x23, x0
Lloh9:
	adrp	x8, _REG_CEC_RXSHPDLEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_CEC_RXSHPDLEV@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cec_read
	mov	x22, x0
Lloh12:
	adrp	x8, _REG_INT_FLAGS_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_INT_FLAGS_0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_read
	mov	x24, x0
Lloh15:
	adrp	x8, _REG_INT_FLAGS_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_INT_FLAGS_1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_read
	mov	x25, x0
Lloh18:
	adrp	x8, _REG_INT_FLAGS_2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_INT_FLAGS_2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_read
	mov	x20, x0
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x24
	mov	x5, x25
	mov	x6, x20
	bl	_DRM_DEBUG_DRIVER
Lloh23:
	adrp	x8, _CEC_RXSHPDINT_HPD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CEC_RXSHPDINT_HPD@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_5
; %bb.2:
Lloh26:
	adrp	x8, _CEC_RXSHPDLEV_HPD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CEC_RXSHPDLEV_HPD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_tda998x_edid_delay_start
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_11
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	add	x0, x19, #20
	bl	_schedule_work
	ldr	w0, [x19, #16]
Lloh29:
	adrp	x8, _CEC_PHYS_ADDR_INVALID@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CEC_PHYS_ADDR_INVALID@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_cec_notifier_set_phys_addr
LBB0_7:
	mov	w0, #1
LBB0_8:
Lloh32:
	adrp	x8, _INT_FLAGS_2_EDID_BLK_RD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _INT_FLAGS_2_EDID_BLK_RD@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.10:
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_wake_up
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_IRQ_RETVAL
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CEC_INTSTATUS,4,2          ; @REG_CEC_INTSTATUS
	.comm	_CEC_INTSTATUS_HDMI,4,2         ; @CEC_INTSTATUS_HDMI
	.comm	_REG_CEC_RXSHPDINT,4,2          ; @REG_CEC_RXSHPDINT
	.comm	_REG_CEC_RXSHPDLEV,4,2          ; @REG_CEC_RXSHPDLEV
	.comm	_REG_INT_FLAGS_0,4,2            ; @REG_INT_FLAGS_0
	.comm	_REG_INT_FLAGS_1,4,2            ; @REG_INT_FLAGS_1
	.comm	_REG_INT_FLAGS_2,4,2            ; @REG_INT_FLAGS_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tda irq sta %02x cec %02x lvl %02x f0 %02x f1 %02x f2 %02x\n"

	.comm	_CEC_RXSHPDINT_HPD,4,2          ; @CEC_RXSHPDINT_HPD
	.comm	_CEC_RXSHPDLEV_HPD,4,2          ; @CEC_RXSHPDLEV_HPD
	.comm	_CEC_PHYS_ADDR_INVALID,4,2      ; @CEC_PHYS_ADDR_INVALID
	.comm	_INT_FLAGS_2_EDID_BLK_RD,4,2    ; @INT_FLAGS_2_EDID_BLK_RD
	.no_dead_strip	_tda998x_irq_thread
.subsections_via_symbols
